yangjie #46

Merged
yangqiang merged 15 commits from yangjie into master 2025-01-03 10:43:27 +08:00
1 changed files with 8 additions and 2 deletions
Showing only changes of commit 5d6c43e27a - Show all commits

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) {
}
}); });
}); });
} }