diff --git a/RTCPeerConnection.js b/RTCPeerConnection.js index 7647d47da..e085093da 100644 --- a/RTCPeerConnection.js +++ b/RTCPeerConnection.js @@ -121,7 +121,7 @@ export default class RTCPeerConnection extends EventTarget(PEER_CONNECTION_EVENT } else if (source === 'video') { src = { type: 'video' }; } else { - src = { trackId: track.id }; + src = { source: source.id }; } WebRTCModule.peerConnectionAddTransceiver(this._peerConnectionId, {...src, init: { ...init } }, (successful, data) => {