Package com.jwplayer.pub.api.events
Class InPlaylistTimedMetadataEvent
java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.InPlaylistTimedMetadataEvent
- Direct Known Subclasses:
DateRangeEvent
,ProgramDateTimeEvent
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Types of In-Playlist Timed Metadata -
Constructor Summary
ConstructorsConstructorDescriptionInPlaylistTimedMetadataEvent
(JWPlayer player, String rawTag, double start, double end) -
Method Summary
-
Constructor Details
-
InPlaylistTimedMetadataEvent
-
-
Method Details
-
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
Helper method for comparing two InPlaylistTimedMetadataEvent
-