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

interface MediaStreamTrack {
    contentHint: string;
    enabled: boolean;
    id: string;
    kind: string;
    label: string;
    muted: boolean;
    onended: ((this, ev) => any);
    onmute: ((this, ev) => any);
    onunmute: ((this, ev) => any);
    readyState: MediaStreamTrackState;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    applyConstraints(constraints?): Promise<void>;
    clone(): MediaStreamTrack;
    dispatchEvent(event): boolean;
    getCapabilities(): MediaTrackCapabilities;
    getConstraints(): MediaTrackConstraints;
    getSettings(): MediaTrackSettings;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
    stop(): void;
}

Hierarchy

  • EventTarget
    • MediaStreamTrack

Properties

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

Type declaration

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

Type declaration

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

Type declaration

Methods

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns Promise<void>

  • 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

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

Generated using TypeDoc