fix(voice): disable activity video animation — causing lag (MAT-149)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
21
voice.py
21
voice.py
@@ -791,16 +791,17 @@ class VoiceSession:
|
|||||||
if remote_identity:
|
if remote_identity:
|
||||||
logger.info("Linking to remote participant: %s", remote_identity)
|
logger.info("Linking to remote participant: %s", remote_identity)
|
||||||
|
|
||||||
# Publish activity video track (animated waveform bars)
|
# Activity video disabled (MAT-149) — was causing lag
|
||||||
try:
|
# TODO: re-enable when performance is investigated
|
||||||
self._activity_video = ActivityVideoPublisher()
|
# try:
|
||||||
video_track = rtc.LocalVideoTrack.create_video_track("activity", self._activity_video.source)
|
# self._activity_video = ActivityVideoPublisher()
|
||||||
pub_opts = rtc.TrackPublishOptions(source=rtc.TrackSource.SOURCE_CAMERA)
|
# video_track = rtc.LocalVideoTrack.create_video_track("activity", self._activity_video.source)
|
||||||
await self.lk_room.local_participant.publish_track(video_track, pub_opts)
|
# pub_opts = rtc.TrackPublishOptions(source=rtc.TrackSource.SOURCE_CAMERA)
|
||||||
self._activity_task = asyncio.create_task(self._activity_video.run())
|
# await self.lk_room.local_participant.publish_track(video_track, pub_opts)
|
||||||
logger.info("Activity video track published")
|
# self._activity_task = asyncio.create_task(self._activity_video.run())
|
||||||
except Exception as e:
|
# logger.info("Activity video track published")
|
||||||
logger.warning("Failed to publish activity video: %s", e)
|
# except Exception as e:
|
||||||
|
# logger.warning("Failed to publish activity video: %s", e)
|
||||||
|
|
||||||
# Load memories and user preferences for this caller
|
# Load memories and user preferences for this caller
|
||||||
memory_section = ""
|
memory_section = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user