File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' livekit-client ' : patch
3+ ---
4+
5+ Add check to ensure track visibility update only happens when ` adaptiveStream ` is enabled
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ export default class RemoteVideoTrack extends RemoteTrack<Track.Kind.Video> {
4040
4141 override setStreamState ( value : Track . StreamState ) {
4242 super . setStreamState ( value ) ;
43- console . log ( 'setStreamState' , value ) ;
44- if ( value === Track . StreamState . Active ) {
43+ this . log . debug ( 'setStreamState' , value ) ;
44+ if ( this . isAdaptiveStream && value === Track . StreamState . Active ) {
4545 // update visibility for adaptive stream tracks when stream state received from server is active
4646 // this is needed to ensure the track is stopped when there's no element attached to it at all
4747 this . updateVisibility ( ) ;
You can’t perform that action at this time.
0 commit comments