Class 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.
    • 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 view
        video - the video
        callback - 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)
        Parameters:
        adOverlayConfigListener - the ad overlay config listener
        Returns:
        true if the listener was added
      • removeAdOverlayConfigListener

        public boolean removeAdOverlayConfigListener​(@NonNull
                                                     AdOverlayConfigListener adOverlayConfigListener)
        Parameters:
        adOverlayConfigListener - the ad overlay config listener
        Returns:
        true if the listener was removed
      • removeAllAdOverlayConfigListeners

        public void removeAllAdOverlayConfigListeners()
      • addTrackingConfigListener

        public boolean addTrackingConfigListener​(@NonNull
                                                 TrackingConfigListener trackingConfigListener)
        Parameters:
        trackingConfigListener - the tracking config listener
        Returns:
        true if the listener was added
      • removeTrackingConfigListener

        public boolean removeTrackingConfigListener​(@NonNull
                                                    TrackingConfigListener trackingConfigListener)
        Parameters:
        trackingConfigListener - the tracking config listener
        Returns:
        true if the listener was removed
      • removeAllTrackingConfigListeners

        public void removeAllTrackingConfigListeners()