public class MediaEvent extends AbstractEvent<android.os.Parcelable> implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<MediaEvent> |
CREATOR
Creator for de-serializing media event from the given
Parcel . |
static int |
PARCEL_OBJECT_TYPE
The type of the parcelable object.
|
ACTIVITY, AD_ID, AD_TITLE, ALIGNMENT, ANDROID_VIEW, AUDIO_TRACKS_STATE, AUDIO_VARIANT, BOOLEAN, BRIGHTCOVE_CONTROL_BAR, BRIGHTCOVE_MEDIA_CONTROLLER, BUILD_VERSION, CAPTION_FORMAT, CAPTION_URI, CAPTIONS_STATE, CATALOG_URL, CONFIGURATION, CUE_POINT, CUE_POINTS, CURRENT_VIDEO, DEBUG, EMITTER, END_TIME, ERROR, ERROR_CODE, ERROR_EXTRA, ERROR_MESSAGE, ERROR_SUBCODE, ERRORS, EVENT_SOURCE, FORWARD_BUFFER_SECONDS, FRAGMENT, FROM_SEEK_POSITION, ID, INDEX, INSTANCE_STATE, isPrevented, isStopped, LANGUAGES, LEFT_VOLUME, LINE, LINE_ANCHOR, LINE_TYPE, LIST, LIVE_WINDOW_DURATION, LOCALE_CODE, MAX_POSITION, MEASURED_BPS, MEDIA_BYTES_TRANSFERRED, MEDIA_CONTROLLER_CONFIG, MIN_POSITION, NEXT_VIDEO, ORIGINAL_EVENT, ORIGINAL_PLAYHEAD_POSITION, ORIGINAL_SEEK_POSITION, PERCENT_COMPLETE, PICTURE_IN_PICTURE_STATE, PLAYBACK_LOCATION, PLAYHEAD_POSITION, PLAYLIST, PLUGIN_NAME, POSITION, POSITION_ANCHOR, PROGRESS_BAR_PLAYHEAD_POSITION, PROJECTION_FORMAT, RENDITION_HEIGHT, RENDITION_INDICATED_BPS, RENDITION_MIME_TYPE, RENDITION_URL, RENDITION_WIDTH, REQUEST_TOKEN, REQUESTED_ORIENTATION, RESPONSE_TIME_MS, RESTORE_SEEK_POSITION, RIGHT_VOLUME, SEEK_CONTROLS_VISIBILITY, SEEK_DEFAULT, SEEK_ON_HOLD_UPDATE_FREQ, SEEK_ON_HOLD_WAIT_TIME, SEEK_PERCENTAGE, SEEK_POSITION, SEEK_PROGRESS, SEEK_RELATIVE_ENABLED, SEGMENT_DURATION, SELECTED_TRACK, SIZE, SKIP_CUE_POINTS, SOURCE, START_TIME, SUPPORT_FRAGMENT, TEXT, TRACKS, TTML_DOCUMENT, type, UUID, VALUE, VIDEO, VIDEO_DURATION, VIDEO_HEIGHT, VIDEO_STILL, VIDEO_WIDTH, VOLUME, WEBVTT_DOCUMENT
Constructor and Description |
---|
MediaEvent(java.lang.String type)
Constructs a new media event for the specified type.
|
MediaEvent(java.lang.String type,
java.util.Map<java.lang.String,android.os.Parcelable> properties)
Constructs a new media event for the specified type and properties.
|
Modifier and Type | Method and Description |
---|---|
static MediaEvent |
create(Event event)
Converts the given non-parcelable event into a parcelable media event.
|
int |
describeContents() |
java.util.Map<java.lang.String,android.os.Parcelable> |
getProperties() |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
getId, getIntegerProperty, getNextId, getProperty, getProperty, getType, isPrevented, isStopped, preventDefault, stopPropagation, toString
public static final int PARCEL_OBJECT_TYPE
public static android.os.Parcelable.Creator<MediaEvent> CREATOR
Parcel
.public MediaEvent(java.lang.String type)
type
- the type of the media event.public MediaEvent(java.lang.String type, java.util.Map<java.lang.String,android.os.Parcelable> properties)
type
- the type of the media event.properties
- the properties related this media event.public static MediaEvent create(@NonNull Event event)
event
- the event to be converted.@NonNull public java.util.Map<java.lang.String,android.os.Parcelable> getProperties()
getProperties
in class AbstractEvent<android.os.Parcelable>
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable