Package com.jwplayer.pub.api.events
Class DateRangeEvent
java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.InPlaylistTimedMetadataEvent
com.jwplayer.pub.api.events.DateRangeEvent
Payload that accompanies the onMeta() event for EXT-X-DATERANGE tags.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jwplayer.pub.api.events.InPlaylistTimedMetadataEvent
InPlaylistTimedMetadataEvent.MetadataType
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.jwplayer.pub.api.events.InPlaylistTimedMetadataEvent
equals, getEnd, getMetadataTime, getRawTag, getStart
-
Constructor Details
-
DateRangeEvent
-
-
Method Details
-
getAttributes
- Returns:
- A Map of all attributes from the EXT-X-DATERANGE tag.
-
getId
- Returns:
- A string that uniquely identifies a Date Range in the playlist.
-
getStartDate
- Returns:
- The date at which the Date Range begins.
-
getDuration
public double getDuration()- Returns:
- The PLANNED-DURATION of the EXT-X-DATERANGE tag. -1 if none was provided.
-
getMetadataType
- Overrides:
getMetadataType
in classInPlaylistTimedMetadataEvent
- Returns:
- The type of In-Playlist Timed Metadata event being fired
-