Package 

Class VideoPlaybackController

    • Constructor Summary

      Constructors 
      Constructor Description
      VideoPlaybackController(EventEmitter eventEmitter) Being a Component, VideoPlaybackController requires an EventEmitter on initialization.
    • Method Summary

      Modifier and Type Method Description
      VideoPlaybackController setShouldSelectSource(boolean shouldSelectSource) Set whether the controller selects the source or if this is handled by another component.This is set to true by default.
      void setAdsDisabled(boolean disable)
      int getLiveWindowTimeMs() Gets the time in milliseconds for the Live Stream Window.Currently used only for UI.
      void setLiveWindowTimeMs(int liveWindowTimeMs) Sets the time in milliseconds for the Live Stream Window.Currently used only for UI.
      boolean isAdsDisabled()
      void initialize() Resets the state of the controller to its initial values.
      boolean hasPendingSourcesToLoad() Indicates whether there are pending Sources to load.
      • Methods inherited from class com.brightcove.player.event.AbstractComponent

        addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VideoPlaybackController

        VideoPlaybackController(EventEmitter eventEmitter)
        Being a Component, VideoPlaybackController requires an EventEmitter on initialization.
        Parameters:
        eventEmitter - the EventEmitter through which this Component will listen for and emitevents to interact with other components in the player
    • Method Detail

      • setShouldSelectSource

         VideoPlaybackController setShouldSelectSource(boolean shouldSelectSource)

        Set whether the controller selects the source or if this is handled by another component.This is set to true by default.

        Parameters:
        shouldSelectSource - True to allow the controller to publish source and video events.
      • getLiveWindowTimeMs

        @Deprecated() int getLiveWindowTimeMs()

        Gets the time in milliseconds for the Live Stream Window.Currently used only for UI.

      • setLiveWindowTimeMs

        @Deprecated() void setLiveWindowTimeMs(int liveWindowTimeMs)

        Sets the time in milliseconds for the Live Stream Window.Currently used only for UI.

        Parameters:
        liveWindowTimeMs - the live window time in ms
      • initialize

         void initialize()

        Resets the state of the controller to its initial values. This is automatically called bythe constructor, but can be called again if new components are introduced to the givenEventEmitter. This will also clear out any pending SET_SOURCE events that might havehappened if one was to be emitted before READY_TO_PLAY was received.