f43b77c19f
Conflicts: bigbluebutton-html5/imports/startup/client/base.jsx bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx bigbluebutton-html5/imports/ui/components/actions-bar/component.jsx bigbluebutton-html5/imports/ui/components/app/container.jsx bigbluebutton-html5/imports/ui/components/screenshare/service.js bigbluebutton-html5/imports/ui/components/video-dock/component.jsx bigbluebutton-html5/imports/ui/components/video-dock/container.jsx bigbluebutton-html5/private/locales/en.json bigbluebutton-html5/server/main.js
33 lines
709 B
JavaScript
33 lines
709 B
JavaScript
import Presentations from '/imports/api/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() && Meteor.settings.public.kurento.enableScreensharing;
|
|
}
|
|
|
|
function shouldShowOverlay() {
|
|
return Meteor.settings.public.kurento.enableVideo;
|
|
}
|
|
|
|
export default {
|
|
getPresentationInfo,
|
|
shouldShowWhiteboard,
|
|
shouldShowScreenshare,
|
|
shouldShowOverlay,
|
|
};
|