Vision Os Video Component - CRASH - Polyspatial 2.0.4 - Unity 6

Hi,

I have a simple scene with only a VisionOS Video Component and a Mesh Renderer to display the video.

It works in the Editor, but when I build, it crashes instantly.

I’m using PolySpatial 2.0.4. I’ve also tried 2.0.0-pre.11, but it’s not working either.
I tested this on Unity 6000.0.27.

I’m using Xcode 16.2.

I also tried creating a brand-new project with only PolySpatial installed, but it crashes on build as well.

When I remove the VisionOS Video Component from my scene, the build works correctly.

I carefully followed all the instructions here:
https://docs.unity3d.com/Packages/com.unity.polyspatial.visionos@2.0/manual/VideoComponent.html

Here is the crash I encountered on Xcode

And here is the GitHub link to my blank project where the crash occurs:

Hi,

We’ve identified a bug that may occur when the VisionOSVideoComponent is on a different GameObject than that of the MeshRenderer it references. The bug results in errors very similar to that of the attached snippet.

If this is the same bug, as a workaround, please try placing the VisionOSVideoComponent on the same GameObject as the MeshRenderer it’s referencing. Meanwhile, we’ve identified a solution and it should be released soon - most likely not in the immediate next release, but in a subsequent one.

Sorry for the inconvenience!

Thank you very much for your response,
Indeed, it seems to work when the player is on the same object as the renderer.

However, I would like to use this player to play rather heavy videos, and as far as I understand, there is no preloading system for the videos.
What would you recommend to play a video at a specific frame without it lagging at the start?

Thank you

Unfortunately, VisionOSVideoComponent is currently a little limited in feedback and control. Are the heavy videos you are referring to spatial videos? If they aren’t, I would suggest using the normal Unity video player for more control over preloading and seeking. Additionally, is this a local video file or video streaming?

If the videos need to be spatial, please file feedback here to request further additional control over preloading VisionOSVideoComponent.

I started using the Unity Video Player, but my videos are 4K per eye stereo videos in a top-bottom format. However, writing each frame to a render texture causes significant lag.
So now, I’ve encoded them in MV-HEVC (spatial video) and switched to the PolySpatial Video Player. It works, but there’s no preloading…

If I find a solution to my problem, I’ll let you know.

We might be able to expose some version of this API in a future release.

It will be very helpful for me, thanks you very much