Update jingle.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7817 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-03-29 23:11:10 +00:00
committed by derek
parent 5ecd3f1cc6
commit c78e379502
2 changed files with 22 additions and 20 deletions

Binary file not shown.

View File

@ -92,6 +92,8 @@ public class IncomingCall implements JingleSessionListener, ChatRoomClosingListe
* Appends the JingleRoom to the ChatRoom. * Appends the JingleRoom to the ChatRoom.
*/ */
private void showCallAnsweredState() { private void showCallAnsweredState() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a");
notificationUI.setTitle("Voice chat started on " + formatter.format(new Date())); notificationUI.setTitle("Voice chat started on " + formatter.format(new Date()));
notificationUI.showAlert(false); notificationUI.showAlert(false);
@ -114,6 +116,8 @@ public class IncomingCall implements JingleSessionListener, ChatRoomClosingListe
// Notify state change // Notify state change
SparkManager.getChatManager().notifySparkTabHandlers(chatRoom); SparkManager.getChatManager().notifySparkTabHandlers(chatRoom);
} }
});
}
/** /**
* Removes the JingleRoom from the ChatRoom. * Removes the JingleRoom from the ChatRoom.
@ -267,13 +271,11 @@ public class IncomingCall implements JingleSessionListener, ChatRoomClosingListe
SparkManager.getChatManager().getChatContainer().getChatFrame().toFront(); SparkManager.getChatManager().getChatContainer().getChatFrame().toFront();
notifyRoom(); notifyRoom();
} }
showCallAnsweredState();
} }
public void sessionEstablished(PayloadType payloadType, TransportCandidate transportCandidate, TransportCandidate transportCandidate1, JingleSession jingleSession) { public void sessionEstablished(PayloadType payloadType, TransportCandidate transportCandidate, TransportCandidate transportCandidate1, JingleSession jingleSession) {
showCallAnsweredState();
} }
public void sessionDeclined(String string, JingleSession jingleSession) { public void sessionDeclined(String string, JingleSession jingleSession) {