-
- All Implemented Interfaces:
-
java.lang.AutoCloseable,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.ExoPlayerData
-
Field Summary
Fields Modifier and Type Field Description private final ExoPlayerimplprivate final <ERROR CLASS>mediaPropertiesprivate 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 ExoPlayergetImpl()<ERROR CLASS>getMediaProperties()MutableStateFlow<Long>getCurrentPositionMillis()PlayerFeaturesgetFeatures()final Flow<MediaData>getMediaData()final Flow<Float>getPlaybackProgress()MutableStateFlow<PlaybackState>getPlaybackState()MediaPropertiesgetCurrentMediaProperties()PlaybackStategetCurrentPlaybackState()UnitseekTo(Long positionMillis)LonggetCurrentPositionMillis()Unitpause()Unitresume()-
Methods inherited from class org.openani.mediamp.exoplayer.ExoPlayerMediampPlayer
close, setMediaData, stopPlayback -
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
-
getMediaProperties
<ERROR CLASS> getMediaProperties()
-
getCurrentPositionMillis
MutableStateFlow<Long> getCurrentPositionMillis()
-
getFeatures
PlayerFeatures getFeatures()
-
getMediaData
final Flow<MediaData> getMediaData()
-
getPlaybackProgress
final Flow<Float> getPlaybackProgress()
-
getPlaybackState
MutableStateFlow<PlaybackState> getPlaybackState()
-
getCurrentMediaProperties
MediaProperties getCurrentMediaProperties()
-
getCurrentPlaybackState
PlaybackState getCurrentPlaybackState()
-
getCurrentPositionMillis
Long getCurrentPositionMillis()
-
-
-
-