forked from Balajims88/balajims88.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo.html
44 lines (38 loc) · 1.89 KB
/
video.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
<!DOCTYPE html>
<html>
<body>
<!-- <script type="text/javascript" src="impress.js"></script> -->
<script>
function playPause() {
var myVideo = document.getElementsByTagName('audio')[0];
if (myVideo.paused)
myVideo.play();
else
myVideo.pause();
}
document.documentElement.addEventListener("keyup", function(e) {
var myVideo = document.getElementsByTagName('audio')[0];
var ev = e || window.event; // window.event for IE fallback
if(ev.keyCode == 13) {
// toggle play/pause
if(myVideo.paused) { myVideo.play(); }
else { myVideo.pause(); }
}
});
</script>
<div style="height:505px; width:676px;padding: 20px 50px;border: 1px solid #333;">
<div style="max-height:444px;max-width: 676px; max-height: auto;border: 1px solid #333;">
<!-- <video id ="vid" autoplay style="max-height:380px; /*height:380px; width:676px; */
max-width: 100%; max-height: 100%;">
<source src="https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_30mb.mp4">
</video>-->
<audio src="https://x1-dev-ipv6.radio.com/WBBMAMAAC.aac" preload="none" ></audio>
<!--<audio src="https://c3icy.prod.playlists.ihrhls.com/4418_icy?dist=iheart&clientType=comcast&iheartradioversion=5&deviceid=f73690bd-6be9-42a7-92d0-275b2d267765&Devicename=comcast&ProfileId=1290133885&terminalid=335&streamid=4418&callLetters=ICTY-FL&listenerId=f73690bd-6be9-42a7-92d0-275b2d267765&amsparams=playerid%3AiHeartRadioComcast%3Bskey%3A1577375189964%3B&osVersion=&init_id=8169&fbbroadcast=0&at=1&awparams=&lat=&lon=" preload="auto" ></audio>-->
<div style="font-size: 20pt;padding: 10px;text-align: center;color=red;color: #00FF00;">
Answer the question following the video</div>
</div>
</div>
<!--<input id ="vid1" type=button onclick="playPause()" value="Play/Pause">
<video width="320" height="150" src=mov_bbb.mp4 autoplay></video> -->
</body>
</html>