public class OverlayFrame extends Overlay
mDurationMs, mStartTimeMs
Constructor and Description |
---|
OverlayFrame(MediaItem mediaItem,
String overlayId,
Bitmap bitmap,
long startTimeMs,
long durationMs)
Constructor for an OverlayFrame
|
Modifier and Type | Method and Description |
---|---|
Bitmap |
getBitmap()
Get the overlay bitmap.
|
void |
setBitmap(Bitmap bitmap)
Set the overlay bitmap.
|
equals, getDuration, getId, getMediaItem, getStartTime, getUserAttributes, hashCode, setDuration, setStartTime, setStartTimeAndDuration, setUserAttribute
public OverlayFrame(MediaItem mediaItem, String overlayId, Bitmap bitmap, long startTimeMs, long durationMs)
mediaItem
- The media item owneroverlayId
- The overlay idbitmap
- The bitmap to be used as an overlay. The size of the
bitmap must equal to the size of the media item to which it is
added. The bitmap is typically a decoded PNG file.startTimeMs
- The overlay start time in millisecondsdurationMs
- The overlay duration in millisecondsIllegalArgumentException
- if the file type is not PNG or the
startTimeMs and durationMs are incorrect.