Make the video behavior less confusing

There's no reason to allow it to take on placeholder values. It should be defined when the media has a published video track and undefined when not.
This commit is contained in:
Robin
2025-12-10 17:18:58 -05:00
parent ea6f934667
commit 6149dd2c9a
3 changed files with 15 additions and 17 deletions

View File

@@ -358,7 +358,7 @@ export class Publisher {
const track$ = scope.behavior(
observeTrackReference$(room.localParticipant, Track.Source.Camera).pipe(
map((trackRef) => {
const track = trackRef?.publication?.track;
const track = trackRef?.publication.track;
return track instanceof LocalVideoTrack ? track : null;
}),
),