AdPlayer
AdPlayer is an interface that describes the functionality of our media player and should be extended to create an SDK-compatible ad player.
Types
Properties
Cache assets hint - the AdPlayer may or may not implement this AdManager hint.
Enqueue enabled hint - the AdPlayer may or may not implement this AdManager hint.
Is buffering while paused. Returns:
true if the player buffers the content while paused and starts from that same point when it resumes;
false if the player does not buffer while paused, and when it resumes the playback starts from the live frame of the stream
Player capabilities as described in the VAST 4.0 document
Functions
Adds an AdPlayer.Listener callback.
listener: AdPlayer.Listener callback to be add
Removes a surface previously set to render the video content.
surface - the surface that was used to render the video content
Gets the current time. return
the current playback time in seconds
Gets the duration. return
the current track duration in seconds
Loads a new creative into the player.
creativeUrlString - the url we want to load
Removes an AdPlayer.Listener callback.
listener: AdPlayer.Listener callback to be removed
Skips the current ad.
Sets the video view state for viewability purposes.
videoState - the state of the video view. Possible values: MINIMIZED, COLLAPSED, NORMAL, EXPANDED, FULLSCREEN
Sets a surface to render the video content.
surface - the surface to be used to render the video content
return
the current status for a player. The enum with all possible values is defined here: Status