I am encountering an issue while using the multiview video demo provided at this link "https://developer.apple.com/documentation/avkit/creating-a-multiview-video-playback-experience-in-visionos/". Specifically, when running on versions of visionOS prior to 2.2, navigating back results in a blank screen. Has anyone else experienced this problem and found a solution? Any advice or workaround would be greatly appreciated.
The multiview video screen turns blank when returning
Hey @Liangmu,
As you noticed this is an issue that was fixed in visionOS 2.2,
but there are a few workarounds that you could try for people on older versions. I am not encountering this issue when I start with the embedded experience. The sample code provides an example of this UX if you change the supportsEmbeddedPlaybackExperience
variable to true.
You could also limit multiview support to users on visionOS 2.2 and later using the following:
if #available(visionOS 2.2, *) {
playerController.experienceController.allowedExperiences = .recommended(
including: [.multiview]
)
}
Let me know if you have additional questions,
Michael