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
ConstructorDescriptionUIManager
(BaseVideoView baseVideoView, TimelineManager timelineManager) Instantiates a new Ui manager. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdMarkers
(List<Long> markerPositions) Add ad markers.void
onAdOverlayConfigChanged
(AdOverlayConfig adOverlayConfig) Triggered when there is aAdOverlayConfig
change.void
onAdPodEnded
(AdPod adPod) Indicates than an Ad pod has ended.void
onAdPodStarted
(AdPod adPod) Indicates than an Ad pod has started.void
Removes 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:AdPodListener
Indicates than an Ad pod has started.- Specified by:
onAdPodStarted
in interfaceAdPodListener
- Parameters:
adPod
- the Ad pod
-
onAdPodEnded
Description copied from interface:AdPodListener
Indicates than an Ad pod has ended.- Specified by:
onAdPodEnded
in interfaceAdPodListener
- Parameters:
adPod
- the Ad pod
-
removeListeners
public void removeListeners()Description copied from class:AbstractComponent
Removes all set listeners from the EventEmitter.- Overrides:
removeListeners
in classAbstractComponent
-
onAdOverlayConfigChanged
Description copied from interface:AdOverlayConfigListener
Triggered when there is aAdOverlayConfig
change.- Specified by:
onAdOverlayConfigChanged
in interfaceAdOverlayConfigListener
- Parameters:
adOverlayConfig
- the ad overlay config
-