This commit is contained in:
yj 2024-12-18 15:21:48 +08:00
parent d867305ca4
commit 5d6c43e27a
1 changed files with 8 additions and 2 deletions

View File

@ -1642,7 +1642,10 @@ const Meeting: React.FC = () => {
const stopRecorderMedia = async (): Promise<void> => {
setRecorder((res: any) => {
if (res) {
res.stop();
try {
res.stop()
} catch (error) {
}
}
return res
})
@ -1650,7 +1653,10 @@ const Meeting: React.FC = () => {
if (res.length) {
res.forEach((item: any) => {
item.getTracks().forEach((track: any) => {
track.stop()
try {
track.stop()
} catch (error) {
}
});
});
}