Skip to content

Commit c65d124

Browse files
committed
Make metaData and viewerInfo separated on play request
1 parent 6e788c1 commit c65d124

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/js/webrtc_adaptor.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ export class WebRTCAdaptor {
662662
* @param {string=} metaData :(string, json) a free text information for the stream to AMS. It is provided to Rest methods by the AMS
663663
* @param {string=} [role] : role for the stream. It is used for selective forwarding of subtracks in conference mode.
664664
*/
665-
play(streamId, token, roomId, enableTracks, subscriberId, subscriberCode, metaData, role) {
665+
play(streamId, token, roomId, enableTracks, subscriberId, subscriberCode, metaData, role, viewerInfo) {
666666
if (typeof streamId === 'object') {
667667
// Object-style: play({ streamId, token, ... })
668668
this.playStream(streamId);
@@ -687,7 +687,8 @@ export class WebRTCAdaptor {
687687
trackList: typeof enableTracks !== undefined && enableTracks != null ? enableTracks : [],
688688
subscriberId: typeof subscriberId !== undefined && subscriberId != null ? subscriberId : "",
689689
subscriberCode: typeof subscriberCode !== undefined && subscriberId != null ? subscriberCode : "",
690-
viewerInfo: typeof metaData !== undefined && metaData != null ? metaData : "",
690+
viewerInfo: typeof viewerInfo !== undefined && viewerInfo != null ? viewerInfo : "",
691+
metaData: typeof metaData !== undefined && metaData != null ? metaData : "",
691692
role: (typeof role !== undefined && role != null) ? role : "",
692693
userPublishId: typeof this.publishStreamId !== undefined && this.publishStreamId != null ? this.publishStreamId : "",
693694
}

0 commit comments

Comments
 (0)