src/js/init.js
branchpopcorn-port
changeset 216 d1e891627286
parent 204 a5e807f33a67
child 238 6008172a0592
child 287 5c7495102bd7
child 341 e9442357851b
--- a/src/js/init.js	Wed Nov 09 14:46:27 2011 +0100
+++ b/src/js/init.js	Wed Nov 09 14:49:20 2011 +0100
@@ -15,13 +15,13 @@
       case "html5":
            var tmpId = Popcorn.guid("video"); 
            IriSP.jQuery("#" + containerDiv).append("<video src='" + options.file + "' id='" + tmpId + "'></video>");
-           pop = Popcorn("#" + tmpId);
+           pop = Popcorn("#" + tmpId).mediafragment({start : 0});
         break;
         
       case "jwplayer":
           var opts = IriSP.jQuery.extend({}, options);
           delete opts.container;
-          pop = Popcorn.jwplayer("#" + containerDiv, "", opts);
+          pop = Popcorn.jwplayer("#" + containerDiv, "", opts).mediafragment({start : 0});
         break;
       
       case "youtube":
@@ -34,7 +34,7 @@
           // Popcorn.youtube wants us to specify the size of the player in the style attribute of its container div.
           IriSP.jQuery("#" + containerDiv).attr("style", str);
           
-          pop = Popcorn.youtube("#" + containerDiv, opts.video, opts);
+          pop = Popcorn.youtube("#" + containerDiv, opts.video, opts).mediafragment({start : 0});
         break;
         
       default: