Class EventStream
java.lang.Object
com.castlabs.android.player.models.mpd.EventStream
A DASH in-MPD EventStream element, as defined by ISO/IEC 23009-1, 2nd edition, section 5.10.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating EventStream instances. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of event messages in the event stream.longGets the presentation time offset ingetTimescale()units.Gets the presentation times of the events in microseconds, relative to the presentation time offset and sorted in ascending order.Gets the scheme URI.longGets the timescale of the event stream in units per second.getValue()Gets the value of the event stream.id()Gets the constructed ID of this event stream.
-
Method Details
-
getEvents
Gets the list of event messages in the event stream.- Returns:
- An unmodifiable list of event messages
-
getPresentationTimesUs
Gets the presentation times of the events in microseconds, relative to the presentation time offset and sorted in ascending order.- Returns:
- An unmodifiable list of presentation times
-
getSchemeIdUri
Gets the scheme URI.- Returns:
- The scheme URI
-
getValue
Gets the value of the event stream.- Returns:
- The value of the event stream, empty string if not defined in manifest
-
getTimescale
public long getTimescale()Gets the timescale of the event stream in units per second.- Returns:
- The timescale
-
getPresentationTimeOffset
public long getPresentationTimeOffset()Gets the presentation time offset ingetTimescale()units. Presentation times are converted to microseconds after subtracting this offset from the raw event presentation time.For example, the offset in seconds can be calculated as follows:
double presentationTimeOffsetSeconds = (double) getPresentationTimeOffset() / getTimescale();- Returns:
- The presentation time offset, or zero if not defined in the manifest
-
id
Gets the constructed ID of this event stream.- Returns:
- The ID in the format "schemeIdUri/value"
-