C# Class DynamicEncryptionWithDRM.Program

Afficher le fichier Open project: Azure-Samples/media-services-dotnet-dynamic-encryption-with-drm

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AddOpenAuthorizationPolicy ( IContentKey contentKey ) : void
contentKey IContentKey
Résultat void

AddTokenRestrictedAuthorizationPolicy() public static méthode

public static AddTokenRestrictedAuthorizationPolicy ( IContentKey contentKey ) : string
contentKey IContentKey
Résultat string

CreateAssetDeliveryPolicy() public static méthode

public static CreateAssetDeliveryPolicy ( IAsset asset, IContentKey key ) : void
asset IAsset
key IContentKey
Résultat void

CreateCommonTypeContentKey() public static méthode

public static CreateCommonTypeContentKey ( IAsset asset ) : IContentKey
asset IAsset
Résultat IContentKey

EncodeToAdaptiveBitrateMP4Set() public static méthode

public static EncodeToAdaptiveBitrateMP4Set ( IAsset inputAsset ) : IAsset
inputAsset IAsset
Résultat IAsset

GetStreamingOriginLocator() public static méthode

Gets the streaming origin locator.
public static GetStreamingOriginLocator ( IAsset asset ) : string
asset IAsset
Résultat string

UploadFileAndCreateAsset() public static méthode

public static UploadFileAndCreateAsset ( string singleFilePath ) : IAsset
singleFilePath string
Résultat IAsset