 		var currentMediaStream : PluginMediaStream? = nil;
 
 		for (_, pluginMediaStream) in self.pluginMediaStreams {
-			if (pluginMediaStream.rtcMediaStream == stream) {
+			if (pluginMediaStream.rtcMediaStream.streamId == stream!.streamId) {
 				currentMediaStream = pluginMediaStream;
 				break;
 			}

		var currentMediaStreamTrack : PluginMediaStreamTrack? = nil;

		for (_, pluginMediaTrack) in self.pluginMediaTracks {
			if (pluginMediaTrack.rtcMediaStreamTrack == rtpReceiver.track) {
				currentMediaStreamTrack = pluginMediaTrack;
				break;
			}

		}

		self.onSetDescriptionFailureCallback = { (error: Error) -> Void in
			NSLog("PluginRTCPeerConnection#setLocalDescription() | failure callback: %@ description %@",
						String(describing: error), desc)

			errback(error)
