forked from AbhinavTuli/LAN-Music-Player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
a.html
27 lines (25 loc) · 1.08 KB
/
a.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
<html><head>
<title> "LAN Music"</title>
<meta name="viewport" content="width=device-width"></head>
<body data-gr-c-s-loaded="true" bgcolor="#E6E6FA"> <font color="red">This is some text!</font>
<button type="button" onclick="changeIt()">Next</button>
<script>
function changeIt(){
var video = document.getElementById("boro");
alert(video)
var source = document.createElement('source');
console.log("Yo");
source.setAttribute('src', 'http://172.17.66.71:3006/tracks/5e36f8e996e5bf5d6c277c7b');
source.setAttribute('type', 'audio/mp3');
video.replaceChild(source,video.childNodes[0]);
video.play();
// setTimeout(function() {
// video.pause();
// source.setAttribute('src', 'http://localhost:3006/tracks/5e36fadd728b534f9137b3af');
// video.load();
// video.play();
// }, 3000);
}
</script>
<video id="boro" controls="" autoplay="" name="media"><source src="http://172.17.66.71:3006/tracks/5e3611e5aebd4822fc7e3964" type="audio/mp3"></video>
</body></html>