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

On 2014-03-13 10:38, Harald Alvestrand wrote:
> On 03/05/2014 03:03 PM, bugzilla@jessica.w3.org wrote:
>> https://www.w3.org/Bugs/Public/show_bug.cgi?id=24930
>>
>> Adam Bergkvist <adam.bergkvist@ericsson.com> changed:
>>
>>             What    |Removed                     |Added
>> ----------------------------------------------------------------------------
>>
>>                   CC|
>> |adam.bergkvist@ericsson.com
>>
>> --- Comment #1 from Adam Bergkvist <adam.bergkvist@ericsson.com> ---
>> You're right about the (incorrect) state check on MediaStream before a
>> new
>> track is added. It's old language from the time when MediaStream could be
>> ended. Now a MediaStream is active or inactive and new tracks can be
>> added to
>> an inactive stream to make it active again.
>>
>> Checking the state of the MediaStreamTrack being added is a new thing,
>> but I
>> think it's correct to do so.
>>
> However, the track state should definitely not be checked when removing
> a track.
> Otherwise, it would become impossible to remove an ended track.

Right.

I'll go ahead and update this during the day.

/Adam

Received on Friday, 14 March 2014 08:33:12 UTC