BunnyPlayer

Types

Link copied to clipboard

Properties

Link copied to clipboard
abstract var iconSet: PlayerIconSet

Apply custom icons to video player interface

Functions

Link copied to clipboard
abstract fun getCurrentPosition(): Long

Get current position of video in milliseconds

Link copied to clipboard
abstract fun getDuration(): Long

Get total duration of video in milliseconds

Link copied to clipboard
abstract fun getProgress(): Float

Get playback progress as a value between 0.0 and 1.0

Link copied to clipboard
abstract fun isEnded(): Boolean

Check if video has ended

Link copied to clipboard
abstract fun isPlaying(): Boolean

Check if video is currently playing

Link copied to clipboard
abstract fun pause()

Pauses video

Link copied to clipboard
abstract fun play()

Resumes playing video

Link copied to clipboard
abstract fun playVideo(videoId: String, libraryId: Long? = null, videoTitle: String = "", token: String? = null, expires: Long? = null)

Plays a video and fetches additional info, e.g. chapters, moments and subtitles

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

Seek to a specific playback position in milliseconds.

Link copied to clipboard

Set a listener to receive progress updates