Class BrightcoveSeekBarController
java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.player.mediacontroller.BrightcoveSeekBarController
- All Implemented Interfaces:
AccessibilityListener
,Component
@ListensFor(events={"setMarkers","bufferedUpdate","hideSeekControls","showSeekControls","seekTo","didSeekTo","didSetVideo","seekbarDraggingStart","seekbarDraggingProgress","seekbarDraggingStop","willResumeContent"})
@Emits(events={"showMediaControls","seekbarDraggingStop","seekbarDraggingProgress","seekbarDraggingStart"})
public class BrightcoveSeekBarController
extends AbstractComponent
implements AccessibilityListener
Abstracts the seekbar operations and provides a helper class for the seekbar in general.
-
Field Summary
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
Constructor Summary
ConstructorDescriptionBrightcoveSeekBarController
(BrightcoveSeekBar seekBar, BaseVideoView videoView) Builds the seek bar controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Obtains the dragging state.void
onAccessibilityStateChanged
(boolean enabled) Called back on change in the accessibility state.void
setDragging
(boolean value) Sets the dragging state.Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Constructor Details
-
BrightcoveSeekBarController
public BrightcoveSeekBarController(@NonNull BrightcoveSeekBar seekBar, @NonNull BaseVideoView videoView) Builds the seek bar controller.- Parameters:
seekBar
- The seek bar object being helped.videoView
- The SDK base video view.
-
-
Method Details
-
isDragging
public boolean isDragging()Obtains the dragging state.- Returns:
TRUE
iff the User is currently performing a dragging operation.
-
setDragging
public void setDragging(boolean value) Sets the dragging state.TRUE
iff the User is currently performing a dragging operation. -
onAccessibilityStateChanged
public void onAccessibilityStateChanged(boolean enabled) Description copied from interface:AccessibilityListener
Called back on change in the accessibility state.- Specified by:
onAccessibilityStateChanged
in interfaceAccessibilityListener
- Parameters:
enabled
- Whether accessibility is enabled.
-