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

[webrtc-pc] specify legacy onaddstream?

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Thu, 21 Dec 2017 09:26:37 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-283820679-1513848395-sysbot+gh@w3.org>
fippo has just created a new issue for https://github.com/w3c/webrtc-pc:

== specify legacy onaddstream? ==
I am having trouble porting my application code over from ontrack to onaddstream.

Given bugs like https://bugzilla.mozilla.org/show_bug.cgi?id=1423842 it might be worth specifying how it behaves. The use-case which broke there was roughly this:
pc.onaddstream = (e) => {
  // determine if e.stream is audio-only, video-only or audio-video
  // attach to srcObject

ontrack can be used to attach to srcObject but it will fire twice for an audio/video stream which makes it a bit ugly.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1705 using your GitHub account
Received on Thursday, 21 December 2017 09:26:39 UTC

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