As seen in some of the threads people are affected by other library with high CPU usage, but not in my case. I turned off all libraries in the screen but the moment the app goes to background while playing Audio the CPU spikes beyond 100%, interestingly when put false to following props
playInBackground={false}
playWhenInactive={false}
and send the app to background CPU usage become 0, so it is definitely the player not other libraries. Following is my player code, I am changing currentTrack onEnd manually as I have multiple Tracks to be played for over a period of time continuously, noticeably the scenario on Android device is opposite, on Foreground it has high cpu, and in background very low, while on iOS in foreground the CPU usage are nominal, spike is only in background.
Step to reproduce this bug are: Simply put multiple tracks and play them in Audio mode, turn on profiler on Xcode while connecting the physical device, send the app to background mode, cpu will spike up.
I tried to reproduce the issue, but unfortunately, I don't see similar behavior...
Did you try on 6.0.0-RC.0 ?
Is it possible to have a very basic sample to reproduce the issue please ?
Version
6.0.0-beta.8
What platforms are you having the problem on?
iOS
Architecture
Old architecture
What happened?
As seen in some of the threads people are affected by other library with high CPU usage, but not in my case. I turned off all libraries in the screen but the moment the app goes to background while playing Audio the CPU spikes beyond 100%, interestingly when put false to following props playInBackground={false} playWhenInactive={false}
and send the app to background CPU usage become 0, so it is definitely the player not other libraries. Following is my player code, I am changing currentTrack onEnd manually as I have multiple Tracks to be played for over a period of time continuously, noticeably the scenario on Android device is opposite, on Foreground it has high cpu, and in background very low, while on iOS in foreground the CPU usage are nominal, spike is only in background.
Reproduction
repository link
Reproduction
Step to reproduce this bug are: Simply put multiple tracks and play them in Audio mode, turn on profiler on Xcode while connecting the physical device, send the app to background mode, cpu will spike up.