C# Class HCS_Encoder.UploadManager

Cludgy way of transporting HTTP Chunk Streaming files about.
Inheritance: IOutputHandler
Mostra file Open project: i-e-b/HLS---Smooth-Encoder

Protected Properties

Property Type Description
plw PlaylistWriter
src string
waitingChunks Queue

Public Methods

Method Description
Close ( ) : void
ConsumeChunk ( int ChunkIndex, int StreamIndex, string FilePath, double chunkDuration ) : void
GetStreamMappingType ( ) : StreamMapping
Prepare ( List Packages ) : void
UploadManager ( EncoderConfiguration Config ) : System

Create a new upload manager to transport HCS fragments and write a playlist in the configured location. The playlist will be re-written every time a fragment is successfully uploaded.

Protected Methods

Method Description
OnUploadComplete ( object sender, ChunkUploadedEventArgs e ) : void
UploadAction ( object o ) : void

Private Methods

Method Description
SendChunk ( ChunkDetail chunk ) : void

Method Details

Close() public method

public Close ( ) : void
return void

ConsumeChunk() public method

public ConsumeChunk ( int ChunkIndex, int StreamIndex, string FilePath, double chunkDuration ) : void
ChunkIndex int
StreamIndex int
FilePath string
chunkDuration double
return void

GetStreamMappingType() public method

public GetStreamMappingType ( ) : StreamMapping
return StreamMapping

OnUploadComplete() protected method

protected OnUploadComplete ( object sender, ChunkUploadedEventArgs e ) : void
sender object
e ChunkUploadedEventArgs
return void

Prepare() public method

public Prepare ( List Packages ) : void
Packages List
return void

UploadAction() protected method

protected UploadAction ( object o ) : void
o object
return void

UploadManager() public method

Create a new upload manager to transport HCS fragments and write a playlist in the configured location. The playlist will be re-written every time a fragment is successfully uploaded.
public UploadManager ( EncoderConfiguration Config ) : System
Config EncoderConfiguration Job configuration.
return System

Property Details

plw protected_oe property

protected PlaylistWriter,HCS_Encoder plw
return PlaylistWriter

src protected_oe property

protected string src
return string

waitingChunks protected_oe property

protected Queue waitingChunks
return Queue