<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 ) {
--- /dev/null
- .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>
--- /dev/null
- <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>