Fixes local video when simulcast is disabled.
This commit is contained in:
parent
71c08450bb
commit
0b2a3e19e7
|
@ -828,7 +828,10 @@ function Simulcast() {
|
||||||
};
|
};
|
||||||
|
|
||||||
Simulcast.prototype.getLocalVideoStream = function() {
|
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) {
|
$(document).bind('simulcastlayerschanged', function (event, endpointSimulcastLayers) {
|
||||||
|
|
Loading…
Reference in New Issue