Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit b4d2877

Browse files
starwarfanjianjunz
authored andcommitted
Ignore other video subscribe options when RID is set (#248)
* Ignore other video subscribe options when RID is set * Update comments
1 parent 162cd7e commit b4d2877

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sdk/conference/channel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ export class ConferencePeerConnectionChannel extends EventDispatcher {
339339
}
340340
if (options.video.rid) {
341341
mediaOptions.video.simulcastRid = options.video.rid;
342+
// Ignore other settings when RID set.
343+
delete mediaOptions.video.parameters;
344+
options.video = true;
342345
}
343346
} else {
344347
mediaOptions.video = false;

0 commit comments

Comments
 (0)