We appear to be experiencing a bug with the latest beta for visionOS, we are attempting to playback a video with a transparent background in the app. In the previous beta playback worked as expected and the transparent parts of the video were transparent. In the latest beta the background appears black. The view we are using in a SwiftUI wrapped version of AVPlayerViewController, we have narrowed the bug down to only occurring only when playback is being presented in the embedded experience mode, if playback is being done in the expanded experience then playback is as expected.
This has only only been visible on an actual device, we have been unable to replicate the behaviour in the simulator using the latest Xcode 16.0 beta(beta 5 (16A5221g))
Hey @JamesW-ios,
Based on the provided information this seems like this might be a bug. I'm not sure if resolving this will require changes to Apple's software or if there's additional API that you should be using to make the video transparent in the embedded case.
While I continue to investigate this issue, I'd greatly appreciate it if you could open a bug report, including a link to the sample project and a video of what you are seeing on device and in the simulator. Please post the FB number here once you do.
Bug Reporting: How and Why? has tips on creating your bug report.
Thanks so much,
Michael