dbbef569a9
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.
25 lines
693 B
JavaScript
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,
|
|
});
|