fix: handle camera permission crash (#5372)
This commit is contained in:
parent
653201022f
commit
af83fc236f
|
@ -64,8 +64,12 @@ export const useVideoConf = (
|
|||
});
|
||||
|
||||
if (!permission?.granted) {
|
||||
requestPermission();
|
||||
handleAndroidBltPermission();
|
||||
try {
|
||||
await requestPermission();
|
||||
handleAndroidBltPermission();
|
||||
} catch (error) {
|
||||
log(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue