yangjie #46
|
|
@ -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) {
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue