Rajat Gupta
Rajat Gupta

Reputation: 26617

Sometimes HTML video doesn't autoplay after loading

Sometimes the HTML video on the topmost portion of my site doesn't run even though after it has been completely downloaded. I am using Safari 5.0.6 on iMac. On other browsers as well, sometimes it works fine and at times, it only starts working when I refresh the page.

Can you guess what may be causing this ?, or how I could try fixing this ?

Upvotes: 6

Views: 4534

Answers (2)

Valentin Kantor
Valentin Kantor

Reputation: 1844

Got the same issue in chrome, autoplay can be emulated by the next way (using jQuery's selector):

<video ..... oncanplay="$(this)[0].play()" >...</video>

Upvotes: 7

chhantyal
chhantyal

Reputation: 12262

Well, I opened your site on my browsers. It's working just fine on Chrome 15 and Firefox 7 [Windows7]. May be you should try it on newer browsers.

Upvotes: 1

Related Questions