Our app uses custom playback controls. When the user taps Return to App in the iOS Picture in Picture window, we want to return them to the live playback screen. When they close the window, we want to clear Picture in Picture state and keep them on their current screen.
VideoView.onPictureInPictureStop
fires in both cases. AVKit delivers a separate restore request to the player controller, but
expo-video
does not expose it.
Could
VideoView
expose an optional
onPictureInPictureRestore
callback on iOS? It would report AVKit’s restore request and leave the existing stop event and fullscreen restoration behavior intact.