Package com.brightcove.ssai.live
Class LiveVideoOrchestrator
- java.lang.Object
-
- com.brightcove.player.event.AbstractComponent
-
- com.brightcove.ssai.live.LiveVideoOrchestrator
-
- All Implemented Interfaces:
Component
@Emits(events={}) @ListensFor(events={"videoDurationChanged","stop"}) public class LiveVideoOrchestrator extends AbstractComponent
The Live video orchestrator class is responsible to setup the components and listeners needed for Live SSAI and update the Dynamic Timeline appropriately.
-
-
Field Summary
-
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
-
Constructor Summary
Constructors Constructor Description LiveVideoOrchestrator(BaseVideoView baseVideoView, Video video, SSAICallback<android.util.Pair<SSAIWrapper,Timeline>> callback)
Instantiates a new Live video orchestrator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAdOverlayConfigListener(AdOverlayConfigListener adOverlayConfigListener)
Adds anAdOverlayConfigListener
.boolean
addTrackingConfigListener(TrackingConfigListener trackingConfigListener)
Adds aTrackingConfigListener
.boolean
removeAdOverlayConfigListener(AdOverlayConfigListener adOverlayConfigListener)
Removes anAdOverlayConfigListener
.void
removeAllAdOverlayConfigListeners()
Removes allAdOverlayConfigListener
s.void
removeAllTrackingConfigListeners()
Removes allTrackingConfigListener
s.boolean
removeTrackingConfigListener(TrackingConfigListener trackingConfigListener)
Removes aTrackingConfigListener
.-
Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
-
-
-
Constructor Detail
-
LiveVideoOrchestrator
public LiveVideoOrchestrator(@NonNull BaseVideoView baseVideoView, @NonNull Video video, @NonNull SSAICallback<android.util.Pair<SSAIWrapper,Timeline>> callback) throws java.lang.Exception
Instantiates a new Live video orchestrator.- Parameters:
baseVideoView
- the base video viewvideo
- the videocallback
- the SSAI callback- Throws:
java.lang.Exception
- the exception thrown if there is a problem creating the Timeline
-
-
Method Detail
-
addAdOverlayConfigListener
public boolean addAdOverlayConfigListener(@NonNull AdOverlayConfigListener adOverlayConfigListener)
Adds anAdOverlayConfigListener
.- Parameters:
adOverlayConfigListener
- the ad overlay config listener- Returns:
- true if the listener was added
-
removeAdOverlayConfigListener
public boolean removeAdOverlayConfigListener(@NonNull AdOverlayConfigListener adOverlayConfigListener)
Removes anAdOverlayConfigListener
.- Parameters:
adOverlayConfigListener
- the ad overlay config listener- Returns:
- true if the listener was removed
-
removeAllAdOverlayConfigListeners
public void removeAllAdOverlayConfigListeners()
Removes allAdOverlayConfigListener
s.
-
addTrackingConfigListener
public boolean addTrackingConfigListener(@NonNull TrackingConfigListener trackingConfigListener)
Adds aTrackingConfigListener
.- Parameters:
trackingConfigListener
- the tracking config listener- Returns:
- true if the listener was added
-
removeTrackingConfigListener
public boolean removeTrackingConfigListener(@NonNull TrackingConfigListener trackingConfigListener)
Removes aTrackingConfigListener
.- Parameters:
trackingConfigListener
- the tracking config listener- Returns:
- true if the listener was removed
-
removeAllTrackingConfigListeners
public void removeAllTrackingConfigListeners()
Removes allTrackingConfigListener
s.
-
-