I am currently using THREE.LoadingManager in conjunction with various loaders to efficiently handle the loading of textures, models, images, and cubeTextures before my app is displayed. This setup enables me to present a loading bar that shows the overall progress of the loading process, and it functions perfectly:
const loadingManager = new LoadingManager();
// ...
smaaImageLoader = new SMAAImageLoader(loadingManager);
textureLoader = new TextureLoader(loadingManager);
gltfLoader = new GLTFLoader(loadingManager);
cubeTextureLoader = new CubeTextureLoader(loadingManager);
However, I am facing challenges when it comes to loading videos in the same manner. I would like to have a video loader that can be integrated into this system seamlessly:
videoLoader = new VideoLoader(loadingManager); // Unfortunately, this cannot be done
If loading videos manually through JavaScript is the only option, is there a way for me to alert the loadingManager when videos are waiting to be loaded and when they have been successfully loaded?
Thank you