Class DateRangeEvent


public class DateRangeEvent extends InPlaylistTimedMetadataEvent
Payload that accompanies the onMeta() event for EXT-X-DATERANGE tags.
  • Constructor Details

    • DateRangeEvent

      public DateRangeEvent(@NonNull JWPlayer player, @NonNull Map<String,String> attributes, @NonNull String rawTag, double start, double end, @NonNull String id, @Nullable Date startDate, double duration)
  • Method Details

    • getAttributes

      @NonNull public Map<String,String> getAttributes()
      Returns:
      A Map of all attributes from the EXT-X-DATERANGE tag.
    • getId

      @NonNull public String getId()
      Returns:
      A string that uniquely identifies a Date Range in the playlist.
    • getStartDate

      @Nullable public Date 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 class InPlaylistTimedMetadataEvent
      Returns:
      The type of In-Playlist Timed Metadata event being fired