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';
|
2016-05-31 06:07:02 +08:00
|
|
|
|
2017-06-03 03:25:02 +08:00
|
|
|
const getPresentationInfo = () => {
|
2016-05-31 06:07:02 +08:00
|
|
|
let currentPresentation;
|
|
|
|
currentPresentation = Presentations.findOne({
|
2017-06-03 03:25:02 +08:00
|
|
|
'presentation.current': true,
|
|
|
|
});
|
2016-05-31 06:07:02 +08:00
|
|
|
|
|
|
|
return {
|
2017-06-03 03:25:02 +08:00
|
|
|
current_presentation: (currentPresentation != null),
|
2016-05-31 06:07:02 +08:00
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2016-05-31 06:07:02 +08:00
|
|
|
export default {
|
|
|
|
getPresentationInfo,
|
2016-09-15 04:25:31 +08:00
|
|
|
shouldShowWhiteboard,
|
|
|
|
shouldShowDeskshare,
|
|
|
|
shouldShowOverlay,
|
2016-05-31 06:07:02 +08:00
|
|
|
};
|