Skip to content

Commit

Permalink
Add streamId parameter into the leaveFromRoom
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Nov 11, 2024
1 parent 88a7054 commit 191af4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/js/webrtc_adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,15 +763,17 @@ export class WebRTCAdaptor {
* Called to leave from a conference room. AMS responds with leavedTheRoom message.
* Parameters:
* @param {string} roomName : unique id for the conference room
* @param {string=} streamId : unique id for the stream that is streamed by this @WebRTCAdaptor
*/
leaveFromRoom(roomName) {
leaveFromRoom(roomName, streamId) {
for (var key in this.remotePeerConnection) {
this.closePeerConnection(key);
}
this.roomName = roomName;
var jsCmd = {
command: "leaveFromRoom",
room: roomName,
streamId: streamId,
};
Logger.debug("leave request is sent for " + roomName);

Expand Down

0 comments on commit 191af4f

Please sign in to comment.