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

Commit f1146bc

Browse files
committed
Add rid to VideoSubscriptionConstraints.
1 parent 2e81905 commit f1146bc

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

docs/mdfiles/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Change Log
33
# 4.3
44
* The type of `conferenceClient.publish` method's option is changed from `AudioEncodingParameters` and `VideoEncodingParameters` to `RTCRtpSendParameters`.
55
* `audio` and `video` of `PublicationSettings` is changed from `AudioPublicationSettings` and `VideoPublicationSettings` to `AudioPublicationSettings` array and `VideoPublicationSettings` array.
6+
* Add `rid` to `VideoSubscriptionConstraints`. When `rid` is specified, other constraints will be ignored.
67

78
# 4.0.2
89
* Fix a compatibility issue for Chrome 69 beta.

src/sdk/conference/channel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ export class ConferencePeerConnectionChannel extends EventDispatcher {
322322
bitrate: options.video.bitrateMultiplier ? 'x'
323323
+ options.video.bitrateMultiplier.toString() : undefined,
324324
keyFrameInterval: options.video.keyFrameInterval,
325+
simulcastRid: options.video.rid
325326
};
326327
}
327328
} else {

src/sdk/conference/subscription.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class AudioSubscriptionConstraints {
121121
export class VideoSubscriptionConstraints {
122122
// eslint-disable-next-line require-jsdoc
123123
constructor(codecs, resolution, frameRate, bitrateMultiplier,
124-
keyFrameInterval) {
124+
keyFrameInterval, rid) {
125125
/**
126126
* @member {?Array.<Owt.Base.VideoCodecParameters>} codecs
127127
* @instance
@@ -157,6 +157,13 @@ export class VideoSubscriptionConstraints {
157157
* @desc Only keyFrameIntervals listed in Owt.Conference.VideoSubscriptionCapabilities are allowed.
158158
*/
159159
this.keyFrameInterval = keyFrameInterval;
160+
/**
161+
* @member {?number} rid
162+
* @instance
163+
* @memberof Owt.Conference.VideoSubscriptionConstraints
164+
* @desc Restriction identifier to identify the RTP Streams within an RTP session. When rid is specified, other constraints will be ignored.
165+
*/
166+
this.rid = rid;
160167
}
161168
}
162169

0 commit comments

Comments
 (0)