Browse Source

Make sure to reset renderer to default renderer when finished.

pull/26/head
Simon Eisenmann 11 years ago
parent
commit
755b0b386f
  1. 7
      static/js/directives/audiovideo.js

7
static/js/directives/audiovideo.js

@ -41,6 +41,9 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ @@ -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/ @@ -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/ @@ -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.

Loading…
Cancel
Save