C# 클래스 HCS_Encoder.Outputs.OutputRouter

Handles chunk output, based on encoder configuration.
This is tightly coupled to the individual uploaders on purpose.
파일 보기 프로젝트 열기: i-e-b/HLS---Smooth-Encoder

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