-
- All Implemented Interfaces:
-
com.brightcove.player.accessibility.AccessibilityListener
,com.brightcove.player.event.Component
@ListensFor(events = {BrightcoveMediaController.SET_MARKERS, EventType.BUFFERED_UPDATE, EventType.HIDE_SEEK_CONTROLS, EventType.SHOW_SEEK_CONTROLS, EventType.SEEK_TO, EventType.DID_SEEK_TO, EventType.DID_SET_VIDEO, EventType.SEEKBAR_DRAGGING_START, EventType.SEEKBAR_DRAGGING_PROGRESS, EventType.SEEKBAR_DRAGGING_STOP, EventType.WILL_RESUME_CONTENT})@Emits(events = {ShowHideController.SHOW_MEDIA_CONTROLS, EventType.SEEKBAR_DRAGGING_STOP, EventType.SEEKBAR_DRAGGING_PROGRESS, EventType.SEEKBAR_DRAGGING_START}) public class BrightcoveSeekBarController extends AbstractComponent implements AccessibilityListener
Abstracts the seekbar operations and provides a helper class for the seekbar in general.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
dragging
-
Constructor Summary
Constructors Constructor Description BrightcoveSeekBarController(BrightcoveSeekBar seekBar, BaseVideoView videoView)
Builds the seek bar controller.
-
Method Summary
Modifier and Type Method Description void
setDragging(boolean value)
Sets the dragging state. boolean
isDragging()
Obtains the dragging state. void
onAccessibilityStateChanged(boolean enabled)
Called back on change in the accessibility state. void
disableSeeking(boolean disableSeeking)
-
-
Constructor Detail
-
BrightcoveSeekBarController
BrightcoveSeekBarController(BrightcoveSeekBar seekBar, BaseVideoView videoView)
Builds the seek bar controller.- Parameters:
seekBar
- The seek bar object being helped.videoView
- The SDK base video view.
-
-
Method Detail
-
setDragging
void setDragging(boolean value)
Sets the dragging state.
TRUE
iff the User is currently performing a dragging operation.
-
isDragging
boolean isDragging()
Obtains the dragging state.
-
onAccessibilityStateChanged
void onAccessibilityStateChanged(boolean enabled)
Called back on change in the accessibility state.
- Parameters:
enabled
- Whether accessibility is enabled.
-
disableSeeking
void disableSeeking(boolean disableSeeking)
-
-
-
-