-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mariano Converti
committed
Jan 5, 2016
1 parent
63fc31d
commit 9b9cb2a
Showing
11 changed files
with
254 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...soft/windowsazure/services/media/implementation/templates/widevine/AllowedTrackTypes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package com.microsoft.windowsazure.services.media.implementation.templates.widevine; | ||
|
||
public enum AllowedTrackTypes { | ||
SD_ONLY, | ||
SD_HD | ||
SD_ONLY, SD_HD | ||
} |
105 changes: 71 additions & 34 deletions
105
...rosoft/windowsazure/services/media/implementation/templates/widevine/ContentKeySpecs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,76 @@ | ||
package com.microsoft.windowsazure.services.media.implementation.templates.widevine; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class ContentKeySpecs { | ||
/** | ||
* A track type name. | ||
*/ | ||
@JsonProperty | ||
public String track_type; | ||
|
||
/** | ||
* Unique identifier for the key. | ||
*/ | ||
@JsonProperty | ||
public String key_id; | ||
|
||
/** | ||
* Defines client robustness requirements for playback. | ||
* 1 - Software-based whitebox crypto is required. | ||
* 2 - Software crypto and an obfuscated decoder is required. | ||
* 3 - The key material and crypto operations must be performed | ||
* within a hardware backed trusted execution environment. | ||
* 4 - The crypto and decoding of content must be performed within | ||
* a hardware backed trusted execution environment. | ||
* 5 - The crypto, decoding and all handling of the media (compressed | ||
* and uncompressed) must be handled within a hardware backed trusted | ||
* execution environment. | ||
*/ | ||
@JsonProperty | ||
public Integer security_level; | ||
|
||
/** | ||
* Indicates whether HDCP V1 or V2 is required or not. | ||
*/ | ||
@JsonProperty | ||
public RequiredOutputProtection required_output_protection; | ||
public class ContentKeySpecs { | ||
/** | ||
* A track type name. | ||
*/ | ||
@JsonProperty("track_type") | ||
private String trackType; | ||
|
||
/** | ||
* Unique identifier for the key. | ||
*/ | ||
@JsonProperty("key_id") | ||
private String keyId; | ||
|
||
/** | ||
* Defines client robustness requirements for playback. 1 - Software-based | ||
* whitebox crypto is required. 2 - Software crypto and an obfuscated | ||
* decoder is required. 3 - The key material and crypto operations must be | ||
* performed within a hardware backed trusted execution environment. 4 - The | ||
* crypto and decoding of content must be performed within a hardware backed | ||
* trusted execution environment. 5 - The crypto, decoding and all handling | ||
* of the media (compressed and uncompressed) must be handled within a | ||
* hardware backed trusted execution environment. | ||
*/ | ||
@JsonProperty("security_level") | ||
private Integer securityLevel; | ||
|
||
/** | ||
* Indicates whether HDCP V1 or V2 is required or not. | ||
*/ | ||
@JsonProperty("required_output_protection") | ||
private RequiredOutputProtection requiredOutputProtection; | ||
|
||
@JsonProperty("track_type") | ||
public String getTrackType() { | ||
return trackType; | ||
} | ||
|
||
@JsonProperty("track_type") | ||
public void setTrackType(String trackType) { | ||
this.trackType = trackType; | ||
} | ||
|
||
@JsonProperty("key_id") | ||
public String getKeyId() { | ||
return keyId; | ||
} | ||
|
||
@JsonProperty("key_id") | ||
public void setKeyId(String keyId) { | ||
this.keyId = keyId; | ||
} | ||
|
||
@JsonProperty("security_level") | ||
public Integer getSecurityLevel() { | ||
return securityLevel; | ||
} | ||
|
||
@JsonProperty("security_level") | ||
public void setSecurityLevel(Integer securityLevel) { | ||
this.securityLevel = securityLevel; | ||
} | ||
|
||
@JsonProperty("required_output_protection") | ||
public RequiredOutputProtection getRequiredOutputProtection() { | ||
return requiredOutputProtection; | ||
} | ||
|
||
@JsonProperty("required_output_protection") | ||
public void setRequiredOutputProtection(RequiredOutputProtection requiredOutputProtection) { | ||
this.requiredOutputProtection = requiredOutputProtection; | ||
} | ||
} |
4 changes: 1 addition & 3 deletions
4
...ava/com/microsoft/windowsazure/services/media/implementation/templates/widevine/Hdcp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package com.microsoft.windowsazure.services.media.implementation.templates.widevine; | ||
|
||
public enum Hdcp { | ||
HDCP_NONE, | ||
HDCP_V1, | ||
HDCP_V2 | ||
HDCP_NONE, HDCP_V1, HDCP_V2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.