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

Commit bd0c9b6

Browse files
authored
Listen on ontrack event on Safari. (#337)
This commit only fixes issue for Safari. But we should eventually remove event handlers for both onaddstream and onremovestream.
1 parent 3f0da50 commit bd0c9b6

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
@@ -657,7 +657,7 @@ class P2PPeerConnectionChannel extends EventDispatcher {
657657
this._pc.addTransceiver('audio');
658658
this._pc.addTransceiver('video');
659659
}
660-
if (!this._isUnifiedPlan()) {
660+
if (!this._isUnifiedPlan() && !Utils.isSafari()) {
661661
this._pc.onaddstream = (event) => {
662662
// TODO: Legacy API, should be removed when all UAs implemented WebRTC 1.0.
663663
this._onRemoteStreamAdded.apply(this, [event]);

0 commit comments

Comments
 (0)