mediasfu-reactnative-expo
Version:
mediasfu-reactnative-expo – Expo-managed React Native WebRTC SDK for video conferencing, webinars, live streaming, broadcast, screen sharing, whiteboard, chat, recording, live subtitles, translation, and AI agent rooms on iOS, Android, and web. Prebuilt r
28 lines • 876 B
JavaScript
import { timeLeftRecording as sharedTimeLeftRecording } from 'mediasfu-shared';
/**
* Displays an alert message indicating the remaining time left for recording.
*
* @param {TimeLeftRecordingOptions} options - Options to manage time left for recording.
* @param {number} options.timeLeft - Time remaining for the recording in seconds.
* @param {ShowAlert} [options.showAlert] - Optional function to show alert message.
*
* @returns {void}
*
* @example
* ```typescript
* const options = {
* timeLeft: 30,
* showAlert: (alert) => console.log(alert.message),
* };
*
* timeLeftRecording(options);
* // Output: "The recording will stop in less than 30 seconds."
* ```
*/
export const timeLeftRecording = ({ timeLeft, showAlert }) => {
sharedTimeLeftRecording({
timeLeft,
showAlert,
});
};
//# sourceMappingURL=timeLeftRecording.js.map