I want to display a video. The sound plays but the screen is blank.

var fingers;

function setup() { createCanvas(1920, 1080); // specify multiple formats for different browsers fingers = createVideo(['assets/glen.mov']); //fingers.hide(); // by default video shows up in separate dom // element. hide it and draw it to the canvas // instead fingers.loop(); }

function draw() { background(150); image(fingers,10,10); // draw the video frame to canvas //filter('GRAY'); image(fingers,150,150); // draw a second copy to canvas }

Answers

Sign In or Register to comment.