C# Class DynamicEncryptionWithDRM.Program

Show file Open project: Azure-Samples/media-services-dotnet-dynamic-encryption-with-drm

Public Methods

Method Description
AddOpenAuthorizationPolicy ( IContentKey contentKey ) : void
AddTokenRestrictedAuthorizationPolicy ( IContentKey contentKey ) : string
CreateAssetDeliveryPolicy ( IAsset asset, IContentKey key ) : void
CreateCommonTypeContentKey ( IAsset asset ) : IContentKey
EncodeToAdaptiveBitrateMP4Set ( IAsset inputAsset ) : IAsset
GetStreamingOriginLocator ( IAsset asset ) : string

Gets the streaming origin locator.

UploadFileAndCreateAsset ( string singleFilePath ) : IAsset

Private Methods

Method Description
ConfigurePlayReadyLicenseTemplate ( ) : string
ConfigureWidevineLicenseTemplate ( ) : string
GenerateTokenRequirements ( ) : string
GetRandomBuffer ( int length ) : byte[]
JobStateChanged ( object sender, JobStateChangedEventArgs e ) : void
Main ( string args ) : void

Method Details

AddOpenAuthorizationPolicy() public static method

public static AddOpenAuthorizationPolicy ( IContentKey contentKey ) : void
contentKey IContentKey
return void

AddTokenRestrictedAuthorizationPolicy() public static method

public static AddTokenRestrictedAuthorizationPolicy ( IContentKey contentKey ) : string
contentKey IContentKey
return string

CreateAssetDeliveryPolicy() public static method

public static CreateAssetDeliveryPolicy ( IAsset asset, IContentKey key ) : void
asset IAsset
key IContentKey
return void

CreateCommonTypeContentKey() public static method

public static CreateCommonTypeContentKey ( IAsset asset ) : IContentKey
asset IAsset
return IContentKey

EncodeToAdaptiveBitrateMP4Set() public static method

public static EncodeToAdaptiveBitrateMP4Set ( IAsset inputAsset ) : IAsset
inputAsset IAsset
return IAsset

GetStreamingOriginLocator() public static method

Gets the streaming origin locator.
public static GetStreamingOriginLocator ( IAsset asset ) : string
asset IAsset
return string

UploadFileAndCreateAsset() public static method

public static UploadFileAndCreateAsset ( string singleFilePath ) : IAsset
singleFilePath string
return IAsset