RTCTrackEventInit
The WebRTC API's RTCTrackEventInit dictionary is used to provide information describing an RTCTrackEvent when instantiating a new track event using new RTCTrackEvent().
Properties
RTCTrackEventInit inherits properties from the EventInit dictionary, and also includes the following properties:
receiver-
The
RTCRtpReceiverwhich is being used to receive the track's media. -
streamsOptional -
An array of
MediaStreamobjects representing each of the streams that comprise the event's corresponding track. track-
The
MediaStreamTrackthe event is associated with. transceiver-
The
RTCRtpTransceiverassociated with the event.
Specifications
| Specification |
|---|
| WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtctrackeventinit |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
RTCTrackEventInit |
56 |
≤18 |
22 |
No |
43 |
11 |
56 |
56 |
44 |
43 |
11 |
6.0 |
receiver |
56 |
≤18 |
22 |
No |
43 |
11 |
56 |
56 |
44 |
43 |
11 |
6.0 |
streams |
56 |
≤18 |
22 |
No |
43 |
11 |
56 |
56 |
44 |
43 |
11 |
6.0 |
track |
56 |
≤18 |
22 |
No |
43 |
11 |
56 |
56 |
44 |
43 |
11 |
6.0 |
transceiver |
69 |
≤18 |
59 |
No |
43 |
11 |
69 |
69 |
59 |
43 |
11 |
6.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEventInit