AndroidMediaPlayer

class AndroidMediaPlayer(context: Context, player: MediaPlayer) : UriSourcePlayablePlayer

Default Implementation of MediaPlayerInterface for android

Constructors

Link copied to clipboard
fun AndroidMediaPlayer(context: Context, player: MediaPlayer)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun getOffset(id: SourceId): Long
Link copied to clipboard
open override fun pause(id: SourceId): Boolean
Link copied to clipboard
open override fun play(id: SourceId): Boolean
Link copied to clipboard
open override fun resume(id: SourceId): Boolean
Link copied to clipboard
open override fun seekTo(id: SourceId, offsetInMilliseconds: Long): Boolean
Link copied to clipboard
open override fun setBufferEventListener(listener: MediaPlayerControlInterface.BufferEventListener)
Link copied to clipboard
open override fun setOnDurationListener(listener: MediaPlayerControlInterface.OnDurationListener)
Link copied to clipboard
open override fun setPlaybackEventListener(listener: MediaPlayerControlInterface.PlaybackEventListener)
Link copied to clipboard
open override fun setSource(uri: URI, cacheKey: CacheKey?): SourceId
Link copied to clipboard
open override fun setVolume(volume: Float)
Link copied to clipboard
open override fun stop(id: SourceId): Boolean