- From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
- Date: Thu, 21 Dec 2017 09:26:37 +0000
- To: public-webrtc@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:41 UTC