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 theBaseVideoViewand theBrightcoveMediaController.
-
-
Field Summary
-
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
-
Constructor Summary
Constructors Constructor Description UIManager(BaseVideoView baseVideoView, TimelineManager timelineManager)Instantiates a new Ui manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdMarkers(java.util.List<java.lang.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.voidremoveListeners()Removes all set listeners from the EventEmitter.-
Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener
-
-
-
-
Constructor Detail
-
UIManager
public UIManager(@NonNull BaseVideoView baseVideoView, @NonNull TimelineManager timelineManager)Instantiates a new Ui manager.- Parameters:
baseVideoView- the base video viewtimelineManager- the timeline manager
-
-
Method Detail
-
addAdMarkers
public void addAdMarkers(java.util.List<java.lang.Long> markerPositions)
Add ad markers.- Parameters:
markerPositions- the marker positions
-
onAdPodStarted
public void onAdPodStarted(AdPod adPod)
Description copied from interface:AdPodListenerIndicates than an Ad pod has started.- Specified by:
onAdPodStartedin interfaceAdPodListener- Parameters:
adPod- the Ad pod
-
onAdPodEnded
public void onAdPodEnded(AdPod adPod)
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
public void onAdOverlayConfigChanged(@NonNull AdOverlayConfig adOverlayConfig)Description copied from interface:AdOverlayConfigListenerTriggered when there is aAdOverlayConfigchange.- Specified by:
onAdOverlayConfigChangedin interfaceAdOverlayConfigListener- Parameters:
adOverlayConfig- the ad overlay config
-
-