A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.

Hierarchy

  • EventTarget
    • MediaStreamTrack

Properties

contentHint: string
enabled: boolean
id: string
kind: string
label: string
muted: boolean
onended: ((this: MediaStreamTrack, ev: Event) => any)

Type declaration

onmute: ((this: MediaStreamTrack, ev: Event) => any)

Type declaration

onunmute: ((this: MediaStreamTrack, ev: Event) => any)

Type declaration

Methods

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Returns void