TouchTrackViewModel
constructor(mediaDuration: LiveData<Duration>, isSeekActionSupported: LiveData<Boolean>, viewModelCoroutineScope: CoroutineScope, launchSeekAction: (SeekAction) -> Unit)
Parameters
mediaDuration
The media duration. Duration.ZERO if unknown or unavailable.
isSeekActionSupported
A LiveData set to true
when SeekAction is made available by current media source, and set to false
otherwise.
viewModelCoroutineScope
The ViewModel CoroutineScope.
launchSeekAction
Callback for launching a SeekAction with the new position.