C# Class MP4_Mangler.FragmentBoxes.MediaFragmentHandler

Handles the creation of MP4 boxes to store movie fragments.
Datei anzeigen Open project: i-e-b/HLS---Smooth-Encoder

Protected Properties

Property Type Description
FragmentInfo moof
MovieData mdat

Public Methods

Method Description
AddFrame ( UInt32 TrackID, GenericMediaFrame frame ) : void

Add frames to this fragment. GOPs should be closed inside a fragment (no external refs)

FormatData ( ) : byte[]

Returns the current fragment's storage (header+frame) data.

MdatData ( ) : byte[]

Returns the current fragment's frame data.

MediaFragmentHandler ( uint SequenceNumber, long OffsetTimestamp ) : System
MoofData ( ) : byte[]

Returns the current fragment's header data.

Method Details

AddFrame() public method

Add frames to this fragment. GOPs should be closed inside a fragment (no external refs)
public AddFrame ( UInt32 TrackID, GenericMediaFrame frame ) : void
TrackID System.UInt32 Track ID (should be associated with 'moov' headers)
frame GenericMediaFrame Frame data
return void

FormatData() public method

Returns the current fragment's storage (header+frame) data.
public FormatData ( ) : byte[]
return byte[]

MdatData() public method

Returns the current fragment's frame data.
public MdatData ( ) : byte[]
return byte[]

MediaFragmentHandler() public method

public MediaFragmentHandler ( uint SequenceNumber, long OffsetTimestamp ) : System
SequenceNumber uint
OffsetTimestamp long
return System

MoofData() public method

Returns the current fragment's header data.
public MoofData ( ) : byte[]
return byte[]

Property Details

FragmentInfo protected_oe property

protected moof,MP4_Mangler.FragmentBoxes FragmentInfo
return moof

MovieData protected_oe property

protected mdat,MP4_Mangler.FragmentBoxes MovieData
return mdat