nx.js
NamespacesSwitchFunctions

setMediaPlaybackState

setMediaPlaybackState(state): void

Set media playback state.

Parameters

ParameterTypeDescription
statebooleanIf true, screen dimming and auto sleep is disabled.

Returns

void

On this page