-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
,com.brightcove.ssai.ad.AdPodListener
,com.brightcove.ssai.ui.AdOverlayConfigListener
@Emits(events = {}) public class UIManager extends AbstractComponent implements AdPodListener, AdOverlayConfigListener
Class responsible to update the UI elements of the BaseVideoView and the com.brightcove.player.mediacontroller.BrightcoveMediaController.
-
-
Constructor Summary
Constructors Constructor Description UIManager(BaseVideoView baseVideoView, TimelineManager timelineManager)
Instantiates a new Ui manager.
-
Method Summary
Modifier and Type Method Description void
addAdMarkers(List<Long> markerPositions)
Add ad markers. void
onAdPodStarted(AdPod adPod)
Indicates than an Ad pod has started. void
onAdPodEnded(AdPod adPod)
Indicates than an Ad pod has ended. void
removeListeners()
void
onAdOverlayConfigChanged(@NonNull() AdOverlayConfig adOverlayConfig)
Triggered when there is a AdOverlayConfig change. -
-
Constructor Detail
-
UIManager
UIManager(BaseVideoView baseVideoView, TimelineManager timelineManager)
Instantiates a new Ui manager.- Parameters:
baseVideoView
- the base video viewtimelineManager
- the timeline manager
-
-
Method Detail
-
addAdMarkers
void addAdMarkers(List<Long> markerPositions)
Add ad markers.
- Parameters:
markerPositions
- the marker positions
-
onAdPodStarted
void onAdPodStarted(AdPod adPod)
Indicates than an Ad pod has started.
- Parameters:
adPod
- the Ad pod
-
onAdPodEnded
void onAdPodEnded(AdPod adPod)
Indicates than an Ad pod has ended.
- Parameters:
adPod
- the Ad pod
-
removeListeners
void removeListeners()
-
onAdOverlayConfigChanged
void onAdOverlayConfigChanged(@NonNull() AdOverlayConfig adOverlayConfig)
Triggered when there is a AdOverlayConfig change.
- Parameters:
adOverlayConfig
- the ad overlay config
-
-
-
-