|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--cnrg.itx.datax.devices.RTPPacketFactory
Class for implementing the factory that creates RTP packets for sending over the network.
| Field Summary | |
private RTPHeader |
header
Attribute for storing the RTP header for this factory. |
private RTPPacket |
packet
Attribute for storing a RTP packet for this factory. |
private short |
sequence
Attribute for storing the previous RTP packet's sequence number. |
| Constructor Summary | |
RTPPacketFactory()
Default constructor for the factory. |
|
| Method Summary | |
byte[] |
createRTPPacket(byte[] data)
Method to create an RTP packet from a data packet. |
RTPPacket |
getRTPPacket(byte[] rtpPacket)
Method to retrieve the RTPPacket object from an RTP packet. |
int |
getSequenceNumber()
Method to get the sequence number |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private RTPHeader header
private RTPPacket packet
private short sequence
| Constructor Detail |
public RTPPacketFactory()
| Method Detail |
public byte[] createRTPPacket(byte[] data)
data - the data to be sent as part of the RTP packetpublic RTPPacket getRTPPacket(byte[] rtpPacket)
rtpPacket - the RTP packet byte array with the headerpublic int getSequenceNumber()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||