-
Notifications
You must be signed in to change notification settings - Fork 24
/
demo.html
33 lines (32 loc) · 1.61 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Demo</title>
</head>
<body>
<!-- A simple crossbrowser-safe HTML5 video solution with Flash fallback -->
<!-- GitHub repo: https://github.com/panique/html5-video -->
<!-- Tutorial article: http://www.dev-metal.com/crossbrowser-safe-html5-video-ie6-lines-code/ -->
<!-- HTML5 video tag -->
<video controls="controls" poster="img/demo.jpg" width="640" height="360">
<!-- .mp4 file for native playback in IE9+, Firefox, Chrome, Safari and most mobile browsers -->
<source src="vid/demo.mp4" type="video/mp4" />
<!-- flash fallback for IE6, IE7, IE8 and Opera -->
<object type="application/x-shockwave-flash"
data="swf/flowplayer-3.2.18.swf" width="640" height="360">
<param name="movie" value="swf/flowplayer-3.2.18.swf" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<!-- note the encoded path to the image and video files, relative to the .swf! -->
<!-- more on that here: http://en.wikipedia.org/wiki/Percent-encoding -->
<param name="flashVars"
value="config={'playlist':['..%2Fimg%2Fdemo.jpg',{'url':'..%2Fvid%2Fdemo.mp4','autoPlay':false}]}" />
<!-- fallback image if flash fails -->
<img src="img/demo.jpg" width="640" height="360" title="No Flash found" />
</object>
</video>
</body>
</html>