Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding the autplay webkit bug thingi

  • Loading branch information...
commit 3b51ac7610b510809be67d865cae63a0f5c31851 1 parent 593556e
@azatoth authored
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() {
Please sign in to comment.
Something went wrong with that request. Please try again.