MediaStreamTrackEvent

MediaStreamTrackEvent interface represents events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur.

The events based on this interface are addtrack and removetrack

特性

Also inherits properties from its parent interface, Event .

track 只读
A MediaStreamTrack object representing the track which was added to the stream.

构造函数

MediaStreamTrackEvent()
构造新 MediaStreamTrackEvent with the specified configuration.

方法

Also inherits methods from its parent Event .

规范

规范 状态 Comment
媒体捕获和流
The definition of 'MediaStreamTrackEvent' in that specification.
候选推荐

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
MediaStreamTrackEvent Chrome 55 Edge ≤18 Firefox 50 IE No Opera 42 Safari Yes WebView Android 55 Chrome Android 55 Firefox Android 50 Opera Android 42 Safari iOS Yes Samsung Internet Android 6.0
MediaStreamTrackEvent() 构造函数 Chrome 55 Edge ≤79 Firefox 50 IE No Opera 42 Safari ? WebView Android 55 Chrome Android 55 Firefox Android 50 Opera Android 42 Safari iOS ? Samsung Internet Android 6.0
track Chrome Yes Edge 12 Firefox Yes IE No Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知

另请参阅