The Media Playersample shows an immersive video playback experience. It allows users to discover and play videos in a custom immersive environment, editable with the Meta Spatial Editor, or use Passthrough to integrate with the physical environment. Using a native Android view model, it showcases communication between a 2D panel showing the list of available videos the video playback in the immersive enviornment.
The Media Player Sample uses the following Meta Spatial SDK features:
- 2D Panels: The sample shows how to use two Jetpack Compose based panels
ListPanel.kt,MRPanel.ktthat get displayed in the immersive environment. Look at theregisterPanelsfunction in theMediaPlayerSampleActvityto see how to spawn the panels. - Passthrough: The sample provides a toggle for the user to enable the visualization of the physical world within the immersive experience.
