Tell me about multiview mode in visionOS

Asked on 07/31/2024

1 search

Multiview mode in visionOS is a feature introduced in the session Explore multiview video playback in visionOS. It allows users to watch multiple video screens simultaneously, enhancing the viewing experience by leveraging AVKit and AVPlayerviewController.

Key Concepts of Multiview Mode:

  1. AVPlayerviewController and AVExperienceController:

    • Each video screen in a Multiview experience is backed by an individual AVPlayerviewController.
    • The AVExperienceController defines the set of possible video playback experiences for its parent AVPlayerviewController, such as embedded or expanded views.
  2. User Interface and Interaction:

    • A Multiview button in the PlayerviewController's UI indicates the availability of related content.
    • Tapping this button reveals a customizable content browser where users can select additional videos to watch side by side.
  3. Customization and Layout:

    • Users can add, remove, arrange, reposition, and resize video screens within the Multiview layout.
    • The layout templates are designed to maximize comfort and viewability, with features like light casting and familiar playback controls.
  4. Implementation:

    • Developers can provide a content browser view controller to manage available content and interact with the AVMultiviewManager, which handles the details of the Multiview experience.

For a detailed walkthrough of these concepts and how to implement them, you can refer to the session chapters:

This feature is particularly useful for scenarios like watching multiple sports games, different camera angles, or multiple streamers simultaneously, providing a rich and customizable viewing experience on visionOS.