Package com.jwplayer.pub.api.events
Class LevelsEvent
java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.LevelsEvent
Payload that accompanies the onLevels() event.
-
Constructor Summary
ConstructorsConstructorDescriptionLevelsEvent
(JWPlayer player, List<QualityLevel> levels, int currentQualityIndex) -
Method Summary
-
Constructor Details
-
LevelsEvent
-
-
Method Details
-
getLevels
- Returns:
- The full list of qualities, including the new additions. Includes the same information as getQualityLevels().
-
getCurrentQualityIndex
public int getCurrentQualityIndex()- Returns:
- The quality currently loaded
-