public class APSMediaPlayerTextOverlayController extends APSMediaPlayerOverlayController
To create an APSMediaOverlay of text type:
type property to APSTextOverlayset the overlay object's properties property to a HashMap that can have the following keys and values:
String to be rendered.String containing the hex color representation. Defaults to [UIColor whiteColor].String indicating the font family to be used. Defaults to 'Helvetica'.Integer indicating the font size to be used. Defaults to 13.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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APSTextOverlay |
static java.lang.String |
kAPSTextOverlayString |
static java.lang.String |
kAPSTextOverlayStringColor |
static java.lang.String |
kAPSTextOverlayStringFont |
static java.lang.String |
kAPSTextOverlayStringSize |
overlay| Constructor and Description |
|---|
APSMediaPlayerTextOverlayController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addViewToContainer(ViewGroup viewGroup) |
float |
getAlpha() |
View |
getView() |
void |
hideOverlay() |
void |
load(Context context) |
java.lang.String |
type() |
void |
update(int duration,
int currentPlaybackTime) |
refreshpublic static final java.lang.String kAPSTextOverlayString
public static final java.lang.String kAPSTextOverlayStringColor
public static final java.lang.String kAPSTextOverlayStringFont
public static final java.lang.String kAPSTextOverlayStringSize
public static final java.lang.String APSTextOverlay
public java.lang.String type()
public void load(Context context)
load in class APSMediaPlayerOverlayControllerpublic void addViewToContainer(ViewGroup viewGroup)
addViewToContainer in class APSMediaPlayerOverlayControllerpublic void update(int duration,
int currentPlaybackTime)
public View getView()
getView in class APSMediaPlayerOverlayControllerpublic float getAlpha()
getAlpha in class APSMediaPlayerOverlayControllerpublic void hideOverlay()
hideOverlay in class APSMediaPlayerOverlayController