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

    Type Alias PlayDRMContentResponse

    PlayDRMContentResponse:
        | { status_code: 204 }
        | { error: string; status_code: 400 }
        | { error: string; status_code: 500 }
        | { error: string; status_code: 501 }
        | { error: string; status_code: 424 }
        | {
            result: {
                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";
            };
            status_code: 200;
        }

    Response when initiating DRM content playback.

    This response can have the following status codes:

    • 200: Playback initiated successfully (streaming content).
    • 204: Invalid parameters - the DRM configuration is malformed or missing required fields.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.