The TimedMetadata class encapsulates the tag/cue information that is found in the manifest.
public final class TimedMetadata {
public enum Type {
TAG, ID3
}
/**
* Default constructor.
*
* @param time
* local stream time where this
* @param metadata
*/
public TimedMetadata(Type type, long time, long id, String name, Metadata metadata);
/**
* The time position, relative to the start of the main content, where this
* metadata was inserted into the stream.
*
* @return insertion time in milliseconds.
*/
public long getTime();
/**
* The metadata inserted into the stream.
*
* @return parsed metadata
*/
public Metadata getMetadata();
/**
* @return the type of the timed metadata.
*/
public Type getType();
/**
* Returns the ID extracted from the cue attributes if present. Otherwise,
* default unique value will be provided.
*
* @return
*/
public long getId();
/**
* @return the name of the cue (usually the HLS tag name)
*/
public String getName();
}