Solved

HTML Video won't Autoplay on site

Posted on 2014-04-19
6
22 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to count occurrences of each item in an array.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now