Service to display an alert indicating the remaining recording time.
TimeLeftRecording
Provides a method to show an alert when the recording is close to its end.
timeLeftRecording
Options for the remaining time alert:
timeLeft
showAlert
const options = { timeLeft: 30, showAlert: ({ message, duration, type }) => console.log(message)};timeLeftRecordingService.timeLeftRecording(options); Copy
const options = { timeLeft: 30, showAlert: ({ message, duration, type }) => console.log(message)};timeLeftRecordingService.timeLeftRecording(options);
Displays an alert message indicating the remaining time left for recording.
The options for the time left recording.
If there is an issue displaying the alert message.
Service to display an alert indicating the remaining recording time.
Name
TimeLeftRecording
Description
Provides a method to show an alert when the recording is close to its end.
Method
timeLeftRecording
Param: options
Options for the remaining time alert:
timeLeft
{number}: The time left in seconds before the recording stops.showAlert
{Function}: Optional function to display the alert message.Example