HomeiOS Developmentios - Expo AV Audio Recording with Youtube Video In Background Audio...

ios – Expo AV Audio Recording with Youtube Video In Background Audio Steadiness Difficulty – React Native


I’ve acquired a very distinctive use case that I have been fighting. I have been utilizing Audio expo-av and a react-native-youtube-iframe or webview to play a video and document audio on the identical time. You’re most likely all considering… why would somebody want this, however I’ve a very distinctive use case for narrating over a video. I’ve tried all of the completely different configurations of the expo audio participant (see commented traces 21, 22, 23 in expo snack).

If I exploit ‘InterruptionModeIOS.DoNotMix’, the movies play full quantity however then if you happen to take note of the console.log, the audio stops capturing (durationMillis) get 0’ed out as quickly because the video performs.

If I exploit ‘InterruptionModeIOS.MixWithOthers’, the movies play and the microphone information however a few of them have the amount diminished so low that you just can’t hear them in any respect.

You will discover that the expo-av ‘Video’ instance within the expo snack continues to be loud sufficient to listen to, however the random reddit video performed within the net view is pretty dim. These are just a few examples.

I am wanting to determine easy methods to stability these two higher (or in no way). I would really like the microphone to operate utterly regular, however set the video quantity manually w/ code (say 50% as an illustration). I do not need the audio participant to take management.

Primarily I am in search of an ‘InterruptionMode.NonExistent’ in order that each the video performs in full quantity and the microphone information at full capability. I do perceive that this may result in some audio distortion, however I consider I can handle that with quantity settings, and so on.

See expo-snack right here:
https://snack.expo.dev/@christophergabba/audio-balance-example

Thanks a lot upfront to your assist!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments