|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectjlibrtpDemos.XmlPacketRecorder
public class XmlPacketRecorder
Field Summary | |
---|---|
(package private) int |
dataCount
|
(package private) int |
maxPacketCount
|
(package private) boolean |
noBye
|
(package private) int |
packetCount
|
(package private) int |
pktCount
|
(package private) RTPSession |
rtpSession
|
(package private) org.jdom.Document |
sessionDocument
|
(package private) org.jdom.Element |
sessionElement
|
Constructor Summary | |
---|---|
XmlPacketRecorder(int rtpPortNum,
int rtcpPortNum,
int maxPacketCount)
Constructor |
Method Summary | |
---|---|
void |
APPPktReceived(Participant part,
int subtype,
byte[] name,
byte[] data)
This function is called whenever an Application (APP) packet is received. |
void |
BYEPktReceived(Participant[] relevantParticipants,
java.lang.String reason)
This function is called whenever a Bye (BYE) packet is received. |
void |
createDocument()
Creates the document instance that will hold all other elements. |
int |
frameSize(int payloadType)
The callback method through which the application can specify the number of packets that make up a frame for a given payload type. |
void |
importantEvent(int type,
java.lang.String description)
Other important events that can occur in session -1 SSRC conflict 0 Session is terminating |
static void |
main(java.lang.String[] args)
|
void |
packetReceived(int type,
java.net.InetSocketAddress socket,
java.lang.String description)
This function wil notify you of any packets received, valid or not. |
void |
packetSent(int type,
java.net.InetSocketAddress socket,
java.lang.String description)
This function will notify you of any packets sent from this instance of RTPSession. |
void |
receiveData(DataFrame frame,
Participant part)
RTP |
void |
RRPktReceived(long reporterSsrc,
long[] reporteeSsrc,
int[] lossFraction,
int[] cumulPacketsLost,
long[] extHighSeq,
long[] interArrivalJitter,
long[] lastSRTimeStamp,
long[] delayLastSR)
This function is called whenever a Receiver Report (SR) packet is received and returns unmodified values. |
void |
SDESPktReceived(Participant[] relevantParticipants)
This function is called whenever a Source Description (SDES) packet is received. |
void |
SRPktReceived(long ssrc,
long ntpHighOrder,
long ntpLowOrder,
long rtpTimestamp,
long packetCount,
long octetCount,
long[] reporteeSsrc,
int[] lossFraction,
int[] cumulPacketsLost,
long[] extHighSeq,
long[] interArrivalJitter,
long[] lastSRTimeStamp,
long[] delayLastSR)
RTCP |
void |
userEvent(int type,
Participant[] participant)
The callback method through which the application will receive notifications about user updates, additions and byes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
RTPSession rtpSession
int packetCount
int maxPacketCount
boolean noBye
int dataCount
int pktCount
org.jdom.Document sessionDocument
org.jdom.Element sessionElement
Constructor Detail |
---|
public XmlPacketRecorder(int rtpPortNum, int rtcpPortNum, int maxPacketCount)
Method Detail |
---|
public void packetReceived(int type, java.net.InetSocketAddress socket, java.lang.String description)
DebugAppIntf
packetReceived
in interface DebugAppIntf
type
- , the type of event, see above.socket
- , taken directly from the UDP packetdescription
- , see above.public void packetSent(int type, java.net.InetSocketAddress socket, java.lang.String description)
DebugAppIntf
packetSent
in interface DebugAppIntf
type
- , the type of event, see abovesocket
- , taken directly from the UDP packetdescription
- , see abovepublic void importantEvent(int type, java.lang.String description)
DebugAppIntf
importantEvent
in interface DebugAppIntf
type
- see abovedescription
- , see abovepublic void SRPktReceived(long ssrc, long ntpHighOrder, long ntpLowOrder, long rtpTimestamp, long packetCount, long octetCount, long[] reporteeSsrc, int[] lossFraction, int[] cumulPacketsLost, long[] extHighSeq, long[] interArrivalJitter, long[] lastSRTimeStamp, long[] delayLastSR)
SRPktReceived
in interface RTCPAppIntf
ssrc
- the (SR) SSRC of the senderntpHighOrder
- (SR) NTP high orderntpLowOrder
- (SR) NTP low orderrtpTimestamp
- (SR) RTP timestamp corresponding to the NTP timestamppacketCount
- (SR) Packets sent since start of sessionoctetCount
- (SR) Octets sent since start of sessionreporteeSsrc
- (RR) SSRC of sender the receiver is reporting inlossFraction
- (RR) Loss fraction, see RFC 3550cumulPacketsLost
- (RR) Cumulative number of packets lostextHighSeq
- (RR) Extended highest sequence RTP packet receivedinterArrivalJitter
- (RR) Interarrival jitter, see RFC 3550lastSRTimeStamp
- (RR) RTP timestamp when last SR was receiveddelayLastSR
- (RR) Delay, in RTP, since last SR was receivedpublic void RRPktReceived(long reporterSsrc, long[] reporteeSsrc, int[] lossFraction, int[] cumulPacketsLost, long[] extHighSeq, long[] interArrivalJitter, long[] lastSRTimeStamp, long[] delayLastSR)
RTCPAppIntf
RRPktReceived
in interface RTCPAppIntf
reporterSsrc
- SSRC of the receiver reportingreporteeSsrc
- (RR) SSRC of sender the receiver is reporting inlossFraction
- (RR) Loss fraction, see RFC 3550cumulPacketsLost
- (RR) Cumulative number of packets lostextHighSeq
- (RR) Extended highest sequence RTP packet receivedinterArrivalJitter
- (RR) Interarrival jitter, see RFC 3550lastSRTimeStamp
- (RR) RTP timestamp when last SR was receiveddelayLastSR
- (RR) Delay, in RTP, since last SR was receivedpublic void SDESPktReceived(Participant[] relevantParticipants)
RTCPAppIntf
SDESPktReceived
in interface RTCPAppIntf
relevantParticipants
- participants mentioned in the SDES packetpublic void BYEPktReceived(Participant[] relevantParticipants, java.lang.String reason)
RTCPAppIntf
BYEPktReceived
in interface RTCPAppIntf
relevantParticipants
- participants whose SSRC was in the packetreason
- the reason provided in the packetpublic void APPPktReceived(Participant part, int subtype, byte[] name, byte[] data)
RTCPAppIntf
APPPktReceived
in interface RTCPAppIntf
part
- the participant associated with the SSRCsubtype
- specified in the packetname
- ASCII description of packetdata
- in the packetpublic void receiveData(DataFrame frame, Participant part)
receiveData
in interface RTPAppIntf
frame
- the frame containing the datapart
- the participant from which the data camepublic void userEvent(int type, Participant[] participant)
RTPAppIntf
userEvent
in interface RTPAppIntf
type
- the type of eventparticipant
- the participants in questionpublic int frameSize(int payloadType)
RTPAppIntf
frameSize
in interface RTPAppIntf
payloadType
- the payload type specified in the RTP packet
public void createDocument()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |