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

Fixes local video when simulcast is disabled.

j8
George Politis 11 лет назад
Родитель
Сommit
0b2a3e19e7
1 измененных файлов: 4 добавлений и 1 удалений
  1. 4
    1
      simulcast.js

+ 4
- 1
simulcast.js Просмотреть файл

828
     };
828
     };
829
 
829
 
830
     Simulcast.prototype.getLocalVideoStream = function() {
830
     Simulcast.prototype.getLocalVideoStream = function() {
831
-        return displayedLocalVideoStream;
831
+        return (displayedLocalVideoStream)
832
+            ? displayedLocalVideoStream
833
+            // in case we have no simulcast at all, i.e. we didn't perform the GUM
834
+            : connection.jingle.localVideo;
832
     };
835
     };
833
 
836
 
834
     $(document).bind('simulcastlayerschanged', function (event, endpointSimulcastLayers) {
837
     $(document).bind('simulcastlayerschanged', function (event, endpointSimulcastLayers) {

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