Class EventStream
- java.lang.Object
-
- com.castlabs.android.player.models.EventStream
-
public final class EventStream extends Object
A DASH in-MPD EventStream element, as defined by ISO/IEC 23009-1, 2nd edition, section 5.10.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventStream.Builder
-
Constructor Summary
Constructors Constructor Description EventStream(String schemeIdUri, String value, long timescale, List<Long> presentationTimesUs, List<EventMessage> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EventMessage>getEvents()EventMessages in the event stream.List<Long>getPresentationTimesUs()Presentation time of the events in microsecond, sorted in ascending order.StringgetSchemeIdUri()The scheme URI.longgetTimescale()The timescale in units per seconds, as defined in the manifest.StringgetValue()The value of the event stream.Stringid()A constructed id of thisEventStream.
-
-
-
Method Detail
-
getEvents
@NonNull public List<EventMessage> getEvents()
EventMessages in the event stream.
-
getPresentationTimesUs
@NonNull public List<Long> getPresentationTimesUs()
Presentation time of the events in microsecond, sorted in ascending order.
-
getSchemeIdUri
@NonNull public String getSchemeIdUri()
The scheme URI.
-
getValue
@NonNull public String getValue()
The value of the event stream. Empty String if not defined in manifest.
-
getTimescale
public long getTimescale()
The timescale in units per seconds, as defined in the manifest.
-
id
@NonNull public String id()
A constructed id of thisEventStream. Equal toschemeIdUri + "/" + value.
-
-