Application des fonctionnalités Popcorn.js
Application des fonctionnalités Popcorn.js
Le but de cet exercice est de vous permettre d'appliquer fonctionnalités abordées précédemment. Dans la suite de cet exercice, vous allez utilisez le code suivant comme base.
CTRL+C pour copier, CTRL+V pour coller
1
2
<html>
3
<head>
4
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
5
</head>
6
<body>
7
<video height="180" width="300" id="ourvideo" controls>
8
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv">
9
</video>
10
<script>
11
var pop = Popcorn("#ourvideo");
12
pop.play();
13
</script>
14
</body>
15
</html>
<!doctype html> <html> <head> <script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script> </head> <body> <video height="180" width="300" id="ourvideo" controls> <source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv"> </video> <script> var pop = Popcorn("#ourvideo"); pop.play(); </script> </body> </html>