react-native-jw-media-player icon indicating copy to clipboard operation
react-native-jw-media-player copied to clipboard

PIP mode

Open DevanshuQuovantis opened this issue 2 years ago • 6 comments

PIP mode somehow is not working. Either the PIP button(present at top right corner with chromecast and airplay button) is disabled or not showing. In the document, it is written that PIP can only be worked when viewOnly prop is true, and I have tried doing so, but still PIP is not working. Additionally, we would want to have PIP even when viewOnly is false. I have checked @chaimPaneth's answer in this issue and still Picture in Picture is not working. Any way to enable Picture In Picture for both platforms i.e. android/ios?

I am on the latest version of the library "react-native-jw-media-player": "^0.2.33"

DevanshuQuovantis avatar Jan 03 '23 13:01 DevanshuQuovantis

Did you enable for background modes, audio capabilities in XCode and are you passing backgroundAudioEnabled: true? prop also might help to pass category: 'Playback', categoryOptions: ['AllowBluetooth'], mode: 'SpokenAudio', also are you testing on real device or simulator, PIP doesn't work in the simulator.

the viewOnly prop basically means that under the hood we only render a simple view displaying the videos with no controls no casting no nothing just a view, when viewOnly is false (default) then we render a ViewController with controls, PIP handling, casting etc so the controller is the better option for PIP as it handles everything automatically - when it works :-)

Does the above help you?

Thanks.

chaimPaneth avatar Jan 08 '23 21:01 chaimPaneth

Getting some issue on android also 1673015872704 after closing player screen if I go to background then this is how it is showing me.

vanditmehta avatar Jan 11 '23 10:01 vanditmehta

Above issue I am getting on iOS as well

vanditmehta avatar Jan 11 '23 10:01 vanditmehta

@chaimPaneth can you help with this?

vanditmehta avatar Jan 12 '23 05:01 vanditmehta

I am also experiencing this on android emulator, when i press the PiP button the view minimizes down(still showing the video) but once it is in position the whole app rerenders back to the entry point of the application.

geoff-schultz avatar Mar 29 '23 16:03 geoff-schultz

Was just able to confirm this is happening in the example android app as well, the only change made to the Player was the addition of the pipEnabled flag.

image

geoff-schultz avatar Mar 29 '23 21:03 geoff-schultz