PlayerModel
Properties
The preferred audio language
The current repeat mode enabled
The current volume
The factor by which playback will be sped up. Must be greater than zero. The default value is 1.0.
Get player will play video or not when the resource is ready. Player will play the content if result is true, otherwise, render the first frame
The preferred subtitle language
Functions
Cancel pre-cache
Cancel pre-cache and play media source
loop the current video infinitely
Get audio track list
Get currentLiveOffset
Get the audioTrack list
Get isCurrentWindowDynamic
Get isCurrentWindowLive
Get the current maximal video height.
Get subtitle track list
New a ExoPlayer instance and load video. Please call releasePlayer() when player is never used.
prepare media source
Release the resource of player.
Reset the state, ex: reset playWhenReady to initial value
Seek the video to the default position.
Setup a BVPlayerEventListener.
Sets the maximum allowed video height in pixels. The default value is Int.MAX_VALUE (i.e. no constraint).