C# Class EncodeLiveStreamWithAmsClear.Program

Show file Open project: Azure-Samples/media-services-dotnet-encode-live-stream-with-ams-clear

Public Methods

Method 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

Method 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 method

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

CreateAndConfigureAsset() public static method

Create an asset and configure asset delivery policies.
public static CreateAndConfigureAsset ( ) : IAsset
return IAsset

CreateAndStartChannel() public static method

public static CreateAndStartChannel ( ) : IChannel
return IChannel

CreateAndStartProgram() public static method

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
return IProgram

CreateLocatorForAsset() public static method

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
return ILocator

StartStopAdsSlates() public static method

Perform operations on slates.
public static StartStopAdsSlates ( IChannel channel ) : void
channel IChannel
return void

TrackOperation() public static method

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