video.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>AnythingSlider Video Demo</title>
  6. <link rel="shortcut icon" href="demos/images/favicon.ico">
  7. <link rel="apple-touch-icon" href="demos/images/apple-touch-icon.png">
  8. <!-- jQuery (required) -->
  9. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
  10. <script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
  11. <!-- Demo stuff -->
  12. <link rel="stylesheet" href="demos/css/page.css">
  13. <!-- Anything Slider optional plugins, but needed so the embeded video controls will work in IE -->
  14. <!-- http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js -->
  15. <script src="js/swfobject.js"></script>
  16. <!-- Anything Slider -->
  17. <link rel="stylesheet" href="css/anythingslider.css">
  18. <script src="js/jquery.anythingslider.js"></script>
  19. <!-- AnythingSlider video extension; optional, but needed to control video pause/play -->
  20. <script src="js/jquery.anythingslider.video.js"></script>
  21. <script>
  22. // DOM Ready
  23. $(function(){
  24. $('#slider').anythingSlider({
  25. resizeContents : true,
  26. addWmodeToObject : 'transparent',
  27. navigationFormatter : function(index, panel){ // Format navigation labels with text
  28. return ['Vimeo-iframe', 'Vimeo-embed', 'YouTube-iframe', 'YouTube-embed', 'HTML5 Video'][index - 1];
  29. }
  30. });
  31. });
  32. </script>
  33. <!-- Older IE stylesheet, to reposition navigation arrows, added AFTER the theme stylesheet above -->
  34. <!--[if lte IE 7]>
  35. <link rel="stylesheet" href="css/anythingslider-ie.css" type="text/css" media="screen" />
  36. <![endif]-->
  37. </head>
  38. <body>
  39. <br>
  40. <div id="nav">
  41. <a href="index.html">Main Demo</a>
  42. <a href="simple.html">Simple Demo</a>
  43. <a href="expand.html">Expand Demo</a>
  44. <a class="current" href="video.html">Video Demo</a>
  45. <a href="demos.html">FX Demos</a>
  46. <a class="play" href="http://jsfiddle.net/Mottie/VM8XG/">Playground</a>
  47. <a class="git" href="https://github.com/ProLoser/AnythingSlider/wiki">Documentation</a>
  48. <a class="git" href="http://github.com/ProLoser/AnythingSlider/downloads">Download</a>
  49. <a class="issue" href="https://github.com/ProLoser/AnythingSlider/issues">Issues</a>
  50. </div>
  51. <br><br>
  52. <!-- START AnythingSlider -->
  53. <ul id="slider">
  54. <!-- Vimeo: iframe -->
  55. <li class="panel1"><iframe src="http://player.vimeo.com/video/18011143?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe></li>
  56. <!-- Vimeo: Embeded -->
  57. <li class="panel2"><object width="940" height="529"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12280336&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=12280336&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="940" height="529"></embed></object></li>
  58. <!-- YouTube: iframe -->
  59. <li class="panel3"><iframe title="YouTube video player" width="480" height="385" src="http://www.youtube.com/embed/1gOyrAVZHi4" frameborder="0" allowfullscreen></iframe></li>
  60. <!-- YouTube: Embedded -->
  61. <li class="panel4"><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/zSgiXGELjbc&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zSgiXGELjbc&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></li>
  62. <!-- HTML5 Video -->
  63. <li class="panel5">
  64. <video width="320" height="240" controls="controls">
  65. <source src="demos/video/movie.ogg" type="video/ogg">
  66. <source src="demos/video/movie.mp4" type="video/mp4">
  67. <source src="demos/video/movie.webm" type="video/webm">
  68. Your browser does not support the video tag. But you could include an iframe/embeded video here.
  69. </video>
  70. </li>
  71. </ul> <!-- END AnythingSlider -->
  72. <br>
  73. <!-- Video compatibility table -->
  74. <div class="video-info">
  75. <h2>AnythingSlider Video Extension Compatibility</h2>
  76. <table border="1" class="data">
  77. <thead>
  78. <tr>
  79. <th rowspan="2">Video Type</th>
  80. <th rowspan="2">Function</th>
  81. <th colspan="7">Browser</th>
  82. </tr>
  83. <tr>
  84. <th class="header">FF</th>
  85. <th class="header">C</th>
  86. <th class="header">S</th>
  87. <th class="header">O</th>
  88. <th class="header">IE9</th>
  89. <th class="header">IE8</th>
  90. <th class="header">IE7</th>
  91. </tr>
  92. </thead>
  93. <tbody>
  94. <tr>
  95. <th rowspan="4">Vimeo iframe</th>
  96. <td>Setup</td>
  97. <td class="good"></td> <!-- Firefox -->
  98. <td class="good"></td> <!-- Chrome -->
  99. <td class="good"></td> <!-- Safari -->
  100. <td class="good"></td> <!-- Opera -->
  101. <td class="good"></td> <!-- IE9 -->
  102. <td class="good"></td> <!-- IE8 -->
  103. <td class="good"></td> <!-- IE7 -->
  104. </tr>
  105. <tr>
  106. <td>Continue</td>
  107. <td class="good"></td> <!-- Firefox -->
  108. <td class="good"></td> <!-- Chrome -->
  109. <td class="good"></td> <!-- Safari -->
  110. <td class="good"></td> <!-- Opera -->
  111. <td class="good"></td> <!-- IE9 -->
  112. <td class="good"></td> <!-- IE8 -->
  113. <td class="bad"></td> <!-- IE7 -->
  114. </tr>
  115. <tr><td>Pause</td>
  116. <td class="good"></td> <!-- Firefox -->
  117. <td class="good"></td> <!-- Chrome -->
  118. <td class="good"></td> <!-- Safari -->
  119. <td class="good"></td> <!-- Opera -->
  120. <td class="good"></td> <!-- IE9 -->
  121. <td class="good"></td> <!-- IE8 -->
  122. <td class="bad"></td> <!-- IE7 -->
  123. </tr>
  124. <tr>
  125. <td>Pause Slideshow</td>
  126. <td class="good"></td> <!-- Firefox -->
  127. <td class="good"></td> <!-- Chrome -->
  128. <td class="good"></td> <!-- Safari -->
  129. <td class="good"></td> <!-- Opera -->
  130. <td class="good"></td> <!-- IE9 -->
  131. <td class="good"></td> <!-- IE8 -->
  132. <td class="bad"></td> <!-- IE7 -->
  133. </tr>
  134. <tr>
  135. <th rowspan="4">Vimeo embed</th>
  136. <td>Setup</td>
  137. <td class="good"></td> <!-- Firefox -->
  138. <td class="good"></td> <!-- Chrome -->
  139. <td class="good"></td> <!-- Safari -->
  140. <td class="good"></td> <!-- Opera -->
  141. <td class="good"></td> <!-- IE9 -->
  142. <td class="good"></td> <!-- IE8 -->
  143. <td class="good"></td> <!-- IE7 -->
  144. </tr>
  145. <tr>
  146. <td>Continue</td>
  147. <td class="good"></td> <!-- Firefox -->
  148. <td class="good"></td> <!-- Chrome -->
  149. <td class="good"></td> <!-- Safari -->
  150. <td class="good"></td> <!-- Opera -->
  151. <td class="good"></td> <!-- IE9 -->
  152. <td class="good"></td> <!-- IE8 -->
  153. <td class="good"></td> <!-- IE7 -->
  154. </tr>
  155. <tr><td>Pause</td>
  156. <td class="good"></td> <!-- Firefox -->
  157. <td class="good"></td> <!-- Chrome -->
  158. <td class="good"></td> <!-- Safari -->
  159. <td class="good"></td> <!-- Opera -->
  160. <td class="good"></td> <!-- IE9 -->
  161. <td class="good"></td> <!-- IE8 -->
  162. <td class="good"></td> <!-- IE7 -->
  163. </tr>
  164. <tr>
  165. <td>Pause Slideshow</td>
  166. <td class="good"></td> <!-- Firefox -->
  167. <td class="good"></td> <!-- Chrome -->
  168. <td class="good"></td> <!-- Safari -->
  169. <td class="good"></td> <!-- Opera -->
  170. <td class="good"></td> <!-- IE9 -->
  171. <td class="good"></td> <!-- IE8 -->
  172. <td class="good"></td> <!-- IE7 -->
  173. </tr>
  174. <tr>
  175. <th rowspan="4">YouTube iframe</th>
  176. <td>Setup</td>
  177. <td class="good"></td> <!-- Firefox -->
  178. <td class="good"></td> <!-- Chrome -->
  179. <td class="good"></td> <!-- Safari -->
  180. <td class="good"></td> <!-- Opera -->
  181. <td class="good"></td> <!-- IE9 -->
  182. <td class="good"></td> <!-- IE8 -->
  183. <td class="good"></td> <!-- IE7 -->
  184. </tr>
  185. <tr>
  186. <td>Continue *</td>
  187. <td class="prob"></td> <!-- Firefox -->
  188. <td class="prob"></td> <!-- Chrome -->
  189. <td class="prob"></td> <!-- Safari -->
  190. <td class="bad"></td> <!-- Opera -->
  191. <td class="prob"></td> <!-- IE9 -->
  192. <td class="prob"></td> <!-- IE8 -->
  193. <td class="bad"></td> <!-- IE7 -->
  194. </tr>
  195. <tr><td>Pause</td>
  196. <td class="good"></td> <!-- Firefox -->
  197. <td class="good"></td> <!-- Chrome -->
  198. <td class="good"></td> <!-- Safari -->
  199. <td class="good"></td> <!-- Opera -->
  200. <td class="good"></td> <!-- IE9 -->
  201. <td class="good"></td> <!-- IE8 -->
  202. <td class="bad"></td> <!-- IE7 -->
  203. </tr>
  204. <tr>
  205. <td>Pause Slideshow</td>
  206. <td class="good"></td> <!-- Firefox -->
  207. <td class="good"></td> <!-- Chrome -->
  208. <td class="good"></td> <!-- Safari -->
  209. <td class="bad"></td> <!-- Opera -->
  210. <td class="good"></td> <!-- IE9 -->
  211. <td class="good"></td> <!-- IE8 -->
  212. <td class="bad"></td> <!-- IE7 -->
  213. </tr>
  214. <tr>
  215. <th rowspan="4">YouTube embed</th>
  216. <td>Setup</td>
  217. <td class="good"></td> <!-- Firefox -->
  218. <td class="good"></td> <!-- Chrome -->
  219. <td class="good"></td> <!-- Safari -->
  220. <td class="good"></td> <!-- Opera -->
  221. <td class="good"></td> <!-- IE9 -->
  222. <td class="good"></td> <!-- IE8 -->
  223. <td class="good"></td> <!-- IE7 -->
  224. </tr>
  225. <tr>
  226. <td>Continue</td>
  227. <td class="good"></td> <!-- Firefox -->
  228. <td class="good"></td> <!-- Chrome -->
  229. <td class="good"></td> <!-- Safari -->
  230. <td class="good"></td> <!-- Opera -->
  231. <td class="good"></td> <!-- IE9 -->
  232. <td class="good"></td> <!-- IE8 -->
  233. <td class="good"></td> <!-- IE7 -->
  234. </tr>
  235. <tr><td>Pause</td>
  236. <td class="good"></td> <!-- Firefox -->
  237. <td class="good"></td> <!-- Chrome -->
  238. <td class="good"></td> <!-- Safari -->
  239. <td class="good"></td> <!-- Opera -->
  240. <td class="good"></td> <!-- IE9 -->
  241. <td class="good"></td> <!-- IE8 -->
  242. <td class="good"></td> <!-- IE7 -->
  243. </tr>
  244. <tr>
  245. <td>Pause Slideshow</td>
  246. <td class="good"></td> <!-- Firefox -->
  247. <td class="good"></td> <!-- Chrome -->
  248. <td class="good"></td> <!-- Safari -->
  249. <td class="good"></td> <!-- Opera -->
  250. <td class="good"></td> <!-- IE9 -->
  251. <td class="good"></td> <!-- IE8 -->
  252. <td class="good"></td> <!-- IE7 -->
  253. </tr>
  254. <tr>
  255. <th rowspan="4">HTML5 Video</th>
  256. <td>Setup</td>
  257. <td class="good"></td> <!-- Firefox -->
  258. <td class="good"></td> <!-- Chrome -->
  259. <td class="prob"></td> <!-- Safari -->
  260. <td class="good"></td> <!-- Opera -->
  261. <td class="good"></td> <!-- IE9 -->
  262. <td class="bad"></td> <!-- IE8 -->
  263. <td class="bad"></td> <!-- IE7 -->
  264. </tr>
  265. <tr>
  266. <td>Continue</td>
  267. <td class="good"></td> <!-- Firefox -->
  268. <td class="good"></td> <!-- Chrome -->
  269. <td class="good"></td> <!-- Safari -->
  270. <td class="good"></td> <!-- Opera -->
  271. <td class="good"></td> <!-- IE9 -->
  272. <td class="bad"></td> <!-- IE8 -->
  273. <td class="bad"></td> <!-- IE7 -->
  274. </tr>
  275. <tr><td>Pause</td>
  276. <td class="good"></td> <!-- Firefox -->
  277. <td class="good"></td> <!-- Chrome -->
  278. <td class="good"></td> <!-- Safari -->
  279. <td class="good"></td> <!-- Opera -->
  280. <td class="good"></td> <!-- IE9 -->
  281. <td class="bad"></td> <!-- IE8 -->
  282. <td class="bad"></td> <!-- IE7 -->
  283. </tr>
  284. <tr>
  285. <td>Pause Slideshow</td>
  286. <td class="good"></td> <!-- Firefox -->
  287. <td class="good"></td> <!-- Chrome -->
  288. <td class="good"></td> <!-- Safari -->
  289. <td class="good"></td> <!-- Opera -->
  290. <td class="good"></td> <!-- IE9 -->
  291. <td class="bad"></td> <!-- IE8 -->
  292. <td class="bad"></td> <!-- IE7 -->
  293. </tr>
  294. </tbody>
  295. </table>
  296. <br>
  297. <h3>Legend</h3>
  298. <ul>
  299. <li>(*) YouTube iframe
  300. <ul>
  301. <li>The video autoplays (continues) the second time the video comes into view, because it gets paused even though it hasn't started; oddly this isn't a problem in Firefox. Still working on a fix.</li>
  302. <li>Watching a related video breaks the ability if the slider to continue playing and pause the slideshow while playing these videos. This is because the iframe does not update the video URL and there is no way, that I know of, of determining which iframe is reporting a status change.</li>
  303. </ul>
  304. </li>
  305. <li>(FF) Firefox 3+ - No problems noted.</li>
  306. <li>(C) Chrome - Ignore "Unsafe JavaScript attempt to access frame with URL" error.</li>
  307. <li>(S) Safari 4+
  308. <ul>
  309. <li>HTML5 video shows up as a black box when it should be hidden by overflow (at least in Windows).</li>
  310. <li>In Safari for Windows, including an HTML5 along with other videos appears to offset every video down and right (about 100px) for an unknown reason. For now, this issue can be solved by keeping HTML5 videos separate from other videos.</li>
  311. </ul>
  312. </li>
  313. <li>(O) Opera 9+ - YouTube iframe does not update player status when the script controls it (<a href="https://groups.google.com/forum/#!msg/youtube-api-gdata/eaPsecXHVmc/NXNDQhMZcwsJ">reported</a>). So this breaks this extension's ability to resume a video and pause the slideshow.</li>
  314. <li>(IE9) Internet Explorer 9 - See "*" Note above.</li>
  315. <li>(IE8) Internet Explorer 8 - no support for HTML5.</li>
  316. <li>(IE7) Internet Explorer 7 - no support for HTML5 and no support for iframe communication.</li>
  317. </ul>
  318. </div>
  319. <br>
  320. </body>
  321. </html>