DescriptionMediaRecorder: make EventListener and stop if receiving on{add,remove}track from WebMediaStream
MediaRecorder is supposed to stop if the amount of tracks of the
associated MediaStream varies. This CL adds an EventListener to
MR to listen to Blink MediaStream.{add,remove}track and simply
signals an error to MR in that case. Added a LayoutTest as well.
Note that MediaStream did _not_ send an {add,remove}track if the
added/removed track was local, it did only for remote, so this
CL changes that (yes, needs review from MS folks), from the
spec [1]:
> onaddtrack of type EventHandler,
> This event handler, of type addtrack, is executed when a MediaStreamTrack is added to the MediaStream.
[...]
> onremovetrack of type EventHandler,
> This event handler, of type removetrack, is executed when a MediaStreamTrack is removed from the MediaStream.
BUG=545156
[1] http://www.w3.org/TR/mediacapture-streams/#attributes
Patch Set 1 #
Total comments: 1
Messages
Total messages: 10 (6 generated)
|