How can I use AVExperienceController to transition a video in expanded mode?
Generated on 5/2/2025
1 search
To transition a video to expanded mode using the AVExperienceController
, you can follow the approach outlined in the session "Explore multiview video playback in visionOS" from WWDC 2024. Here's a summary of the process:
-
Define Allowed Experiences: Each
AVExperienceController
can specify its own set of allowed experiences, such as embedded or expanded. To transition a video to expanded mode, ensure that expanded is included in the set of allowed experiences. -
Transition to Expanded Mode: When you want to transition a video to expanded mode, you can use the
AVExperienceController
to switch the current experience. This involves setting the experience controller to the expanded experience. -
Use Delegate for Transitions: Implement a delegate to handle transition events. The delegate can react to changes in the experience, such as when a video transitions to expanded mode. This allows your app to update its state or UI accordingly.
For more detailed information, you can refer to the session Explore multiview video playback in visionOS (04:59) where the design of a multiview experience is discussed, which includes transitioning between different video playback modes.

Enhance the immersion of media viewing in custom environments
Extend your media viewing experience using Reality Composer Pro components like Docking Region, Reverb, and Virtual Environment Probe. Find out how to further enhance immersion using Reflections, Tint Surroundings Effect, SharePlay, and the Immersive Environment Picker.

Build compelling spatial photo and video experiences
Learn how to adopt spatial photos and videos in your apps. Explore the different types of stereoscopic media and find out how to capture spatial videos in your iOS app on iPhone 15 Pro. Discover the various ways to detect and present spatial media, including the new QuickLook Preview Application API in visionOS. And take a deep dive into the metadata and stereo concepts that make a photo or video spatial.

Explore multiview video playback in visionOS
Learn how AVExperienceController can enable playback of multiple videos on Apple Vision Pro. Review best practices for adoption and explore great use cases, like viewing a sports broadcast from different angles or watching multiple games simultaneously. And discover how to design a compelling and intuitive multiview experience in your app.