2

I have a HTML5-Video on my page with a webm and a mp4 sourcefile. The video player works in Firefox and Chrome when using the controls and clicking the play button. When I add the autoplay="autoplay" attribute to the video autoplay is working in firefox but Chrome is just showing the poster and plays the sound. When clicking the play button in Chrome the video plays but then the sound is playing two times.

I also tried to remove the autoplay attribute and force the autoplay via jQuery with this:

$(document).ready(function () {
   $('.movie')[0].play();
});

but that didn't help.

Anyone had the same problem and knows a working solution?

Liam
  • 27,717
  • 28
  • 128
  • 190
user2718671
  • 2,866
  • 9
  • 49
  • 86
  • Autoplay --- http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_video_autoplay – Tasos Jul 08 '14 at 08:56
  • I know. I did that but it's not working in Chrome anyway... :( – user2718671 Jul 08 '14 at 09:12
  • Which specific version of chrome did you test? – ˈvɔlə Jul 08 '14 at 11:22
  • 1
    possible duplicate of [Video auto play is not working in Safari and Chrome desktop browser](http://stackoverflow.com/questions/17994666/video-auto-play-is-not-working-in-safari-and-chrome-desktop-browser) – ˈvɔlə Jul 08 '14 at 11:23

0 Answers0