com.arunta.base.audio.streaming
Class StreamMediaPacket

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

public class StreamMediaPacket
extends StreamPacket
implements java.io.Serializable

Packet that carries media for a specified stream.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.arunta.base.audio.streaming.StreamPacket
channelNumber, packetType, recorderId, seqNo, STREAM_CONTROL, STREAM_MEDIA, streamId
 
Constructor Summary
StreamMediaPacket(int channelNumber, int streamId, byte[] mediaSamples, long time)
          Creates a packet that carries media samples for the stream with the specified ID on the specified channel.
 
Method Summary
 byte[] getMediaSamples()
           
 long getTime()
           
 void setMediaSamples(byte[] mediaSamples)
           
 void setTime(long time)
           
 
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
 

Constructor Detail

StreamMediaPacket

public StreamMediaPacket(int channelNumber,
                         int streamId,
                         byte[] mediaSamples,
                         long time)
Creates a packet that carries media samples 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 belongs to.
mediaSamples - Set of media samples.
time - The absolute time of the first sample
Method Detail

getMediaSamples

public byte[] getMediaSamples()

setMediaSamples

public void setMediaSamples(byte[] mediaSamples)

getTime

public long getTime()

setTime

public void setTime(long time)


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