|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arunta.base.audio.streaming.StreamPacket
public class StreamPacket
Base class for audio stream packets sent to remote clients.
Each packet which is part of an audio stream has a sequence number which identifies the position of the packet in the stream of packet that are sent to the remote client.
In addition, if the remote client is receiving multiple streams, each packet carries a stream identifier.
Field Summary | |
---|---|
protected int |
channelNumber
|
protected int |
packetType
|
protected int |
recorderId
|
protected int |
seqNo
|
static int |
STREAM_CONTROL
Identifier for stream control packet. |
static int |
STREAM_MEDIA
Identifier for media packets. |
protected int |
streamId
|
Constructor Summary | |
---|---|
StreamPacket(int packetType)
Creates a packet which is of the specified type. |
Method Summary | |
---|---|
int |
getChannelNumber()
|
int |
getPacketType()
|
int |
getRecorderId()
|
int |
getSeqNo()
|
int |
getStreamId()
|
void |
setChannelNumber(int channelNumber)
|
void |
setPacketType(int packetType)
|
void |
setRecorderId(int recorderId)
|
void |
setSeqNo(int seqNo)
|
void |
setStreamId(int streamId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STREAM_CONTROL
public static final int STREAM_MEDIA
protected int packetType
protected int seqNo
protected int recorderId
protected int channelNumber
protected int streamId
Constructor Detail |
---|
public StreamPacket(int packetType)
packetType
- One of STREAM_CONTROL
or STREAM_MEDIA
.Method Detail |
---|
public int getPacketType()
STREAM_CONTROL
or STREAM_MEDIA
public void setPacketType(int packetType)
packetType
- One of STREAM_CONTROL
or STREAM_MEDIA
.public int getSeqNo()
public void setSeqNo(int seqNo)
public int getRecorderId()
public void setRecorderId(int recorderId)
public int getChannelNumber()
public void setChannelNumber(int channelNumber)
public void setStreamId(int streamId)
public int getStreamId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |