com.arunta.base.audio.streaming
Class StreamControlPacket

java.lang.Object
  extended by com.arunta.base.audio.streaming.StreamPacket
      extended by com.arunta.base.audio.streaming.StreamControlPacket
All Implemented Interfaces:
java.io.Serializable

public class StreamControlPacket
extends StreamPacket
implements java.io.Serializable

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.

See Also:
Serialized Form

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

ADD_STREAM

public static final int ADD_STREAM
Identifies start of new stream.

See Also:
Constant Field Values

CHANGE_STREAM

public static final int CHANGE_STREAM
Identifies change of media format in an existing stream.

See Also:
Constant Field Values

REMOVE_STREAM

public static final int REMOVE_STREAM
Identifies that a stream stops (ends).

See Also:
Constant Field Values
Constructor Detail

StreamControlPacket

public 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.

Parameters:
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.

StreamControlPacket

public StreamControlPacket(int channelNumber,
                           int streamId)
Creates an end of stream control packet for the stream with the specified ID on the specified channel.

Parameters:
channelNumber - The number of the channel that this packet belongs to.
streamId - The ID of the stream that this packet pertains to.
Method Detail

setStreamAction

public void setStreamAction(int streamAction)

getStreamAction

public int getStreamAction()

getCodeName

public java.lang.String getCodeName()

setCodecName

public void setCodecName(java.lang.String codecName)


Copyright ©, 2005-2012 Prolancer Pty Ltd, Sydney Australia.