C# Class HCS_Encoder.Outputs.SmoothStream.ChunkTransformer

Inheritance: IOutputHandler
Afficher le fichier Open project: i-e-b/HLS---Smooth-Encoder Class Usage Examples

Private Properties

Свойство Type Description
ConnectAndPushHeaders void
PreparePointCreator IisPointCreator
PreparePublishingPoint void
PrepareTransformer void
PushStream void
SanitiseStream void
Transform void

Méthodes publiques

Méthode Description
ChunkTransformer ( EncoderConfiguration Configuration, bool pubPointCreationIsOptional ) : System

Create a new chunk transformer. Will try to create a new IIS Live Smooth Streaming publishing point matching the configuration settings. Will try both WebDAV and FTP. If neither are not correctly enabled on the destination server, the point must already exist.

Close ( ) : void

Shut down the streams and close connections.

ConsumeChunk ( int ChunkIndex, int StreamIndex, string FilePath, double chunkDuration ) : void
GetStreamMappingType ( ) : StreamMapping
OnFileConsumed ( object sender, System.IO.FileEventArgs args ) : void
Prepare ( List Packages ) : void

Méthodes protégées

Méthode Description
UploadAction ( object o ) : void

Private Methods

Méthode Description
ConnectAndPushHeaders ( MediaStream stream, FileRoot TargetMp4fFile ) : void

Used once per connection, this opens a long-life HTTP stream and pushes the very basic MP4 parts needed to get IIS working.

PreparePointCreator ( string dest_root ) : IisPointCreator
PreparePublishingPoint ( EncoderConfiguration Configuration ) : void
PrepareTransformer ( EncoderConfiguration Configuration, List Packages ) : void

Read the supplied configuration and prepare the transformer for work.

PushStream ( MediaStream stream, FileRoot TargetMp4fFile ) : void

Pushes a set of frames to IIS. Will trigger a connect if needed.

SanitiseStream ( MediaStream stream ) : void

Remove any frames with zero length. Zero length frames kill the live stream.

Transform ( string SourceFile, int StreamIndex, int ChunkIndex ) : void

Transform an MPEG-TS file into a MP4f file. This all needs to be stripped out and each stream needs it's own IisSmoothPush connection.

Method Details

ChunkTransformer() public méthode

Create a new chunk transformer. Will try to create a new IIS Live Smooth Streaming publishing point matching the configuration settings. Will try both WebDAV and FTP. If neither are not correctly enabled on the destination server, the point must already exist.
public ChunkTransformer ( EncoderConfiguration Configuration, bool pubPointCreationIsOptional ) : System
Configuration EncoderConfiguration
pubPointCreationIsOptional bool
Résultat System

Close() public méthode

Shut down the streams and close connections.
public Close ( ) : void
Résultat void

ConsumeChunk() public méthode

public ConsumeChunk ( int ChunkIndex, int StreamIndex, string FilePath, double chunkDuration ) : void
ChunkIndex int
StreamIndex int
FilePath string
chunkDuration double
Résultat void

GetStreamMappingType() public méthode

public GetStreamMappingType ( ) : StreamMapping
Résultat StreamMapping

OnFileConsumed() public méthode

public OnFileConsumed ( object sender, System.IO.FileEventArgs args ) : void
sender object
args System.IO.FileEventArgs
Résultat void

Prepare() public méthode

public Prepare ( List Packages ) : void
Packages List
Résultat void

UploadAction() protected méthode

protected UploadAction ( object o ) : void
o object
Résultat void