bigbluebutton-Github/bigbluebutton-html5/imports/api/presentations/server/eventHandlers.js

23 lines
1.7 KiB
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
2017-10-12 08:40:51 +08:00
import handlePresentationAdded from './handlers/presentationAdded';
import handlePresentationRemove from './handlers/presentationRemove';
import handlePresentationCurrentSet from './handlers/presentationCurrentSet';
import handlePresentationConversionUpdate from './handlers/presentationConversionUpdate';
import handlePresentationDownloadableSet from './handlers/presentationDownloadableSet';
import handlePresentationExport from './handlers/presentationExport';
2022-08-24 21:31:20 +08:00
import handlePresentationExportToastUpdate from './handlers/presentationExportToastUpdate';
2016-11-12 03:02:46 +08:00
RedisPubSub.on('PdfConversionInvalidErrorEvtMsg', handlePresentationConversionUpdate);
2017-10-12 08:40:51 +08:00
RedisPubSub.on('PresentationPageGeneratedEvtMsg', handlePresentationConversionUpdate);
RedisPubSub.on('PresentationPageCountErrorEvtMsg', handlePresentationConversionUpdate);
RedisPubSub.on('PresentationUploadedFileTimeoutErrorEvtMsg', handlePresentationConversionUpdate);
RedisPubSub.on('PresentationHasInvalidMimeTypeErrorEvtMsg', handlePresentationConversionUpdate);
2017-10-12 08:40:51 +08:00
RedisPubSub.on('PresentationConversionUpdateEvtMsg', handlePresentationConversionUpdate);
RedisPubSub.on('PresentationUploadedFileTooLargeErrorEvtMsg', handlePresentationConversionUpdate);
2017-10-12 08:40:51 +08:00
RedisPubSub.on('PresentationConversionCompletedEvtMsg', handlePresentationAdded);
RedisPubSub.on('RemovePresentationEvtMsg', handlePresentationRemove);
RedisPubSub.on('SetCurrentPresentationEvtMsg', handlePresentationCurrentSet);
RedisPubSub.on('SetPresentationDownloadableEvtMsg', handlePresentationDownloadableSet);
RedisPubSub.on('NewPresFileAvailableEvtMsg', handlePresentationExport);
2022-08-24 21:31:20 +08:00
RedisPubSub.on('PresAnnStatusEvtMsg', handlePresentationExportToastUpdate);