Code Monkey home page Code Monkey logo

Comments (4)

DigitalSismo avatar DigitalSismo commented on August 25, 2024

It works .webm videos but it doesn't work with .mp4 ...

from awe.js.

Ouaps avatar Ouaps commented on August 25, 2024

Hello,
I'm trying to replace the picture by a video in .webm but it doesn't work... Can you explain me how did you do this ? I followed the instructions done in the awe.js tutorial but, it's doesn't work.
When i do this and when i run the program in the last Firefox"s version it doesn't work and debugguers say me : "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".

I try to understand but i'm begineer and if you can explain me why it doesn't word for videos, it would be wonderfull !
It was easy to run the video in 3d form with three, the program run but not here...
Thanks !

from awe.js.

robman avatar robman commented on August 25, 2024

Hi @DigitalSismo and @Ouaps apologies for missing this issue.

This will work with Firefox but the normal CORS rules apply so you should load the video from the same host to make this easier (or adjust your CORS config).

The problem with Chrome and Opera is that they require a user touch event to start the playing of the media. This is a policy decision and you can see the background and a full discussion here https://code.google.com/p/chromium/issues/detail?id=178297

Hopefully this will change at some point in the future - but until then you can use a "start" button to work around this.

from awe.js.

DigitalSismo avatar DigitalSismo commented on August 25, 2024

@robman Thank you for your reply :)

from awe.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.