Solved

HTML Video won't Autoplay on site

Posted on 2014-04-19
6
27 Views
Last Modified: 2016-05-19
http://cctbeta.eastmeetsweb.com/services

I'm building a wordpress site using Layerslider as my slide builder. I’m trying to add some video to my slide using the HTML/Video/Audio option in the layers. I’ve uploaded the video (mp4) & it’s works but….it will not Autoplay even though I have set it to do so in the parameters. I have set the transition in at 2000ms. Do I not have the code correct or is it an issue with my host (Godaddy)?? Please help, thanks.

<video width=”640” height=”480” preload=”metadata” autoplay=”autoplay” controls> <source src=”/wp-content/uploads/2014/04/CCT-Flip.mp4” type=”video/mp4”> </video>
0
Comment
Question by:leftfooter007
  • 3
  • 2
6 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40010594
Did you compose the code above in MS Word or take it from your site?  Because the quotes above are Word "fancy" quotes and that will screw up the parameters.
0
 

Author Comment

by:leftfooter007
ID: 40011063
Thanks Jason, the quotes are normal html quotes, I checked. Some more info....

I have been using Chrome as my browser which gives me the above situation. If I use IE the video sometimes autoplays, but starts in the middle of the video and the background is all messed up. If I use Firefox I can hear the sound of the video trying to load but it doesn’t load. Please help.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40011072
but starts in the middle of the video

That may indicate the moov atom is not at the beginning of the mp4 file.  

Run it through this tool:

http://renaun.com/blog/2010/06/qtindexswapper-2/

and then see if the results are better.
0
 

Author Comment

by:leftfooter007
ID: 40011089
Thanks again Jason. The application told me "Moov in proper place, processing not needed"
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 40011464
Now that we know the video is okay, try changing the autoplay parameter to remove ="autoplay"

That param is like the controls one...it's either present or not in HTML5
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question