-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.html.old
68 lines (61 loc) · 2.27 KB
/
client.html.old
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
<html>
<head>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="realtime-notifications/src/lib/gritter/js/jquery.gritter.min.js"></script>
<link href="realtime-notifications/src/lib/gritter/css/jquery.gritter.css"rel="stylesheet" type="text/css" />
<script src="/pusher.js"></script>
<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>
<script src="realtime-notifications/src/PusherNotifier.js"></script>
<script language=javascript>
alert(UTC());
$.ajax("/getoffset.php");
$(function() {
var pusher = new Pusher('3b401827ffe6d1227039');
var channel_play_silence = pusher.subscribe('play_silence');
var channel_play = pusher.subscribe('play_ey_ey');
var channel_pause = pusher.subscribe('pause_ss');
channel_play_silence.bind("play_silence", function() {
play_silence();});
channel_play.bind("play", function(data){
alert(data.time);
play();});
channel_pause.bind("pause", function(){
pause();});
var notifier_play_silence = new PusherNotifier(channel_play_silence);
var notifier_play = new PusherNotifier(channel_play);
var notifier_pause = new PusherNotifier(channel_pause);
});
function play_silence() {
document.getElementById("player_silence").play();
}
function play() {
document.getElementById("player").play();
}
function pause() {
document.getElementById("player").pause();
}
</script>
</head>
<body>
<!-- <embed height="50px" width="100px" src="Beeps.mp3"></embed> -->
<audio id="player_silence" height="50px" width="100px">
<source src="/Silence.wav" type="audio/wav" />
<embed height="50px" width="100px" src="/Silence.wav" />
</audio>
<audio id="player" height="50px" width="100px">
<source src="/Strobe.wav" type="audio/wav" />
<embed height="50px" width="100px" src="/Strobe.wav" />
</audio>
<!--<input type="button" value="hello" onClick="play()"> </input>
<embed id="player" src="/Beeps.mp3" hidden="true" autostart="false" autoplay="false" loop="false" /> -->
<!--
<object height="50px" width="100px">
<param name="autostart" value="true">
<param name="src" value="/Beeps.mp3">
<param name="autoplay" value="false">
<param name="controller" value="false">
<embed src="/Beeps.mp3" controller="false" autoplay="false" autostart="false" type="audio/mp3" />
</object>
-->
</body>
</html>