Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Looking for a way to implement the video display effect in Apple's 'Spatial Gallery'

Hi guys,

I noticed that Apple created a really engaging visual effect for browsing spatial videos in the app. The video appears embedded in glass panel with glowing edges and even shows a parallax effect as you move around. When I tried to display the stereo video using RealityView, however, the video entity always floats above the panel.

May I ask how does VisionOS implement this effect? Is there any approach to achieve this effect or example code I can use in my own code.

Thanks!

Hello, I'm also a developer. May I ask if the sample Demo provided is written by myself or by the official? The sample Demo was written by myself. How can I add a player to the SwiftUI card? How can the spatial gallery effect be displayed? Should I directly add AVPlayer or add a playback controller on the card? If it's convenient, Could you provide the Demo

The following is the reference code

Hi there! In visionOS 26, you can enable this spatial video styling in both AVPlayerViewController (from AVKit) and VideoPlayerComponent (from RealityKit).

For full details on how to do so, check out the Support immersive video playback in visionOS apps video from WWDC25, which has a section dedicated to spatial video playback in VideoPlayerComponent.

Looking for a way to implement the video display effect in Apple's 'Spatial Gallery'
 
 
Q