The MediaStreamTrack.stop()
method stops playing the source associated with the track. Both the source and the track are deassociated. The track
state is set to ended
.
Syntax
track.stop();
Example
Specifications
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'MediaStreamTrack.stop()' in that specification. |
Candidate Recommendation | Initial specification. |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 34 (34) | Not supported | (Yes) | ? |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | ? | 34.0 (34) | Not supported | ? | ? |
See also
MediaStreamTrack
, the interface it belongs to.