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:
receiverRTCRtpReceiver which is being used to receive the track's media.streams Optional
MediaStream objects representing each of the streams that comprise the event's corresponding track.trackMediaStreamTrack the event is associated with.transceiverRTCRtpTransceiver associated with the event.| Specification | Status | Comment |
|---|---|---|
| WebRTC 1.0: Real-time Communication Between Browsers The definition of 'RTCTrackEventInit' in that specification. | Candidate Recommendation | Initial specification. |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 56 | Yes | 22 | No | 43 | ? |
receiver |
56 | Yes | 22 | No | 43 | ? |
streams |
56 | Yes | 22 | No | 43 | ? |
track |
56 | Yes | 22 | No | 43 | ? |
transceiver |
56 | Yes | 59 | No | 43 | ? |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | 56 | 56 | Yes | 44 | 43 | ? | 6.0 |
receiver |
56 | 56 | Yes | 44 | 43 | ? | 6.0 |
streams |
56 | 56 | Yes | 44 | 43 | ? | 6.0 |
track |
56 | 56 | Yes | 44 | 43 | ? | 6.0 |
transceiver |
56 | 56 | Yes | 59 | 43 | ? | 6.0 |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEventInit