MediaPlayerInterface

Functions

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