Class APSMediaPlayerTextOverlayController

java.lang.Object
com.appscend.overlaycontrollers.APSMediaPlayerOverlayController
com.appscend.overlaycontrollers.APSMediaPlayerTextOverlayController
All Implemented Interfaces:
KRAdapter

public class APSMediaPlayerTextOverlayController extends APSMediaPlayerOverlayController
The APSMediaPlayerTextOverlayController allows the displaying text on top of video content.

Configuration

To create an APSMediaOverlay of text type:

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

    • kAPSTextOverlayString: the String to be rendered.
    • kAPSTextOverlayStringColor: Font color for the rendered text. Set this to a String containing the hex color representation. Defaults to [UIColor whiteColor].
    • kAPSTextOverlayStringFont: String indicating the font family to be used. Defaults to 'Helvetica'.
    • kAPSTextOverlayStringSize: Integer indicating the font size to be used. Defaults to 13.

Replacable Placeholders

The APSMediaPlayerTextOverlayController will replace the following string placeholders with dynamic information: - 'remaining' will be replaced with the remaining number of seconds from the current video clip being rendered.