ThorVG WebCanvas API - v1.1.4
    Preparing search index...

    Interface AudioInfoBeta

    Describes the current state of a Lottie audio layer.

    This structure is provided to the audio resolver callback and contains the information required to synchronize audio playback with the animation timeline.

    interface AudioInfo {
        src: string | Uint8Array<ArrayBufferLike>;
        mimeType: string | null;
        offset: number;
        volume: number;
        active: boolean;
    }
    Index
    src: string | Uint8Array<ArrayBufferLike>

    Audio source: a file path/URL, or the embedded raw bytes.

    mimeType: string | null

    MIME type string; valid when the source is embedded; may be null.

    offset: number

    Position within the audio file in seconds; valid when active.

    volume: number

    Volume [0, 1]; valid when active.

    active: boolean

    true while the layer is within its playback range.