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

    Interface ResolvedStream

    What a file resolver returns: a stream, with the same frame contract as StreamOptions (size limits, frame() on the audio clock).

    After resolve returns, the SDK starts the stream while the open waits. If that fails, the open fails with the player's words instead of the SDK's (the detail goes to the log): device "音频输出设备不可用", timeout "启动超时", busy "播放器正忙,请稍后重试", other start-up failures "无法启动播放". An error thrown by frame() keeps its message. To give your own text for a file you can tell is unusable (a bad header), check it in resolve and throw there.

    1.5.3

    interface ResolvedStream {
        kind: "stream";
        width: number;
        height: number;
        frame(): StreamFrame;
        started?(stream: Stream): void;
    }
    Index
    • Called with the running stream once the player plays it, synchronously after activation and before any Stream.onStop. Not called when the open was cancelled first. stream.stop() closes the source (if still current); the plugin stopping stops it too.

      Parameters

      Returns void

    kind: "stream"

    Always "stream".

    width: number

    Frame width in pixels.

    height: number

    Frame height in pixels.