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 class
Builder for creating EventStream instances. -
Constructor Summary
ConstructorsConstructorDescriptionEventStream
(String schemeIdUri, String value, long timescale, List<Long> presentationTimesUs, List<EventMessage> events) Creates a new EventStream. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of event messages in the event stream.Gets the presentation times of the events in microseconds, sorted in ascending order.Gets the scheme URI.long
Gets 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.
-
Constructor Details
-
EventStream
public EventStream(@NonNull String schemeIdUri, @NonNull String value, long timescale, @NonNull List<Long> presentationTimesUs, @NonNull List<EventMessage> events) Creates a new EventStream.- Parameters:
schemeIdUri
- The scheme URIvalue
- The value of the event streamtimescale
- The timescale in units per secondspresentationTimesUs
- The presentation times in microsecondsevents
- The list of event messages
-
-
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, 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
-
id
Gets the constructed ID of this event stream.- Returns:
- The ID in the format "schemeIdUri/value"
-