Просмотр исходного кода

Merge pull request #433 from ibc/edge-gum

edge: Ensure "unsupported" is triggered for now (until fully supported)
dev1
Saúl Ibarra Corretgé 8 лет назад
Родитель
Сommit
81973f151b
1 измененных файлов: 9 добавлений и 0 удалений
  1. 9
    0
      modules/RTC/RTCUtils.js

+ 9
- 0
modules/RTC/RTCUtils.js Просмотреть файл

@@ -864,6 +864,15 @@ class RTCUtils extends Listenable {
864 864
                     };
865 865
                 }
866 866
             } else if (RTCBrowserType.isEdge()) {
867
+                // TODO: Remove when EDGE is fully supported. For now ensure
868
+                // that, if EDGE is detected, it's just unsupported.
869
+                if (RTCBrowserType.isEdge()) {
870
+                    rejectWithWebRTCNotSupported(
871
+                        'Microsoft EDGE not yet supported', reject);
872
+
873
+                    return;
874
+                }
875
+
867 876
                 // TODO: Uncomment when done. For now use the Edge native
868 877
                 // RTCPeerConnection.
869 878
                 // this.peerconnection = ortcRTCPeerConnection;

Загрузка…
Отмена
Сохранить