I attempted to apply a video as a texture on a mesh, and tried two different examples:
and
Both examples worked fine online but didn't display anything when downloaded from GitHub.
When I added the code:
videoTexture.needsUpdate = false;
the floor and screen showed up. The video played with sound, but no images were visible.
Does anyone have a solution for this issue?
(I tested in both Firefox and Chromium).
Edit: In the Firefox console, I received this error message:
SecurityError: The operation is insecure. Three.js:25696:0
Error: WebGL: The canvas used as source for texImage2D here is tainted (write-only). It is forbidden to load a WebGL texture from a tainted canvas. A Canvas becomes tainted for example when a cross-domain image is drawn on it. See https://developer.mozilla.org/en/WebGL/Cross-Domain_Textures