@UnstableApi
class EventMessage : Metadata.Entry


An Event Message (emsg) as defined in ISO 23009-1.

Summary

Constants

const Parcelable.Creator<EventMessage!>!
const String!
@VisibleForTesting
ID3_SCHEME_ID_AOM = "https://aomedia.org/emsg/ID3"

emsg scheme_id_uri from the CMAF spec.

const String!
@VisibleForTesting
SCTE35_SCHEME_ID = "urn:scte:scte35:2014:bin"

scheme_id_uri from section 7.3.2 of SCTE 214-3 2015.

Public constructors

EventMessage(
    schemeIdUri: String!,
    value: String!,
    durationMs: Long,
    id: Long,
    messageData: ByteArray!
)

Public functions

Int
Boolean
equals(obj: Any?)
ByteArray<Byte>?

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

Format?

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

Int
String!
Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

Long

The duration of the event in milliseconds.

Long

The instance identifier.

ByteArray<Byte>!

The body of the message.

String!

The message scheme.

String!

The value for the event.

Inherited functions

From androidx.media3.common.Metadata.Entry
Unit

Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.

Constants

CREATOR

const val CREATORParcelable.Creator<EventMessage!>!

ID3_SCHEME_ID_AOM

@VisibleForTesting
const val ID3_SCHEME_ID_AOM = "https://aomedia.org/emsg/ID3": String!

emsg scheme_id_uri from the CMAF spec.

SCTE35_SCHEME_ID

@VisibleForTesting
const val SCTE35_SCHEME_ID = "urn:scte:scte35:2014:bin": String!

scheme_id_uri from section 7.3.2 of SCTE 214-3 2015.

Public constructors

EventMessage

EventMessage(
    schemeIdUri: String!,
    value: String!,
    durationMs: Long,
    id: Long,
    messageData: ByteArray!
)
Parameters
schemeIdUri: String!

The message scheme.

value: String!

The value for the event.

durationMs: Long

The duration of the event in milliseconds.

id: Long

The instance identifier.

messageData: ByteArray!

The body of the message.

Public functions

describeContents

fun describeContents(): Int

equals

fun equals(obj: Any?): Boolean

getWrappedMetadataBytes

fun getWrappedMetadataBytes(): ByteArray<Byte>?

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

getWrappedMetadataFormat

fun getWrappedMetadataFormat(): Format?

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

hashCode

fun hashCode(): Int

toString

fun toString(): String!

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

durationMs

val durationMsLong

The duration of the event in milliseconds.

id

val idLong

The instance identifier.

messageData

val messageDataByteArray<Byte>!

The body of the message.

schemeIdUri

val schemeIdUriString!

The message scheme.

value

val valueString!

The value for the event.