This commit is contained in:
Nuwan 2025-04-16 23:32:06 +05:30
parent bbf4688830
commit 0f074b1e37
1 changed files with 23 additions and 2 deletions

View File

@ -206,11 +206,32 @@
}
function onServerStartRecording() {
var session = context.SessionStore.getCurrentOrLastSession();
if (!session) {
logger.debug("no session, so no recording");
return;
}
context.SessionStore.updateSessionInfo(session)
}
function onServerStopRecording(recordingId) {
stopRecording(recordingId, null, null);
var session = context.SessionStore.getCurrentOrLastSession();
if (!session) {
logger.debug("no session, so no recording");
return;
}
context.SessionStore.updateSessionInfo(session)
getCurrentRecordingState().then(function (recordingState) {
if (recordingState.isRecording && recordingState.recordingOwnerId === app.currentUserId) {
// we are still recording, so don't transition to stopped
logger.debug("recording is still running, so don't transition to stopped");
return;
}
stopRecording(recordingId, null, null);
});
}
async function handleRecordingStartResult(recordingId, result) {