Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIP is not working for iOS devices #118

Open
bhupendra128 opened this issue Jan 10, 2023 · 7 comments
Open

PIP is not working for iOS devices #118

bhupendra128 opened this issue Jan 10, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@bhupendra128
Copy link

bhupendra128 commented Jan 10, 2023

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.

Untitled.mp4
@bhupendra128 bhupendra128 added the bug Something isn't working label Jan 10, 2023
@pratikyadavr4
Copy link

yess, PIP is not working for me as well

@bhupendra128
Copy link
Author

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

@maxstoller
Copy link
Contributor

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

@bhupendra128
Copy link
Author

@maxstoller Do we have any ETA for this issue ?

@maxstoller
Copy link
Contributor

maxstoller commented Jan 30, 2023

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
Copy link

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants