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

[webrtc-pc] how is addTrack without a stream signalled in the sdp

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 Jul 2017 12:49:22 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-240639946-1499258960-sysbot+gh@w3.org>
fippo has just created a new issue for https://github.com/w3c/webrtc-pc:

== how is addTrack without a stream signalled in the sdp ==
from [here](https://github.com/w3c/webrtc-pc/issues/1128#issuecomment-313039639) in the infamous #1128 issue:
addTrack allows adding a track without a stream

How is this signaled in the SDP? https://tools.ietf.org/html/draft-ietf-mmusic-msid-16#section-2 doesn't allow an empty msid-id

The pragmatic solution is probably to generate a random stream id. This also means that ontrack always has event.streams with a length > 0.

In [the steps to create addTrack](http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtrack) this would need to be handled here:
> Let streams be a list of MediaStream objects constructed from the method's remaining arguments, or an empty list if the method was called with a single argument.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1448 using your GitHub account
Received on Wednesday, 5 July 2017 12:49:28 UTC

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