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

feat(strophe.jingle): use modern constraints for create{Offer,Answer}

When using the Promises API, modern constraints are used, so adapt to it and use
the modern versions.
master
Saúl Ibarra Corretgé преди 6 години
родител
ревизия
c2f269884a
променени са 1 файла, в които са добавени 2 реда и са изтрити 6 реда
  1. 2
    6
      modules/xmpp/strophe.jingle.js

+ 2
- 6
modules/xmpp/strophe.jingle.js Целия файл

@@ -41,12 +41,8 @@ class JingleConnectionPlugin extends ConnectionPlugin {
41 41
         this.jvbIceConfig = iceConfig.jvb;
42 42
         this.p2pIceConfig = iceConfig.p2p;
43 43
         this.mediaConstraints = {
44
-            mandatory: {
45
-                'OfferToReceiveAudio': true,
46
-                'OfferToReceiveVideo': true
47
-            }
48
-
49
-            // MozDontOfferDataChannel: true when this is firefox
44
+            offerToReceiveAudio: true,
45
+            offerToReceiveVideo: true
50 46
         };
51 47
     }
52 48
 

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