ソースを参照

fix(video-quality): add missing simulcast stream constraints

When the client starts video muted and the track is later added, make sure we construct the simulcasr stream constraints then.
master
Jaya Allamsetty 4年前
コミット
bd259cb783
1個のファイルの変更7行の追加0行の削除
  1. 7
    0
      modules/RTC/TPCUtils.js

+ 7
- 0
modules/RTC/TPCUtils.js ファイルの表示

@@ -269,6 +269,13 @@ export class TPCUtils {
269 269
                 this.setEncodings(localTrack);
270 270
                 this.pc.localTracks.set(localTrack.rtcId, localTrack);
271 271
                 transceiver.direction = 'sendrecv';
272
+
273
+                // Construct the simulcast stream constraints for the newly added track.
274
+                if (localTrack.isVideoTrack()
275
+                    && localTrack.videoType === VideoType.CAMERA
276
+                    && this.pc.isSimulcastOn()) {
277
+                    this.setSimulcastStreamConstraints(localTrack.getTrack());
278
+                }
272 279
             }
273 280
 
274 281
             return Promise.resolve(false);

読み込み中…
キャンセル
保存