I wanted to report an issue I've encountered with the latest Beta 6 update concerning the immersive space feature. Before this update, when I was in immersive space and clicked on a window button to play a video using AVPlayer, I had the option to keep other windows open and accessible within the environment. Could you please investigate this issue? It would be helpful to know if this is an intentional change or if there might be a bug affecting window management in immersive space.
Thank you for your attention to this matter. I look forward to your response.
Hey @Narek66,
This is the expected behavior on visionOS 2.0. You can specify your own docking region as detailed in Building an immersive media viewing experience:
In visionOS, AVPlayerViewController participates in the system docking behavior. When you play video in a full-window player then open an immersive experience, the system docks the video screen in a fixed location and presents streamlined playback controls that keep your focus on the content.
To opt out of this behavior you can play the video in the embedded state. AVPlayerViewController
presents the player in full-screen mode when it is the exclusive root view of your app. By accessing the experienceController
you can control these changes yourself. In your case you may choose to disable to full screen (expanded
) experience, or manually transition the videos to the embedded
experience before entering an immersive space:
controller.experienceController.allowedExperiences = .recommended(excluding: [.expanded])
If there are additional APIs you'd like us to consider adding,
please file an enhancement request using Feedback Assistant.
Once you file the request, please post the FB number here.
If you're not familiar with how to file enhancement requests, take a look at
Bug Reporting: How and Why?
Let me know if you have additional questions,
Michael