Skip to content

Commit 88a7054

Browse files
Extend fields in the join room
1 parent 095b524 commit 88a7054

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/js/webrtc_adaptor.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -552,15 +552,21 @@ export class WebRTCAdaptor {
552552
* @param {string=} mode : legacy for older implementation (default value)
553553
* mcu for merging streams
554554
* amcu: audio only conferences with mixed audio
555+
* @param {string=} streamName : name of the stream
556+
* @param {string=} role : role for the stream. It is used for selective forwarding of subtracks in conference mode.
557+
* @param {string=} metadata : a free text information for the stream to AMS.
555558
*/
556-
joinRoom(roomName, streamId, mode) {
559+
joinRoom(roomName, streamId, mode, streamName, role, metadata) {
557560
this.roomName = roomName;
558561

559562
let jsCmd = {
560563
command: "joinRoom",
561564
room: roomName,
562565
streamId: streamId,
563566
mode: mode,
567+
streamName: streamName,
568+
role: role,
569+
metadata: metadata,
564570
}
565571
this.webSocketAdaptor.send(JSON.stringify(jsCmd));
566572
}

0 commit comments

Comments
 (0)