EventMessage
@UnstableApi
public final class EventMessage implements Metadata.Entry
An Event Message (emsg) as defined in ISO 23009-1.
Summary
Constants |
|
---|---|
static final String |
@VisibleForTesting emsg scheme_id_uri from the CMAF spec. |
static final String |
@VisibleForTesting scheme_id_uri from section 7.3.2 of SCTE 214-3 2015. |
Public fields |
|
---|---|
final long |
The duration of the event in milliseconds. |
final long |
The instance identifier. |
final byte[] |
The body of the message. |
final String |
The message scheme. |
final String |
The value for the event. |
Public constructors |
---|
EventMessage( |
Public methods |
|
---|---|
boolean |
|
@Nullable byte[] |
Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata. |
@Nullable Format |
Returns the |
int |
hashCode() |
String |
toString() |
Inherited methods |
||
---|---|---|
|
Constants
ID3_SCHEME_ID_AOM
@VisibleForTesting
public static final String ID3_SCHEME_ID_AOM = "https://aomedia.org/emsg/ID3"
emsg scheme_id_uri from the CMAF spec.
SCTE35_SCHEME_ID
@VisibleForTesting
public static final String SCTE35_SCHEME_ID = "urn:scte:scte35:2014:bin"
scheme_id_uri from section 7.3.2 of SCTE 214-3 2015.
Public fields
Public constructors
EventMessage
public EventMessage(
String schemeIdUri,
String value,
long durationMs,
long id,
byte[] messageData
)
Public methods
getWrappedMetadataBytes
public @Nullable byte[] getWrappedMetadataBytes()
Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.
getWrappedMetadataFormat
public @Nullable Format getWrappedMetadataFormat()
Returns the Format
that can be used to decode the wrapped metadata in getWrappedMetadataBytes
, or null if this Entry doesn't contain wrapped metadata.