Browse Source

Make sure to disable presentation when screensharing and vice verca.

pull/71/head
Simon Eisenmann 11 years ago
parent
commit
ab35fa8f50
  1. 9
      static/js/directives/presentation.js
  2. 7
      static/js/directives/screenshare.js

9
static/js/directives/presentation.js

@ -245,7 +245,6 @@ define(['jquery', 'underscore', 'text!partials/presentation.html'], function($, @@ -245,7 +245,6 @@ define(['jquery', 'underscore', 'text!partials/presentation.html'], function($,
// Updater function to bring in new calls.
var updater = function(event, state, currentcall) {
console.log("XXX updater", event, state, currentcall);
switch (state) {
case "completed":
case "connected":
@ -429,6 +428,14 @@ define(['jquery', 'underscore', 'text!partials/presentation.html'], function($, @@ -429,6 +428,14 @@ define(['jquery', 'underscore', 'text!partials/presentation.html'], function($,
$($window).on("resize", function() {
$scope.$emit("redrawPdf");
});
$scope.$watch("layout.main", function(newval, oldval) {
console.log("presentation main", newval);
if (newval && newval !== "presentation") {
$scope.hidePresentation();
}
});
}];
return {

7
static/js/directives/screenshare.js

@ -290,6 +290,13 @@ define(['jquery', 'underscore', 'text!partials/screenshare.html', 'text!partials @@ -290,6 +290,13 @@ define(['jquery', 'underscore', 'text!partials/screenshare.html', 'text!partials
}
});
$scope.$watch("layout.main", function(newval, oldval) {
console.log("screenshare main", newval);
if (newval && newval !== "screenshare") {
$scope.stopScreenshare();
}
});
}];
var compile = function(tElement, tAttr) {

Loading…
Cancel
Save