![](https://www.m2-trading.ch/wp-content/uploads/2019/02/bernaqua.jpg)
![](https://www.m2-trading.ch/wp-content/uploads/2019/02/carrefour.jpg)
![](https://www.m2-trading.ch/wp-content/uploads/2019/02/coca-cola.jpg)
![](https://www.m2-trading.ch/wp-content/uploads/2019/02/mercedes-benz.jpg)
![](https://www.m2-trading.ch/wp-content/uploads/2019/02/shell.jpg)
![](https://www.m2-trading.ch/wp-content/uploads/2019/02/zuerich.jpg)
![](https://www.m2-trading.ch/wp-content/uploads/2019/02/lidl.jpg)
![](https://www.m2-trading.ch/wp-content/uploads/2019/02/manor.jpg)
![](https://www.m2-trading.ch/wp-content/uploads/2019/02/mc-donalds.jpg)
Bilder
Bilder
var timerID;
window.onload = function() {
canvas = document.getElementById('myCanvas');
ctx = canvas.getContext('2d');
var video = document.getElementById('video');
video.addEventListener('play', function() {
video.currentTime = 0;
timerID = window.setInterval(function() {
ctx.drawImage(video, 0, 0, 600, 460)
}, 30);
});
video.addEventListener('pause', function() {
stopTimer();
});
video.addEventListener('ended', function() {
stopTimer();
});
}