Options
All
  • Public
  • Public/Protected
  • All
Menu

This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent.

Hierarchy

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

activeSourceBuffers

activeSourceBuffers: SourceBufferList

duration

duration: number

onsourceclose

onsourceclose: function | null

onsourceended

onsourceended: function | null

onsourceopen

onsourceopen: function | null

readyState

readyState: ReadyState

sourceBuffers

sourceBuffers: SourceBufferList

Methods

addEventListener

addSourceBuffer

  • Parameters

    • type: string

    Returns SourceBuffer

clearLiveSeekableRange

  • clearLiveSeekableRange(): void
  • Returns void

dispatchEvent

  • 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

    Returns boolean

endOfStream

  • Parameters

    Returns void

removeEventListener

removeSourceBuffer

  • Parameters

    Returns void

setLiveSeekableRange

  • setLiveSeekableRange(start: number, end: number): void
  • Parameters

    • start: number
    • end: number

    Returns void

Generated using TypeDoc