Skip to content

feat: add visionOS demo project#68

Merged
cxfksword merged 1 commit intompvkit:mainfrom
rursache:main
Apr 11, 2026
Merged

feat: add visionOS demo project#68
cxfksword merged 1 commit intompvkit:mainfrom
rursache:main

Conversation

@rursache
Copy link
Copy Markdown
Contributor

@rursache rursache commented Apr 9, 2026

Summary

  • Add a new Demo-visionOS project to the demo workspace, matching the patterns used by the existing iOS, macOS, and tvOS demos
  • Metal-only rendering (no OpenGL on visionOS)
  • Adapted for visionOS platform differences: no UIScreen.main, no background/foreground lifecycle hacks, visionOS-appropriate window sizing

Closes #6

Notes

  • Built and verified against the current MPVKit-GPL package (libmpv 0.41.0, FFmpeg n8.1)
  • The original issue (A VisionOS demo project would be a great addition #6) reported a SIGABRT from libplacebo/MoltenVK (ios-metal0.0 shader compilation error + pl_lcm assertion) on older versions — this has been resolved in newer MPVKit releases
  • The demo compiles successfully for visionOS device (xros SDK)

Test plan

  • Build succeeds for visionOS device target (CODE_SIGNING_ALLOWED=NO)
  • Verify video playback on visionOS Simulator or device
  • Test all codec buttons (h264, h265, subtitle, HDR, DV_P5, DV_P8)

Add Demo-visionOS to the demo workspace with Metal-based video playback,
matching the patterns used by the existing iOS, macOS, and tvOS demos.
Adapted for visionOS: no OpenGL, no UIScreen.main, no background lifecycle hacks.
@cxfksword cxfksword merged commit 51dade0 into mpvkit:main Apr 11, 2026
@cxfksword
Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A VisionOS demo project would be a great addition

2 participants