bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/media/service.js

33 lines
622 B
JavaScript
Executable File

import Presentations from '/imports/api/2.0/presentations';
import { isVideoBroadcasting } from '/imports/ui/components/screenshare/service';
const getPresentationInfo = () => {
const currentPresentation = Presentations.findOne({
current: true,
});
return {
current_presentation: (currentPresentation != null),
};
};
function shouldShowWhiteboard() {
return true;
}
function shouldShowScreenshare() {
return isVideoBroadcasting();
}
function shouldShowOverlay() {
return false;
}
export default {
getPresentationInfo,
shouldShowWhiteboard,
shouldShowScreenshare,
shouldShowOverlay,
};