betterplayer icon indicating copy to clipboard operation
betterplayer copied to clipboard

[BUG] PIP on iOS not working correctly

Open dqcuong2 opened this issue 2 years ago • 6 comments

After switch to PiP mode. The app still display After let the app to the background, the video player in pip mode also disappear. Please check the video below

https://user-images.githubusercontent.com/108870525/192712637-68883715-be36-4503-8101-85c76439e2a5.mov

dqcuong2 avatar Sep 28 '22 07:09 dqcuong2

Did you set handleLifecycle to false?

rounce avatar Sep 29 '22 20:09 rounce

I forgot a key. After putting it into info-plit, it can play when app disappear. But a problem happens, the video is getting freezed. See the video below

https://user-images.githubusercontent.com/108870525/193172923-856acfae-a28a-4446-8d1a-71e8714e1f22.mov

dqcuong2 avatar Sep 30 '22 01:09 dqcuong2

Hello,

I had the same issue (and generally PiP didn't work on iOS). I have succeeded in resolving all issues to get PiP worked flawlessly on iOS. Tested with streaming videos using FairPlay.

I will make a PR. I need to test with local video file.

Could you tell me if your issues with PiP are related to local/file-based videos? Or do you use network videos?

Thanks

Eimji avatar Jan 30 '23 07:01 Eimji

I'm having trouble solving this freezing issue.

Eimji, can you make a PR?

I analyzed your betterplayer repository, but I couldn't identify if there was any fix in it.

murilots avatar Jan 06 '24 18:01 murilots

@dqcuong2 May I get your sample source code for PiP didn't work on iOS, Could you please help me.

Gayathri-kt avatar Apr 26 '24 11:04 Gayathri-kt