xxxxxxxxxx
16
function setup() {
//createCanvas(400, 400);
// Set video size to fill window
if(windowWidth > windowHeight){
document.getElementById('Brandon').height = windowHeight;
} else {
document.getElementById('Brandon').width = windowWidth;
}
}
function draw() {
document.getElementById('Brandon').currentTime = map(mouseX, 0, windowWidth, 0, document.getElementById('Brandon').duration);
}