@vestra-player/sdk - v1.11.3
    Preparing search index...

    Interface StreamFrame

    Frames a stream supplies on demand: RGBA pixels and 48 kHz stereo f32 PCM.

    Limits: the picture is exactly width × height × 4 bytes and at most 4 MiB (1280×720 fits, 1920×1080 does not: lower the resolution, the player scales it). Every sample is finite and within −1…1; clamp your own mix. A frame that breaks a limit ends the stream with invalid (openStream rejects, or Stream.onStop gets the error).

    The SDK copies the frame once before frame() is called again, so you may reuse the same buffers for every frame.

    1.0.0

    interface StreamFrame {
        video: Uint8Array;
        audio: Float32Array;
    }
    Index
    video: Uint8Array

    width × height × 4 bytes of RGBA, at most 4 MiB.

    Interleaved stereo samples at 48 kHz for this frame's duration (an even length, any number of frames; the SDK sends them in packets of at most 4800). Each sample finite, −1…1.