public class StreamPacket
extends java.lang.Object
implements java.io.Serializable
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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
StreamPacket(int packetType)
Creates a packet which is of the specified type.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
public StreamPacket(int packetType)
packetType
- One of STREAM_CONTROL
or STREAM_MEDIA
.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()
Copyright ©, 2005-2019 Prolancer Pty Ltd, Sydney Australia.