PlayerHost

interface PlayerHost

Interface for classes that can provide a VdoPlayer instance to load media and control playback.

Types

Link copied to clipboard
Interface for callbacks related to initialization of a VdoPlayer.
Link copied to clipboard
Thrown when getPlayer is called on an uninitialized PlayerHost or if the hosted VdoPlayer has been released.
Link copied to clipboard
annotation class ResizeMode
Resize modes for PlayerHost.

Functions

Link copied to clipboard
Register a listener for initialization callbacks from this PlayerHost
Link copied to clipboard
abstract fun getPlayer(): VdoPlayer
Get the VdoPlayer hosted by this PlayerHost.
Link copied to clipboard
abstract fun initialize(initListener: PlayerHost.InitializationListener)
Initializes the PlayerHost with an InitializationListener to listen for initialization callbacks.
Link copied to clipboard
Remove a registered InitializationListener

Properties

Link copied to clipboard
The specified aspect ratio is ignored.
Link copied to clipboard
Either the width or height is decreased to obtain the desired aspect ratio.
Link copied to clipboard
The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
Link copied to clipboard
The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
Link copied to clipboard
Either the width or height is increased to obtain the desired aspect ratio.
Link copied to clipboard
Video's aspect ratio is maintained.
Link copied to clipboard
Video is scaled to fit the containing view's dimensions.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard