public class StreamMediaPacket extends StreamPacket implements java.io.Serializable
channelNumber, packetType, recorderId, seqNo, STREAM_CONTROL, STREAM_MEDIA, streamId
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getMediaSamples() |
long |
getTime() |
void |
setMediaSamples(byte[] mediaSamples) |
void |
setTime(long time) |
getChannelNumber, getPacketType, getRecorderId, getSeqNo, getStreamId, setChannelNumber, setPacketType, setRecorderId, setSeqNo, setStreamId
public StreamMediaPacket(int channelNumber, int streamId, byte[] mediaSamples, long time)
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 sampleCopyright ©, 2005-2019 Prolancer Pty Ltd, Sydney Australia.