-
Notifications
You must be signed in to change notification settings - Fork 0
/
Replay.html
108 lines (73 loc) · 2.24 KB
/
Replay.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<body>
<button onclick="enableLoop()" type="button">Enable loop</button><br>
<audio id="myVideo" width="320" height="176" controls>
<source src="musicrandb/AaronDeponce/07ClubHoppin.mp3" type="audio/mp3">
<source src="mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</audio>
<audio id="myVideo1" width="320" height="176" controls>
<source src="musicrandb/AaronDeponce/08DanceForMe.mp3" type="audio/mp3">
<source src="mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</audio>
<audio id="myVideo2" width="100" height="176" controls>
<source src="musicrandb/AaronDeponce/12Flauntin.mp3" type="audio/mp3">
<source src="mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</audio>
<script>
var vid = document.getElementById("myVideo");
var vid1 = document.getElementById("myVideo1");
var vid2 = document.getElementById("myVideo2");
function enableLoop(){
vid.loop = true;
vid.load();
}
function enableLoop(){
vid1.loop = true;
vid1.load();
}
function enableLoop() {
vid2.loop = true;
vid2.load();
}
function disableLoop() {
vid3.loop = true;
vid3.load();
}
function disableLoop() {
vid4.loop = true;
vid4.load();
}
function disableLoop(){
alert(vid.loop);
}
</script>
____________________________________________________________________________________
<video id="myVideo1" width="320" height="176" controls>
<source src="mov_bbb.mp4" type="video/mp4">
<source src="mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
<video id="myVideo2" width="320" height="176" controls>
<source src="mov_bbb.mp4" type="video/mp4">
<source src="mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
<script>
var vid1 = document.getElementById("myVideo1");
var vid2 = document.getElementById("myVideo2");
function setMedGroup() {
vid1.mediaGroup="test";
vid2.mediaGroup="test";
}
function getMedGroup() {
alert("Video 1 media group: " + vid1.mediaGroup +
". Video 2 media group: " + vid2.mediaGroup);
}
</script>
<p>Video courtesy of <a href="https://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p>
</body>
</html>