bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/media/service.js
2017-03-21 21:46:41 +00:00

35 lines
687 B
JavaScript
Executable File

import Presentations from '/imports/api/presentations';
import Slides from '/imports/api/slides';
import { isVideoBroadcasting } from '../deskshare/service';
let getPresentationInfo = () => {
let currentPresentation;
currentPresentation = Presentations.findOne({
'presentation.current': true,
});
return {
current_presentation: (currentPresentation != null ? true : false),
};
};
function shouldShowWhiteboard() {
return true;
}
function shouldShowDeskshare() {
return isVideoBroadcasting();
}
function shouldShowOverlay() {
return false;
}
export default {
getPresentationInfo,
shouldShowWhiteboard,
shouldShowDeskshare,
shouldShowOverlay,
};