Package 

Class SeekButtonController

  • All Implemented Interfaces:
    com.brightcove.player.accessibility.AccessibilityListener , com.brightcove.player.event.Component , com.brightcove.player.mediacontroller.buttons.ButtonController , com.brightcove.player.mediacontroller.buttons.RemoteControlKeyState

    
    public abstract class SeekButtonController
    extends AbstractButtonController
                        

    Provides an abstract class that allows a subclass to either seek back or seek forward. You are required to implemented both, the computeTargetSeekPosition and the getDidSeekHandler

    • Method Summary

      Modifier and Type Method Description
      int getSeekDefault() Deprecated.
      void setSeekDefault(int value) Deprecated.
      long getSeekDefaultLong() Gets default seek time.
      void setSeekRelativeEnabled(boolean seekRelativeEnabled) Enable or disable relative seeking.
      int getSeekPercentage() Gets the seek percentage relative to video duration, used to set the seekDefaultLong The values are greater than 0 and lower than 100
      void setSeekPercentage(int seekPercentage) Sets the seek percentage relative to video duration, used to set the seekDefaultLong The values are greater than 0 and lower than 100
      int getOnHoldWaitTime() Gets the on hold button wait time, which is the time in milliseconds to be waited, so thatthe key event is considered a long press instead of a regular press.
      void setOnHoldWaitTime(int onHoldWaitTime) Sets the on hold button wait time, which is the time in milliseconds to be waited, so thatthe key event is considered a long press instead of a regular press.
      int getOnHoldUpdateFrequency() Gets the on hold update frequency time in milliseconds, used to send the SEEKBAR_DRAGGING_PROGRESS eventto update the Media Controller seek bar.
      void setOnHoldUpdateFrequency(int onHoldUpdateFrequency) Sets the on hold update frequency time in milliseconds, used to send the SEEKBAR_DRAGGING_PROGRESS eventto update the Media Controller seek bar.
      int getManagedState() Implements a getter for the managed state.
      Map<String, Object> getProperties() Implements a getter to add the current playhead position to the payload when emitting a rewind event.
      int getVisibilityState() Gets the current visibility state.
      boolean isSeekRelativeEnabled() If enabled, the seekDefaultLong will be set relative to the video durationand the seekPercentage.
      boolean onDpadCenter(KeyEvent event) On dpad center key actioned
      • Methods inherited from class com.brightcove.player.mediacontroller.buttons.AbstractButtonController

        getButton, getEventEmitter, getFont, getId, getStateList, onAccessibilityStateChanged, onBack, onDpadDown, onDpadLeft, onDpadRight, onDpadUp, onFastForward, onHome, onMenu, onPause, onPlay, onPlayPause, onRewind, onSkipBackward, onSkipForward, setVisibility, syncStates
      • Methods inherited from class com.brightcove.player.event.AbstractComponent

        addListener, addOnceListener, removeListener, removeListeners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SeekButtonController

        SeekButtonController(Context context, BaseVideoView videoView, View controlBar, int id, Typeface font, String eventType)
        Builds a button controller to handle the rewind button.
        Parameters:
        context - The Android application context.
        videoView - The SDK video view object parenting the control bar.
        controlBar - The button widget parent view.
        font - The, possibly null, typeface for the button.