Package 

Class LiveButtonController

  • 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 LiveButtonController
    extends AbstractButtonController
                        

    The default Brightcove live controller.

    • Constructor Summary

      Constructors 
      Constructor Description
      LiveButtonController(Context context, BaseVideoView videoView, View controlBar, Typeface font, Bundle bundle) Builds a button controller to handle the live button, handling things like setting the foreground color toprovide the user with an indication that the video is showing either live video or recorded video, returning toshowing live video, handling initial play, etc.
    • Method Summary

      Modifier and Type Method Description
      boolean isLiveEdgeState()
      int getManagedState() Implements a getter for the managed state.
      int getVisibilityState() Gets the current visibility state.
      • Methods inherited from class com.brightcove.player.mediacontroller.buttons.AbstractButtonController

        getButton, getEventEmitter, getFont, getId, getProperties, getStateList, 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

      • LiveButtonController

        LiveButtonController(Context context, BaseVideoView videoView, View controlBar, Typeface font, Bundle bundle)
        Builds a button controller to handle the live button, handling things like setting the foreground color toprovide the user with an indication that the video is showing either live video or recorded video, returning toshowing live video, handling initial play, etc.
        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.
    • Method Detail

      • getManagedState

         int getManagedState()

        Implements a getter for the managed state.

      • getVisibilityState

         int getVisibilityState()

        Gets the current visibility state. For the LIVE button, it is visible whenever a the video view has detected alive video.