Re: [Bug 24928] the spec defines the addtrack event as part of the MediaStream interface, but never calls out when the event should be fired.

On 2014-03-07 09:27, Martin Thomson wrote:
>> --- Comment #2 from Shijun Sun <shijuns@microsoft.com> ---
>> It seems okay to remove the addtrack event from the spec as long as the
>> addtrack() call is synchronous.  Same to the removetrack event (as mentioned in
>> bug 24930).
>
> It's true that addTrack doesn't have any value for getUserMedia, but...
>
> For streams that come from RTCPeerConnection it is critical. It is
> also possible that the event is useful for streams that come from
> other sources, like webaudio or <video> or <audio> tags.
>

Right. The event is needed so the question is if it should remain in the 
gum spec or be moved to the webrtc spec.

As I see it, the motivation for moving it to the webrtc spec is that 
that's were it's actually used for the first time.

The reason for keeping it in gum is that other specs (like webaudio) 
don't need to reference the webrtc spec just to get the event. But I 
don't know if this is even a reason.

/Adam

Received on Friday, 7 March 2014 09:18:37 UTC