Player output to video

⚠️ The VideoRecorder works only on the platforms which supports MediaRecorder API.

Hierarchy

  • MediaRecorder
  • MediaRecorderSSR
    • VideoRecorder

Constructors

  • Parameters

    • player: Player
    • options: MediaRecorderOptions

    Returns VideoRecorder

Properties

audioBitsPerSecond: number
mimeType: string
ondataavailable: null | ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      • this: MediaRecorder
      • ev: BlobEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: MediaRecorder
      • ev: MediaRecorderErrorEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: MediaRecorder
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: MediaRecorder
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: MediaRecorder
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: MediaRecorder
      • ev: Event

      Returns any

state: RecordingState
stream: MediaStream
videoBitsPerSecond: number

Methods

  • Type Parameters

    • K extends keyof MediaRecorderEventMap

    Parameters

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

          • this: MediaRecorder
          • ev: MediaRecorderEventMap[K]

          Returns any

    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

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

    Returns 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

  • Pauses video recording

    Returns void

  • Type Parameters

    • K extends keyof MediaRecorderEventMap

    Parameters

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

          • this: MediaRecorder
          • ev: MediaRecorderEventMap[K]

          Returns any

    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

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

    Returns void

  • Returns void

  • Resumes video recording after a pause

    Returns void

  • Start video recording

    Returns void

  • Stops video recording

    Returns Promise<Blob>

    The recorder video

  • Parameters

    • type: string

    Returns boolean