We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2f87a commit 358bcc2Copy full SHA for 358bcc2
package/expo-package/src/optionalDependencies/Video.tsx
@@ -51,9 +51,11 @@ export const Video = videoPackage
51
// This is done so that the audio of the video is not muted when the phone is in silent mode for iOS.
52
useEffect(() => {
53
const initializeSound = async () => {
54
- await AudioComponent.setAudioModeAsync({
55
- playsInSilentModeIOS: true,
56
- });
+ if (AudioComponent) {
+ await AudioComponent.setAudioModeAsync({
+ playsInSilentModeIOS: true,
57
+ });
58
+ }
59
};
60
initializeSound();
61
}, []);
0 commit comments