Class MediaControllerConfig

java.lang.Object
com.brightcove.player.mediacontroller.MediaControllerConfig

public final class MediaControllerConfig extends Object
A configuration class that can be used to configure BrightcoveMediaController.
  • Method Details

    • getLayoutId

      public int getLayoutId()
      Gets the resource layout id.

      The default value is -1, which will be ignored by the BrightcoveMediaController.

      Returns:
      the layout id
    • getOnTouchListener

      @Nullable public android.view.View.OnTouchListener getOnTouchListener()
      Gets the on touch listener.

      The default value is null, which will be ignored by the BrightcoveMediaController.

      Returns:
      the on touch listener
    • getInitialDuration

      @Deprecated public int getInitialDuration()
      Deprecated.
      Deprecated. Instead use {getInitialDurationLong()}
    • getInitialDurationLong

      public long getInitialDurationLong()
      Gets the initial duration value in milliseconds.

      The default value is -1, which will be ignored by the BrightcoveMediaController.

      Returns:
      the initial duration value in milliseconds
    • getInitialPlayheadPosition

      @Deprecated public int getInitialPlayheadPosition()
      Deprecated.
      Deprecated. Instead use {getInitialDurationLong()}
    • getInitialPlayheadPositionLong

      public long getInitialPlayheadPositionLong()
      Gets the initial playhead position value in milliseconds.

      The default value is -1, which will be ignored by the BrightcoveMediaController.

      Returns:
      the initial playhead position value in milliseconds
    • isShowControlsOnCreation

      public boolean isShowControlsOnCreation()
      Returns whether the Media Controller will be shown when the controller is created. The Default value is true.
      Returns:
      true to show the controller when it is created.
    • isShowControlsWhenAdIsPlaying

      public boolean isShowControlsWhenAdIsPlaying()
      Gets whether the Media Controller will be allowed to be shown when an Ad is playing. The Default value is false.
      Returns:
      true to show the controller when an Ad is playing.
    • getMediaControllerKeyDispatcher

      @Nullable public MediaControllerKeyDispatcher getMediaControllerKeyDispatcher()
      Returns:
      the media controller key dispatcher