SLRVideoPlayer

interface SLRVideoPlayer

Interface for providing video player. Api based on ExoPlayer library.

Types

Link copied to clipboard
interface Listener

Interface for providing listener of video player events.

Link copied to clipboard

Repeat modes for playback

Link copied to clipboard

Possible states of playback.

Link copied to clipboard

Supported video types for playback

Functions

Link copied to clipboard
abstract fun addListener(listener: SLRVideoPlayer.Listener)

Add new Listener to SLRVideoPlayer events.

Link copied to clipboard
abstract fun getCurrentPosition(): Long

Returns the playback position in the current content window or ad, in milliseconds.

Link copied to clipboard
abstract fun getDuration(): Long

Returns the duration of the current content window in milliseconds.

Link copied to clipboard
abstract fun isPlaying(): Boolean

Returns whether the player is playing.

Link copied to clipboard
abstract fun pause()

Pause or resume video playback.

Link copied to clipboard
abstract fun play()

Start or resume video playback.

Link copied to clipboard
abstract fun release()

Releases the player. This method must be called when the player is no longer required. The player must not be used after calling this method.

Link copied to clipboard
abstract fun removeListener(listener: SLRVideoPlayer.Listener)

Remove Listener from SLRVideoPlayer events.

Link copied to clipboard
abstract fun seekTo(position: Long)

Seeks to a position specified in milliseconds in the current window.