A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack.

Hierarchy

Properties

active: boolean
id: string
onaddtrack: null | ((this: MediaStream, ev: MediaStreamTrackEvent) => any)
onremovetrack: null | ((this: MediaStream, ev: MediaStreamTrackEvent) => any)

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

    Returns boolean

  • Parameters

    • trackId: string

    Returns null | MediaStreamTrack

Generated using TypeDoc