foo-webview-sdk
    Preparing search index...

    Interface AudioPcmFailedPayload

    Payload of the audio:pcmFailed event. An audio.decodePcm task ended without samples: decoding failed, the page origin stopped being trusted, the buffer could not be allocated or posted, or the task was cancelled with audio.cancelDecodePcm. Delivered like audio:pcmReady.

    interface AudioPcmFailedPayload {
        code:
            | "INVALID_PARAMS"
            | "NOT_SUPPORTED"
            | "OPERATION_FAILED"
            | "CANCELLED"
            | "ORIGIN_DENIED"
            | "DECODER_FAILED"
            | "DECODE_FAILED"
            | "UNKNOWN_ERROR";
        error: string;
        path: string;
        taskId: string;
    }
    Index
    code:
        | "INVALID_PARAMS"
        | "NOT_SUPPORTED"
        | "OPERATION_FAILED"
        | "CANCELLED"
        | "ORIGIN_DENIED"
        | "DECODER_FAILED"
        | "DECODE_FAILED"
        | "UNKNOWN_ERROR"

    CANCELLED after audio.cancelDecodePcm; ORIGIN_DENIED when the page origin stopped being trusted; OPERATION_FAILED when the buffer could not be allocated or posted; otherwise why decoding failed. INVALID_PARAMS means start is at or beyond the end of the track.

    error: string

    What went wrong.

    path: string

    Source track path specified in the request.

    taskId: string

    Id from the audio.decodePcm answer.