public static interface VdoPlayer.PlayerHost
| Modifier and Type | Field and Description |
|---|---|
static int |
VIDEO_STRETCH_MODE_MAINTAIN_ASPECT_RATIO
Video's aspect ratio is maintained.
|
static int |
VIDEO_STRETCH_MODE_STRETCH_TO_FIT
Video is scaled to fit the containing view's dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInitializationListener(VdoPlayer.InitializationListener initListener)
Register a listener for initialization callbacks from this PlayerHost
|
VdoPlayer |
getPlayer()
Get the VdoPlayer hosted by this PlayerHost.
|
void |
initialize(VdoPlayer.InitializationListener initListener)
Initializes the PlayerHost with an InitializationListener to listen for initialization callbacks.
|
void |
removeInitializationListener(VdoPlayer.InitializationListener initListener)
Remove a registered InitializationListener
|
static final int VIDEO_STRETCH_MODE_MAINTAIN_ASPECT_RATIO
static final int VIDEO_STRETCH_MODE_STRETCH_TO_FIT
void initialize(VdoPlayer.InitializationListener initListener)
initListener - listener for the callbackvoid addInitializationListener(VdoPlayer.InitializationListener initListener)
initListener - listener for initialization callbacksvoid removeInitializationListener(VdoPlayer.InitializationListener initListener)
initListener - the listener to removeVdoPlayer getPlayer() throws VdoPlayer.PlayerHostNotReadyException
InitializationListener#onInitializationSuccess(PlayerHost, VdoPlayer, boolean)
callback following #initialize(InitializationListener)VdoPlayer.PlayerHostNotReadyException - if the PlayerHost is not initialized