Class EventMessage
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.emsg.EventMessage
-
- All Implemented Interfaces:
Parcelable,Metadata.Entry
@Deprecated public final class EventMessage extends Object implements Metadata.Entry
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.An Event Message (emsg) as defined in ISO 23009-1.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<EventMessage>CREATORDeprecated.longdurationMsDeprecated.The duration of the event in milliseconds.longidDeprecated.The instance identifier.static StringID3_SCHEME_ID_AOMDeprecated.emsg scheme_id_uri from the CMAF spec.byte[]messageDataDeprecated.The body of the message.StringschemeIdUriDeprecated.The message scheme.static StringSCTE35_SCHEME_IDDeprecated.scheme_id_uri from section 7.3.2 of SCTE 214-3 2015.StringvalueDeprecated.The value for the event.-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description EventMessage(String schemeIdUri, String value, long durationMs, long id, byte[] messageData)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdescribeContents()Deprecated.booleanequals(Object obj)Deprecated.byte[]getWrappedMetadataBytes()Deprecated.Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.FormatgetWrappedMetadataFormat()Deprecated.Returns theFormatthat can be used to decode the wrapped metadata inMetadata.Entry.getWrappedMetadataBytes(), or null if this Entry doesn't contain wrapped metadata.inthashCode()Deprecated.StringtoString()Deprecated.voidwriteToParcel(Parcel dest, int flags)Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.android.exoplayer2.metadata.Metadata.Entry
populateMediaMetadata
-
-
-
-
Field Detail
-
ID3_SCHEME_ID_AOM
public static final String ID3_SCHEME_ID_AOM
Deprecated.emsg scheme_id_uri from the CMAF spec.- See Also:
- Constant Field Values
-
SCTE35_SCHEME_ID
public static final String SCTE35_SCHEME_ID
Deprecated.scheme_id_uri from section 7.3.2 of SCTE 214-3 2015.- See Also:
- Constant Field Values
-
schemeIdUri
public final String schemeIdUri
Deprecated.The message scheme.
-
value
public final String value
Deprecated.The value for the event.
-
durationMs
public final long durationMs
Deprecated.The duration of the event in milliseconds.
-
id
public final long id
Deprecated.The instance identifier.
-
messageData
public final byte[] messageData
Deprecated.The body of the message.
-
CREATOR
public static final Parcelable.Creator<EventMessage> CREATOR
Deprecated.
-
-
Constructor Detail
-
EventMessage
public EventMessage(String schemeIdUri, String value, long durationMs, long id, byte[] messageData)
Deprecated.- Parameters:
schemeIdUri- The message scheme.value- The value for the event.durationMs- The duration of the event in milliseconds.id- The instance identifier.messageData- The body of the message.
-
-
Method Detail
-
getWrappedMetadataFormat
@Nullable public Format getWrappedMetadataFormat()
Deprecated.Description copied from interface:Metadata.EntryReturns theFormatthat can be used to decode the wrapped metadata inMetadata.Entry.getWrappedMetadataBytes(), or null if this Entry doesn't contain wrapped metadata.- Specified by:
getWrappedMetadataFormatin interfaceMetadata.Entry
-
getWrappedMetadataBytes
@Nullable public byte[] getWrappedMetadataBytes()
Deprecated.Description copied from interface:Metadata.EntryReturns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.- Specified by:
getWrappedMetadataBytesin interfaceMetadata.Entry
-
describeContents
public int describeContents()
Deprecated.- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
Deprecated.- Specified by:
writeToParcelin interfaceParcelable
-
-