Dunfey · Hotel WWDC as data, est. 1983
Front desk everything
Years
Topics

2024 DesignSpatial ComputingAudio & Video

WWDC24 · 14 min · Design / Spatial Computing / Audio & Video

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.

Watch at developer.apple.com ↗

Transcript all transcripts

Chapters

  • 0:00 — Introduction
  • 1:55 — Introducing multiview
  • 4:59 — Design a multiview experience

Code shown on screen · 3 snippets

Supply a custom browser view controller swift · at 7:47 ↗
import AVKit

AVMultiViewManager
	.default
	.contentSelectionViewController = multiViewController()
Add content to multiview swift · at 8:09 ↗
import AVKit

let controller = AVPlayerViewController()

let experienceController = controller.experienceController
experienceController.allowedExperiences = .recommended(including: [.multiView])

await experienceController.transition(to: .multiView)
Remove content from multiview swift · at 8:47 ↗
import AVKit

let experienceController = 

await experienceController.transition(to: .embedded)

Resources