소스 검색

Fixes local video when simulcast is disabled.

master
George Politis 11 년 전
부모
커밋
0b2a3e19e7
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    1
      simulcast.js

+ 4
- 1
simulcast.js 파일 보기

@@ -828,7 +828,10 @@ function Simulcast() {
828 828
     };
829 829
 
830 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 837
     $(document).bind('simulcastlayerschanged', function (event, endpointSimulcastLayers) {

Loading…
취소
저장