Package com.jwplayer.pub.api.events
Class VisualQualityEvent
java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.VisualQualityEvent
An object containing information about quality switching of a video stream.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The Quality Switching mode.static enum
The reason why a quality switch occurred. -
Constructor Summary
ConstructorsConstructorDescriptionVisualQualityEvent
(JWPlayer player, VisualQualityEvent.Mode mode, VisualQualityEvent.Reason reason, QualityLevel qualityLevel) -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
Returns the type of quality selection that has been enabled on the player.Returns information about the quality level.Returns the reason why the quality was changed.
-
Constructor Details
-
VisualQualityEvent
public VisualQualityEvent(JWPlayer player, VisualQualityEvent.Mode mode, VisualQualityEvent.Reason reason, QualityLevel qualityLevel)
-
-
Method Details
-
getMode
Returns the type of quality selection that has been enabled on the player. Can be MODE_AUTO if the auto quality level is enabled, or MODE_MANUAL if a static quality is set. -
getReason
Returns the reason why the quality was changed. One of:- Reason.INITIAL - The initial quality level, picked by the JW Player.
- Reason.AUTO - An automatic quality change occurred.
- Reason.API - The user chose a static quality after playback began, or an API was used to set it.
- Reason.UNKNOWN - The reason is unknown.
The reason may not always be available for HLS.
-
getQualityLevel
Returns information about the quality level.
-