Add playThroughEarpieceAndroid option to AudioMode.

This commit is contained in:
girishjjain
2019-04-05 15:41:46 -05:00
committed by Girish Jayantilal Jain
parent 935a7078dd
commit ee43d3eb16
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -167,6 +167,7 @@ Audio.setAudioModeAsync({
interruptionModeIOS: 2,
interruptionModeAndroid: 1,
allowsRecordingIOS: true,
playThroughEarpieceAndroid: true,
});
Audio.setIsEnabledAsync(true);
+3
View File
@@ -418,6 +418,9 @@ export namespace Audio {
/** an enum selecting how your experience’s audio should interact with the audio from other apps on Android: */
interruptionModeAndroid: InterruptionModeAndroid;
/** Boolean selecting if your experience’s audio should route to earpiece on Android: */
playThroughEarpieceAndroid: boolean;
}
function setIsEnabledAsync(value: boolean): Promise<void>;