Const
Advanced
A simple plugin to load video textures.
You can pass VideoSource options to the loader via the .data property of the asset descriptor when using Asset.load().
// Set the dataconst texture = await Assets.load({ src: './assets/city.mp4', data: { preload: true, autoPlay: true, },}); Copy
// Set the dataconst texture = await Assets.load({ src: './assets/city.mp4', data: { preload: true, autoPlay: true, },});
A simple plugin to load video textures.
You can pass VideoSource options to the loader via the .data property of the asset descriptor when using Asset.load().