doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.2k stars 984 forks source link

iOS glitch issue when audio is playing and use microphone at the same time #2139

Closed adigujjar closed 10 months ago

adigujjar commented 10 months ago

Describe the Bug i am using react native track player and picovoice rhino manger for voice commands so whenever user speak then on the base of commands audio track is changed. It is working fine on android but on iOS works fine on simulator but on real device when ever microphone listen commands audio stops for a moment.

Environment Info: "react-native-track-player": "^2.1.2", Real device iOS 16.2

adigujjar commented 10 months ago

@egorkhmelev @qmx @skahack @simonwhitaker I am setting the category for iOS like this

await TrackPlayer.reset(); await TrackPlayer.setupPlayer( { iosCategory: IOSCategory.Playback, iosCategoryMode: IOSCategoryMode.Default } ); await TrackPlayer.setRepeatMode(RepeatMode.Queue);

Help will be appreciated thanks
adigujjar commented 10 months ago

I use porcupine and it works well