docs/doc/reference/com/google/android/exoplayer2/metadata/emsg/EventMessage.html
Package com.google.android.exoplayer2.metadata.emsg
All Implemented Interfaces:Parcelable, Metadata.Entry
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classEventMessageextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Metadata.Entry](../Metadata.Entry.html "interface in com.google.android.exoplayer2.metadata")
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.
-
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Parcelable.Creator<EventMessage> | CREATOR |
Deprecated.
|
| long | durationMs |
Deprecated.
The duration of the event in milliseconds.
|
| long | id |
Deprecated.
The instance identifier.
|
| static String | ID3_SCHEME_ID_AOM |
Deprecated.
emsg scheme_id_uri from the CMAF spec.
|
| byte[] | messageData |
Deprecated.
The body of the message.
|
| String | schemeIdUri |
Deprecated.
The message scheme.
|
| static String | SCTE35_SCHEME_ID |
Deprecated.
scheme_id_uri from section 7.3.2 of SCTE 214-3 2015.
|
| String | value |
Deprecated.
The value for the event. |
-
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructors | Constructor | Description |
| --- | --- |
| EventMessage(String schemeIdUri, String value, long durationMs, long id, byte[] messageData) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| int | describeContents() |
Deprecated.
|
| boolean | equals(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.
|
| Format | getWrappedMetadataFormat() |
Deprecated.
Returns the Format that can be used to decode the wrapped metadata in Metadata.Entry.getWrappedMetadataBytes(), or null if this Entry doesn't contain wrapped metadata.
|
| int | hashCode() |
Deprecated.
|
| String | toString() |
Deprecated.
|
| void | writeToParcel(Parcel dest, int flags) |
Deprecated.
|
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
populateMediaMetadata
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")ID3_SCHEME_ID_AOM
Deprecated.
emsg scheme_id_uri from the CMAF spec. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")SCTE35_SCHEME_ID
Deprecated.
scheme_id_uri from section 7.3.2 of SCTE 214-3 2015. See Also:Constant Field Values
-
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")schemeIdUri
Deprecated.
The message scheme.
-
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")value
Deprecated.
The value for the event.
-
public final long durationMs
Deprecated.
The duration of the event in milliseconds.
-
public final long id
Deprecated.
The instance identifier.
-
public final byte[] messageData
Deprecated.
The body of the message.
-
public static final[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html "class or interface in android.os")<[EventMessage](EventMessage.html "class in com.google.android.exoplayer2.metadata.emsg")> CREATOR
Deprecated.
-
public EventMessage([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")schemeIdUri,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")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.
-
@Nullable
public[Format](../../Format.html "class in com.google.android.exoplayer2")getWrappedMetadataFormat()
Deprecated.
Description copied from interface: Metadata.Entry
Returns the Format that can be used to decode the wrapped metadata in Metadata.Entry.getWrappedMetadataBytes(), or null if this Entry doesn't contain wrapped metadata.
Specified by:getWrappedMetadataFormat in interface Metadata.Entry
-
@Nullable
public byte[] getWrappedMetadataBytes()
Deprecated.
Description copied from interface: Metadata.Entry
Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.
Specified by:getWrappedMetadataBytes in interface Metadata.Entry
-
public int hashCode()
Deprecated.
Overrides:hashCode in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Deprecated.
Overrides:equals in class Object
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()
Deprecated.
Overrides:toString in class Object
-
public int describeContents()
Deprecated.
Specified by:describeContents in interface Parcelable
-
public void writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html "class or interface in android.os")dest,
int flags)
Deprecated.
Specified by:writeToParcel in interface Parcelable