Search code examples
htmlwebkitqwebkit

automatically playing audio and video file in HTML


In HTML5 what special code need be to written which allows web-browser's to start playing video/audio automatically?

In fact I'm looking for signal or workaround by which I can know when webkit is about to play video/audio file.


Solution

  • The following question has been answered in another post on Stack overflow. Check out the following link:

    Play infinitely looping video on-load in HTML5

    Using the above code your video should run automatically when your page loads.