Closed jcarioti closed 2 years ago
I am running into the exact same issue. (watching)
Same issue. Steps to reproduce:
1) Enter fullscreen 2) Go to home screen or press PiP icon 3) It should fire onPictureInPictureStatusChanged event
When you manually change pictureInPicture property event is fired.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you are having a similar problem, please open a new issue and reference this one instead of commenting on a stale or closed issue.
Bug
When launching picture in picture in iOS, there are two modes: PIP mode directly from the current viewer, and fullscreen PIP mode where you launch into fullscreen, and then press the PIP button from there.
I've noticed some different functionality between the two:
onPictureInPictureStatusChanged
callback fires appropriatelyI noticed someone saw this before the feature went in here: https://github.com/react-native-video/react-native-video/pull/1325#issuecomment-464998645
Platform
Which player are you experiencing the problem on:
Environment info
React native info output:
Library version: 5.1.1
Steps To Reproduce
Expected behaviour
onPictureInPictureStatusChanged
callbacks fire as the PIP starts and ends from the context of the fullscreen viewerReproducible sample code
Video sample
Any HLS m3u8 stream.