Giulio Posted February 26, 2018 Share Posted February 26, 2018 Hi, I'm using PIXI.Texture.fromVideo(videoElement). The video has an external source (mp4 file from Vimeo's server). I've already setted `crossOrigin = 'anonymous'` Only on Safari iOS (11.2) I'm getting the error: `SecurityError (DOM Exception 18): The operation is insecure.` Here's the demo: https://codepen.io/giuliocollesei/full/JpmajV Maybe someone can help me? Thanks ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Exca Posted February 26, 2018 Share Posted February 26, 2018 The server needs to have proper crossdomain configuration as well to tell the the browser that data read from this origin can be accessed from other domains. I'm not sure what crossdomain configuration vimeo has. ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Giulio Posted February 27, 2018 Author Share Posted February 27, 2018 I've done some research and it seems to be a Safari's cors related bug that occurs when using a video as webgl texture. Test: https://krpano.com/ios/bugs/ios8-webgl-video-cors/ Discussion: https://github.com/mrdoob/three.js/issues/8110 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.