-
- All Implemented Interfaces:
-
org.openani.mediamp.MediampPlayer
public final class ExoPlayerMediampPlayer extends AbstractMediampPlayer<ExoPlayerMediampPlayer.ExoPlayerData>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classExoPlayerMediampPlayer.ExoPlayerDatapublic final classExoPlayerMediampPlayer.BufferingImpl
-
Field Summary
Fields Modifier and Type Field Description private final <ERROR CLASS>exoPlayerprivate final ExoPlayerimplprivate final <ERROR CLASS>videoPropertiesprivate final ExoPlayerMediampPlayer.BufferingImplbufferingprivate final MutableTrackGroup<SubtitleTrack>subtitleTracksprivate final MutableTrackGroup<AudioTrack>audioTracksprivate final StateFlow<List<Chapter>>chaptersprivate final MutableStateFlow<Long>currentPositionMillisprivate final PlayerFeaturesfeaturesprivate final Flow<MediaData>mediaDataprivate final Flow<Float>playbackProgressprivate final MutableStateFlow<PlaybackState>playbackState
-
Constructor Summary
Constructors Constructor Description ExoPlayerMediampPlayer(Context context, CoroutineContext parentCoroutineContext)
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getExoPlayer()ExoPlayergetImpl()<ERROR CLASS>getVideoProperties()final ExoPlayerMediampPlayer.BufferingImplgetBuffering()MutableTrackGroup<SubtitleTrack>getSubtitleTracks()MutableTrackGroup<AudioTrack>getAudioTracks()StateFlow<List<Chapter>>getChapters()MutableStateFlow<Long>getCurrentPositionMillis()PlayerFeaturesgetFeatures()final Flow<MediaData>getMediaData()final Flow<Float>getPlaybackProgress()MutableStateFlow<PlaybackState>getPlaybackState()Unitrelease()UnitseekTo(Long positionMillis)LonggetExactCurrentPositionMillis()Unitpause()Unitresume()-
Methods inherited from class org.openani.mediamp.backend.exoplayer.ExoPlayerMediampPlayer
close, closeVideoSource, setVideoSource, stop -
Methods inherited from class org.openani.mediamp.AbstractMediampPlayer
skip -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ExoPlayerMediampPlayer
ExoPlayerMediampPlayer(Context context, CoroutineContext parentCoroutineContext)
-
-
Method Detail
-
getExoPlayer
final <ERROR CLASS> getExoPlayer()
-
getVideoProperties
<ERROR CLASS> getVideoProperties()
-
getBuffering
final ExoPlayerMediampPlayer.BufferingImpl getBuffering()
-
getSubtitleTracks
MutableTrackGroup<SubtitleTrack> getSubtitleTracks()
-
getAudioTracks
MutableTrackGroup<AudioTrack> getAudioTracks()
-
getChapters
StateFlow<List<Chapter>> getChapters()
-
getCurrentPositionMillis
MutableStateFlow<Long> getCurrentPositionMillis()
-
getFeatures
PlayerFeatures getFeatures()
-
getMediaData
final Flow<MediaData> getMediaData()
-
getPlaybackProgress
final Flow<Float> getPlaybackProgress()
-
getPlaybackState
MutableStateFlow<PlaybackState> getPlaybackState()
-
getExactCurrentPositionMillis
Long getExactCurrentPositionMillis()
-
-
-
-