Package com.castlabs.sdk.debug.view
Class PlayerStatsFragment
java.lang.Object
androidx.fragment.app.Fragment
com.castlabs.sdk.debug.view.AbstractSingleListFragment<com.castlabs.sdk.debug.view.PlayerStatsFragment.Metric>
com.castlabs.sdk.debug.view.PlayerStatsFragment
- All Implemented Interfaces:
ComponentCallbacks
,View.OnCreateContextMenuListener
,androidx.activity.result.ActivityResultCaller
,androidx.lifecycle.HasDefaultViewModelProviderFactory
,androidx.lifecycle.LifecycleOwner
,androidx.lifecycle.ViewModelStoreOwner
,androidx.savedstate.SavedStateRegistryOwner
,ExtendedPlayerViewProvider.Listener
public class PlayerStatsFragment
extends AbstractSingleListFragment<com.castlabs.sdk.debug.view.PlayerStatsFragment.Metric>
Fragment that displays real-time statistics and metrics about the video playback session.
This includes QoE (Quality of Experience) scores, buffering statistics, bitrate information,
and other playback-related metrics.
Note that activities using this Fragment must implement ExtendedPlayerViewProvider
.
-
Nested Class Summary
Nested classes/interfaces inherited from class androidx.fragment.app.Fragment
androidx.fragment.app.Fragment.InstantiationException, androidx.fragment.app.Fragment.SavedState
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The number of rendition switches metric namestatic final String
The average bitrate metric namestatic final String
The average bitrate switch magnitude metric namestatic final String
The current buffer size metric namestatic final String
The current buffer time metric namestatic final String
The buffering time metric namestatic final String
The last buffering time metric namestatic final String
The QoE (Quality of Experience) score metric namestatic final String
The rebuffer percentage metric namestatic final String
The bitrate score metric namestatic final String
The magnitude score metric namestatic final String
The rebuffer score metric namestatic final String
The switch score metric namestatic final String
The seeking time metric namestatic final String
The start time metric namestatic final String
The player state metric namestatic final String
The rebuffer events metric namestatic final String
The video codec metric namestatic final String
The codec initialization time metric nameFields inherited from class androidx.fragment.app.Fragment
mPreviousWho
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.castlabs.sdk.debug.view.AbstractSingleListFragment
onCreateView, onReload
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelCreationExtras, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onSaveInstanceState, onViewCreated, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
-
Field Details
-
QOE_SCORE
The QoE (Quality of Experience) score metric name- See Also:
-
ABR_SWITCHES
The number of rendition switches metric name- See Also:
-
BUFFER_TIME
The current buffer time metric name- See Also:
-
BUFFER_SIZE
The current buffer size metric name- See Also:
-
LAST_BUFFER_TIME
The last buffering time metric name- See Also:
-
SEEKING_TIME
The seeking time metric name- See Also:
-
BUFFERING_TIME
The buffering time metric name- See Also:
-
STATE
The player state metric name- See Also:
-
VIDEO_CODEC
The video codec metric name- See Also:
-
VIDEO_CODEC_INIT
The codec initialization time metric name- See Also:
-
UNDERRUNS
The rebuffer events metric name- See Also:
-
START_TIME
The start time metric name- See Also:
-
REBUFFER_PERCENTAGE
The rebuffer percentage metric name- See Also:
-
AVG_BITRATE
The average bitrate metric name- See Also:
-
AVG_BITRATE_SWITCH_MAGNITUDE
The average bitrate switch magnitude metric name- See Also:
-
SCORE_BITRATE
The bitrate score metric name- See Also:
-
SCORE_REBUFFER
The rebuffer score metric name- See Also:
-
SCORE_SWITCH
The switch score metric name- See Also:
-
SCORE_MAGNITUDE
The magnitude score metric name- See Also:
-
-
Constructor Details
-
PlayerStatsFragment
public PlayerStatsFragment()Default constructor
-
-
Method Details
-
onStart
public void onStart()- Overrides:
onStart
in classAbstractSingleListFragment<com.castlabs.sdk.debug.view.PlayerStatsFragment.Metric>
-
onStop
public void onStop()- Overrides:
onStop
in classandroidx.fragment.app.Fragment
-