Timed metadata class

When Browser TVSDK detects a subscribed tag in the playlist/manifest, the player automatically tries to process the tag and expose it as a TimedMetadata object.

The TimedMetadata class provides the following elements:

Property Type Description

type

TimedMetadataType

Here are the timed metadata types:

  • TAG - the timed metadata was created from a tag in the playlist/manifest.
  • ID3 - the timed metadata was created from a ID3 tag in the media stream.

time

Number

The local time position (milliseconds) relative to the start of the main content where this timed metadata is present in the stream.

id

String

The unique identifier of the timed metadata.

Is usually extracted from the cue/tag ID attribute if present. Otherwise, it is a unique random value.

name

Number

The name of the timed metadata.

If the type is TAG, the value represents the cue/tag name. If the type is ID3, the value is null.

content

String

The raw content of the timed metadata.

If the type is TAG, the value represents the entire attribute list of the cue/tag. If the type id ID3, the value is null.

metadata

Metadata

The processed/extracted information from the playlist/manifest custom tag.

On this page