com.flazr.rtmp
Class RtmpHeader

java.lang.Object
  extended by com.flazr.rtmp.RtmpHeader

public class RtmpHeader
extends Object


Nested Class Summary
static class RtmpHeader.Type
           
 
Field Summary
static int MAX_CHANNEL_ID
           
static int MAX_ENCODED_SIZE
           
static int MAX_NORMAL_HEADER_TIME
           
 
Constructor Summary
RtmpHeader(org.jboss.netty.buffer.ChannelBuffer in, RtmpHeader[] incompleteHeaders)
           
RtmpHeader(MessageType messageType)
           
RtmpHeader(MessageType messageType, int time, int size)
           
 
Method Summary
 void encode(org.jboss.netty.buffer.ChannelBuffer out)
           
 int getChannelId()
           
 int getDeltaTime()
           
 RtmpHeader.Type getHeaderType()
           
 MessageType getMessageType()
           
 int getSize()
           
 int getStreamId()
           
 int getTime()
           
 byte[] getTinyHeader()
           
 boolean isAggregate()
           
 boolean isAudio()
           
 boolean isChunkSize()
           
 boolean isControl()
           
 boolean isLarge()
           
 boolean isMedia()
           
 boolean isMetadata()
           
 boolean isVideo()
           
 void setChannelId(int channelId)
           
 void setDeltaTime(int deltaTime)
           
 void setHeaderType(RtmpHeader.Type headerType)
           
 void setMessageType(MessageType messageType)
           
 void setSize(int size)
           
 void setStreamId(int streamId)
           
 void setTime(int time)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_CHANNEL_ID

public static final int MAX_CHANNEL_ID
See Also:
Constant Field Values

MAX_NORMAL_HEADER_TIME

public static final int MAX_NORMAL_HEADER_TIME
See Also:
Constant Field Values

MAX_ENCODED_SIZE

public static final int MAX_ENCODED_SIZE
See Also:
Constant Field Values
Constructor Detail

RtmpHeader

public RtmpHeader(org.jboss.netty.buffer.ChannelBuffer in,
                  RtmpHeader[] incompleteHeaders)

RtmpHeader

public RtmpHeader(MessageType messageType,
                  int time,
                  int size)

RtmpHeader

public RtmpHeader(MessageType messageType)
Method Detail

isMedia

public boolean isMedia()

isMetadata

public boolean isMetadata()

isAggregate

public boolean isAggregate()

isAudio

public boolean isAudio()

isVideo

public boolean isVideo()

isLarge

public boolean isLarge()

isControl

public boolean isControl()

isChunkSize

public boolean isChunkSize()

getHeaderType

public RtmpHeader.Type getHeaderType()

setHeaderType

public void setHeaderType(RtmpHeader.Type headerType)

getChannelId

public int getChannelId()

setChannelId

public void setChannelId(int channelId)

getTime

public int getTime()

setTime

public void setTime(int time)

getDeltaTime

public int getDeltaTime()

setDeltaTime

public void setDeltaTime(int deltaTime)

setSize

public void setSize(int size)

getSize

public int getSize()

getMessageType

public MessageType getMessageType()

setMessageType

public void setMessageType(MessageType messageType)

getStreamId

public int getStreamId()

setStreamId

public void setStreamId(int streamId)

encode

public void encode(org.jboss.netty.buffer.ChannelBuffer out)

getTinyHeader

public byte[] getTinyHeader()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.