]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
changed image src and muted the video [#344]
authorAnna Sobiepanek <annaopensource@gmail.com>
Wed, 23 Feb 2011 22:01:13 +0000 (17:01 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Wed, 23 Feb 2011 22:01:13 +0000 (17:01 -0500)
plugins/image/popcorn.image.html
plugins/image/popcorn.image.unit.js

index 768659298ef5fe7dda816ea1b37997a5098eb2de..ec1abcce3f53ed91d144303d84cb7e9d5e4b04e3 100644 (file)
@@ -8,12 +8,13 @@
   <script>
     document.addEventListener('DOMContentLoaded', function () {
       var p = Popcorn('#video')
+      .volume(0)
       .play() 
       .image({
         start: 5, // seconds
         end: 15, // seconds
         href: 'http://www.drumbeat.org/',
-        src: 'http://www.drumbeat.org/sites/default/files/domain-2/drumbeat_logo.png',
+        src: 'https://www.drumbeat.org/media//images/drumbeat-logo-splash.png',
         target: 'imagediv'
       } )
       .image({
index e0238b5f43dbed7a3aed9f7f0549e3d864407b7e..00b1325662fdbd061ce8f9de7706935944a41098 100644 (file)
@@ -27,7 +27,7 @@ test("Popcorn Image Plugin", function () {
     start: 1, // seconds
     end: 3, // seconds
     href: 'http://www.drumbeat.org/',
-    src: 'http://www.drumbeat.org/sites/default/files/domain-2/drumbeat_logo.png',
+    src: 'https://www.drumbeat.org/media//images/drumbeat-logo-splash.png',
     target: 'imagediv'
   } );
 
@@ -48,7 +48,7 @@ test("Popcorn Image Plugin", function () {
       clearInterval( interval2 );
     }
   }, 500);
-  
+  popped.volume(0);
   popped.play();
   
 });