-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio quality is stuck in mono/low bitrate after iOS recording is triggered at any point during app lifecycle #2016
Comments
Ok so if I downgrade to 2.1 and call The problem seems to be that when you start recording in iOS (again, using any package), the iOS Category gets set to All we actually need is to be able to set the iOS Category after the player is already set up. Then, we wouldnt need to |
Ok we found a better solution. We installed Still, I think Track Player should allow us to set the |
This sounds like a feature request to add |
I think the way to go would be to set the category again every time the app is asked to play a track |
@closetothe the following pr will configure the audio session whenever |
Just noticed I forgot to create the actual pr for this – see #2091 |
Describe the Bug
If any other package uses the recording functionality in iOS, it breaks the playback quality of Track Player until restart.
Steps To Reproduce
Record something in your app (using
expo-av
orreact-native-audio-recorder-player
orreact-native-audio-record
). Once any recording functionality is triggered, for the rest of the lifecycle of the app the playback quality from track-player is very badCode To Reproduce
Replicable on Example App?
Yes
Environment Info:
Expo SDK 48 using development client
React Native 0.71.8
Track Player version: 2.x, 3.2.0, and 4.0.0-rc04
Real device
iOS 16.4.1 / macOS 11.4
How I can Help
Note that audio playback from expo-av doesn't have this problem, I wonder if it's just a matter of being able to reset the audio playback settings in iOS programmatically.
I've tried running
TrackPlayer.reset()
andTrackPlayer.setupPlayer()
to reset the playback in some way, but it does nothing.The text was updated successfully, but these errors were encountered: