C# Class hdsdump.F4F

Inheritance: IDisposable
Mostra file Open project: WendyH/hdsdump Class Usage Examples

Public Properties

Property Type Description
AAC_HeaderWritten bool
AVC_HeaderWritten bool
audio bool
auth string
baseTS long
baseUrl string
bootstrapUrl string
currentTS long
discontinuity int
duration int
fileCount int
filesize int
fixWindow int
format string
fragCount int
fragNum int
fragUrl string
fragUrlTemplate string
fragsPerSeg int
fromTimestamp long
lastFrag int
live bool
manifesttype int
metadata bool
negTS long
pAudioTagLen long
pAudioTagPos long
pVideoTagLen long
pVideoTagPos long
pipeHandle Microsoft.Win32.SafeHandles.SafeFileHandle
pipeStream System.IO.FileStream
pipeWriter System.IO.BinaryWriter
play bool
prevAAC_Header bool
prevAVC_Header bool
prevAudioTS long
prevTagSize int
prevVideoTS long
quality string
redir2Proc bool
segNum int
start int
tagHeaderLen int
threads int
usePipe bool
video bool

Public Methods

Method Description
CheckLastTSExistingFile ( ) : void
Dispose ( ) : void
DownloadFragments ( string manifestUrl ) : void
F4F ( ) : System
GetFragmentUrl ( int segNum, int fragNum ) : string
GetSegmentFromFragment ( int fragN ) : int
NormalizePath ( string path ) : string
ValidateXML ( string sXML ) : string

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AttrExist ( XmlNode node, string name ) : bool
ByteBlockCopy ( byte &bytesData1, long pos1, byte &bytesData2, long pos2, long len ) : void
CheckRequestRerutnCode ( int statusCode, string statusMsg ) : void
ConvertHexStringToByteArray ( string hexString ) : byte[]
DecodeFragment ( byte &frag, bool notWrite = false ) : void
DecodeFrom64 ( string encodedData ) : string
ExtractBaseUrl ( string dataUrl ) : string
FindFragmentInTabe ( int needle ) : int
GetManifest ( string &manifestUrl ) : XmlElement
GetNodeProperty ( XmlNode node, string propertyName, string defaultvalue = "" ) : string
GetString ( XmlNode xmlObject ) : string
InitDecoder ( ) : void
ParseAfrtBox ( byte &afrt, long pos ) : void
ParseAsrtBox ( byte &asrt, long pos ) : void
ParseBootstrapBox ( byte &bootstrapInfo, long pos ) : void
ParseManifest ( string manifestUrl ) : void
ParseSegAndFragTable ( ) : void
ReadBoxHeader ( byte &bytesData, long &pos, string &boxType, long &boxSize ) : void
ReadByte ( byte &bytesData, long pos ) : byte
ReadInt24 ( byte &bytesData, long pos ) : uint
ReadInt32 ( byte &bytesData, long pos ) : uint
ReadInt64 ( byte &bytesData, long pos ) : long
ReadString ( byte &bytesData, long &pos ) : string
ReadStringBytes ( byte &bytesData, long pos, long len ) : string
StartNewThread2DownloadFragment ( ) : void
ThreadDownload ( ) : void
UpdateBootstrapInfo ( string bootstrapUrl ) : void
VerifyFragment ( byte &frag ) : bool
Write2File ( string outFile, byte &data, FileMode fileMode = FileMode.Append, long pos, long datalen ) : void
WriteBoxSize ( byte &bytesData, long pos, string type, long size ) : void
WriteByte ( byte &bytesData, long pos, byte byteValue ) : void
WriteFlvHeader ( string outFile, bool audio = true, bool video = true ) : void
WriteFlvTimestamp ( byte &frag, long fragPos, long packetTS ) : void
WriteFragment ( byte &data, int fragNum ) : void
WriteInt24 ( byte &bytesData, long pos, long intValue ) : void
WriteInt32 ( byte &bytesData, long pos, long intValue ) : void
WriteMetadata ( string outFile ) : void
isHttpUrl ( string url ) : bool
isRtmpUrl ( string url ) : bool

Method Details

CheckLastTSExistingFile() public method

public CheckLastTSExistingFile ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DownloadFragments() public method

public DownloadFragments ( string manifestUrl ) : void
manifestUrl string
return void

F4F() public method

public F4F ( ) : System
return System

GetFragmentUrl() public method

public GetFragmentUrl ( int segNum, int fragNum ) : string
segNum int
fragNum int
return string

GetSegmentFromFragment() public method

public GetSegmentFromFragment ( int fragN ) : int
fragN int
return int

NormalizePath() public static method

public static NormalizePath ( string path ) : string
path string
return string

ValidateXML() public method

public ValidateXML ( string sXML ) : string
sXML string
return string

Property Details

AAC_HeaderWritten public_oe property

public bool AAC_HeaderWritten
return bool

AVC_HeaderWritten public_oe property

public bool AVC_HeaderWritten
return bool

audio public_oe property

public bool audio
return bool

auth public_oe property

public string auth
return string

baseTS public_oe property

public long baseTS
return long

baseUrl public_oe property

public string baseUrl
return string

bootstrapUrl public_oe property

public string bootstrapUrl
return string

currentTS public_oe property

public long currentTS
return long

discontinuity public_oe property

public int discontinuity
return int

duration public_oe property

public int duration
return int

fileCount public_oe property

public int fileCount
return int

filesize public_oe property

public int filesize
return int

fixWindow public_oe property

public int fixWindow
return int

format public_oe property

public string format
return string

fragCount public_oe property

public int fragCount
return int

fragNum public_oe property

public int fragNum
return int

fragUrl public_oe property

public string fragUrl
return string

fragUrlTemplate public_oe property

public string fragUrlTemplate
return string

fragsPerSeg public_oe property

public int fragsPerSeg
return int

fromTimestamp public_oe property

public long fromTimestamp
return long

lastFrag public_oe property

public int lastFrag
return int

live public_oe property

public bool live
return bool

manifesttype public_oe property

public int manifesttype
return int

metadata public_oe property

public bool metadata
return bool

negTS public_oe property

public long negTS
return long

pAudioTagLen public_oe property

public long pAudioTagLen
return long

pAudioTagPos public_oe property

public long pAudioTagPos
return long

pVideoTagLen public_oe property

public long pVideoTagLen
return long

pVideoTagPos public_oe property

public long pVideoTagPos
return long

pipeHandle public_oe property

public Microsoft.Win32.SafeHandles.SafeFileHandle pipeHandle
return Microsoft.Win32.SafeHandles.SafeFileHandle

pipeStream public_oe property

public FileStream,System.IO pipeStream
return System.IO.FileStream

pipeWriter public_oe property

public BinaryWriter,System.IO pipeWriter
return System.IO.BinaryWriter

play public_oe property

public bool play
return bool

prevAAC_Header public_oe property

public bool prevAAC_Header
return bool

prevAVC_Header public_oe property

public bool prevAVC_Header
return bool

prevAudioTS public_oe property

public long prevAudioTS
return long

prevTagSize public_oe property

public int prevTagSize
return int

prevVideoTS public_oe property

public long prevVideoTS
return long

quality public_oe property

public string quality
return string

redir2Proc public_oe property

public bool redir2Proc
return bool

segNum public_oe property

public int segNum
return int

start public_oe property

public int start
return int

tagHeaderLen public_oe property

public int tagHeaderLen
return int

threads public_oe property

public int threads
return int

usePipe public_oe property

public bool usePipe
return bool

video public_oe property

public bool video
return bool