-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (23 loc) · 844 Bytes
/
index.html
File metadata and controls
28 lines (23 loc) · 844 Bytes
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
<!DOCTYPE HTML>
<html>
<head>
<title>Video switcher demo by AK © 2019</title>
<script defer
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
</head>
<body>
<p>Rotating videos:</p>
<div id="myvideo"></div>
<script src="video-switcher.js"></script>
<script>
videoSwitcher.init({id: "myvideo", rotate: true, vids: [
{file: "./vids/FeaturedRestaurantHurricaneCafe.mp4", duration: 900}, // duration in seconds. 900 = 15 minutes.
{file: "./vids/FeaturedRestaurantBistro.mp4", duration: 900},
{file: "./vids/FeaturedRestaurantNJOsteria2.mp4", duration: 900},
{file: "./vids/FeaturedRestaurantPortobello.mp4", duration: 900},
]});
</script>
</body>
</html>