MediaButtonsViewModel
class MediaButtonsViewModel(mediaControlContext: MediaControlContext, mediaButtonsConfiguration: LiveData<MediaButtonsConfiguration>)
Content copied to clipboard
ViewModel for media buttons that can be used directly in views where the playback controls are displayed. Provides lists of TtButtonViewModel for the primary and secondary media controls defined by MediaButtonsConfiguration.
Parameters
mediaControlContext
Provides access to contextual information for MediaControls.
mediaButtonsConfiguration
Provides configuration of standard and custom media controls, and their display limits.
Constructors
Link copied to clipboard
fun MediaButtonsViewModel(mediaControlContext: MediaControlContext, mediaButtonsConfiguration: LiveData<MediaButtonsConfiguration>)
Content copied to clipboard