bigbluebutton-Github/bigbluebutton-html5/imports/api/timer/server/methods.js
Arthur B. Grossi dbbef569a9 fix(timer): autoplay
When user enters meeting with music already playing, an event listener is set
to play the music only after user interaction.
Also, to keep timer more cohesive and reduce complexity of the condition for
playing music, timer automatically stops after 90% of users notify that the
timer has expired.
2023-05-18 15:29:34 -03:00

25 lines
693 B
JavaScript

import { Meteor } from 'meteor/meteor';
import activateTimer from './methods/activateTimer';
import deactivateTimer from './methods/deactivateTimer';
import resetTimer from './methods/resetTimer';
import startTimer from './methods/startTimer';
import stopTimer from './methods/stopTimer';
import switchTimer from './methods/switchTimer';
import setTimer from './methods/setTimer';
import getServerTime from './methods/getServerTime';
import setMusic from './methods/setMusic';
import timerEnded from './methods/timerEnded';
Meteor.methods({
activateTimer,
deactivateTimer,
resetTimer,
startTimer,
stopTimer,
switchTimer,
setTimer,
getServerTime,
setMusic,
timerEnded,
});