src/js/html-player.js
changeset 1001 3210bf928a11
parent 998 9521347ede1d
child 1013 392ddcd212d7
--- a/src/js/html-player.js	Wed May 15 16:22:37 2013 +0200
+++ b/src/js/html-player.js	Thu May 16 13:34:02 2013 +0200
@@ -13,7 +13,9 @@
     
     videoEl.attr({
         width : opts.width || undefined,
-        height : opts.height || undefined
+        height : opts.height || undefined,
+        controls : opts.controls || undefined,
+        autoplay : opts.autostart || opts.autoplay || undefined
     });
     
     if(typeof videoURL === "string"){
@@ -31,10 +33,6 @@
     
     jqselector.html(videoEl);
     
-    if (opts.autostart || opts.autoplay) {
-        videoEl.attr("autoplay", true);
-    }
-    
     var mediaEl = videoEl[0];
     
     // Binding HTML video functions to media events