C# Class CSharpRTMP.Common.MediaFile

Inheritance: IDisposable
Datei anzeigen Open project: langhuihui/csharprtmp

Public Properties

Property Type Description
Br N2HBinaryReader
Bw H2NBinaryWriter
DataStream Stream
FileName string
FilePath string
UseCount int

Public Methods

Method Description
CacheMediaFile ( string path, FileAccess fileAccess = FileAccess.Read ) : MediaFile
Dispose ( ) : void
Initialize ( string path, FileMode fileMode = FileMode.Open, FileAccess fileAccess = FileAccess.Read ) : MediaFile
MediaFile ( string path ) : System
PeekBuffer ( byte pBuffer, int count ) : bool
PeekByte ( byte &b ) : bool
PeekUInt16 ( ushort &word ) : bool
PeekUInt64 ( ulong &result ) : bool
ReadBuffer ( byte pBuffer, int offset, int count ) : bool
ReadInt24 ( int &result, bool networkOrder = true ) : bool
ReadUInt8 ( byte &result ) : bool
SeekAhead ( long count ) : bool
SeekBegin ( ) : bool
SeekBehind ( long count ) : bool
SeekTo ( long p ) : bool
WriteFlvHead ( ) : void
WriteFlvTag ( MemoryStream pData, int timestamp, bool isAudio ) : void

Method Details

CacheMediaFile() public static method

public static CacheMediaFile ( string path, FileAccess fileAccess = FileAccess.Read ) : MediaFile
path string
fileAccess FileAccess
return MediaFile

Dispose() public method

public Dispose ( ) : void
return void

Initialize() public static method

public static Initialize ( string path, FileMode fileMode = FileMode.Open, FileAccess fileAccess = FileAccess.Read ) : MediaFile
path string
fileMode FileMode
fileAccess FileAccess
return MediaFile

MediaFile() public method

public MediaFile ( string path ) : System
path string
return System

PeekBuffer() public method

public PeekBuffer ( byte pBuffer, int count ) : bool
pBuffer byte
count int
return bool

PeekByte() public method

public PeekByte ( byte &b ) : bool
b byte
return bool

PeekUInt16() public method

public PeekUInt16 ( ushort &word ) : bool
word ushort
return bool

PeekUInt64() public method

public PeekUInt64 ( ulong &result ) : bool
result ulong
return bool

ReadBuffer() public method

public ReadBuffer ( byte pBuffer, int offset, int count ) : bool
pBuffer byte
offset int
count int
return bool

ReadInt24() public method

public ReadInt24 ( int &result, bool networkOrder = true ) : bool
result int
networkOrder bool
return bool

ReadUInt8() public method

public ReadUInt8 ( byte &result ) : bool
result byte
return bool

SeekAhead() public method

public SeekAhead ( long count ) : bool
count long
return bool

SeekBegin() public method

public SeekBegin ( ) : bool
return bool

SeekBehind() public method

public SeekBehind ( long count ) : bool
count long
return bool

SeekTo() public method

public SeekTo ( long p ) : bool
p long
return bool

WriteFlvHead() public method

public WriteFlvHead ( ) : void
return void

WriteFlvTag() public method

public WriteFlvTag ( MemoryStream pData, int timestamp, bool isAudio ) : void
pData System.IO.MemoryStream
timestamp int
isAudio bool
return void

Property Details

Br public_oe property

public N2HBinaryReader,CSharpRTMP.Common Br
return N2HBinaryReader

Bw public_oe property

public H2NBinaryWriter,CSharpRTMP.Common Bw
return H2NBinaryWriter

DataStream public_oe property

public Stream DataStream
return Stream

FileName public_oe property

public string FileName
return string

FilePath public_oe property

public string FilePath
return string

UseCount public_oe property

public int UseCount
return int