bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/media/service.js
2017-06-19 08:57:32 -03:00

35 lines
678 B
JavaScript
Executable File

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