pillarbox-apple icon indicating copy to clipboard operation
pillarbox-apple copied to clipboard

Picture in Picture restoration does not work when running as iPadOS app on macOS

Open defagos opened this issue 1 year ago • 2 comments

Description of the problem

Picture in Picture restoration does not work when an iPadOS app is run on macOS.

The reason is that the PiP lifecycle is not consistent between platforms when restoring via the dedicated button:

  • iOS, iPadOS, tvOS: restore, will stop, did stop
  • iPadOS on macOS: will stop, restore, did stop

I suspect this is a macOS issue since the lifecycle is documented on tvOS when swapping players. This should be reported to Apple.

In the meantime it might be possible to fix the macOS behavior to make it consistent with iOS, iPadOS and tvOS. If not possible reliably then we should likely do nothing and wait for an official fix. Reliable means that all usual use cases should work on all platforms.

Relevant stack trace or log output

No response

Reproducibility

Always

Steps to reproduce

  1. Open the demo.
  2. Play the Fondue example.
  3. Enable PiP.
  4. Restore from PiP. PiP closes.

Library version

0.9.0

Operating system

macOS 14.3

Code sample

No response

Is there an existing issue for this?

  • [X] I have searched existing issues and found no similar bug report.

defagos avatar Feb 07 '24 21:02 defagos