Interface IntegrationExperimental

Describes optional playback overrides supplied by a player facade integration.

Remarks


- Requires PlayerConfiguration.usePlayerFacade when creating the player.
- Registration takes place on the Web native handle or through the Android native API, not on the React Native player API.
- Omitted hooks and nullish getter results delegate to the content player.
- The integration owns playback synchronization and must dispatch events when its public state changes.

This API is subject to change or removal without notice.

Platform

Android
Web
interface Integration {
    getCurrentTime?(): undefined | null | number;
    getDuration?(): undefined | null | number;
    getMuted?(): undefined | null | boolean;
    getVolume?(): undefined | null | number;
    isPaused?(): undefined | null | boolean;
    isSeeking?(): undefined | null | boolean;
    pause?(): boolean;
    play?(): boolean;
    setCurrentTime?(currentTime): boolean;
    setMuted?(muted): boolean;
    setVolume?(volume): boolean;
}

Methods

  • Returns the current playback time, in seconds.

    Returns undefined | null | number

    A finite, non-negative time, or null or undefined to use the content player's time. Invalid times also fall back to the content player.

  • Returns the playback duration, in seconds.

    Returns undefined | null | number

    The duration, or null or undefined to use the content player's duration. Infinity and NaN are preserved for live or unknown durations.

  • Returns whether audio is muted.

    Returns undefined | null | boolean

    The muted state, or null or undefined to use the content player's state.

  • Returns the audio volume.

    Returns undefined | null | number

    A volume between 0 and 1, or null or undefined to use the content player's volume.

  • Returns whether playback is paused.

    Returns undefined | null | boolean

    The paused state, or null or undefined to use the content player's state.

  • Returns whether a seek is in progress.

    Returns undefined | null | boolean

    The seeking state, or null or undefined to use the content player's state.

  • Requests playback to pause.

    Returns boolean

    true if handled, or false to pause the content player instead.

  • Requests playback to start or resume.

    Returns boolean

    true if handled, or false to play the content player instead.

  • Requests a seek to the given playback time.

    Parameters

    • currentTime: number

      The requested time, in seconds.

    Returns boolean

    true if handled, or false to seek the content player instead.

  • Requests a change to the muted state.

    Parameters

    • muted: boolean

      Whether audio should be muted.

    Returns boolean

    true if handled, or false to update the content player instead.

  • Requests a change to the audio volume.

    Parameters

    • volume: number

      The requested volume, between 0 and 1.

    Returns boolean

    true if handled, or false to update the content player instead.