-
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.
Merge pull request #572 from southworkscom/master
Add support for Widevine (DRM) dynamic encryption to Azure Media Services SDK
- Loading branch information
Showing
16 changed files
with
523 additions
and
53 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
.../windowsazure/services/media/implementation/templates/tokenrestriction/ErrorMessages.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.microsoft.windowsazure.services.media.implementation.templates.tokenrestriction; | ||
|
||
public final class ErrorMessages { | ||
|
||
public static final String PRIMARY_VERIFICATIONKEY_AND_OPENIDCONNECTDISCOVERYDOCUMENT_ARE_NULL | ||
= "Both PrimaryVerificationKey and OpenIdConnectDiscoveryDocument are null."; | ||
|
||
public static final String OPENIDDISCOVERYURI_STRING_IS_NULL_OR_EMPTY | ||
= "OpenIdConnectDiscoveryDocument.OpenIdDiscoveryUri string value is null or empty."; | ||
|
||
public static final String OPENIDDISCOVERYURI_STRING_IS_NOT_ABSOLUTE_URI | ||
= "String representation of OpenIdConnectDiscoveryDocument.OpenIdDiscoveryUri is not valid absolute Uri."; | ||
|
||
private ErrorMessages() { | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...vices/media/implementation/templates/tokenrestriction/OpenIdConnectDiscoveryDocument.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.microsoft.windowsazure.services.media.implementation.templates.tokenrestriction; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "OpenIdConnectDiscoveryDocument") | ||
public class OpenIdConnectDiscoveryDocument { | ||
|
||
@XmlElement(name = "OpenIdDiscoveryUri") | ||
private String openIdDiscoveryUri; | ||
|
||
/** | ||
* @return the openIdDiscoveryUri | ||
*/ | ||
public String getOpenIdDiscoveryUri() { | ||
return openIdDiscoveryUri; | ||
} | ||
|
||
/** | ||
* @param openIdDiscoveryUri the openIdDiscoveryUri to set | ||
*/ | ||
public void setOpenIdDiscoveryUri(String openIdDiscoveryUri) { | ||
this.openIdDiscoveryUri = openIdDiscoveryUri; | ||
} | ||
|
||
} |
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
5 changes: 5 additions & 0 deletions
5
...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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.microsoft.windowsazure.services.media.implementation.templates.widevine; | ||
|
||
public enum AllowedTrackTypes { | ||
SD_ONLY, SD_HD | ||
} |
Oops, something went wrong.