Class VisualQualityEvent
- java.lang.Object
-
- com.longtailvideo.jwplayer.events.VisualQualityEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVisualQualityEvent.ModeThe Quality Switching mode.static classVisualQualityEvent.ReasonThe reason why a quality switch occurred.
-
Constructor Summary
Constructors Constructor Description VisualQualityEvent(VisualQualityEvent.Mode mode, VisualQualityEvent.Reason reason, QualityLevel qualityLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VisualQualityEvent.ModegetMode()Returns the type of quality selection that has been enabled on the player.QualityLevelgetQualityLevel()Returns information about the quality level.VisualQualityEvent.ReasongetReason()Returns the reason why the quality was changed.
-
-
-
Constructor Detail
-
VisualQualityEvent
public VisualQualityEvent(VisualQualityEvent.Mode mode, VisualQualityEvent.Reason reason, @NonNull QualityLevel qualityLevel)
-
-
Method Detail
-
getMode
@NonNull public VisualQualityEvent.Mode 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
@NonNull public VisualQualityEvent.Reason 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
@NonNull public QualityLevel getQualityLevel()
Returns information about the quality level.
-
-