Store timed metadata objects as they are dispatched

Your application must use the appropriate TimedMetadata objects at the appropriate times.

During content parsing, which happens before playback, TVSDK identifies subscribed tags and notifies your application about these tags. The time that is associated with each TimedMetadata is the local time on the playback timeline.

Your application must complete the following tasks:

  1. Keep track of the current playback time.

  2. Match the current playback time to the dispatched TimedMetadata objects.

  3. Use the TimedMetadata where the start time equals the current local playback time.

    The following example shows how to save TimedMetadata objects in an ArrayList.

    private List<TimedMetadata> _timedMetadataList = new ArrayList<TimedMetadata>(); 
    ... 
    public void onTimedMetadata(TimedMetadata timedMetadata) { 
        ... 
        if (timedMetadata.getName().equalsIgnoreCase("#EXT-X-CUE"))  { 
            _timedMetadataList.add(timedMetadata); 
        } 
        ... 
    }
    

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now