public class StreamControlPacket extends StreamPacket implements java.io.Serializable
This packet identifies a stream operation (add, change, remove) that the remote client should perform. In addition, it carries information on the format of the media samples that are part of the stream.
Modifier and Type | Field and Description |
---|---|
static int |
ADD_STREAM
Identifies start of new stream.
|
static int |
CHANGE_STREAM
Identifies change of media format in an existing stream.
|
static int |
REMOVE_STREAM
Identifies that a stream stops (ends).
|
channelNumber, packetType, recorderId, seqNo, STREAM_CONTROL, STREAM_MEDIA, streamId
Constructor and Description |
---|
StreamControlPacket(int channelNumber,
int streamId)
Creates an end of stream control packet for the stream with the
specified ID on the specified channel.
|
StreamControlPacket(int channelNumber,
int streamId,
java.lang.String codecName)
Creates a start of stream control packet for the stream with the
specified stream ID and media format on the specified channel.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCodeName() |
int |
getStreamAction() |
void |
setCodecName(java.lang.String codecName) |
void |
setStreamAction(int streamAction) |
getChannelNumber, getPacketType, getRecorderId, getSeqNo, getStreamId, setChannelNumber, setPacketType, setRecorderId, setSeqNo, setStreamId
public static final int ADD_STREAM
public static final int CHANGE_STREAM
public static final int REMOVE_STREAM
public StreamControlPacket(int channelNumber, int streamId, java.lang.String codecName)
channelNumber
- The number of the channel that this packet belongs to.streamId
- The ID of the stream that this packet pertains to.codecName
- The name of the codec used to encode the samples.public StreamControlPacket(int channelNumber, int streamId)
channelNumber
- The number of the channel that this packet belongs to.streamId
- The ID of the stream that this packet pertains to.Copyright ©, 2005-2012 Prolancer Pty Ltd, Sydney Australia.