-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathexample.html
36 lines (29 loc) · 1.16 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<title>Vimeo</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="src/jquery.vimeo.api.js"></script>
</head>
<body>
<!-- Example Vimeo Video Embed -->
<iframe width="1200" height="675" wmode="transparent" id="video" src="https://player.vimeo.com/video/77889659?background=0&title=0&byline=0&portrait=0&color=ffffff&autoplay=0&api=1&player_id=player_1&hd=1"></iframe>
<script type="text/javascript">
$(document).ready(function($) {
$("#video").vimeo("play").on("play", function(e){
console.log("play event was triggered");
})
.on("pause", function(e){
console.log("pause event was triggered");
})
.on("playProgress", function(event, data){
console.log(data);
})
.on("finish", function(e){
vid.vimeo("unload");
console.log("Finished event triggere");
});
});
</script>
</body>
</html>