<theoplayer-live-button> - A button that shows whether the player is currently playing at the live point, and seeks to the live point when clicked.

live-threshold - The maximum distance (in seconds) from the live point that the player's current time can be for it to still be considered "at the live point". If unset, defaults to 10 seconds.

live (readonly) - Whether the player is considered to be playing at the live point.

Hierarchy

Constructors

Properties

activeVideoQuality?: VideoQuality
deviceType?: DeviceType
fullscreen?: boolean
playbackRate?: number
previewTime?: number
targetVideoQualities?: VideoQuality[]
theoplayerUiObservedProperties: (keyof StateReceiverPropertyMap)[]

The names of the properties this element will receive.

Accessors

  • get disabled(): boolean

    Whether the button is disabled.

    When disabled, the button cannot be clicked.

    Returns boolean

  • set disabled(disabled: boolean): void

    Parameters

    • disabled: boolean

    Returns void

Methods

  • Parameters

    • attrName: string
    • oldValue: any
    • newValue: any

    Returns void

  • Returns void

  • Returns void

  • Handle a button click.

    By default, this does nothing. Subclasses can override this method to add behavior to the button.

    Returns void