Package com.jwplayer.pub.api.events
Class RelatedPlayEvent
java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.RelatedPlayEvent
Payload that accompanies the onRelatedPlay() event.
-
Constructor Summary
ConstructorsConstructorDescriptionRelatedPlayEvent
(JWPlayer player, PlaylistItem item, boolean auto, int position) -
Method Summary
-
Constructor Details
-
RelatedPlayEvent
-
-
Method Details
-
getAuto
public boolean getAuto()- Returns:
- Returns true if started via autoplay; false if manually started.
-
getItem
- Returns:
- Metadata for the chosen item specified in the feed.
-
getPosition
public int getPosition()- Returns:
- Ordinal position of the related video that has been chosen.
-