W3cubDocs

/Haxe JavaScript

TrackEvent

package js.html.rtc

extends Event

Available on js

The WebRTC API interface RTCTrackEvent represents the track event, which is sent when a new MediaStreamTrack is added to an RTCRtpReceiver which is part of the RTCPeerConnection.

Documentation RTCTrackEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Constructor

new(type:String, eventInitDict:TrackEventInit)

Throws:

null

DOMError

Variables

read onlyreceiver:RtpReceiver

The RTCRtpReceiver used by the track that's been added to the RTCPeerConnection.

read onlystreams:Array<MediaStream>

An array of MediaStream objects, each representing one of the media streams which comprise the RTCTrackEvent.track that was added to the connection. By default, the array is empty.

read onlytrack:MediaStreamTrack

The MediaStreamTrack which has been added to the connection.

read onlytransceiver:RtpTransceiver

The RTCRtpTransceiver being used by the new track.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/rtc/TrackEvent.html