Class APSMediaPlayerMidrollOverlayController
java.lang.Object
com.appscend.overlaycontrollers.APSMediaPlayerOverlayController
com.appscend.overlaycontrollers.APSMediaPlayerMidrollOverlayController
- All Implemented Interfaces:
KRAdapter
The APSMediaPlayerMidrollOverlayController allows the dynamic insertion of media units in the current playlist.
Configuration
To create an APSMediaOverlay of midroll type:
- set the overlay object's
typeproperty toAPSMidrollOverlay set the overlay object's
propertiesproperty to aHashMapinvalid input: '<'String, Object>that can have the following keys and values:- kAPSMidrollUnits:
ArrayListcontainingAPSMediaUnits to be inserted at play-time.
- kAPSMidrollUnits:
-
Field Summary
FieldsFields inherited from class APSMediaPlayerOverlayController
overlay -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class APSMediaPlayerOverlayController
refreshModifier and TypeMethodDescriptionvoidrefresh(android.content.Context context, android.view.ViewGroup viewGroup)
-
Field Details
-
kAPSMidrollUnits
- See Also:
-
APSMidrollOverlay
- See Also:
-
-
Constructor Details
-
APSMediaPlayerMidrollOverlayController
public APSMediaPlayerMidrollOverlayController()
-
-
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) -
hideOverlay
public void hideOverlay()- Specified by:
hideOverlayin classAPSMediaPlayerOverlayController
-