-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
32 lines (28 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
<!DOCTYPE html>
<html>
<head>
<title>Simple YouTube Controls Via Console</title>
<script type="text/javascript" src='pubSub.js'></script>
<script type="text/javascript" src='youTubePlayer.js'></script>
<script type="text/javascript" src='speechRecog.js'></script>
</head>
<body>
<div id='replace'></div>
<script type="text/javascript">
(function(VideoPlayer, SpeechRecog) {
var instance = window.APP.instance = new VideoPlayer('replace')
function onYouTubePlayerAPIReady () {
instance.init({
videoId: '3RFLdoJ2tRY',
height: '390',
width: '690'
})
}
window.onYouTubePlayerAPIReady = onYouTubePlayerAPIReady
var speechRecog = window.APP.rg = new SpeechRecog()
speechRecog.init()
})(window.APP.VideoPlayer, window.APP.SpeechRecog)
</script>
<script type="text/javascript" src='subscribedEvents.js'></script>
</body>
</html>