RTCTrackEventInit.track
The RTCTrackEventInit dictionary's track property specifies the MediaStreamTrack associated with the track event.
Syntax
var trackEventInit = { receiver: rtpReceiver, track: mediaStreamTrack, streams: [videoStream], transceiver: rtpTransceiver }; var track = trackEventInit.track;
Value
A MediaStreamTrack representing the track with which the event is associated. This is the track that's being added to the RTCPeerConnection.
Specifications
| Specification |
|---|
| WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtctrackeventinit-track |
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 | |
track |
56 |
≤18 |
22 |
No |
43 |
11 |
56 |
56 |
44 |
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/track