diff --git a/voice.py b/voice.py index e248c7c..cb726a2 100644 --- a/voice.py +++ b/voice.py @@ -672,10 +672,12 @@ class VoiceSession: # skips HKDF derivation → raw key stored → DEC_FAILED. # Solution: set caller key HERE, after frame cryptor is initialized. # Store video track for on-demand vision (look_at_screen tool) + # Screen share = source "screen_share" or "screenshare"; camera = "camera" or default if int(t.kind) == 2: # video track (LiveKit: 1=audio, 2=video) + track_source = getattr(pub, 'source', None) or "unknown" self._video_track = t - logger.info("Video track stored from %s for on-demand vision", p.identity) - if int(t.kind) == 1 and e2ee_opts is not None: # audio track only + logger.info("Video track stored from %s source=%s for on-demand vision", p.identity, track_source) + if int(t.kind) in (1, 2) and e2ee_opts is not None: # audio + video tracks caller_id = p.identity logger.info("E2EE_DIAG: track_subscribed for %s, have %d caller keys", caller_id, len(self._caller_all_keys))