Class PlaylistItemEvent

java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.PlaylistItemEvent

public class PlaylistItemEvent extends Event
Payload that accompanies the onPlaylistItem() event.
  • Constructor Details

    • PlaylistItemEvent

      public PlaylistItemEvent(JWPlayer player, int index, PlaylistItem playlistItem)
  • Method Details

    • getIndex

      public int getIndex()
      Returns:
      Index of the currently playing playlist item.
    • getPlaylistItem

      public PlaylistItem getPlaylistItem()
      Returns:
      The current playlist item; Provides the same output as getPlaylistItem().