|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arunta.base.audio.streaming.StreamPacket
com.arunta.base.audio.streaming.StreamControlPacket
public class StreamControlPacket
Stream control packet.
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.
Field Summary | |
---|---|
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). |
Fields inherited from class com.arunta.base.audio.streaming.StreamPacket |
---|
channelNumber, packetType, recorderId, seqNo, STREAM_CONTROL, STREAM_MEDIA, streamId |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
java.lang.String |
getCodeName()
|
int |
getStreamAction()
|
void |
setCodecName(java.lang.String codecName)
|
void |
setStreamAction(int streamAction)
|
Methods inherited from class com.arunta.base.audio.streaming.StreamPacket |
---|
getChannelNumber, getPacketType, getRecorderId, getSeqNo, getStreamId, setChannelNumber, setPacketType, setRecorderId, setSeqNo, setStreamId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ADD_STREAM
public static final int CHANGE_STREAM
public static final int REMOVE_STREAM
Constructor Detail |
---|
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.Method Detail |
---|
public void setStreamAction(int streamAction)
public int getStreamAction()
public java.lang.String getCodeName()
public void setCodecName(java.lang.String codecName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |