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 RTCRtpReceiver which is being used to receive the track's media.

streams Optional

An array of MediaStream objects representing each of the streams that comprise the event's corresponding track.

track

The MediaStreamTrack the event is associated with.

transceiver

The RTCRtpTransceiver associated with the event.

Specifications

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