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