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

Commit 3e99197

Browse files
committed
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. (cherry picked from commit bd0c9b6)
1 parent 55cf03a commit 3e99197

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

0 commit comments

Comments
 (0)