An open stream of the player's state (Player.stream).
Remarks
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.
Example: Follow the state while a panel is shown
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.
constshown = plugin.scope(); shown.player.stream(draw); // stops when `shown` is disposed // … later, when the panel goes away: awaitshown.dispose();
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.
An open stream of the player's state (Player.stream).
Remarks
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.
Example: Follow the state while a panel is shown
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.
Since
1.10.0