|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectjlibrtpDemos.XmlPacketPlayer
public class XmlPacketPlayer
Field Summary | |
---|---|
(package private) int |
dataCount
|
(package private) org.jdom.Document |
document
|
(package private) long |
origStartTime
|
(package private) int |
pktCount
|
(package private) RTPSession |
rtpSession
|
(package private) long |
startTime
|
Constructor Summary | |
---|---|
XmlPacketPlayer(int rtpPortNum,
int rtcpPortNum,
java.lang.String address)
Constructor |
Method Summary | |
---|---|
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. |
static void |
main(java.lang.String[] args)
|
void |
parseDocument(java.lang.String filename)
|
void |
parseRTPpacket(org.jdom.Element elm)
|
void |
parseSessionInfo(org.jdom.Element elm)
|
void |
preSendSleep(long targetTime)
This should be |
void |
receiveData(DataFrame frame,
Participant participant)
Dummy methods for the RTPAppinterface |
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
org.jdom.Document document
long origStartTime
long startTime
int dataCount
int pktCount
Constructor Detail |
---|
public XmlPacketPlayer(int rtpPortNum, int rtcpPortNum, java.lang.String address)
Method Detail |
---|
public void parseDocument(java.lang.String filename)
public void parseSessionInfo(org.jdom.Element elm)
public void parseRTPpacket(org.jdom.Element elm)
public void preSendSleep(long targetTime)
targetTime
- the real UNIX timestamp of the packetpublic void receiveData(DataFrame frame, Participant participant)
receiveData
in interface RTPAppIntf
frame
- the frame containing the dataparticipant
- 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 static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |