Class APSMediaPlayerHTMLOverlayController
java.lang.Object
com.appscend.overlaycontrollers.APSMediaPlayerOverlayController
com.appscend.overlaycontrollers.APSMediaPlayerClosableOverlayController
com.appscend.overlaycontrollers.APSMediaPlayerHTMLOverlayController
- All Implemented Interfaces:
KRAdapter
The APSMediaPlayerHTMLOverlayController allows the inline loading of HTML content inside an overlay placed on top of video content.
Configuration
To create an APSMediaOverlay of HTML type:
- set the overlay object’s
typeproperty toAPSHTMLOverlay set the overlay object’s
propertiesproperty to aHashMapinvalid input: '<'String, Object>that can have the following keys and values:- kAPSHTMLCodeContent: the actual HTML
Stringto be loaded. - kAPSHTMLIframeSource:
Stringcontaining the URL that should be loaded inside an iframe element. - kAPSHTMLScriptSource:
Stringcontaining the URL of the JavaScript file that should be loaded and executed. - kAPSHTMLPageSource:
Stringcontaining the URL to load directly in the webview container. - kAPSHTMLWidth:
Integercorresponding to the integer value to be set for the meta viewport width property. - kAPSHTMLHeight:
Integercorresponding to the integer value to be set for the meta viewport height property. - kAPSHTMLErrorURLs:
ArrayListcontainingStrings to be tracked in case of error.
- kAPSHTMLCodeContent: the actual HTML
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class APSMediaPlayerClosableOverlayController
kAPSCloseBackgroundColor, kAPSCloseFinalAlpha, kAPSCloseHidden, kAPSCloseImage, kAPSCloseInitialAlpha, kAPSCloseOffset, kAPSCloseOffsetX, kAPSCloseOffsetY, kAPSCloseProgressColor, kAPSCloseProgressTrackColor, kAPSCloseSize, kAPSCloseTrackingURLs, kAPSCloseXColorModifier and TypeFieldDescriptionstatic final Stringthe background color of the close button view.static final Stringa Number indicating the opacity of the close button after it has been activated for receiving taps.static final Stringset this key to @YES to skip displaying the close button for this overlay.static final Stringif set to a UIImage, that image will be used instead of the standard progress-wheel close button.static final Stringa Number indicating the opacity of the close button before it is activated for receiving taps.static final Stringa Number that indicates the offset, in seconds, after which the close button should become activated for receiving taps.static final Stringthe horizontal offset of the close button, relative to the right margin of the overlay's view.static final Stringthe vertical offset of the close button, relative to the top margin of the overlay's view.static final Stringthe color of the circular bar that indicates the currently elapsed time until the close button can be tapped.static final Stringthe color of the circular bar that indicates the total time until the close button can be tapped.static final Stringa Number representing the length of a side of the close button square, in points.static final Stringa Array of URLs that will be tracked by the player when the close button is tapped and the overlay is removed (see [APSMediaPlayer track:forEvent:type:]).static final Stringthe color of the X symbol in the center of the player.Fields inherited from class APSMediaPlayerOverlayController
overlay -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViewToContainer(android.view.ViewGroup viewGroup) floatgetAlpha()android.view.ViewgetView()voidvoidload(android.content.Context context) Builds the overlay's view.type()Methods inherited from class APSMediaPlayerClosableOverlayController
activateButton, removeCloseButtonModifier and TypeMethodDescriptionvoidvoidThis method removes the close button from the current view stack.Methods inherited from class APSMediaPlayerOverlayController
refreshModifier and TypeMethodDescriptionvoidrefresh(android.content.Context context, android.view.ViewGroup viewGroup)
-
Field Details
-
kAPSHTMLCodeContent
- See Also:
-
kAPSHTMLIframeSource
- See Also:
-
kAPSHTMLScriptSource
- See Also:
-
kAPSHTMLPageSource
- See Also:
-
kAPSHTMLWidth
- See Also:
-
kAPSHTMLHeight
- See Also:
-
kAPSHTMLErrorURLs
- See Also:
-
kAPSHTMLOverlayWebviewDismissAction
- See Also:
-
APSHTMLOverlay
- See Also:
-
-
Constructor Details
-
APSMediaPlayerHTMLOverlayController
public APSMediaPlayerHTMLOverlayController()
-
-
Method Details
-
type
- Specified by:
typein interfaceKRAdapter- Overrides:
typein classAPSMediaPlayerClosableOverlayController
-
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.- Overrides:
loadin classAPSMediaPlayerClosableOverlayController
-
addViewToContainer
public void addViewToContainer(android.view.ViewGroup viewGroup) - Overrides:
addViewToContainerin classAPSMediaPlayerClosableOverlayController
-
hideOverlay
public void hideOverlay()- Overrides:
hideOverlayin classAPSMediaPlayerClosableOverlayController
-
getView
public android.view.View getView()- Overrides:
getViewin classAPSMediaPlayerClosableOverlayController
-
getAlpha
public float getAlpha()- Overrides:
getAlphain classAPSMediaPlayerClosableOverlayController
-