Package com.castlabs.android.utils
Class SelectorUtils
java.lang.Object
com.castlabs.android.utils.SelectorUtils
Selector utilities facilitating common selection options in both
the player and the downloader
- Since:
- 4.1.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isHdPlaybackEnabled
(int hdContentFilter, DrmConfiguration drmConfiguration) Returns true if this controllers filter setting allows HD content playback.
-
Method Details
-
isHdPlaybackEnabled
public static boolean isHdPlaybackEnabled(int hdContentFilter, @Nullable DrmConfiguration drmConfiguration) Returns true if this controllers filter setting allows HD content playback.- Parameters:
hdContentFilter
- Bit field consisting of the values ofSdkConsts.ALLOW_HD_CLEAR_CONTENT
,SdkConsts.ALLOW_HD_DRM_ROOT_OF_TRUST
,SdkConsts.ALLOW_HD_DRM_SECURE_MEDIA_PATH
,SdkConsts.ALLOW_HD_NEVER
andSdkConsts.ALLOW_HD_DRM_SOFTWARE
.drmConfiguration
- DRM configuration ornull
- Returns:
- True if general HD content playback is enabled
-