public class AdMetadataStateManager extends AbstractOnceUxManager
context, format, protocol, resources, videoVieweventEmitter, listenerTokens| Constructor and Description |
|---|
AdMetadataStateManager(android.content.Context context,
BaseVideoView videoView,
com.brightcove.player.onceux.ProtocolType protocol,
com.brightcove.player.onceux.FormatType format,
boolean isHlsRecommended)
Build a state machine to manage ad metadata through the lifecycle of the video being
controlled by that metadata.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processVideo(java.lang.String url)
Kick off a video using an ad metadata URI.
|
protected void |
registerEventHandlers()
Procedural abstraction used to set up the event handlers.
|
addListener, addOnceListener, getEventEmitter, removeListener, removeListenerspublic AdMetadataStateManager(android.content.Context context,
BaseVideoView videoView,
com.brightcove.player.onceux.ProtocolType protocol,
com.brightcove.player.onceux.FormatType format,
boolean isHlsRecommended)
context - The Android application context. Used to establish the localized resources.videoView - The Brightcove video view object.protocol - The Once protocol choice.format - The Once data format choice.isHlsRecommended - Whether HLS is recommended for use by the current player.public void processVideo(java.lang.String url)
url - The given ad metadata uri.protected void registerEventHandlers()
registerEventHandlers in class AbstractOnceUxManager