wip
This commit is contained in:
parent
bbf4688830
commit
0f074b1e37
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue