Class InPlaylistTimedMetadataEvent

java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.InPlaylistTimedMetadataEvent
Direct Known Subclasses:
DateRangeEvent, ProgramDateTimeEvent

public class InPlaylistTimedMetadataEvent extends Event
Fires when playback enters the section of an HLS stream tagged with an In-Playlist Timed Metadata tag The payload that accompanies the onInPlaylistTimedMetadataListener() event. This can be cast to a more specific type, e.g. DateRangeEvent, depending on which MetadataType was fired.

  • Constructor Details

    • InPlaylistTimedMetadataEvent

      public InPlaylistTimedMetadataEvent(JWPlayer player, String rawTag, double start, double end)
  • Method Details

    • getRawTag

      public String getRawTag()
      Returns:
      The full HLS tag from the manifest
    • getStart

      public double getStart()
      Returns:
      The start time of the tag in seconds
    • getMetadataTime

      public double getMetadataTime()
      Returns:
      Start time, in seconds, of the metadata cue
    • getEnd

      public double getEnd()
      Returns:
      The end time of the tag in seconds
    • getMetadataType

      Returns:
      The type of In-Playlist Timed Metadata event being fired
    • equals

      public boolean equals(Object obj)
      Helper method for comparing two InPlaylistTimedMetadataEvent
      Overrides:
      equals in class Object
      Parameters:
      obj - to compare
      Returns:
      if the two are "equal enough"