Java Code Examples for com.google.android.exoplayer.drm.StreamingDrmSessionManager#getPropertyString()

The following examples show how to use com.google.android.exoplayer.drm.StreamingDrmSessionManager#getPropertyString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DashRendererBuilder.java    From AndroidTvDemo with Apache License 2.0 4 votes vote down vote up
private static int getWidevineSecurityLevel(StreamingDrmSessionManager sessionManager) {
  String securityLevelProperty = sessionManager.getPropertyString("securityLevel");
  return securityLevelProperty.equals("L1") ? SECURITY_LEVEL_1 : securityLevelProperty
      .equals("L3") ? SECURITY_LEVEL_3 : SECURITY_LEVEL_UNKNOWN;
}
 
Example 2
Source File: DashRendererBuilder.java    From ShareBox with Apache License 2.0 4 votes vote down vote up
private static int getWidevineSecurityLevel(StreamingDrmSessionManager sessionManager) {
  String securityLevelProperty = sessionManager.getPropertyString("securityLevel");
  return securityLevelProperty.equals("L1") ? SECURITY_LEVEL_1 : securityLevelProperty
      .equals("L3") ? SECURITY_LEVEL_3 : SECURITY_LEVEL_UNKNOWN;
}
 
Example 3
Source File: DashRendererBuilder.java    From talk-android with MIT License 4 votes vote down vote up
private static int getWidevineSecurityLevel(StreamingDrmSessionManager sessionManager) {
  String securityLevelProperty = sessionManager.getPropertyString("securityLevel");
  return securityLevelProperty.equals("L1") ? SECURITY_LEVEL_1 : securityLevelProperty
      .equals("L3") ? SECURITY_LEVEL_3 : SECURITY_LEVEL_UNKNOWN;
}
 
Example 4
Source File: DashRendererBuilder.java    From WliveTV with Apache License 2.0 4 votes vote down vote up
private static int getWidevineSecurityLevel(StreamingDrmSessionManager sessionManager) {
  String securityLevelProperty = sessionManager.getPropertyString("securityLevel");
  return securityLevelProperty.equals("L1") ? SECURITY_LEVEL_1 : securityLevelProperty
      .equals("L3") ? SECURITY_LEVEL_3 : SECURITY_LEVEL_UNKNOWN;
}
 
Example 5
Source File: DashRendererBuilder.java    From Exoplayer_VLC with Apache License 2.0 4 votes vote down vote up
private static int getWidevineSecurityLevel(StreamingDrmSessionManager sessionManager) {
  String securityLevelProperty = sessionManager.getPropertyString("securityLevel");
  return securityLevelProperty.equals("L1") ? SECURITY_LEVEL_1 : securityLevelProperty
      .equals("L3") ? SECURITY_LEVEL_3 : SECURITY_LEVEL_UNKNOWN;
}
 
Example 6
Source File: DashVodRendererBuilder.java    From Mobilyzer with Apache License 2.0 4 votes vote down vote up
private static int getWidevineSecurityLevel(StreamingDrmSessionManager sessionManager) {
  String securityLevelProperty = sessionManager.getPropertyString("securityLevel");
  return securityLevelProperty.equals("L1") ? SECURITY_LEVEL_1 : securityLevelProperty
      .equals("L3") ? SECURITY_LEVEL_3 : SECURITY_LEVEL_UNKNOWN;
}
 
Example 7
Source File: DashRendererBuilder.java    From androidtv-sample-inputs with Apache License 2.0 4 votes vote down vote up
private static int getWidevineSecurityLevel(StreamingDrmSessionManager sessionManager) {
    String securityLevelProperty = sessionManager.getPropertyString("securityLevel");
    return securityLevelProperty.equals("L1") ? SECURITY_LEVEL_1 : securityLevelProperty
            .equals("L3") ? SECURITY_LEVEL_3 : SECURITY_LEVEL_UNKNOWN;
}
 
Example 8
Source File: DashRendererBuilder.java    From google-media-framework-android with Apache License 2.0 4 votes vote down vote up
private static int getWidevineSecurityLevel(StreamingDrmSessionManager sessionManager) {
  String securityLevelProperty = sessionManager.getPropertyString("securityLevel");
  return securityLevelProperty.equals("L1") ? SECURITY_LEVEL_1 : securityLevelProperty
      .equals("L3") ? SECURITY_LEVEL_3 : SECURITY_LEVEL_UNKNOWN;
}