Constructor

MediaMetadata

new MediaMetadata(type)

Parameter

type

cast.framework.messages.MetadataType

Type of metadata.

Value must not be null.

Properties

metadataType

non-null cast.framework.messages.MetadataType

The type of metadata.

queueItemId

(number or undefined)

The queue item that include this media section. Only relevant if used in container sections, and there are multiple media items for the container.

sectionDuration

(number or undefined)

The media section duration in second. Only needed if the metadata describes a section of the media file and has different duration.

sectionStartAbsoluteTime

(number or undefined)

Alternative way to provide section start time for live media. Provides start time in Epoch time in seconds.

sectionStartTimeInContainer

(number or undefined)

The media section start time offset within the container in seconds. If not provided it assumes it's the same as the offset witnin media.

sectionStartTimeInMedia

(number or undefined)

The media section start time within media file in seconds. This can be negative if a section started in previous file.