Class 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 Detail

      • InPlaylistTimedMetadataEvent

        public InPlaylistTimedMetadataEvent​(@NonNull
                                            JWPlayer player,
                                            @NonNull
                                            java.lang.String rawTag,
                                            double start,
                                            double end)
    • Method Detail

      • getRawTag

        @NonNull
        public java.lang.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