Options
All
  • Public
  • Public/Protected
  • All
Menu

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

  • EventTarget
    • MediaStream

Index

Properties

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

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.MediaStream, ev: MediaStreamEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • dispatchEvent(event: Event): boolean
  • 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

  • Parameters

    • trackId: string

    Returns null | internal.MediaStreamTrack

  • removeEventListener<K>(type: K, listener: ((this: internal.MediaStream, ev: MediaStreamEventMap[K]) => any), options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void

Generated using TypeDoc