File tree 4 files changed +12
-8
lines changed
4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' livekit-client ' : patch
3
+ ---
4
+
5
+ Allow subscription settings before fully subscribed
Original file line number Diff line number Diff line change @@ -298,9 +298,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
298
298
}
299
299
this . primaryPC = primaryPC ;
300
300
primaryPC . onconnectionstatechange = async ( ) => {
301
- log . debug ( 'primary PC state changed' , {
302
- state : primaryPC . connectionState ,
303
- } ) ;
301
+ log . debug ( `primary PC state changed ${ primaryPC . connectionState } ` ) ;
304
302
if ( primaryPC . connectionState === 'connected' ) {
305
303
try {
306
304
this . connectedServerAddr = await getConnectedAddress ( primaryPC ) ;
@@ -322,9 +320,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
322
320
}
323
321
} ;
324
322
secondaryPC . onconnectionstatechange = async ( ) => {
325
- log . debug ( 'secondary PC state changed' , {
326
- state : secondaryPC . connectionState ,
327
- } ) ;
323
+ log . debug ( `secondary PC state changed ${ secondaryPC . connectionState } ` ) ;
328
324
// also reconnect if secondary peerconnection fails
329
325
if ( secondaryPC . connectionState === 'failed' ) {
330
326
this . handleDisconnect ( 'secondary peerconnection' ) ;
Original file line number Diff line number Diff line change @@ -1191,7 +1191,10 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
1191
1191
event : E ,
1192
1192
...args : Parameters < RoomEventCallbacks [ E ] >
1193
1193
) : boolean {
1194
- log . debug ( 'room event' , { event, args } ) ;
1194
+ // active speaker updates are too spammy
1195
+ if ( event !== RoomEvent . ActiveSpeakersChanged ) {
1196
+ log . debug ( `room event ${ event } ` , { event, args } ) ;
1197
+ }
1195
1198
return super . emit ( event , ...args ) ;
1196
1199
}
1197
1200
}
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ export default class RemoteTrackPublication extends TrackPublication {
219
219
} ) ;
220
220
return false ;
221
221
}
222
- if ( ! this . isSubscribed ) {
222
+ if ( ! this . isDesired ) {
223
223
log . warn ( 'cannot update track settings when not subscribed' , { trackSid : this . trackSid } ) ;
224
224
return false ;
225
225
}
You can’t perform that action at this time.
0 commit comments