RTCTrackEventInit

The WebRTC API's RTCTrackEventInit dictionary is used to provide information describing an RTCTrackEvent when instantiating a new track event using new RTCTrackEvent() .

特性

RTCTrackEventInit inherits properties from the EventInit dictionary, and also includes the following properties:

receiver
RTCRtpReceiver which is being used to receive the track's media.
streams 可选
An array of MediaStream objects representing each of the streams that comprise the event's corresponding track.
track
MediaStreamTrack the event is associated with.
transceiver
RTCRtpTransceiver associated with the event.

规范

规范 状态 Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCTrackEventInit' in that specification.
候选推荐 Initial 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
RTCTrackEventInit Chrome 56 Edge ≤18 Firefox 22 IE No Opera 43 Safari ? WebView Android 56 Chrome Android 56 Firefox Android 44 Opera Android 43 Safari iOS ? Samsung Internet Android 6.0
receiver Chrome 56 Edge ≤18 Firefox 22 IE No Opera 43 Safari ? WebView Android 56 Chrome Android 56 Firefox Android 44 Opera Android 43 Safari iOS ? Samsung Internet Android 6.0
streams Chrome 56 Edge ≤18 Firefox 22 IE No Opera 43 Safari ? WebView Android 56 Chrome Android 56 Firefox Android 44 Opera Android 43 Safari iOS ? Samsung Internet Android 6.0
track Chrome 56 Edge ≤18 Firefox 22 IE No Opera 43 Safari ? WebView Android 56 Chrome Android 56 Firefox Android 44 Opera Android 43 Safari iOS ? Samsung Internet Android 6.0
transceiver Chrome 69 Edge ≤18 Firefox 59 IE No Opera 43 Safari ? WebView Android 69 Chrome Android 69 Firefox Android 59 Opera Android 43 Safari iOS ? Samsung Internet Android 6.0

图例

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