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

    Interface StateStream

    An open stream of the player's state (Player.stream).

    While it is open the player keeps the plugin running. It ends with StateStream.stop, when the scope that opened it is disposed, and when the plugin stops; it is not kept through standby.

    The stream lives only as long as what shows the state: it is opened with the scope of the panel's content and ends when that scope is disposed, so the plugin may go to standby afterwards.

    const shown = plugin.scope();
    shown.player.stream(draw); // stops when `shown` is disposed
    // … later, when the panel goes away:
    await shown.dispose();

    1.10.0

    interface StateStream {
        stop(): void;
    }
    Index
    • Stop the stream: its listener is not called again. A second call does nothing. When no other stream is open, nothing of the streams keeps the plugin running any more.

      Returns void

      Never.

      Player.stream

      1.10.0