Skip to content

Commit

Permalink
Merge pull request #579 from samgabriel/master
Browse files Browse the repository at this point in the history
Fixes issue #576 not found
  • Loading branch information
hthetiot authored Oct 16, 2020
2 parents 62648fd + 630f030 commit d982b8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PluginRTCPeerConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@ class PluginRTCPeerConnection : NSObject, RTCPeerConnectionDelegate {

// Let the plugin store it in its dictionary.
pluginMediaStreams[currentPluginMediaStream!.id] = currentPluginMediaStream;

// Fixes issue #576
self.eventListenerForAddStream(currentPluginMediaStream!)
}

return currentPluginMediaStream;
Expand All @@ -603,8 +606,6 @@ class PluginRTCPeerConnection : NSObject, RTCPeerConnectionDelegate {

let pluginMediaStream = getPluginMediaStream(stream: stream);

self.eventListenerForAddStream(pluginMediaStream!)

// Fire the 'addstream' event so the JS will create a new MediaStream.
self.eventListener([
"type": "addstream",
Expand Down

0 comments on commit d982b8b

Please sign in to comment.