mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Continue working on Jingle.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7706 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -77,6 +77,7 @@ public class JinglePlugin implements Plugin, JingleSessionListener, Phone {
|
||||
|
||||
private Map<String, Boolean> jingleFeature = new HashMap<String, Boolean>();
|
||||
|
||||
|
||||
public void initialize() {
|
||||
// Add to PhoneManager
|
||||
PhoneManager.getInstance().addPhone(this);
|
||||
@ -302,7 +303,6 @@ public class JinglePlugin implements Plugin, JingleSessionListener, Phone {
|
||||
}
|
||||
|
||||
public void sessionEstablished(PayloadType payloadType, TransportCandidate transportCandidate, TransportCandidate transportCandidate1, JingleSession jingleSession) {
|
||||
|
||||
}
|
||||
|
||||
public void sessionDeclined(String string, JingleSession jingleSession) {
|
||||
@ -310,10 +310,16 @@ public class JinglePlugin implements Plugin, JingleSessionListener, Phone {
|
||||
}
|
||||
|
||||
public void sessionRedirected(String string, JingleSession jingleSession) {
|
||||
System.out.println(string);
|
||||
}
|
||||
|
||||
public void sessionClosed(String string, JingleSession jingleSession) {
|
||||
if (jingleSession instanceof OutgoingJingleSession) {
|
||||
OutgoingJingleSession session = (OutgoingJingleSession)jingleSession;
|
||||
if (session.getState() instanceof OutgoingJingleSession.Active) {
|
||||
}
|
||||
else if (session.getState() instanceof OutgoingJingleSession.Pending) {
|
||||
}
|
||||
}
|
||||
removeJingleSession(jingleSession);
|
||||
}
|
||||
|
||||
|
||||
@ -215,6 +215,8 @@ public class OutgoingCall extends JPanel implements JingleSessionStateListener {
|
||||
private void showCallEndedState() {
|
||||
final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a");
|
||||
titleLabel.setText("Voice chat ended on " + formatter.format(new Date()));
|
||||
|
||||
|
||||
showAlert(true);
|
||||
cancelButton.setVisible(false);
|
||||
answerButton.setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user