--- a/src/com/beem/project/beem/jingle/JingleService.java Thu Oct 08 10:41:57 2009 +0200
+++ b/src/com/beem/project/beem/jingle/JingleService.java Thu Oct 08 13:59:04 2009 +0200
@@ -36,7 +36,7 @@
*/
public JingleService(final XMPPConnection xmppConnection) {
BasicTransportManager bt = new BasicTransportManager();
- //JingleTransportManager tm = new ICETransportManager();
+ // JingleTransportManager tm = new ICETransportManager();
mMediaManagers = new ArrayList<JingleMediaManager>();
mMediaManagers.add(new MicrophoneRTPManager(bt));
@@ -89,13 +89,15 @@
@Override
public void sessionClosed(String reason, JingleSession jingleSession) {
- //System.out.println("Session " + jingleSession.getResponder() + "closedd because " + reason);
+ // System.out.println("Session " + jingleSession.getResponder() +
+ // "closedd because " + reason);
}
@Override
public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {
// TODO Auto-generated method stub
- // System.out.println("Session " + jingleSession.getResponder() + " closed");
+ // System.out.println("Session " + jingleSession.getResponder() +
+ // " closed");
}
@@ -107,16 +109,18 @@
@Override
public void sessionEstablished(PayloadType pt, TransportCandidate remoteCandidate,
TransportCandidate localCandidate, JingleSession jingleSession) {
- //System.out.println("Session established");
- //System.out.println("Je recois sur " + remoteCandidate.getIp() + ":" + remoteCandidate.getPort());
+ // System.out.println("Session established");
+ // System.out.println("Je recois sur " + remoteCandidate.getIp() +
+ // ":" + remoteCandidate.getPort());
// TODO choose the right RTPReceiver depending on the payload type
- //RTPReceiver rtpReceiver = new RTPReceiver(remoteCandidate.getPort());
+ // RTPReceiver rtpReceiver = new
+ // RTPReceiver(remoteCandidate.getPort());
Log.d(TAG, "Session " + jingleSession.getResponder() + "established");
}
@Override
public void sessionMediaReceived(JingleSession jingleSession, String participant) {
- //System.out.println("Session Media received from " + participant);
+ // System.out.println("Session Media received from " + participant);
}
@Override
@@ -140,18 +144,21 @@
@Override
public void sessionClosed(final String reason, final JingleSession jingleSession) {
- // System.out.println("Session " + jingleSession.getResponder() + "closed because " + reason);
+ // System.out.println("Session " + jingleSession.getResponder() +
+ // "closed because " + reason);
}
@Override
public void sessionClosedOnError(final XMPPException e, final JingleSession jingleSession) {
- // System.out.println("Session " + jingleSession.getResponder() + " closed on error");
+ // System.out.println("Session " + jingleSession.getResponder() +
+ // " closed on error");
}
@Override
public void sessionDeclined(final String reason, final JingleSession jingleSession) {
- // System.out.println("Session " + jingleSession.getResponder() + "declined because " + reason);
+ // System.out.println("Session " + jingleSession.getResponder() +
+ // "declined because " + reason);
Log.d(TAG, "Session " + jingleSession.getResponder() + "declined because " + reason);
}
@@ -162,7 +169,8 @@
// String name = localCandidate.getName();
String ip = localCandidate.getIp();
int port = localCandidate.getPort();
- // System.out.println("Session established waiting connection on " + ip + ":" + port);
+ // System.out.println("Session established waiting connection on " +
+ // ip + ":" + port);
RTPTransmitter transm = new PCMTransmitter(ip, port);
@@ -174,7 +182,7 @@
e.printStackTrace();
}
transm.stop();
- // System.out.println("End of transfer");
+ // System.out.println("End of transfer");
}