@Emits(events={}) @ListensFor(events={"videoDurationChanged","stop"}) public class LiveVideoOrchestrator extends AbstractComponent
eventEmitter, listenerTokens
Constructor and Description |
---|
LiveVideoOrchestrator(BaseVideoView baseVideoView,
Video video,
SSAICallback<android.util.Pair<SSAIWrapper,Timeline>> callback)
Instantiates a new Live video orchestrator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAdOverlayConfigListener(AdOverlayConfigListener adOverlayConfigListener)
Adds an
AdOverlayConfigListener . |
boolean |
addTrackingConfigListener(TrackingConfigListener trackingConfigListener)
Adds a
TrackingConfigListener . |
boolean |
removeAdOverlayConfigListener(AdOverlayConfigListener adOverlayConfigListener)
Removes an
AdOverlayConfigListener . |
void |
removeAllAdOverlayConfigListeners()
Removes all
AdOverlayConfigListener s. |
void |
removeAllTrackingConfigListeners()
Removes all
TrackingConfigListener s. |
boolean |
removeTrackingConfigListener(TrackingConfigListener trackingConfigListener)
Removes a
TrackingConfigListener . |
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
public LiveVideoOrchestrator(@NonNull BaseVideoView baseVideoView, @NonNull Video video, @NonNull SSAICallback<android.util.Pair<SSAIWrapper,Timeline>> callback) throws java.lang.Exception
baseVideoView
- the base video viewvideo
- the videocallback
- the SSAI callbackjava.lang.Exception
- the exception thrown if there is a problem creating the Timelinepublic boolean addAdOverlayConfigListener(@NonNull AdOverlayConfigListener adOverlayConfigListener)
AdOverlayConfigListener
.adOverlayConfigListener
- the ad overlay config listenerpublic boolean removeAdOverlayConfigListener(@NonNull AdOverlayConfigListener adOverlayConfigListener)
AdOverlayConfigListener
.adOverlayConfigListener
- the ad overlay config listenerpublic void removeAllAdOverlayConfigListeners()
AdOverlayConfigListener
s.public boolean addTrackingConfigListener(@NonNull TrackingConfigListener trackingConfigListener)
TrackingConfigListener
.trackingConfigListener
- the tracking config listenerpublic boolean removeTrackingConfigListener(@NonNull TrackingConfigListener trackingConfigListener)
TrackingConfigListener
.trackingConfigListener
- the tracking config listenerpublic void removeAllTrackingConfigListeners()
TrackingConfigListener
s.