Class APSMediaPlayerButtonOverlayController

java.lang.Object
com.appscend.overlaycontrollers.APSMediaPlayerOverlayController
com.appscend.overlaycontrollers.APSMediaPlayerButtonOverlayController
All Implemented Interfaces:
KRAdapter, APSMediaPlayerTrackingEventListener

public class APSMediaPlayerButtonOverlayController extends APSMediaPlayerOverlayController implements APSMediaPlayerTrackingEventListener
The APSMediaPlayerButtonOverlayController allows placing a transparent overlay in a specific area of the player surface, that can trigger the launch of a specific URL. The APSMediaPlayer instance will query the actionDelegate object to interpret and launch the specified URL. If the actionDelegate cannot respond to the URL, and the URL has a web scheme (http or https), it will be launched automatically in the in-app web browser.


Configuration

To create an APSMediaOverlay of button type:

  • set the overlay object’s type property to APSButtonOverlay
  • set the overlay object’s properties property to a HashMapinvalid input: '<'String, Object> that can have the following keys and values:

    • kAPSButtonOverlayClickthrough: set this key to a String representing the URL that should be launched when the overlay is tapped.
    • kAPSButtonOverlayClicktracking: set this key to a ArrayList of String objects that will be tracked by the player when the overlay is tapped (see [APSMediaPlayer track:forEvent:type:]). Note that the kAPSButtonOverlayClickthrough key must also be set for tracking to happen