-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (38 loc) · 903 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>nw-sopcast</title>
<script src='js/jquery-1.10.2.min.js'></script>
<script src='nw-spsc.js'></script>
<script>
function PlaySopUrl(sopUrl, player)
{
var spsc = new NwSpsc("sp-sc-auth", player);
if (!spsc) {
console.log("\n");
}
spsc.play(sopUrl);
}
$(document).ready(function(){
console.log("document ready");
$('#PlayBtn').on("click", function(){
console.log("PlayBtn clicked");
var sopUrl = $('#SopUrlInput').val();
var player = $('#PlayerInput').val();
console.log("SopUrl: " + sopUrl);
console.log("player: " + player);
PlaySopUrl(sopUrl, player);
});
});
</script>
</head>
<body>
SopCast URL:
<input id='SopUrlInput' type='text'/>
<br/>
Player:
<input id='PlayerInput' type='text' value="vlc"/>
<br/>
<button id='PlayBtn'>Play</button>
</body>
</html>