Package com.brightcove.ssai.ui
Class UIManager
java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.ssai.ui.UIManager
- All Implemented Interfaces:
Component,AdPodListener,AdOverlayConfigListener
@Emits(events="setMarkers")
public class UIManager
extends AbstractComponent
implements AdPodListener, AdOverlayConfigListener
Class responsible to update the UI elements of the
BaseVideoView
and the BrightcoveMediaController.-
Field Summary
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens -
Constructor Summary
ConstructorsConstructorDescriptionUIManager(BaseVideoView baseVideoView, TimelineManager timelineManager) Instantiates a new Ui manager. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdMarkers(List<Long> markerPositions) Add ad markers.voidonAdOverlayConfigChanged(AdOverlayConfig adOverlayConfig) Triggered when there is aAdOverlayConfigchange.voidonAdPodEnded(AdPod adPod) Indicates than an Ad pod has ended.voidonAdPodStarted(AdPod adPod) Indicates than an Ad pod has started.voidRemoves all set listeners from the EventEmitter.Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener
-
Constructor Details
-
UIManager
Instantiates a new Ui manager.- Parameters:
baseVideoView- the base video viewtimelineManager- the timeline manager
-
-
Method Details
-
addAdMarkers
Add ad markers.- Parameters:
markerPositions- the marker positions
-
onAdPodStarted
Description copied from interface:AdPodListenerIndicates than an Ad pod has started.- Specified by:
onAdPodStartedin interfaceAdPodListener- Parameters:
adPod- the Ad pod
-
onAdPodEnded
Description copied from interface:AdPodListenerIndicates than an Ad pod has ended.- Specified by:
onAdPodEndedin interfaceAdPodListener- Parameters:
adPod- the Ad pod
-
removeListeners
public void removeListeners()Description copied from class:AbstractComponentRemoves all set listeners from the EventEmitter.- Overrides:
removeListenersin classAbstractComponent
-
onAdOverlayConfigChanged
Description copied from interface:AdOverlayConfigListenerTriggered when there is aAdOverlayConfigchange.- Specified by:
onAdOverlayConfigChangedin interfaceAdOverlayConfigListener- Parameters:
adOverlayConfig- the ad overlay config
-