RTCTrackEvent

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.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<RTCTrackEvent>, init: RTCTrackEventInit)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open external val bubbles: Boolean
Link copied to clipboard
open external val cancelable: Boolean
Link copied to clipboard
open external val composed: Boolean
Link copied to clipboard
open external val currentTarget: EventTarget?
Link copied to clipboard
open external val defaultPrevented: Boolean
Link copied to clipboard
open external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
open external val receiver: RTCRtpReceiver

The read-only receiver property of the RTCTrackEvent interface indicates the RTCRtpReceiver which is used to receive data containing media for the track to which the event refers.

Link copied to clipboard
open external val streams: ReadonlyArray<MediaStream>

The WebRTC API interface RTCTrackEvent's read-only streams property specifies an array of MediaStream objects, one for each of the streams that comprise the track being added to the RTCPeerConnection.

Link copied to clipboard
open external val target: EventTarget?
Link copied to clipboard
open external val timeStamp: DOMHighResTimeStamp
Link copied to clipboard
open external val track: MediaStreamTrack

The WebRTC API interface RTCTrackEvent's read-only track property specifies the MediaStreamTrack that has been added to the RTCPeerConnection.

Link copied to clipboard
open external val transceiver: RTCRtpTransceiver

The WebRTC API interface RTCTrackEvent's read-only transceiver property indicates the RTCRtpTransceiver affiliated with the event's track.

Link copied to clipboard
open external override val type: EventType<RTCTrackEvent>

Functions

Link copied to clipboard
open external fun composedPath(): ReadonlyArray<EventTarget>
Link copied to clipboard
open external fun preventDefault()
Link copied to clipboard
open external fun stopImmediatePropagation()
Link copied to clipboard
open external fun stopPropagation()