demo-03-video.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <!-- Website Design By: www.happyworm.com -->
  6. <title>Demo : Multi instanced jPlayer video players</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  8. <link href="../../dist/skin/blue.monday/css/jplayer.blue.monday.min.css" rel="stylesheet" type="text/css" />
  9. <script type="text/javascript" src="../../lib/jquery.min.js"></script>
  10. <script type="text/javascript" src="../../dist/jplayer/jquery.jplayer.min.js"></script>
  11. <script type="text/javascript">
  12. //<![CDATA[
  13. $(document).ready(function(){
  14. $("#jquery_jplayer_1").jPlayer({
  15. ready: function () {
  16. $(this).jPlayer("setMedia", {
  17. title: "Big Buck Bunny Trailer",
  18. m4v: "http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v",
  19. ogv: "http://www.jplayer.org/video/ogv/Big_Buck_Bunny_Trailer.ogv",
  20. webmv: "http://www.jplayer.org/video/webm/Big_Buck_Bunny_Trailer.webm",
  21. poster: "http://www.jplayer.org/video/poster/Big_Buck_Bunny_Trailer_480x270.png"
  22. });
  23. },
  24. play: function() { // To avoid multiple jPlayers playing together.
  25. $(this).jPlayer("pauseOthers");
  26. },
  27. swfPath: "../../dist/jplayer",
  28. supplied: "webmv, ogv, m4v",
  29. globalVolume: true,
  30. useStateClassSkin: true,
  31. autoBlur: false,
  32. smoothPlayBar: true,
  33. keyEnabled: true
  34. });
  35. $("#jquery_jplayer_2").jPlayer({
  36. ready: function () {
  37. $(this).jPlayer("setMedia", {
  38. title: "Incredibles Teaser",
  39. m4v: "http://www.jplayer.org/video/m4v/Incredibles_Teaser.m4v",
  40. ogv: "http://www.jplayer.org/video/ogv/Incredibles_Teaser.ogv",
  41. webmv: "http://www.jplayer.org/video/webm/Incredibles_Teaser.webm",
  42. poster: "http://www.jplayer.org/video/poster/Incredibles_Teaser_640x272.png"
  43. });
  44. },
  45. play: function() { // To avoid multiple jPlayers playing together.
  46. $(this).jPlayer("pauseOthers");
  47. },
  48. swfPath: "../../dist/jplayer",
  49. supplied: "webmv, ogv, m4v",
  50. cssSelectorAncestor: "#jp_container_2",
  51. globalVolume: true,
  52. useStateClassSkin: true,
  53. autoBlur: false,
  54. smoothPlayBar: true,
  55. keyEnabled: true
  56. });
  57. $("#jquery_jplayer_3").jPlayer({
  58. ready: function () {
  59. $(this).jPlayer("setMedia", {
  60. title: "Finding Nemo Teaser",
  61. m4v: "http://www.jplayer.org/video/m4v/Finding_Nemo_Teaser.m4v",
  62. ogv: "http://www.jplayer.org/video/ogv/Finding_Nemo_Teaser.ogv",
  63. webmv: "http://www.jplayer.org/video/webm/Finding_Nemo_Teaser.webm",
  64. poster: "http://www.jplayer.org/video/poster/Finding_Nemo_Teaser_640x352.png"
  65. });
  66. },
  67. play: function() { // To avoid multiple jPlayers playing together.
  68. $(this).jPlayer("pauseOthers");
  69. },
  70. swfPath: "../../dist/jplayer",
  71. supplied: "webmv, ogv, m4v",
  72. cssSelectorAncestor: "#jp_container_3",
  73. globalVolume: true,
  74. useStateClassSkin: true,
  75. autoBlur: false,
  76. smoothPlayBar: true,
  77. keyEnabled: true
  78. });
  79. });
  80. //]]>
  81. </script>
  82. </head>
  83. <body>
  84. <div id="jp_container_1" class="jp-video jp-video-270p" role="application" aria-label="media player">
  85. <div class="jp-type-single">
  86. <div id="jquery_jplayer_1" class="jp-jplayer"></div>
  87. <div class="jp-gui">
  88. <div class="jp-video-play">
  89. <button class="jp-video-play-icon" role="button" tabindex="0">play</button>
  90. </div>
  91. <div class="jp-interface">
  92. <div class="jp-progress">
  93. <div class="jp-seek-bar">
  94. <div class="jp-play-bar"></div>
  95. </div>
  96. </div>
  97. <div class="jp-current-time" role="timer" aria-label="time">&nbsp;</div>
  98. <div class="jp-duration" role="timer" aria-label="duration">&nbsp;</div>
  99. <div class="jp-controls-holder">
  100. <div class="jp-controls">
  101. <button class="jp-play" role="button" tabindex="0">play</button>
  102. <button class="jp-stop" role="button" tabindex="0">stop</button>
  103. </div>
  104. <div class="jp-volume-controls">
  105. <button class="jp-mute" role="button" tabindex="0">mute</button>
  106. <button class="jp-volume-max" role="button" tabindex="0">max volume</button>
  107. <div class="jp-volume-bar">
  108. <div class="jp-volume-bar-value"></div>
  109. </div>
  110. </div>
  111. <div class="jp-toggles">
  112. <button class="jp-repeat" role="button" tabindex="0">repeat</button>
  113. <button class="jp-full-screen" role="button" tabindex="0">full screen</button>
  114. </div>
  115. </div>
  116. <div class="jp-details">
  117. <div class="jp-title" aria-label="title">&nbsp;</div>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="jp-no-solution">
  122. <span>Update Required</span>
  123. To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
  124. </div>
  125. </div>
  126. </div>
  127. <div id="jp_container_2" class="jp-video jp-video-270p" role="application" aria-label="media player">
  128. <div class="jp-type-single">
  129. <div id="jquery_jplayer_2" class="jp-jplayer"></div>
  130. <div class="jp-gui">
  131. <div class="jp-video-play">
  132. <button class="jp-video-play-icon" role="button" tabindex="0">play</button>
  133. </div>
  134. <div class="jp-interface">
  135. <div class="jp-progress">
  136. <div class="jp-seek-bar">
  137. <div class="jp-play-bar"></div>
  138. </div>
  139. </div>
  140. <div class="jp-current-time" role="timer" aria-label="time">&nbsp;</div>
  141. <div class="jp-duration" role="timer" aria-label="duration">&nbsp;</div>
  142. <div class="jp-controls-holder">
  143. <div class="jp-controls">
  144. <button class="jp-play" role="button" tabindex="0">play</button>
  145. <button class="jp-stop" role="button" tabindex="0">stop</button>
  146. </div>
  147. <div class="jp-volume-controls">
  148. <button class="jp-mute" role="button" tabindex="0">mute</button>
  149. <button class="jp-volume-max" role="button" tabindex="0">max volume</button>
  150. <div class="jp-volume-bar">
  151. <div class="jp-volume-bar-value"></div>
  152. </div>
  153. </div>
  154. <div class="jp-toggles">
  155. <button class="jp-repeat" role="button" tabindex="0">repeat</button>
  156. <button class="jp-full-screen" role="button" tabindex="0">full screen</button>
  157. </div>
  158. </div>
  159. <div class="jp-details">
  160. <div class="jp-title" aria-label="title">&nbsp;</div>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="jp-no-solution">
  165. <span>Update Required</span>
  166. To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
  167. </div>
  168. </div>
  169. </div>
  170. <div id="jp_container_3" class="jp-video jp-video-270p" role="application" aria-label="media player">
  171. <div class="jp-type-single">
  172. <div id="jquery_jplayer_3" class="jp-jplayer"></div>
  173. <div class="jp-gui">
  174. <div class="jp-video-play">
  175. <button class="jp-video-play-icon" role="button" tabindex="0">play</button>
  176. </div>
  177. <div class="jp-interface">
  178. <div class="jp-progress">
  179. <div class="jp-seek-bar">
  180. <div class="jp-play-bar"></div>
  181. </div>
  182. </div>
  183. <div class="jp-current-time" role="timer" aria-label="time">&nbsp;</div>
  184. <div class="jp-duration" role="timer" aria-label="duration">&nbsp;</div>
  185. <div class="jp-controls-holder">
  186. <div class="jp-controls">
  187. <button class="jp-play" role="button" tabindex="0">play</button>
  188. <button class="jp-stop" role="button" tabindex="0">stop</button>
  189. </div>
  190. <div class="jp-volume-controls">
  191. <button class="jp-mute" role="button" tabindex="0">mute</button>
  192. <button class="jp-volume-max" role="button" tabindex="0">max volume</button>
  193. <div class="jp-volume-bar">
  194. <div class="jp-volume-bar-value"></div>
  195. </div>
  196. </div>
  197. <div class="jp-toggles">
  198. <button class="jp-repeat" role="button" tabindex="0">repeat</button>
  199. <button class="jp-full-screen" role="button" tabindex="0">full screen</button>
  200. </div>
  201. </div>
  202. <div class="jp-details">
  203. <div class="jp-title" aria-label="title">&nbsp;</div>
  204. </div>
  205. </div>
  206. </div>
  207. <div class="jp-no-solution">
  208. <span>Update Required</span>
  209. To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
  210. </div>
  211. </div>
  212. </div>
  213. </body>
  214. </html>