Package com.wowza.wms.amf
Class AMFObj
- Object
- 
- com.wowza.wms.amf.AMFObj
 
- 
 public class AMFObj extends ObjectAMFObj: class that stores the state of channel between the client and the server. 
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanAMFDEBUGHEADERSIZEstatic booleanWOWZDEBUGHEADERSIZE
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChunk(byte[] buffer, int offset, int len)Add a chunk to the chunk listvoidclearByteContainer()Clear the byte containerlonggetAbsTimecode()Get the absolute time codeintgetByteContainerLevel()Fake container for processinglonggetChunkCounter()java.util.List<AMFObjChunk>getChunks()Get the chunks that make up this packetintgetId()Get channel idintgetObjectEncoding()longgetSentAbsTimecode()intgetSize()Get packet sizeintgetSrc()Get stream id (0 if not stream data)longgetTimecode()Get timecode (milliseconds) sometimes relativeintgetType()Get content type IVHost.CONTENTTYPE_*longincAbsTimecode(long absTimecode)Increment the absolution timecodevoidincByteContainerLevel(int byteContainerLevel)Fake container for processingbooleanisByteContainerEmpty()Fake container for processingbooleanisByteContainerFull()Fake container for processingbooleanisLastSentAbsTimecode()booleanisLongTimecode()Get is a 32 bit timecodebooleanisNew()Is this a new packet.booleanisObjectEncodingAMF0()booleanisObjectEncodingAMF3()longsetAbsTimecodeLong(long absTimecode)Set the absolute timecodelongsetAbsTimecodeShort(long absTimecode)Set the absolute timecodevoidsetByteContainerLevel(int byteContainerLevel)Fake container for processingvoidsetChunkCounter(long chunkCounter)voidsetId(int id)Set channel idvoidsetLastSentAbsTimecode(boolean isLastSentAbsTimecode)voidsetLongTimecode(boolean isLongTimecode)Set is a 32 bit timecodevoidsetNew(boolean isNew)Set is new packetvoidsetObjectEncoding(int objectEncoding)voidsetSentAbsTimecode(long sentAbsTimecode)voidsetSize(int size)Set packet sizevoidsetSrc(int src)Set stream id (0 if not stream data)voidsetTimecode(long timecode)Set timecode (milliseconds) sometimes relativevoidsetType(int type)Set content type IVHost.CONTENTTYPE_*StringtoString()Return object as formatted string
 
- 
- 
- 
Field Detail- 
AMFDEBUGHEADERSIZEpublic static final boolean AMFDEBUGHEADERSIZE - See Also:
- Constant Field Values
 
 - 
WOWZDEBUGHEADERSIZEpublic static final boolean WOWZDEBUGHEADERSIZE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getChunkspublic java.util.List<AMFObjChunk> getChunks() Get the chunks that make up this packet- Returns:
- chunks that make up this packet
 
 - 
addChunkpublic void addChunk(byte[] buffer, int offset, int len)Add a chunk to the chunk list- Parameters:
- buffer- buffer
- offset- offset
- len- length
 
 - 
getIdpublic int getId() Get channel id- Returns:
- channel id
 
 - 
setIdpublic void setId(int id) Set channel id- Parameters:
- id- channel id
 
 - 
getSizepublic int getSize() Get packet size- Returns:
- packet size
 
 - 
setSizepublic void setSize(int size) Set packet size- Parameters:
- size- packet size
 
 - 
getTypepublic int getType() Get content type IVHost.CONTENTTYPE_*- Returns:
- content type
 
 - 
setTypepublic void setType(int type) Set content type IVHost.CONTENTTYPE_*- Parameters:
- type- content type
 
 - 
getSrcpublic int getSrc() Get stream id (0 if not stream data)- Returns:
- stream id
 
 - 
setSrcpublic void setSrc(int src) Set stream id (0 if not stream data)- Parameters:
- src- stream id
 
 - 
toStringpublic String toString() Return object as formatted string- Overrides:
- toStringin class- Object
 
 - 
getTimecodepublic long getTimecode() Get timecode (milliseconds) sometimes relative- Returns:
- timecode (milliseconds)
 
 - 
setTimecodepublic void setTimecode(long timecode) Set timecode (milliseconds) sometimes relative- Parameters:
- timecode- timecode (milliseconds)
 
 - 
isNewpublic boolean isNew() Is this a new packet. If new entire packet header needs to be sent- Returns:
- is new packet
 
 - 
setNewpublic void setNew(boolean isNew) Set is new packet- Parameters:
- isNew- is new packet
 
 - 
getAbsTimecodepublic long getAbsTimecode() Get the absolute time code- Returns:
- absolute timecode
 
 - 
setAbsTimecodeLongpublic long setAbsTimecodeLong(long absTimecode) Set the absolute timecode- Parameters:
- absTimecode- absolute timecode
- Returns:
- absolute timecode
 
 - 
setAbsTimecodeShortpublic long setAbsTimecodeShort(long absTimecode) Set the absolute timecode- Parameters:
- absTimecode-
- Returns:
- absolute timecode
 
 - 
incAbsTimecodepublic long incAbsTimecode(long absTimecode) Increment the absolution timecode- Parameters:
- absTimecode- absolute timecode
- Returns:
- absolute timecode
 
 - 
getByteContainerLevelpublic int getByteContainerLevel() Fake container for processing- Returns:
- current container level
 
 - 
clearByteContainerpublic void clearByteContainer() Clear the byte container
 - 
setByteContainerLevelpublic void setByteContainerLevel(int byteContainerLevel) Fake container for processing- Parameters:
- byteContainerLevel- current container level
 
 - 
incByteContainerLevelpublic void incByteContainerLevel(int byteContainerLevel) Fake container for processing- Parameters:
- byteContainerLevel- current container level
 
 - 
isByteContainerEmptypublic boolean isByteContainerEmpty() Fake container for processing- Returns:
- is container full
 
 - 
isByteContainerFullpublic boolean isByteContainerFull() Fake container for processing- Returns:
- is container full
 
 - 
isLongTimecodepublic boolean isLongTimecode() Get is a 32 bit timecode- Returns:
- true if 32 bit timecode
 
 - 
setLongTimecodepublic void setLongTimecode(boolean isLongTimecode) Set is a 32 bit timecode- Parameters:
- isLongTimecode- is a 32 bit timecode
 
 - 
isLastSentAbsTimecodepublic boolean isLastSentAbsTimecode() 
 - 
setLastSentAbsTimecodepublic void setLastSentAbsTimecode(boolean isLastSentAbsTimecode) 
 - 
isObjectEncodingAMF3public boolean isObjectEncodingAMF3() 
 - 
isObjectEncodingAMF0public boolean isObjectEncodingAMF0() 
 - 
setObjectEncodingpublic void setObjectEncoding(int objectEncoding) 
 - 
getObjectEncodingpublic int getObjectEncoding() 
 - 
getChunkCounterpublic long getChunkCounter() 
 - 
setChunkCounterpublic void setChunkCounter(long chunkCounter) 
 - 
getSentAbsTimecodepublic long getSentAbsTimecode() 
 - 
setSentAbsTimecodepublic void setSentAbsTimecode(long sentAbsTimecode) 
 
- 
 
-