Player output to MediaStream

Commonly used for integration with third parties (e.g WebRTC video call SDK)

⚠️ The functionality might not be working on iOS Safari

Track the corresponding issue on Webkit Bug Tracker for a resolution status

Hierarchy

  • MediaStreamSSR
    • MediaStreamCapture

Constructors

Properties

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: MediaStream
      • ev: MediaStreamTrackEvent

      Returns any

onremovetrack: null | ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      • this: MediaStream
      • ev: MediaStreamTrackEvent

      Returns any

Methods

  • Type Parameters

    • K extends keyof MediaStreamEventMap

    Parameters

    • type: K
    • listener: ((this, ev) => any)
        • (this, ev): any
        • Parameters

          • this: MediaStream
          • ev: MediaStreamEventMap[K]

          Returns any

    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • track: MediaStreamTrack

    Returns void

  • Returns MediaStream

  • 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 MediaStreamTrack[]

  • Returns MediaStreamAudioTrack[]

  • Parameters

    • trackId: string

    Returns null | MediaStreamTrack

  • Returns MediaStreamTrack[]

  • Returns MediaStreamTrack[]

  • Returns MediaStreamVideoTrack[]

  • Type Parameters

    • K extends keyof MediaStreamEventMap

    Parameters

    • type: K
    • listener: ((this, ev) => any)
        • (this, ev): any
        • Parameters

          • this: MediaStream
          • ev: MediaStreamEventMap[K]

          Returns any

    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • track: MediaStreamTrack

    Returns void

  • Stops the capture

    Returns void