Fixes local video when simulcast is disabled.

This commit is contained in:
George Politis 2014-10-06 23:05:45 +02:00
parent 71c08450bb
commit 0b2a3e19e7
1 changed files with 4 additions and 1 deletions

View File

@ -828,7 +828,10 @@ function Simulcast() {
};
Simulcast.prototype.getLocalVideoStream = function() {
return displayedLocalVideoStream;
return (displayedLocalVideoStream)
? displayedLocalVideoStream
// in case we have no simulcast at all, i.e. we didn't perform the GUM
: connection.jingle.localVideo;
};
$(document).bind('simulcastlayerschanged', function (event, endpointSimulcastLayers) {