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

Re: [webrtc-pc] Should the spec describe addStream/onaddstream as legacy API?

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Thu, 15 Jun 2017 11:54:10 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-308708976-1497527648-sysbot+gh@w3.org>
btw, trying to shim addTrack on top of addStream (kids, do not try this at home) in Chrome it turned out that 
pc.addTrack(audioStream, audiovideoStream);
pc.getLocalStreams()[0].getTracks(); // contains audio and video
is somewhat consistent and that
pc.addTrack(audioStream, someStream)
stream = pc.getLocalStreams()[0];
pc.addTrack(videostream, stream)
is how people use the combination in the wild.

GitHub Notification of comment by fippo
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1125#issuecomment-308708976 using your GitHub account
Received on Thursday, 15 June 2017 11:54:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:21:39 UTC