We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello everyone,
I am working on a website with p5.js, and I wanted to know a bit more about the createVideo() method.
First I would like to know if there is a way to force the controls to show up ? By default on chrome, controls won't show, I have to right click the video and toggle the 'display controls" element in the menu.
The second thing, is that I don't manage to include a video from youtube for example. Is there a way to do that ?
Answers
Hello I found a solution :)
To embed a video from youtube or vimeo, the best way is to use the createDiv() method : http://p5js.org/reference/#/p5/createDiv
you just have to paste the embed code from whatever website your video is on, and it's good to go.