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

    A generated stream (plugin.player.openStream) as the test host sees it: the fake player end of the frame connection. Assertion surface; see TestHost.producers.

    The player's end of a generated stream's frame connection (TestHost.producers): how many frames arrived and whether the plugin released it or the player retired it. Tests assert on it; nothing is played.

    The test starts the plugin's generator and checks that video and audio arrive. The counters grow as the SDK pulls frames and sends them over the fake connection.

    await host.command("start-generator").run();
    await host.settle(200); // let a few frames through
    const [producer] = host.producers.values();
    assert.ok((producer?.videoFrames ?? 0) > 0 && (producer?.receivedFrames ?? 0) > 0);

    1.0.0

    interface FakeProducer {
        id: number;
        receivedFrames: number;
        videoFrames: number;
        released: boolean;
        retired: boolean;
        droppedWhileSelected: boolean;
    }
    Index
    id: number

    The producer id the host assigned (1, 2, … per host).

    receivedFrames: number

    Audio sample frames received so far (one stereo f32 pair = 1 frame).

    videoFrames: number

    Video frames received so far.

    released: boolean

    true once the plugin released the producer (stream stopped or disposed).

    retired: boolean

    true once the player retired the producer, as the real player does at once: another source replaced it (open, another stream, a resolved file), the source was closed, or TestHost.failStream failed it. A retired producer's producer.state answers unavailable.

    droppedWhileSelected: boolean

    true if the frame connection closed while this stream was still the player's source: the player reports that as a playback failure ("producer transport closed"). stop() closes the source first.