-
public final class MediaControllerConfig
A configuration class that can be used to configure BrightcoveMediaController.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MediaControllerConfig.Builder
The MediaControllerConfig Builder.
-
Field Summary
Fields Modifier and Type Field Description private final int
layoutId
private final View.OnTouchListener
onTouchListener
private final int
initialDuration
private final long
initialDurationLong
private final int
initialPlayheadPosition
private final long
initialPlayheadPositionLong
private final MediaControllerKeyDispatcher
mediaControllerKeyDispatcher
-
Method Summary
Modifier and Type Method Description int
getLayoutId()
Gets the resource layout id. View.OnTouchListener
getOnTouchListener()
Gets the on touch listener. int
getInitialDuration()
Deprecated. long
getInitialDurationLong()
Gets the initial duration value in milliseconds. int
getInitialPlayheadPosition()
Deprecated. long
getInitialPlayheadPositionLong()
Gets the initial playhead position value in milliseconds. MediaControllerKeyDispatcher
getMediaControllerKeyDispatcher()
Gets the MediaControllerKeyDispatcher. boolean
isShowControlsOnCreation()
Returns whether the Media Controller will be shown when the controller is created.The Default value is true. boolean
isShowControlsWhenAdIsPlaying()
Gets whether the Media Controller will be allowed to be shown when an Ad is playing.The Default value is false. -
-
Method Detail
-
getLayoutId
int getLayoutId()
Gets the resource layout id.
The default value is -1, which will be ignoredby the BrightcoveMediaController.
-
getOnTouchListener
@Nullable() View.OnTouchListener getOnTouchListener()
Gets the on touch listener.
The default value is null, which will be ignoredby the BrightcoveMediaController.
-
getInitialDuration
@Deprecated() int getInitialDuration()
Deprecated. Instead use {getInitialDurationLong}
-
getInitialDurationLong
long getInitialDurationLong()
Gets the initial duration value in milliseconds.
The default value is -1, which will be ignoredby the BrightcoveMediaController.
-
getInitialPlayheadPosition
@Deprecated() int getInitialPlayheadPosition()
Deprecated. Instead use {getInitialDurationLong}
-
getInitialPlayheadPositionLong
long getInitialPlayheadPositionLong()
Gets the initial playhead position value in milliseconds.
The default value is -1, which will be ignoredby the BrightcoveMediaController.
-
getMediaControllerKeyDispatcher
@Nullable() MediaControllerKeyDispatcher getMediaControllerKeyDispatcher()
Gets the MediaControllerKeyDispatcher.
-
isShowControlsOnCreation
boolean isShowControlsOnCreation()
Returns whether the Media Controller will be shown when the controller is created.The Default value is true.
-
isShowControlsWhenAdIsPlaying
boolean isShowControlsWhenAdIsPlaying()
Gets whether the Media Controller will be allowed to be shown when an Ad is playing.The Default value is false.
-
-
-
-