processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
338 stars 91 forks source link

Editor server not able to load mobile video #194

Open bmoren opened 8 years ago

bmoren commented 8 years ago

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.

antiboredom commented 8 years ago

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

bmoren commented 8 years ago

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.