HmsHlsPlayer

class HmsHlsPlayer(context: Context, hmssdk: HMSSDK? = null) : HmsHlsPlayerInterface

Constructors

Link copied to clipboard
fun HmsHlsPlayer(context: Context, hmssdk: HMSSDK? = null)

Functions

Link copied to clipboard
open override fun addPlayerEventListener(events: HmsHlsPlaybackEvents?)
Link copied to clipboard
open override fun getCurrentHmsHlsLayer(): HmsHlsLayer?

May be null if the player wasn't initialized, will return a value otherwise.

Link copied to clipboard
open override fun getHmsHlsLayers(): List<HmsHlsLayer>
Link copied to clipboard
open override fun getLastError(): HmsHlsException?
Link copied to clipboard
Link copied to clipboard
fun mute(mute: Boolean)
Link copied to clipboard
open override fun pause()
Link copied to clipboard
open override fun play(url: String)
Link copied to clipboard
open override fun resume()
Link copied to clipboard
open override fun seekBackward(value: Long, unit: TimeUnit)
Link copied to clipboard
open override fun seekForward(value: Long, unit: TimeUnit)
Link copied to clipboard
open override fun seekToLivePosition()
Link copied to clipboard
fun sendError(hmsError: HmsHlsException)
Link copied to clipboard
open override fun setAnalytics(analytics: HMSSDK?)
Link copied to clipboard
open override fun setHmsHlsLayer(layer: HmsHlsLayer)
Link copied to clipboard
open override fun setStatsMonitor(statsListener: PlayerStatsListener?)
Link copied to clipboard
open override fun stop()

Properties

Link copied to clipboard

If the current playback is this far behind live it is considered paused.

Link copied to clipboard
val TAG: String
Link copied to clipboard
open override var volume: Int