I am trying to create demo for spatial meeting using persona also refer apple videos, But not getting clear idea about it.
Any one could you please guide me step by step process or any code are appreciated for learning.
You mentioned it, but for the benefit of those who come after you, Build spatial SharePlay experiences is a video on the topic. In addition, Adding Spatial Persona support to an activity explains how to update your SharePlay activities to support Spatial Personas and the shared context when running in visionOS. If you are familiar with SharePlay those are good places to start. Otherwise here are the steps needed to use Group Activities to create a SharePlay experience.
- Define an activity. See Defining your app’s SharePlay activities.
- Provide a means for one of the participants to initiate (activate) the activity. See Presenting SharePlay activities from your app’s UI. When an activity is initiated all participants receive a session.
- Ensure all participants (including the initiator) listen for new sessions. When an app receives a session it should setup any necessary UI then join the session. See Joining and managing a shared activity.
- After a participant joins a session they can begin exchanging data/messages. See Synchronizing data during a SharePlay activity.
Finally, here are a few example apps to refer to, but I recommend familiarizing yourself with the concepts before diving into code.
-
Happy Beam contains code for SharePlay in Immersive Spaces.
-
Drawing content in a group session contains code for non spatial SharePlay
-
Supporting Coordinated Media Playback contains code to synchronize a media experience.