Class APSMediaPlayerImageOverlayController

All Implemented Interfaces:
KRAdapter

public class APSMediaPlayerImageOverlayController extends APSMediaPlayerClosableOverlayController
The APSMediaPlayerImageOverlayController allows placing an image on top of video content.

Configuration

To create an APSMediaOverlay of image type:

  • set the overlay object's type property to APSImageOverlay
  • set the overlay objectinvalid input: '&''s properties property to a HashMap that can have the following keys and values:

    • kAPSImageOverlayClickthrough: set this key to a String representing the URL that should be launched when the overlay is tapped.
    • kAPSImageOverlayClicktracking: set this key to a ArrayList of String objects that will be tracked by the player when the overlay is tapped (see [APSMediaPlayer trackforEvent:]). Note that the kAPSImageOverlayClickthrough key must also be set for tracking to happen.
    • kAPSImageOverlayViewtracking: set this key to a ArrayList of String objects that will be tracked by the player when the overlay is displayed (see [APSMediaPlayer trackforEvent:]).
    • kAPSImageOverlayResourceURL: String representing the image to be loaded.
    • kAPSImageOverlayErrorURLs: set this key to a ArrayList of String objects that will be tracked by the player when there is an error loading the image (see [APSMediaPlayer trackforEvent:]).
    • kAPSImageOverlayBackgroundColor: the background color of the overlay. Set this to a String containing the hex color representation. Defaults to [UIColor clearColor].
    • kAPSImageOverlayStretchMode: String representing the possible ways of scaling the image in the overlay surface. Possible values are:

      • “aspectFit”, that will set the overlay’s ScaleType to ScaleType.FIT_CENTER
      • “aspectFill”, that will set the overlay’s ScaleType to ScaleType.CENTER_CROP
      • “fill”, that will set the overlay’s ScaleType to ScaleType.FIT_XY
      • “bottom”, that will set the overlay’s ScaleType to ScaleType.MATRIX and will align the elements to the bottom
      • “top”, that will set the overlay’s ScaleType to ScaleType.MATRIX and will align the elements to the top
      • “left”, that will set the overlay’s ScaleType to ScaleType.MATRIX and will align the elements to the left
      • “right”, that will set the overlay’s ScaleType to ScaleType.MATRIX and will align the elements to the right