MediaPlayerControlInterface

interface MediaPlayerControlInterface

Interface of a media player

Types

Link copied to clipboard
interface BufferEventListener
Link copied to clipboard
interface OnDurationListener
Link copied to clipboard
interface PlaybackEventListener

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 setVolume(volume: Float)
Link copied to clipboard
abstract fun stop(id: SourceId): Boolean

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard