VdoPlayerView

open class VdoPlayerView : AutoSizeFrameLayout, PlayerHost

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attributeSet: AttributeSet)
constructor(context: Context, attributeSet: AttributeSet, defStyleAttr: Int)

Properties

Link copied to clipboard
open var resizeMode: Int
Link copied to clipboard
val VDO_PLAYER_ANNOTATION: String = "vdo_player_annotation"
Link copied to clipboard
val VDO_PLAYER_ANNOTATION_FILTER: String = "vdo_player_annotation_filter"
Link copied to clipboard
val VDO_PLAYER_VIEW_ID: String = "vdo_player_view_id"
Link copied to clipboard

Functions

Link copied to clipboard
Register a listener for initialization callbacks from this PlayerHost
Link copied to clipboard
open fun disableAlbumArt()
Link copied to clipboard
Link copied to clipboard
open fun getPlayer(): VdoPlayer
Get the VdoPlayer hosted by this PlayerHost.
Link copied to clipboard
Initializes the PlayerHost with an InitializationListener to listen for initialization callbacks.
Link copied to clipboard
open fun packUp()
Internally releases the player without using the public release api, so it can be restored.
Link copied to clipboard
open fun pausePlayer()
pause video
Link copied to clipboard
open fun releasePlayer()
Release exo player instance and saved data.
Link copied to clipboard
Remove a registered InitializationListener
Link copied to clipboard
open fun restore(lastPlaybackState: PlaybackState)
Link copied to clipboard
open fun resume()
Link copied to clipboard
open fun setAlbumArt(@Nullable albumArtUrl: String, @Nullable albumArtUri: Uri)
Link copied to clipboard
open fun setAspectRatio(widthToHeightRatio: Float)
Set aspect ratio for the fragment view.