Browse Source

Fixes local video when simulcast is disabled.

master
George Politis 11 years ago
parent
commit
0b2a3e19e7
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      simulcast.js

+ 4
- 1
simulcast.js View File

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) {

Loading…
Cancel
Save