p5.js-editor
p5.js-editor copied to clipboard
Editor server not able to load mobile video
When loading video to iPhone using the editor's built in server (connecting to the editors server IP via iOS), it will not load video files / allow you to use the video capability in p5.dom.
Hey - can you post the code (and video) that's not working? Thanks!
var video;
function setup() {
createCanvas(windowWidth,windowHeight);
video = createVideo('assets/test.mp4');
// video.hide();
}
function draw() {
background(255);
}
function touchStarted() {
video.play();
}
this should work(not work) with any .mp4 file It does work when hosted on a external server system through our college and not run through the editor.