2017-07-01 03:16:00 +08:00
|
|
|
import Presentations from '/imports/api/2.0/presentations';
|
2017-07-25 03:29:34 +08:00
|
|
|
import { isVideoBroadcasting } from '/imports/ui/components/screenshare/service';
|
2016-05-31 06:07:02 +08:00
|
|
|
|
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
|
|
|
});
|
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;
|
|
|
|
}
|
|
|
|
|
2017-07-25 03:29:34 +08:00
|
|
|
function shouldShowScreenshare() {
|
2016-09-15 04:25:31 +08:00
|
|
|
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,
|
2017-07-25 03:29:34 +08:00
|
|
|
shouldShowScreenshare,
|
2016-09-15 04:25:31 +08:00
|
|
|
shouldShowOverlay,
|
2016-05-31 06:07:02 +08:00
|
|
|
};
|