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

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