Package com.vdocipher.aegis.player
Interface PlayerHost
-
- All Implemented Interfaces:
public interface PlayerHostInterface 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 interfacePlayerHost.InitializationListenerInterface for callbacks related to initialization of a VdoPlayer.
public classPlayerHost.PlayerHostNotReadyExceptionThrown when getPlayer is called on an uninitialized PlayerHost or if the hosted VdoPlayer has been released.
public @interfacePlayerHost.ResizeModeResize modes for PlayerHost.
-
Method Summary
Modifier and Type Method Description abstract voidinitialize(PlayerHost.InitializationListener initListener)Initializes the PlayerHost with an InitializationListener to listen for initialization callbacks. abstract voidaddInitializationListener(PlayerHost.InitializationListener initListener)Register a listener for initialization callbacks from this PlayerHost abstract voidremoveInitializationListener(PlayerHost.InitializationListener initListener)Remove a registered InitializationListener abstract VdoPlayergetPlayer()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
- Returns:
VdoPlayer hosted by this PlayerHost
-
-
-
-