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

Commit b128621

Browse files
authored
Call _onRemoteStreamRemoved with MediaStreamEvent. (#390)
1 parent 48edd60 commit b128621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdk/p2p/peerconnection-channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ class P2PPeerConnectionChannel extends EventDispatcher {
10901090
const mediaStreams = this._getStreamByTrack(event.target);
10911091
for (const mediaStream of mediaStreams) {
10921092
if (this._areAllTracksEnded(mediaStream)) {
1093-
this._onRemoteStreamRemoved(mediaStream);
1093+
this._onRemoteStreamRemoved({stream: mediaStream});
10941094
}
10951095
}
10961096
});

0 commit comments

Comments
 (0)