Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 494
Rajat Gupta Avatar asked Dec 16 '11 03:12

Rajat Gupta


2 Answers

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

<video ..... oncanplay="$(this)[0].play()" >...</video>
like image 186
Valentin Kantor Avatar answered Nov 16 '22 01:11

Valentin Kantor


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.

like image 1
chhantyal Avatar answered Nov 15 '22 23:11

chhantyal