C# Класс HCS_Encoder.Outputs.OutputRouter

Handles chunk output, based on encoder configuration.
This is tightly coupled to the individual uploaders on purpose.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Prepare_HCS void
Prepare_IIS void
Prepare_Test void
SelectedHandler_FileConsumed void

Открытые методы

Метод Описание
Close ( ) : void

Close this output path and clean up any connections

GetStreamMappingType ( ) : StreamMapping

Mapping type of the connected output.

NewChunkAvailable ( int ChunkIndex, int StreamIndex, double CaptureDuration ) : void

Signal the output to consume the given chunk. Should only be called by the encoder.

OutputRouter ( EncoderConfiguration Configuration ) : System

Prepare a new output, with the given configuration.

Prepare ( List Packages ) : void

Connect the output handler to a set of encoder packages

SendOutput ( int MinimumChunkIndex, int MaximumChunkIndex ) : void

Send any queued outputs inclusively inside the specified range. Queued outputs less than the minimum will be dropped. Setting the maximum to -1 will re-enable output (same as 'EnableOutput = true') and send all queued outputs.

To enable output while clearing all queued outputs, call as 'SendOutput(Job.SegmentNumber, -1)'

Защищенные методы

Метод Описание
ChunkAction ( object o ) : void

Called by thread pool in NewChunkAvailable()

Приватные методы

Метод Описание
Prepare_HCS ( ) : void
Prepare_IIS ( ) : void
Prepare_Test ( ) : void
SelectedHandler_FileConsumed ( object sender, FileEventArgs e ) : void

Clean up the local filesystem after a SUCCESSFUL file transfer.

Описание методов

ChunkAction() защищенный Метод

Called by thread pool in NewChunkAvailable()
protected ChunkAction ( object o ) : void
o object
Результат void

Close() публичный Метод

Close this output path and clean up any connections
public Close ( ) : void
Результат void

GetStreamMappingType() публичный Метод

Mapping type of the connected output.
public GetStreamMappingType ( ) : StreamMapping
Результат StreamMapping

NewChunkAvailable() публичный Метод

Signal the output to consume the given chunk. Should only be called by the encoder.
public NewChunkAvailable ( int ChunkIndex, int StreamIndex, double CaptureDuration ) : void
ChunkIndex int
StreamIndex int
CaptureDuration double
Результат void

OutputRouter() публичный Метод

Prepare a new output, with the given configuration.
public OutputRouter ( EncoderConfiguration Configuration ) : System
Configuration EncoderConfiguration
Результат System

Prepare() публичный Метод

Connect the output handler to a set of encoder packages
public Prepare ( List Packages ) : void
Packages List
Результат void

SendOutput() публичный Метод

Send any queued outputs inclusively inside the specified range. Queued outputs less than the minimum will be dropped. Setting the maximum to -1 will re-enable output (same as 'EnableOutput = true') and send all queued outputs.
To enable output while clearing all queued outputs, call as 'SendOutput(Job.SegmentNumber, -1)'
public SendOutput ( int MinimumChunkIndex, int MaximumChunkIndex ) : void
MinimumChunkIndex int Inclusive minimum chunk to send
MaximumChunkIndex int Inclusive maximum chunk to send
Результат void