forked from kerrishotts/iSite-Mobile
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayVideo.php
34 lines (28 loc) · 1.12 KB
/
playVideo.php
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
<div class="content">
<!-- from http://developer.apple.com/library/safari/#documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html -->
<script type="text/javascript">
function playPause() {
var myVideo = $("myVideo");
if (myVideo.paused)
myVideo.play();
else
myVideo.pause();
}
function makeBig() {
var myVideo = $("myVideo");
myVideo.height = (myVideo.videoHeight * 2 ) ;
}
function makeNormal() {
var myVideo = $("myVideo");
myVideo.height = (myVideo.videoHeight) ;
}
</script>
<div class="video-player" align="center">
<video id="myVideo" src="<?= $_REQUEST["uri"] ?>" poster="<?= $_REQUEST["img"] ?>" controls autoplay preload width=640px></video>
<br>
<a href="javascript:playPause();">Play/Pause</a> <br>
<a href="javascript:makeBig();">2x Size</a> |
<a href="javascript:makeNormal();">1x Size</a> <br>
<a href="<?= $_REQUEST["uri"] ?>">Load Movie in Safari...</a>
</div>
</div>