Skip to main content

PlaybackPlayPauseButton

Function PlaybackPlayPauseButton 

Source
pub fn PlaybackPlayPauseButton(_: PlaybackPlayPauseButtonProps) -> Element
Expand description

A native button that plays or pauses a Playback Controller.

Supplying on_request_audio also makes the button usable while Playback is empty. The callback can load a source; Playback starts when that source is ready.

ยงProps

For details, see the props struct definition.