Skip to content
Browse files

adding the autplay webkit bug thingi

  • Loading branch information...
1 parent 593556e commit 3b51ac7610b510809be67d865cae63a0f5c31851 @azatoth committed
Showing with 9 additions and 0 deletions.
  1. +9 −0 jquery.video.js
View
9 jquery.video.js
@@ -112,6 +112,10 @@ $.widget("ui.video", {
$.each( videoOptions , function( key, value) {
if( value !== null ) {
+ // webkit bug
+ if( key == 'autoplay' && $.browser.webkit ) {
+ value = false;
+ }
self.oldVideoOpts[key] = self.element.attr( key );
self.element.attr( key, value );
}
@@ -167,6 +171,11 @@ $.widget("ui.video", {
.fadeOut(this.options.fadeSpeed);
self.volumeSlider.slider('value', this.options.volume * 100);
+
+ // webkit bug
+ if( this.options.autoPlay && $.browser.webkit ) {
+ self.play();
+ }
},
_createControls: function() {

0 comments on commit 3b51ac7

Please sign in to comment.
Something went wrong with that request. Please try again.