Class APSMediaOverlay

All Implemented Interfaces:
android.os.Parcelable, Cloneable

public class APSMediaOverlay extends APSMediaEvent implements Cloneable
APSMediaOverlay describes any overlay that the APSMediaPlayer instance needs to render during playback.
  • Field Details

    • kAPSMetadataType

      public static final String kAPSMetadataType
      See Also:
    • MetadataClickPosition

      public static final String MetadataClickPosition
      See Also:
    • type

      public String type
    • parameters

      public HashMap<String,Object> parameters
      Overlay parameters. Implementation-specific to overlay controllers.
    • position

      Describes the position the overlay should take when placed on-screen by the player. APSMediaOverlayPosition for available values.

    • controller

      A refence to the overlay controller object. This is set by the player, on the overlay's initial render.
    • zIndex

      public int zIndex
      The order of the overlay in the current view stack.
    • width

      public String width
      The width of the overlay. Supports pixels (e.g.: "320") or percentages, relative to the total width (e.g.: "50%").
    • height

      public String height
      The height of the overlay. Supports pixels (e.g.: "320") or percentages, relative to the total height (e.g.: "50%").
    • absoluteOffsetX

      public String absoluteOffsetX
      The overlay's absolute horizontal offset in pixels, relative to the current origin. The current origin is determined by the overlay's position parameter, while the positive direction is always toward the center of the player surface.
    • absoluteOffsetY

      public String absoluteOffsetY
      The overlay's absolute vertical offset in pixels, relative to the current origin. The current origin is determined by the overlay's position parameter, while the positive direction is always toward the center of the player surface.
    • fadeInDuration

      public float fadeInDuration
      The duration (in seconds) for the fade in effect of the overlay, when it is placed on and taken off screen.
    • repeatAfter

      public float repeatAfter
      If this parameter is greater than 0, then the overlay will be reshown by the media player after the specific time interval (in seconds).
    • parentUnit

      public APSMediaUnit parentUnit

      After being added to a APSMediaUnit object, a reference to this parent can be found here.

    • metadata

      public HashMap<String,Object> metadata

      A HashMap containing the metadata associated with the overlay

    • CREATOR

      public static final android.os.Parcelable.Creator<APSMediaOverlay> CREATOR
  • Constructor Details

    • APSMediaOverlay

      public APSMediaOverlay()
    • APSMediaOverlay

      protected APSMediaOverlay(android.os.Parcel in)
  • Method Details

    • cloneOverlay

      public APSMediaOverlay cloneOverlay()
      Creates a clone of the APSMediaOverlay object
      Returns:
      A clone of the APSMediaOverlay object
    • onPreload

      public void onPreload()
      Description copied from class: APSMediaEvent
      This method will be invoked on a different thread by the player, before the event start point, as set by the preTriggerInterval field.
      Specified by:
      onPreload in class APSMediaEvent
    • onTrigger

      public void onTrigger()
      Description copied from class: APSMediaEvent
      This code will be executed once the event is triggered by the player.
      Specified by:
      onTrigger in class APSMediaEvent
    • onUnload

      public void onUnload()
      Description copied from class: APSMediaEvent
      This method will be invoked by the player once the event has reached the end point and will be deallocated.
      Specified by:
      onUnload in class APSMediaEvent
    • onUpdate

      public void onUpdate()
      Description copied from class: APSMediaEvent
      This method will be invoked by the player periodically, giving the event the opportunity to respond to updated playback information.
      Specified by:
      onUpdate in class APSMediaEvent
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
      Overrides:
      describeContents in class APSMediaEvent
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
      Overrides:
      writeToParcel in class APSMediaEvent