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) {
|
if (!permission?.granted) {
|
||||||
requestPermission();
|
try {
|
||||||
handleAndroidBltPermission();
|
await requestPermission();
|
||||||
|
handleAndroidBltPermission();
|
||||||
|
} catch (error) {
|
||||||
|
log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue