-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
136 lines (111 loc) · 5.07 KB
/
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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!doctype html>
<head>
<meta charset='utf-8'>
<title>SimpleVid on GitHub</title>
<meta name="title" content="SimpleVid Plugin for Fluid Video">
<meta name="description" content="jQuery SimpleVid Plugin for Fluid Video on Github, developed by John Polacek">
<meta name="author" content="John Polacek">
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="css/main.css" type="text/css" />
<!-- Viewport setting for proper display on devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
</head>
<body>
<a href="https://github.com/johnpolacek/SimpleVid">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
</a>
<div id="wrapper">
<h1>
<a href="https://github.com/johnpolacek/SimpleVid">SimpleVid</a><br />
</h1>
<h2>by <a href="http://johnpolacek.github.com">johnpolacek</a> <br /><small><a href="http://twitter.com/johnpolacek">@johnpolacek</a></small></h2>
<div class="description">
<h3>jQuery Plugin for Fluid Video</h3>
<p>Generally it is best to use services like YouTube, Vimeo or a CDN for hosting video, but sometimes it isn’t an option. SimpleVid is a free and easy way to host and embed your own fluid videos. It uses flash to for browsers that don’t support h.264, so you can encode once as a baseline h.264 mp4 and play anywhere.<br />
<small>(Try <a href="http://fitvidsjs.com/">FitVids.js</a> if your video is on YouTube, etc.)</small></p>
</div>
<div id="container">
<video id="myVideo" width="640" height="360" poster="img/poster.jpg" controls>
<source src="vid/video.mp4" type="video/mp4" />
</video>
</div>
<div class="guide">
<h4>How to Use</h4>
<p>Add video to your html in a container div styled to scale as you like.</p>
<p><blockquote><pre>
<div id="container">
<video id="myVideo" width="640" height="360" poster="img/poster.jpg" controls>
<source src="vid/video.mp4" type="video/mp4" />
</video>
</div></pre></blockquote></p>
<p>Link to jQuery and then simplevid.js. Then, initialize the plugin with the settings you want. Last, use the plugin to target video elements on the page.</p>
<p><blockquote><pre>
<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script src="js/simplevid.js"></script>
<script>
var simplevid = new $.simplevid({
player: 'swf/vidobject.swf',
buttonColor: '#FFFFFF',
accentColor: '#BBBBBB',
backgroundColor: '#111111',
scaleVideo: true,
fullScreen: true
});
simplevid.embed("myVideo");
</script></pre></blockquote></p>
<p>Parameters are:</p>
<ul class="parameters">
<li><strong>player:</strong> path to vidobject.swf</li>
<li><strong>buttonColor:</strong> controls button color <small>(default: #ffffff)</small></li>
<li><strong>accentColor:</strong> controls accent color <small>(default #bbbbbb)</small></li>
<li><strong>backgroundColor:</strong> controls background color <small>(default: #111111)</small></li>
<li><strong>scaleVideo:</strong> set to false to disable video scaling</li>
<li><strong>fullScreen:</strong> fullScreen: set to false to disable full screen mode </li>
</ul>
</div>
<p class="download">
Download Plugin:
<a class="download download-link" href="https://github.com/johnpolacek/ResponsiveVideo/zipball/master">zip</a>
<a class="download download-link" href="https://github.com/johnpolacek/ResponsiveVideo/tarball/master">tar</a>
</p>
<p class="thanks">
Thanks to <a href="http://code.google.com/p/swfobject/">swfobject.js</a> for some code, and <a href="http://chriscoyier.net/">Chris Coyier</a> for <a href="http://fitvidsjs.com/">inspiration</a>.
</p>
<p class="github">
Other stuff by me:
<a class="github" href="http://johnpolacek.github.com">johnpolacek.github.com</a>
</p>
<div class="footer">
<p>
<a href="http://twitter.com/johnpolacek">@johnpolacek</a>
<a href="http://johnpolacek.com">johnpolacek.com</a>
</p>
</div>
</div>
<img src="img/resize.png" id="resize-graphic" />
<!-- JavaScript -->
<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script src="js/simplevid.js"></script>
<script>
var simplevid = new $.simplevid({
player: 'swf/vidobject.swf',
buttonColor: '#FFFFFF',
accentColor: '#BBBBBB',
backgroundColor: '#111111',
scaleVideo: true,
fullScreen: true
});
simplevid.embed("myVideo");
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2821890-9']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>