Package com.castlabs.sdk.debug.metric
Class SelectedQualityMetric
java.lang.Object
com.castlabs.sdk.debug.metric.Metric
com.castlabs.sdk.debug.metric.SelectedQualityMetric
- All Implemented Interfaces:
TrackSelectionListener
Provides a Metric of the currently selected Video quality.
- Since:
- 4.2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.castlabs.sdk.debug.metric.Metric
Metric.Plotter
-
Constructor Summary
ConstructorDescriptionSelectedQualityMetric
(int color, com.github.mikephil.charting.components.YAxis.AxisDependency axisDependency) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAudioTrackChanged
(AudioTrack audioTrack) void
onSubtitleTrackChanged
(SubtitleTrack subtitleTrack) void
onVideoQualitySelectionChanged
(VideoTrackQuality videoTrackQuality, int reason, String switchDescription, long bufferedDurationUs, long bitrateEstimate) void
onVideoTrackChanged
(VideoTrack videoTrack) Methods inherited from class com.castlabs.sdk.debug.metric.Metric
attach, detach, getDataSet
-
Constructor Details
-
SelectedQualityMetric
public SelectedQualityMetric(int color, com.github.mikephil.charting.components.YAxis.AxisDependency axisDependency)
-
-
Method Details
-
onVideoQualitySelectionChanged
public void onVideoQualitySelectionChanged(@NonNull VideoTrackQuality videoTrackQuality, int reason, @Nullable String switchDescription, long bufferedDurationUs, long bitrateEstimate) - Specified by:
onVideoQualitySelectionChanged
in interfaceTrackSelectionListener
-
onVideoTrackChanged
- Specified by:
onVideoTrackChanged
in interfaceTrackSelectionListener
-
onAudioTrackChanged
- Specified by:
onAudioTrackChanged
in interfaceTrackSelectionListener
-
onSubtitleTrackChanged
- Specified by:
onSubtitleTrackChanged
in interfaceTrackSelectionListener
-