-
@UnstableApi() public final class HlsViewModel extends AndroidViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private final MutableLiveData<Boolean>isPlayingprivate final MutableLiveData<Boolean>videoVisibleprivate final <ERROR CLASS>progressBarVisibleprivate final MutableLiveData<Boolean>isZoomEnabledprivate final MutableLiveData<Boolean>isLiveprivate final MutableLiveData<String>behindLiveByLiveDataprivate final SingleLiveEvent<Unit>streamEndedEventprivate final MutableLiveData<String>currentSubtitlesprivate final MutableLiveData<Boolean>playerReadyprivate final <ERROR CLASS>player
-
Constructor Summary
Constructors Constructor Description HlsViewModel(Application application, String hlsStreamUrl, HMSSDK hmsSdk, Function1<HmsHlsPlaybackState, Unit> hlsPlayerBeganToPlay, Function0<DisplayHlsCuesUseCase> displayHlsCuesUseCase)
-
Method Summary
Modifier and Type Method Description final MutableLiveData<Boolean>getIsPlaying()final MutableLiveData<Boolean>getVideoVisible()final <ERROR CLASS>getProgressBarVisible()final MutableLiveData<Boolean>getIsZoomEnabled()final MutableLiveData<Boolean>getIsLive()final MutableLiveData<String>getBehindLiveByLiveData()final SingleLiveEvent<Unit>getStreamEndedEvent()final MutableLiveData<String>getCurrentSubtitles()final MutableLiveData<Boolean>getPlayerReady()final <ERROR CLASS>getPlayer()final BooleanareClosedCaptionsSupported()final Unitrestarted()-
Methods inherited from class androidx.lifecycle.AndroidViewModel
addCloseable, clear, getTag, onCleared, setTagIfAbsent -
Methods inherited from class live.hms.roomkit.ui.meeting.activespeaker.HlsViewModel
getApplication -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HlsViewModel
HlsViewModel(Application application, String hlsStreamUrl, HMSSDK hmsSdk, Function1<HmsHlsPlaybackState, Unit> hlsPlayerBeganToPlay, Function0<DisplayHlsCuesUseCase> displayHlsCuesUseCase)
-
-
Method Detail
-
getIsPlaying
final MutableLiveData<Boolean> getIsPlaying()
-
getVideoVisible
final MutableLiveData<Boolean> getVideoVisible()
-
getProgressBarVisible
final <ERROR CLASS> getProgressBarVisible()
-
getIsZoomEnabled
final MutableLiveData<Boolean> getIsZoomEnabled()
-
getIsLive
final MutableLiveData<Boolean> getIsLive()
-
getBehindLiveByLiveData
final MutableLiveData<String> getBehindLiveByLiveData()
-
getStreamEndedEvent
final SingleLiveEvent<Unit> getStreamEndedEvent()
-
getCurrentSubtitles
final MutableLiveData<String> getCurrentSubtitles()
-
getPlayerReady
final MutableLiveData<Boolean> getPlayerReady()
-
getPlayer
final <ERROR CLASS> getPlayer()
-
areClosedCaptionsSupported
final Boolean areClosedCaptionsSupported()
-
-
-
-