视频录制开发
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user