I want to distribute a video clip with Assetbundles using VideoPlayer component, but it doesn’t work.
Is there anyone who succeeded in playing videos with Assetbundles?
I apply PolySpatialObjectUtils.MarkDirty(renderTexture) and use BuildAssetBundleOptions.UncompressedAssetBundle option.
The following errors occur on both Unity Editor and a simulator.
AVFoundationVideoMedia error while reading unityvfs:///LOCALPATH/archive:/CAB-5d40f7cad7c871cf2ad2af19ac542994/CAB-5d40f7cad7c871cf2ad2af19ac542994.resource
Context: AVFoundationVideoMedia::OpenForRead found no video tracks
Error details: <Empty>
VideoPlayer cannot play clip : Assets/PATH/video.mp4
Video clip assets currently do not work with asset bundles; this is a known limitation. At the moment, they must be placed into the StreamingAssets folder so they can be accessed on device/sim.
Can you submit a bug report (no repro project needed!) or submit a request on the visionOS roadmap and we can begin to compare it with other feature requests? Thank you!