LiveButtonState

State holder for a "live" button, such as LiveButton.

Create an instance with rememberLiveButtonState.

Properties

Link copied to clipboard

Whether the button can be clicked. Disabled while an ad is playing.

Link copied to clipboard

Whether the player is currently playing at the live point.

Link copied to clipboard

Whether the button should be shown. Only live and DVR streams have a live point.

Functions

Link copied to clipboard
fun onClick()

Seeks to the live point and resumes playback, unless the button is disabled.