zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 748 forks source link

iPhone heats up when playing sound #634

Closed schumannd closed 4 years ago

schumannd commented 4 years ago

:beetle: Description

When playing sounds, the phone heats up significantly. very noticeable after +10 minutes of continued sound playback. this also happens when the app is in background, so it shouldn't be the playback update callback, right?

:beetle: What is the observed behavior?

phone gets 🔥

:beetle: What is the expected behavior?

phone should stay ❄️

:bulb: Does the problem have a test case?

Play a sound for +10 minutes (make it 20 to be safe) and check the temp of the phone.

:bulb: Is there a workaround?

ice? only releasing in scandinavia? Its probably nothing critical, but still an indicator of unnecessary battery/cpu usage.

:bulb: If the bug is confirmed, would you be willing to create a pull request?

It seems like big players such as spotify and apple seem to have had this problem as well. Maybe a pointer into the right direction would help? Id love to dive into the native side of the player.

Is your issue with...

Are you using...

Which versions are you using?

Does the problem occur on...

If your problem is happening on a device, which device?

schumannd commented 4 years ago

This was due to us using the playback update function to frequently (updating an animation every 200ms causes the phone to heat up)