diff --git a/static/js/directives/audiovideo.js b/static/js/directives/audiovideo.js index 6c5a0ad2..b7a71cf5 100644 --- a/static/js/directives/audiovideo.js +++ b/static/js/directives/audiovideo.js @@ -41,6 +41,9 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ $scope.hasUsermedia = false; $scope.isActive = false; + + $scope.rendererName = $scope.defaultRendererName = "onepeople"; + //console.log("audiovideo", localVideo, miniVideo); $scope.addRemoteStream = function(stream, currentcall) { @@ -204,6 +207,7 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ scope.$destroy(); delete peers[k]; }); + $scope.rendererName = $scope.defaultRendererName; }); @@ -239,9 +243,6 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ $(scope.card).on("doubletap dblclick", _.debounce(scope.toggleFullscreen, 100, true)); - scope.rendererName = "onepeople"; - scope.renderersAvailable = videoLayout.layouts(); - var rendererName = null; var getRendererName = function() { // Return name of current renderer.