Package com.castlabs.android.player

# Interface ExtendedTrackSelector.PlayerInfoProvider

Enclosing class:
  `ExtendedTrackSelector`

public static interface ExtendedTrackSelector.PlayerInfoProvider
Provides information about the player.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getCurrentPeriodIndexInCurrentWindow()`
  Returns the current period index in the current window.
  `KeyStatus`
  `getDrmKeyStatus(VideoTrackQuality videoTrackQuality, com.google.android.exoplayer2.Format videoInputFormat)`
  Returns the DRM key status for the given video track quality and video input format.

- ## Method Details

  - ### getCurrentPeriodIndexInCurrentWindow

    int getCurrentPeriodIndexInCurrentWindow()
    Returns the current period index in the current window.
    Returns:
      The current period index.

  - ### getDrmKeyStatus

    @NonNull KeyStatus getDrmKeyStatus(@NonNull VideoTrackQuality videoTrackQuality, @Nullable com.google.android.exoplayer2.Format videoInputFormat)
    Returns the DRM key status for the given video track quality and video input format.
    Parameters:
      `videoTrackQuality` - The video track quality.
      `videoInputFormat` - The video input format.
    Returns:
      The DRM key status.