aws / amazon-ivs-react-native-player

A React Native wrapper for the Amazon IVS iOS and Android player SDKs.
Apache License 2.0
294 stars 31 forks source link

PIP is not working for iOS devices #118

Open bhupendra128 opened 1 year ago

bhupendra128 commented 1 year ago

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.

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

pratikyadavr4 commented 1 year ago

yess, PIP is not working for me as well

bhupendra128 commented 1 year ago

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

maxstoller commented 1 year ago

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

bhupendra128 commented 1 year ago

@maxstoller Do we have any ETA for this issue ?

maxstoller commented 1 year ago

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!

bhupendra-cvent commented 1 year ago

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.

anasshabrah commented 7 months ago

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?