W3C home > Mailing lists > Public > public-webrtc@w3.org > June 2016

[webrtc-pc] Merged Pull Request: Define how to create RTCRtpSender/Receiver/Transceiver and let addTrack use them

From: Adam Bergkvist via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Jun 2016 07:14:20 +0000
To: public-webrtc@w3.org
Message-ID: <pull_request.closed-73689530-1466579659-sysbot+gh@w3.org>
adam-be has just merged pull request 702 for 
https://github.com/w3c/webrtc-pc:

== Define how to create RTCRtpSender/Receiver/Transceiver and let 
addTrack use them ==
Fixes: #369

This change adds steps to:
* create an RTCRtpSender with a track and streams
* create an RTCRtpReceiver with a kind (and id)
* create an RTCRtpTransceiver with a sender and a receiver

addTrack() uses these steps to create a new RTCRtpTransceiver (with a 
sender) if no existing sender could be matched. It also adds some text
 about configuring a matched sender (transceiver). The steps above can
 easily be extended to support the remote media case as well, for 
example by adding an mid "argument" to the 'create an 
RTCRtpTransceiver' steps.

Rendered preview: 
http://rawgit.com/adam-be/webrtc-pc/create-rtp-stuff/webrtc.html#dom-rtcpeerconnection-addtrack

See https://github.com/w3c/webrtc-pc/pull/702
Received on Wednesday, 22 June 2016 07:14:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:48 UTC