Class MediaControllerConfig
java.lang.Object
com.brightcove.player.mediacontroller.MediaControllerConfig
A configuration class that can be used to configure
BrightcoveMediaController
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The MediaControllerConfig Builder. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.long
Gets the initial duration value in milliseconds.int
Deprecated.long
Gets the initial playhead position value in milliseconds.int
Gets the resource layout id.Gets theMediaControllerKeyDispatcher
.android.view.View.OnTouchListener
Gets the on touch listener.boolean
Returns whether the Media Controller will be shown when the controller is created.boolean
Gets whether the Media Controller will be allowed to be shown when an Ad is playing.
-
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.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.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
Gets theMediaControllerKeyDispatcher
.- Returns:
- the media controller key dispatcher
-