IPlayer
Abstract Exoplayer logic, can be expanded to other players
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Original video aspect ratio used for PiP mode
Link copied to clipboard
Link copied to clipboard
Current player duration in milliseconds
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Current player position in milliseconds
Link copied to clipboard
Link copied to clipboard
Get the current subtitle cues, for use with syncing
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun initCallbacks(eventHandler: (PlayerEvent) -> Unit, requestedListeningPercentages: List<Int>? = null)
Link copied to clipboard
abstract fun loadPlayer(context: Context, sameEpisode: Boolean, link: ExtractorLink? = null, data: ExtractorUri? = null, startPosition: Long? = null, subtitles: Set<SubtitleData>, subtitle: SubtitleData?, autoPlay: Boolean? = true, preview: Boolean = true)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun setMaxVideoSize(width: Int = Int.MAX_VALUE, height: Int = Int.MAX_VALUE, id: String? = null)
If no parameters are set it'll default to no set size, Specifying the id allows for track overrides to force the player to pick the quality.
Link copied to clipboard
Link copied to clipboard
If no trackLanguage is set it'll default to first track. Specifying the id allows for track overrides as the language can be identical.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard