I think you can already guess the challenge I’m facing from the thread title.
As I understand it we can’t use VideoTexture from a WebWorker context because WebWorkers don’t have access to the DOM and can’t create video elements.
In looking for workarounds I thought I might stream the video frames to the worker individually as images, and update a DynamicTexture instead on the worker side; however, the task is not trivial, and I have no clue if that’s really efficient; and since my app is quite video intensive and can have upwards of 30-40 VideoTextures running simultaneously, I wanted to check with the community for thoughts before I go down the rabbit hole (in case there is a smarter strategy)
Would be grateful for any thoughts/ideas on how to best approach this