Function stoppedRecording

Displays an alert message when the recording has stopped, indicating the reason.

const options = {
state: "stop",
reason: "The session ended.",
showAlert: (alert) => console.log(alert.message),
};

stoppedRecording(options);
// Output: "The recording has stopped - The session ended."