]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Merge remote branch 'edsfault/ticket399' into 0.6
authorAnna Sobiepanek <annaopensource at gmail.com>
Wed, 18 May 2011 18:37:01 +0000 (14:37 -0400)
committerAnna Sobiepanek <annaopensource at gmail.com>
Wed, 18 May 2011 18:37:01 +0000 (14:37 -0400)
1  2 
plugins/index.html
plugins/pause/popcorn.pause.html
plugins/pause/popcorn.pause.unit.html

index c3dcd314621044f8fccdf3fb2f292f11434d5710,dd135e94746a61e6e6192c7b030089c5f48ac354..839e43d8a8276f0fd6d504bea2c1cc02492eb6cd
        <li><a onclick="clearEvents();" target="out" href="googlefeed/popcorn.googlefeed.unit.html">googlefeed</a></li>
        <li><a onclick="clearEvents();" target="out" href="image/popcorn.image.unit.html">image</a></li>
        <li><a onclick="clearEvents();" target="out" href="lastfm/popcorn.lastfm.unit.html">lastfm</a></li>
 +      <li><a onclick="clearEvents();" target="out" href="linkedin/popcorn.linkedin.unit.html">linkedin</a></li>
        <li><a onclick="clearEvents();" target="out" href="lowerthird/popcorn.lowerthird.unit.html">lowerthird</a></li>
        <li><a onclick="clearEvents();" target="out" href="mustache/popcorn.mustache.unit.html">mustache</a></li>
 -       <li><a onclick="clearEvents();" target="out" href="openmap/popcorn.openmap.unit.html">openmap</a></li>
 +      <li><a onclick="clearEvents();" target="out" href="openmap/popcorn.openmap.unit.html">openmap</a></li>
++      <li><a onclick="clearEvents();" target="out" href="pause/popcorn.pause.unit.html">pause</a></li>
        <li><a onclick="clearEvents();" target="out" href="subtitle/popcorn.subtitle.unit.html">subtitle</a></li>
        <li><a onclick="clearEvents();" target="out" href="tagthisperson/popcorn.tagthisperson.unit.html">tagthisperson</a></li>
        <li><a onclick="clearEvents();" target="out" href="twitter/popcorn.twitter.unit.html">twitter</a></li>
    <script>
    var eventList = [];
    function runAllTests(){
 -    var testUrl = [ "attribution", "code", "flickr", "footnote", "googlemap", 
 -                    "googlenews", "googlefeed", "image", "lastfm", "lowerthird", 
 -                    "mustache",  "openmap", "subtitle", "tagthisperson", "twitter",  
 -                    "webpage", "wikipedia"];
 -    var testDur = [ 17000, 20000, 10000, 20000, 11000,
 -                    13000, 13000, 10000, 10000, 13000, 
 -                    15000, 13000, 25000, 21000, 10000, 
 -                    21000, 21000 ];
 +    var testUrl = [ "attribution", "code", "flickr", "footnote", "gml", "googlemap", 
 +                    "googlenews", "googlefeed", "image", "lastfm", "linkedin", "lowerthird", 
-                     "mustache",  "openmap", "subtitle", "tagthisperson", "twitter",  
++                    "mustache",  "openmap", "pause", "subtitle", "tagthisperson", "twitter",  
 +                    "webpage", "wikipedia", "wordriver" ];
 +    
-     var testDur = [ 17000, 20000, 10000, 20000, 3000, 
-                     11000, 13000, 13000, 10000, 10000, 
-                     6000,  13000, 15000, 13000, 25000, 
-                     21000, 10000, 21000, 21000 , 4000];
++    var testDur = [ 17000, 20000, 10000, 20000, 3000, 11000,
++                    13000, 13000, 10000, 10000, 6000,  13000,
++                    15000, 13000, 9000, 25000, 21000,
++                    10000, 21000, 21000 , 4000];
      
      var setTest = function( index ) {
        var url = function( str ) {
index 0000000000000000000000000000000000000000,e15d0870c1b634442cd562a7e7dd248206f590d2..14a058316883b4624b9a5484edfe4bb26e4109f3
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,53 +1,53 @@@
 -             .play();
+ <!DOCTYPE html>
+ <html>
+ <head>
+   <title>Popcorn Pause Demo</title>
+ 
+   <script src="../../popcorn.js"></script>
+   <script src="popcorn.pause.js"></script>
+   <script>
+    var output;
+ 
+    document.addEventListener('DOMContentLoaded', function () {
+      var p = Popcorn( '#video' , { pauseOnLinkClicked : true } )
++         .play();
+     }, false);
+   </script>
+ </head>
+ <body>
+   <h1 id="qunit-header">Popcorn Code Plugin Demo</h1>
+   <p>The video pauses when links (anchor elements) are clicked</p>
+   <div>
+     <video id="video"
+       autobuffer="autobuffer"
+       preload="auto"
+       controls="controls"
+       width= '250px'
+       poster="../../test/poster.png">
+ 
+       <source id='mp4'
+         src="../../test/trailer.mp4"
+         type='video/mp4; codecs="avc1, mp4a"' />
+ 
+       <source id='ogv'
+         src="../../test/trailer.ogv"
+         type='video/ogg; codecs="theora, vorbis"' />
+ 
+       <p>Your user agent does not support the HTML5 Video element.</p>
+ 
+     </video>
+   </div>
+   <div style="width:700px">
+     <a href="../../index.html" target="_blank">Home page</a><br />
+     <a href="http://www.mozilla.org/" target="_blank">Mozila</a><br />
+     <a href="http://webmademovies.lighthouseapp.com/" target="_blank">
+       Popcorn.js on Lighthouse
+     </a><br />
+     <a href="#anchorOnPage">
+       An another in this page
+       (check the url after you click)
+     </a><br />
+     <a name="anchorOnPage" />
+   </div>
+ </body>
+ </html>
index 0000000000000000000000000000000000000000,e5972448a6ebc3613d84a90d4a161ad267a9a849..6362277cdf411b70cfeddb459a579063714588ae
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,66 +1,66 @@@
 -  <title>Popcorn API</title>
+ <!DOCTYPE html>
+ <html>
+ <head>
++  <title>Popcorn Pause Plug-in Test</title>
+   <link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
+   <script src="../../test/qunit/qunit.js"></script>
+   <!--
+     do not move - this must be called immediately prior to
+     popcorn-api-draft.js
+   -->
+ 
+   <script src="../../popcorn.js"></script>
+   <script src="../code/popcorn.code.js"></script>
+   <script src="popcorn.pause.js"></script>
+   <script src="popcorn.pause.unit.js"></script>
+ </head>
+ <body>
+ 
+   <h1 id="qunit-header">Popcorn Pause Plugin</h1>
+   <h2 id="qunit-banner"></h2>
+   <div id="qunit-testrunner-toolbar"></div>
+   <h2 id="qunit-userAgent"></h2>
+   <ol id="qunit-tests"></ol>
+   <div id="qunit-fixture">  </div>
+ 
+   <video id='video'
+     autobuffer="autobuffer"
+     preload="auto"
+     controls="controls"
+     width= '250px'
+     poster="../../test/poster.png">
+ 
+     <source id='mp4'
+       src="../../test/trailer.mp4"
+       type='video/mp4; codecs="avc1, mp4a"' />
+ 
+     <source id='ogv'
+       src="../../test/trailer.ogv"
+       type='video/ogg; codecs="theora, vorbis"' />
+ 
+     <p>Your user agent does not support the HTML5 Video element.</p>
+   </video>
+   <video id="video2"
+     autobuffer="autobuffer"
+     preload="auto"
+     controls="controls"
+     width= '250px'
+     poster="../../test/poster.png">
+ 
+     <source id='mp4'
+       src="../../test/trailer.mp4"
+       type='video/mp4; codecs="avc1, mp4a"'>
+ 
+     <source id='ogv'
+       src="../../test/trailer.ogv"
+       type='video/ogg; codecs="theora, vorbis"'>
+ 
+     <p>Your user agent does not support the HTML5 Video element.</p>
+   </video>
+   <p>
+     <a id="anchorA" target="_blank" href="../../example.html">Anchor A</a>
+     <a id="anchorB" href="#test2">Anchor B</a>
+     <a name="test2"></a>
+   </p>
+ </body>
+ </html>