C# 클래스 HCS_Encoder.Outputs.SmoothStream.ChunkTransformer

상속: IOutputHandler
파일 보기 프로젝트 열기: i-e-b/HLS---Smooth-Encoder 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConnectAndPushHeaders void
PreparePointCreator IisPointCreator
PreparePublishingPoint void
PrepareTransformer void
PushStream void
SanitiseStream void
Transform void

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
UploadAction ( object o ) : void

비공개 메소드들

메소드 설명
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.

메소드 상세

ChunkTransformer() 공개 메소드

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
리턴 System

Close() 공개 메소드

Shut down the streams and close connections.
public Close ( ) : void
리턴 void

ConsumeChunk() 공개 메소드

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

GetStreamMappingType() 공개 메소드

public GetStreamMappingType ( ) : StreamMapping
리턴 StreamMapping

OnFileConsumed() 공개 메소드

public OnFileConsumed ( object sender, System.IO.FileEventArgs args ) : void
sender object
args System.IO.FileEventArgs
리턴 void

Prepare() 공개 메소드

public Prepare ( List Packages ) : void
Packages List
리턴 void

UploadAction() 보호된 메소드

protected UploadAction ( object o ) : void
o object
리턴 void