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

35 lines
678 B
JavaScript
Raw Normal View History

2017-06-19 19:57:32 +08:00
import Presentations from '/imports/api/1.1/presentations';
import Slides from '/imports/api/1.1/slides';
2017-03-22 05:46:41 +08:00
import { isVideoBroadcasting } from '../deskshare/service';
2017-06-03 03:25:02 +08:00
const getPresentationInfo = () => {
let currentPresentation;
currentPresentation = Presentations.findOne({
2017-06-03 03:25:02 +08:00
'presentation.current': true,
});
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 shouldShowDeskshare() {
return isVideoBroadcasting();
}
function shouldShowOverlay() {
2017-03-22 05:46:41 +08:00
return false;
2016-09-15 04:25:31 +08:00
}
export default {
getPresentationInfo,
2016-09-15 04:25:31 +08:00
shouldShowWhiteboard,
shouldShowDeskshare,
shouldShowOverlay,
};