Class APSMediaPlayerControlsOverlayController
java.lang.Object
com.appscend.overlaycontrollers.APSMediaPlayerOverlayController
com.appscend.overlaycontrollers.APSMediaPlayerControlsOverlayController
- All Implemented Interfaces:
KRAdapter, CastStateObserver, APSMediaPlayerTrackingEventListener
public class APSMediaPlayerControlsOverlayController
extends APSMediaPlayerOverlayController
implements APSMediaPlayerTrackingEventListener, CastStateObserver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intControl allowing the user to return to previous unit in the playlist.static final Stringstatic final intThe current playback time counter.static final intControl allowing the user to proceed to the next unit in the playlist.static final intThe fullscreen toggle control.static final Stringstatic final Stringstatic final intThe play/stop control.static final intThe seek bar (time slider) control, with mid-seek thumbnail support.static final intThe total playback time display.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class APSMediaPlayerOverlayController
overlay -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViewToContainer(android.view.ViewGroup viewGroup) voidvoidfloatgetAlpha()android.view.ViewgetView()voidvoidload(android.content.Context context) Builds the overlay's view.voidonCastStateChanged(int state) voidvoidonTrackingEventReceived(APSMediaTrackingEvents.MediaEventType type, android.os.Bundle additionalInfo) Called when a player emits an event.android.view.Viewrebuild(android.content.Context context) Rebuilds the view on a recreated Activity, with no tracking and no displayed notification; returns the new view.type()voidupdate(int duration, int currentPlaybackTime) Methods inherited from class APSMediaPlayerOverlayController
refreshModifier and TypeMethodDescriptionvoidrefresh(android.content.Context context, android.view.ViewGroup viewGroup)
-
Field Details
-
kAPSControlsBarColor
- See Also:
-
kAPSControlsBarAlpha
- See Also:
-
kAPSControlsComponents
- See Also:
-
kAPSControlsPlayedTrackColor
- See Also:
-
kAPSControlsBufferedTrackColor
- See Also:
-
kAPSControlsEmptyTrackColor
- See Also:
-
kAPSControlsPlayImage
- See Also:
-
kAPSControlsPauseImage
- See Also:
-
kAPSControlsFullscreenImage
- See Also:
-
kAPSControlsSeekThumbImage
- See Also:
-
kAPSControlsVisibileOnlyInFullscreen
- See Also:
-
kAPSControlsAutohideDuration
- See Also:
-
APSControlsOverlay
- See Also:
-
kAPSControlsLiveText
- See Also:
-
kAPSControlsPlaybackTimeText
- See Also:
-
kAPSControlsTextColor
- See Also:
-
APSMoviePlayerCommandHideControls
- See Also:
-
APSMoviePlayerCommandShowControls
- See Also:
-
APSCurrentTimeControl
public static final int APSCurrentTimeControlThe current playback time counter.- See Also:
-
APSTimeSliderControl
public static final int APSTimeSliderControlThe seek bar (time slider) control, with mid-seek thumbnail support.- See Also:
-
APSTotalTimeControl
public static final int APSTotalTimeControlThe total playback time display.- See Also:
-
APSFullScreenControl
public static final int APSFullScreenControlThe fullscreen toggle control.- See Also:
-
APSBackButtonControl
public static final int APSBackButtonControlControl allowing the user to return to previous unit in the playlist.- See Also:
-
APSForwardButtonControl
public static final int APSForwardButtonControlControl allowing the user to proceed to the next unit in the playlist.- See Also:
-
APSPlaybackControl
public static final int APSPlaybackControlThe play/stop control.- See Also:
-
-
Constructor Details
-
APSMediaPlayerControlsOverlayController
public APSMediaPlayerControlsOverlayController()
-
-
Method Details
-
type
-
load
public void load(android.content.Context context) Description copied from class:APSMediaPlayerOverlayControllerBuilds the overlay's view. When the Activity is recreated the player moves this view to the new one unchanged, so the view must not keep a reference to the Activity it was built with.- Specified by:
loadin classAPSMediaPlayerOverlayController
-
addViewToContainer
public void addViewToContainer(android.view.ViewGroup viewGroup) - Specified by:
addViewToContainerin classAPSMediaPlayerOverlayController
-
getView
public android.view.View getView()- Specified by:
getViewin classAPSMediaPlayerOverlayController
-
getAlpha
public float getAlpha()- Specified by:
getAlphain classAPSMediaPlayerOverlayController
-
update
public void update(int duration, int currentPlaybackTime) -
fullscreenEntered
public void fullscreenEntered() -
fullscreenExited
public void fullscreenExited() -
onDestroy
public void onDestroy() -
rebuild
public android.view.View rebuild(android.content.Context context) Rebuilds the view on a recreated Activity, with no tracking and no displayed notification; returns the new view. -
hideOverlay
public void hideOverlay()- Specified by:
hideOverlayin classAPSMediaPlayerOverlayController
-
onTrackingEventReceived
public void onTrackingEventReceived(APSMediaTrackingEvents.MediaEventType type, android.os.Bundle additionalInfo) Description copied from interface:APSMediaPlayerTrackingEventListenerCalled when a player emits an event.- Specified by:
onTrackingEventReceivedin interfaceAPSMediaPlayerTrackingEventListener- Parameters:
type- The type of event getting firedadditionalInfo- A bundle of additional metadata, such as the current position in CLOCK_TICK events
-
onCastStateChanged
public void onCastStateChanged(int state) - Specified by:
onCastStateChangedin interfaceCastStateObserver
-