rtc-io / rtc-quickconnect

An opinionated approach to creating WebRTC apps (both media and datachannels supported)
Apache License 2.0
186 stars 43 forks source link

Fixed the remove track to have RTCRptSender object #93

Closed rmjahangeer closed 6 years ago

rmjahangeer commented 6 years ago

Fixed the remove track to have RTCRptSender object, by invoking pc.call,getSenders() method and finding the sender by track. also update the adddStream() method to have addTrack() if the pc.addTrack() is defined as epr documentation of RTCPeerConnection. you may find it here: https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream

nathanoehlman commented 6 years ago

Hi Rana, Thanks for the PR - looks good. I've gone ahead and published this as rtc-quickconnect@5.8.2

Cheers, Nathan