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
ConstructorDescriptionLiveVideoOrchestrator
(BaseVideoView baseVideoView, Video video, SSAICallback<android.util.Pair<SSAIWrapper, Timeline>> callback) Instantiates a new Live video orchestrator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAdOverlayConfigListener
(AdOverlayConfigListener adOverlayConfigListener) Adds anAdOverlayConfigListener
.boolean
addTrackingConfigListener
(TrackingConfigListener trackingConfigListener) Adds aTrackingConfigListener
.boolean
removeAdOverlayConfigListener
(AdOverlayConfigListener adOverlayConfigListener) Removes anAdOverlayConfigListener
.void
Removes allAdOverlayConfigListener
s.void
Removes allTrackingConfigListener
s.boolean
removeTrackingConfigListener
(TrackingConfigListener trackingConfigListener) Removes aTrackingConfigListener
.Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Constructor Details
-
LiveVideoOrchestrator
public LiveVideoOrchestrator(@NonNull BaseVideoView baseVideoView, @NonNull Video video, @NonNull SSAICallback<android.util.Pair<SSAIWrapper, Timeline>> callback) throws ExceptionInstantiates a new Live video orchestrator.- Parameters:
baseVideoView
- the base video viewvideo
- the videocallback
- the SSAI callback- Throws:
Exception
- the exception thrown if there is a problem creating the Timeline
-
-
Method Details
-
addAdOverlayConfigListener
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
Adds aTrackingConfigListener
.- Parameters:
trackingConfigListener
- the tracking config listener- Returns:
- true if the listener was added
-
removeTrackingConfigListener
Removes aTrackingConfigListener
.- Parameters:
trackingConfigListener
- the tracking config listener- Returns:
- true if the listener was removed
-
removeAllTrackingConfigListeners
public void removeAllTrackingConfigListeners()Removes allTrackingConfigListener
s.
-