THEOplayer / react-native-theoplayer

A React Native THEOplayerView component
https://theoplayer.github.io/react-native-theoplayer/
MIT License
58 stars 21 forks source link

When screen is off and PIP is playing, phone gets really hot and drains battery fast #178

Closed davidwinograd1 closed 10 months ago

davidwinograd1 commented 1 year ago

We are using react-native-theoplayer, and a recent issue has arisen when playing a video, the screen is off and PIP is playing, the phone gets really hot and drains the battery fast.

We were wondering if any recent update of react-native-theoplayer has contributed to this, and what a possible solution would be.

Using version 2.11...

tvanlaerhoven commented 1 year ago

@davidwinograd1 on which platform you are experiencing this issue? On Android we had one change regarding the PiP UI (https://github.com/THEOplayer/react-native-theoplayer/blob/develop/CHANGELOG.md#changed), but I'm not sure it could cause this behaviour.

Did you see this only in the current 2.11 version?

davidwinograd1 commented 1 year ago

Experiencing this on iOS!

It happens when tested with versions 2.9 and 2.11!

davidwinograd1 commented 1 year ago

Have any other users complained about this? @tvanlaerhoven

tvanlaerhoven commented 1 year ago

@davidwinograd1 No it hasn't been reported yet. We'll check it internally.

tvanlaerhoven commented 1 year ago

@davidwinograd1 We have indeed identified an issue and raised an internal ticket.

ceyhun-o commented 10 months ago

Hi @davidwinograd1,

As I mentioned on our Service Desk, we have found the root cause of this issue and fixed it. It was due to an internal defect on the core iOS SDK that happened when the player went into PiP. It wasn’t related to locking the screen afterwards, going to PiP was enough to trigger the high CPU usage.

Please update to the latest version of our RN SDK and also make sure that you are using 6.2.0 for iOS.

Kind regards, Ceyhun