-
- All Implemented Interfaces:
public interface PlayerHost
Interface for classes that can provide a VdoPlayer instance to load media and control playback.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
PlayerHost.InitializationListener
Interface for callbacks related to initialization of a VdoPlayer.
public class
PlayerHost.PlayerHostNotReadyException
Thrown when getPlayer is called on an uninitialized PlayerHost or if the hosted VdoPlayer has been released.
public @interface
PlayerHost.ResizeMode
Resize modes for PlayerHost.
-
Method Summary
Modifier and Type Method Description abstract void
initialize(PlayerHost.InitializationListener initListener)
Initializes the PlayerHost with an InitializationListener to listen for initialization callbacks. abstract void
addInitializationListener(PlayerHost.InitializationListener initListener)
Register a listener for initialization callbacks from this PlayerHost abstract void
removeInitializationListener(PlayerHost.InitializationListener initListener)
Remove a registered InitializationListener abstract VdoPlayer
getPlayer()
Get the VdoPlayer hosted by this PlayerHost. -
-
Method Detail
-
initialize
abstract void initialize(PlayerHost.InitializationListener initListener)
Initializes the PlayerHost with an InitializationListener to listen for initialization callbacks.
- Parameters:
initListener
- listener for the callback
-
addInitializationListener
abstract void addInitializationListener(PlayerHost.InitializationListener initListener)
Register a listener for initialization callbacks from this PlayerHost
- Parameters:
initListener
- listener for initialization callbacks
-
removeInitializationListener
abstract void removeInitializationListener(PlayerHost.InitializationListener initListener)
Remove a registered InitializationListener
- Parameters:
initListener
- the listener to remove
-
getPlayer
abstract VdoPlayer getPlayer()
Get the VdoPlayer hosted by this PlayerHost. This may only be called after an onInitializationSuccess callback following initialize
-
-
-
-