fix(electron): increase recording timeout (#12733)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Removed the automatic timeout that stopped recordings after 1.5 hours. Recordings will no longer be stopped automatically based on duration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -38,8 +38,6 @@ import type {
|
|||||||
TappableAppInfo,
|
TappableAppInfo,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
const MAX_DURATION_FOR_TRANSCRIPTION = 1.5 * 60 * 60 * 1000; // 1.5 hours
|
|
||||||
|
|
||||||
export const MeetingsSettingsState = {
|
export const MeetingsSettingsState = {
|
||||||
$: globalStateStorage.watch<MeetingSettingsSchema>(MeetingSettingsKey).pipe(
|
$: globalStateStorage.watch<MeetingSettingsSchema>(MeetingSettingsKey).pipe(
|
||||||
map(v => MeetingSettingsSchema.parse(v ?? {})),
|
map(v => MeetingSettingsSchema.parse(v ?? {})),
|
||||||
@@ -547,19 +545,6 @@ export function startRecording(
|
|||||||
createRecording(state);
|
createRecording(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set a timeout to stop the recording after MAX_DURATION_FOR_TRANSCRIPTION
|
|
||||||
setTimeout(() => {
|
|
||||||
const state = recordingStateMachine.status$.value;
|
|
||||||
if (
|
|
||||||
state?.status === 'recording' &&
|
|
||||||
state.id === recordingStatus$.value?.id
|
|
||||||
) {
|
|
||||||
stopRecording(state.id).catch(err => {
|
|
||||||
logger.error('failed to stop recording', err);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}, MAX_DURATION_FOR_TRANSCRIPTION);
|
|
||||||
|
|
||||||
recordingStateMachine.status$.next(state);
|
recordingStateMachine.status$.next(state);
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
|
|||||||
Reference in New Issue
Block a user