@grabjs/superapp-sdk
    Preparing search index...

    Type Alias DRMPlaybackEvent

    DRMPlaybackEvent: {
        length: number;
        position: number;
        titleId: string;
        type:
            | "START_PLAYBACK"
            | "PROGRESS_PLAYBACK"
            | "START_SEEK"
            | "STOP_SEEK"
            | "STOP_PLAYBACK"
            | "CLOSE_PLAYBACK"
            | "PAUSE_PLAYBACK"
            | "RESUME_PLAYBACK"
            | "FAST_FORWARD_PLAYBACK"
            | "REWIND_PLAYBACK"
            | "ERROR_PLAYBACK"
            | "CHANGE_VOLUME";
    }

    Result object for DRM playback events.

    Type Declaration

    • length: number
    • position: number
    • titleId: string
    • type:
          | "START_PLAYBACK"
          | "PROGRESS_PLAYBACK"
          | "START_SEEK"
          | "STOP_SEEK"
          | "STOP_PLAYBACK"
          | "CLOSE_PLAYBACK"
          | "PAUSE_PLAYBACK"
          | "RESUME_PLAYBACK"
          | "FAST_FORWARD_PLAYBACK"
          | "REWIND_PLAYBACK"
          | "ERROR_PLAYBACK"
          | "CHANGE_VOLUME"

    Playback started event:

    {
    type: 'START_PLAYBACK',
    titleId: 'movie-123',
    position: 0,
    length: 3600
    }

    Playback progress event:

    {
    type: 'PROGRESS_PLAYBACK',
    titleId: 'movie-123',
    position: 120,
    length: 3600
    }

    Playback error event:

    {
    type: 'ERROR_PLAYBACK',
    titleId: 'movie-123',
    position: 300,
    length: 3600
    }