视频录制开发

This commit is contained in:
2026-05-25 16:39:13 +08:00
parent eb0106d296
commit cc734790ef
6 changed files with 740 additions and 10 deletions

View File

@@ -21,15 +21,13 @@ export function createCallViewController({ store, chatMessage, notify }) {
toggleVideo();
}
function toggleRecording() {
const state = store.getState();
const currentState = state.session.localUser.mediaState.recording || false;
store.updateLocalMedia('recording', !currentState);
if (!currentState) {
notify('\u5f00\u59cb\u5f55\u5236');
} else {
notify('\u505c\u6b62\u5f55\u5236');
async function toggleRecording() {
try {
const result = await store.toggleRecording();
notify(result.message);
}
catch (error) {
notify(error.message || '\u5f55\u5236\u5931\u8d25');
}
}