Class StartMeetingProgressTimer

Starts a timer to track the progress of a meeting.

The options for starting the meeting progress timer.

The custom start time for the meeting progress timer in seconds since epoch.

The parameters required for updating the meeting progress.

Function to update the formatted meeting progress time.

Function to get updated parameters.

This function calculates the elapsed time since the meeting started and updates the meeting progress every second. The timer will stop if the validated flag is set to false or if the room name is not valid.

The time is formatted in HH:MM:SS format, and the update function is called with the formatted time.

const options: StartMeetingProgressTimerOptions = {
startTime: Math.floor(Date.now() / 1000), // Current time in seconds
parameters: {
updateMeetingProgressTime: (formattedTime) => console.log(`Meeting Progress: ${formattedTime}`),
validated: true,
roomName: 'Room123',
getUpdatedAllParams: () => ({
validated: true,
roomName: 'Room123',
updateMeetingProgressTime: options.parameters.updateMeetingProgressTime,
}),
},
};

const timerService = new StartMeetingProgressTimer();
timerService.startMeetingProgressTimer(options);

Constructors

Methods