The backdrop position (plugin.panels.backdrop): whether a backdrop is
mounted and whether it is shown now.
Remarks
The player decides when the backdrop shows: while the source is empty or
loading, and while ready media has no video picture (audio files). The
plugin decides what to draw, from Player.state and
Player.stats. While an onChange listener exists state
follows every change; otherwise it refreshes only when this plugin
mounts.
Example: React when a video picture appears
The OSD says "Video is playing" when the backdrop gives way to a video
picture. The player decides when the backdrop shows (nothing open,
loading, audio without a picture); effective turns false when a video
frame replaces it.
plugin.panels.backdrop.onChange((state) => { // `null`: no backdrop is mounted. if (state?.effective === false) voidplugin.osd.show("Video is playing"); });
The plugin's log records each change of the backdrop position. The
listener runs when the player starts or stops showing the backdrop
and with null when it is unmounted.
The backdrop position (
plugin.panels.backdrop): whether a backdrop is mounted and whether it is shown now.Remarks
The player decides when the backdrop shows: while the source is empty or loading, and while ready media has no video picture (audio files). The plugin decides what to draw, from Player.state and Player.stats. While an
onChangelistener existsstatefollows every change; otherwise it refreshes only when this plugin mounts.Example: React when a video picture appears
The OSD says "Video is playing" when the backdrop gives way to a video picture. The player decides when the backdrop shows (nothing open, loading, audio without a picture);
effectiveturns false when a video frame replaces it.Since
1.0.0