Package 

Class PlayButtonController

  • 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 class PlayButtonController
    extends AbstractButtonController
                        

    The default Brightcove play button controller. This class is responsible for putting the video into play and pause modes in response to programatic (via SDK events) or user interactions (button clicks).

    • Method Summary

      Modifier and Type Method Description
      int getManagedState() Implements a getter for the managed video state.
      Map<String, Object> getProperties() Implements a getter to obtain properties to emit given the current managed state.
      • Methods inherited from class com.brightcove.player.mediacontroller.buttons.AbstractButtonController

        getButton, getEventEmitter, getFont, getId, getStateList, getVisibilityState, onAccessibilityStateChanged, onBack, onDpadCenter, 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

      • PlayButtonController

        PlayButtonController(Context context, BaseVideoView videoView, BrightcoveControlBar controlBar, Typeface font)
        Builds a play button controller object.
        Parameters:
        context - The Android application context.
        videoView - the SDK video view object.
        controlBar - The button widget parent view.
        font - The, possibly null, typeface for the button.
    • Method Detail

      • getManagedState

         int getManagedState()

        Implements a getter for the managed video state.

      • getProperties

         Map<String, Object> getProperties()

        Implements a getter to obtain properties to emit given the current managed state. Both play and pause simply pass the playhead position.