p5.js-editor icon indicating copy to clipboard operation
p5.js-editor copied to clipboard

Editor server not able to load mobile video

Open bmoren opened this issue 9 years ago • 2 comments

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.

bmoren avatar Nov 16 '15 18:11 bmoren

Hey - can you post the code (and video) that's not working? Thanks!

antiboredom avatar Nov 16 '15 19:11 antiboredom


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.

bmoren avatar Nov 16 '15 19:11 bmoren