C# Class EncodeLiveStreamWithAmsClear.Program

Afficher le fichier Open project: Azure-Samples/media-services-dotnet-encode-live-stream-with-ams-clear

Méthodes publiques

Méthode Description
Cleanup ( IChannel channel ) : void

Clean up resources associated with the channel.

CreateAndConfigureAsset ( ) : IAsset

Create an asset and configure asset delivery policies.

CreateAndStartChannel ( ) : IChannel
CreateAndStartProgram ( IChannel channel, IAsset asset ) : IProgram

Create a Program on the Channel. You can have multiple Programs that overlap or are sequential; however each Program must have a unique name within your Media Services account.

CreateLocatorForAsset ( IAsset asset, System.TimeSpan ArchiveWindowLength ) : ILocator

Create locators in order to be able to publish and stream the video.

StartStopAdsSlates ( IChannel channel ) : void

Perform operations on slates.

TrackOperation ( IOperation operation, string description ) : string

Track long running operations.

Private Methods

Méthode Description
CreateChannelEncoding ( ) : Microsoft.WindowsAzure.MediaServices.Client.ChannelEncoding

Create channel encoding, used in channel creation options.

CreateChannelInput ( ) : ChannelInput

Create channel input, used in channel creation options.

CreateChannelPreview ( ) : Microsoft.WindowsAzure.MediaServices.Client.ChannelPreview

Create channel preview, used in channel creation options.

IsCompleted ( IOperation operation, string &entityId ) : bool

Checks if the operation has been completed. If the operation succeeded, the created entity Id is returned in the out parameter.

Log ( string action, string entityId = null, string operationId = null ) : void
Main ( string args ) : void

Method Details

Cleanup() public static méthode

Clean up resources associated with the channel.
public static Cleanup ( IChannel channel ) : void
channel IChannel
Résultat void

CreateAndConfigureAsset() public static méthode

Create an asset and configure asset delivery policies.
public static CreateAndConfigureAsset ( ) : IAsset
Résultat IAsset

CreateAndStartChannel() public static méthode

public static CreateAndStartChannel ( ) : IChannel
Résultat IChannel

CreateAndStartProgram() public static méthode

Create a Program on the Channel. You can have multiple Programs that overlap or are sequential; however each Program must have a unique name within your Media Services account.
public static CreateAndStartProgram ( IChannel channel, IAsset asset ) : IProgram
channel IChannel
asset IAsset
Résultat IProgram

CreateLocatorForAsset() public static méthode

Create locators in order to be able to publish and stream the video.
public static CreateLocatorForAsset ( IAsset asset, System.TimeSpan ArchiveWindowLength ) : ILocator
asset IAsset
ArchiveWindowLength System.TimeSpan
Résultat ILocator

StartStopAdsSlates() public static méthode

Perform operations on slates.
public static StartStopAdsSlates ( IChannel channel ) : void
channel IChannel
Résultat void

TrackOperation() public static méthode

Track long running operations.
public static TrackOperation ( IOperation operation, string description ) : string
operation IOperation
description string
Résultat string