Skip to content

Type Alias: EventMessageBox<V> ​

ts
type EventMessageBox<V> = FullBox & object;

Defined in: boxes/EventMessageBox.ts:14

Event Message Box (emsg).

ISO/IEC 23009-1:2022 - 5.10.3.3

The syntax defines fields for version 0 and version 1 only. For a version other than 0 or 1, the strings are empty, the numbers are 0, and both time fields are undefined.

Type Parameters ​

V ​

V extends IsoInt64 = number

Type Declaration ​

eventDuration ​

ts
eventDuration: number;

id ​

ts
id: number;

messageData ​

ts
messageData: Uint8Array;

The message bytes. The bytes are a view over the input buffer.

presentationTime? ​

ts
presentationTime?: V;

The 64-bit absolute presentation time. Only a box of version 1 has the field.

presentationTimeDelta? ​

ts
presentationTimeDelta?: number;

The presentation time relative to the earliest presentation time of the segment. Only a box of version 0 has the field.

schemeIdUri ​

ts
schemeIdUri: string;

The URI that identifies the message scheme. The box stores a null-terminated UTF-8 string.

timescale ​

ts
timescale: number;

type ​

ts
type: "emsg";

value ​

ts
value: string;

The value of the event. The box stores a null-terminated UTF-8 string.

A Streaming Video Technology Alliance project.