C# Class HCS_Encoder.Outputs.OutputRouter

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

Private Properties

Свойство Type Description
Prepare_HCS void
Prepare_IIS void
Prepare_Test void
SelectedHandler_FileConsumed void

Méthodes publiques

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

Méthodes protégées

Méthode Description
ChunkAction ( object o ) : void

Called by thread pool in NewChunkAvailable()

Private Methods

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

Called by thread pool in NewChunkAvailable()
protected ChunkAction ( object o ) : void
o object
Résultat void

Close() public méthode

Close this output path and clean up any connections
public Close ( ) : void
Résultat void

GetStreamMappingType() public méthode

Mapping type of the connected output.
public GetStreamMappingType ( ) : StreamMapping
Résultat StreamMapping

NewChunkAvailable() public méthode

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
Résultat void

OutputRouter() public méthode

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

Prepare() public méthode

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

SendOutput() public méthode

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
Résultat void