Преглед на файлове

Reverts last commit.

master
Yana Stamcheva преди 11 години
родител
ревизия
613f2bf71f
променени са 2 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 0
    1
      app.js
  2. 2
    2
      libs/strophejingle.bundle.js

+ 0
- 1
app.js Целия файл

34
     connection.connect(jid, document.getElementById('password').value, function (status) {
34
     connection.connect(jid, document.getElementById('password').value, function (status) {
35
         if (status == Strophe.Status.CONNECTED) {
35
         if (status == Strophe.Status.CONNECTED) {
36
             console.log('connected');
36
             console.log('connected');
37
-            connection.jingle.getStunAndTurnCredentials();
38
             if (RTC.browser == 'firefox') {
37
             if (RTC.browser == 'firefox') {
39
                 getUserMediaWithConstraints(['audio']);
38
                 getUserMediaWithConstraints(['audio']);
40
             } else {
39
             } else {

+ 2
- 2
libs/strophejingle.bundle.js Целия файл

571
         // validity have to be fetched before creating the peerconnection
571
         // validity have to be fetched before creating the peerconnection
572
         // TODO: implement refresh via updateIce as described in
572
         // TODO: implement refresh via updateIce as described in
573
         //      https://code.google.com/p/webrtc/issues/detail?id=1650
573
         //      https://code.google.com/p/webrtc/issues/detail?id=1650
574
-        var self = this;
574
+        //var self = this;
575
         this.connection.sendIQ(
575
         this.connection.sendIQ(
576
             $iq({type: 'get', to: this.connection.domain})
576
             $iq({type: 'get', to: this.connection.domain})
577
                 .c('services', {xmlns: 'urn:xmpp:extdisco:1'}).c('service', {host: 'turn.' + this.connection.domain}),
577
                 .c('services', {xmlns: 'urn:xmpp:extdisco:1'}).c('service', {host: 'turn.' + this.connection.domain}),
611
                         break;
611
                         break;
612
                     }
612
                     }
613
                 });
613
                 });
614
-                self.ice_config.iceServers = iceservers;
614
+                this.ice_config.iceServers = iceservers;
615
             },
615
             },
616
             function (err) {
616
             function (err) {
617
                 console.warn('getting turn credentials failed', err);
617
                 console.warn('getting turn credentials failed', err);

Loading…
Отказ
Запис