onClick

val onClick: (Boolean) -> Unit

Parameters

onClick

The action to be performed when the button is clicked. Boolean parameter controls the play/pause state. If true, the video is playing; if false, the video is paused.