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

33 lines
709 B
JavaScript
Raw Normal View History

import Presentations from '/imports/api/presentations';
import { isVideoBroadcasting } from '/imports/ui/components/screenshare/service';
2017-06-03 03:25:02 +08:00
const getPresentationInfo = () => {
2017-07-01 03:16:00 +08:00
const currentPresentation = Presentations.findOne({
2017-07-25 02:46:53 +08:00
current: true,
2017-06-03 03:25:02 +08:00
});
return {
2017-06-03 03:25:02 +08:00
current_presentation: (currentPresentation != null),
};
};
2016-09-15 04:25:31 +08:00
function shouldShowWhiteboard() {
return true;
}
function shouldShowScreenshare() {
return isVideoBroadcasting() && Meteor.settings.public.kurento.enableScreensharing;
2016-09-15 04:25:31 +08:00
}
function shouldShowOverlay() {
return Meteor.settings.public.kurento.enableVideo;
2016-09-15 04:25:31 +08:00
}
export default {
getPresentationInfo,
2016-09-15 04:25:31 +08:00
shouldShowWhiteboard,
shouldShowScreenshare,
2016-09-15 04:25:31 +08:00
shouldShowOverlay,
};