C# Class HCS_Encoder.Outputs.OutputRouter

Handles chunk output, based on encoder configuration.
This is tightly coupled to the individual uploaders on purpose.
显示文件 Open project: i-e-b/HLS---Smooth-Encoder

Private Properties

Property Type Description
Prepare_HCS void
Prepare_IIS void
Prepare_Test void
SelectedHandler_FileConsumed void

Public Methods

Method Description
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)'

Protected Methods

Method Description
ChunkAction ( object o ) : void

Called by thread pool in NewChunkAvailable()

Private Methods

Method Description
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.

Method Details

ChunkAction() protected method

Called by thread pool in NewChunkAvailable()
protected ChunkAction ( object o ) : void
o object
return void

Close() public method

Close this output path and clean up any connections
public Close ( ) : void
return void

GetStreamMappingType() public method

Mapping type of the connected output.
public GetStreamMappingType ( ) : StreamMapping
return StreamMapping

NewChunkAvailable() public method

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

OutputRouter() public method

Prepare a new output, with the given configuration.
public OutputRouter ( EncoderConfiguration Configuration ) : System
Configuration EncoderConfiguration
return System

Prepare() public method

Connect the output handler to a set of encoder packages
public Prepare ( List Packages ) : void
Packages List
return void

SendOutput() public method

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