amazon-ivs-react-native-player icon indicating copy to clipboard operation
amazon-ivs-react-native-player copied to clipboard

PIP is not working for iOS devices

Open bhupendra128 opened this issue 3 years ago • 7 comments

https://github.com/aws/amazon-ivs-react-native-player/tree/main/example

In attached example for this repo, PIP is not working on iOS device On pressing the togglePip icon nothing happens.

Is there any additional configuration we need to add to make it work ?

To reproduce

  1. Clone the repo
  2. Navigates to the examples
  3. Install the dependency and pods
  4. Connect your device to xcode and install the app
  5. Now open the advanced example and start the video
  6. Now click on togglePip icon, nothing happens on clicking.

Expected behavior On press of togglePIp icon , video should play in PIP mode.

Screenshots If applicable, add screenshots to help explain your problem.

  • Device (iphone -XS):
  • OS: [e.g. iOS 15.5]

Additional context Even we tried this with our app, the behaviour remains same, PIP mode doesn't get launched.

Note - If we try this example with iPod pro (15.5), the PIP gets lauched but video doesn't gets played in PIP, it keep on playing in video container.

https://user-images.githubusercontent.com/21309843/211525344-66307c43-e5dd-4b0c-b390-318bca5743d6.mp4

bhupendra128 avatar Jan 10 '23 11:01 bhupendra128

yess, PIP is not working for me as well

pratikyadavr4 avatar Jan 11 '23 07:01 pratikyadavr4

@maxstoller Could you pls check ? As this affecting our feature release.

bhupendra128 avatar Jan 17 '23 07:01 bhupendra128

Hi, thanks for the report. We are looking into this and will get back to you here.

maxstoller avatar Jan 17 '23 23:01 maxstoller

@maxstoller Do we have any ETA for this issue ?

bhupendra128 avatar Jan 24 '23 07:01 bhupendra128

Hi all,

Can you please try the following to see if it fixes the issue:

  1. Set your app’s audio session category to AVAudioSessionCategoryPlayback.
  2. Enable the background audio (“Audio, AirPlay, and Picture in Picture”) capability.

See Configuring the Audio Playback of iOS and tvOS Apps for more details.

Also, as a heads up, there are issues with iOS PiP and simulators. We suggest testing on a device.

Thanks!

maxstoller avatar Jan 30 '23 22:01 maxstoller

Hi all,

Can you please try the following to see if it fixes the issue:

  1. Set your app’s audio session category to AVAudioSessionCategoryPlayback.
  2. Enable the background audio (“Audio, AirPlay, and Picture in Picture”) capability.

See Configuring the Audio Playback of iOS and tvOS Apps for more details.

Also, as a heads up, there are issues with iOS PiP and simulators. We suggest testing on a device.

Thanks!

@maxstoller PIP for iOS is working by following this steps.

bhupendra-cvent avatar Mar 23 '23 04:03 bhupendra-cvent

yess, PIP is not working for me as well

hello Prateek, i need your help as paid service regarding the MetaTraderForecast

how can i contact you?

anasshabrah avatar Feb 11 '24 10:02 anasshabrah