com.arunta.base.audio.streaming
Class StreamMediaPacket
java.lang.Object
com.arunta.base.audio.streaming.StreamPacket
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
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.