-
1. Re: How do I get an MP4 video file to autoplay instead of download
Nancy O. Dec 1, 2014 1:35 PM (in response to ladylori1)Autoplay is not universally supported by all devices. Many smatphone data plans can't handle the burden of preloaded and auto playing media. There's nothing you can do to change this b/c mobile devices simply ignore the parameter. All that said, why are you still using player plugins? You don't need them with HTML5 video.
Copy & paste this code into a new, blank document. Change video files to your own.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 with Video</title>
<!--help for older IE browsers-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<style>
video {
max-width:100%;
display:block;
margin:0 auto;
}
</style>
</head>
<body>
<h2>Use 3 File Types to support all browsers & mobile devices: MP4, WEBM and OGV.</h2>
<h3>Online Video Converter
http://video.online-convert.com/</h3>
<!--begin video-->
<video controls poster="Your_poster_image.jpg">
<!--these are 6 sec sample videos for testing purposes. Replace sample-videos with your own files-->
<source src="http://techslides.com/demos/sample-videos/small.webm" type="video/webm">
<source src="http://techslides.com/demos/sample-videos/small.ogv" type="video/ogg">
<source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
If you're seeing this, you're using an
outdated browser that doesn't support
the video tag. </video>
<!--end video-->
</body>
</html>
EDIT: I forgot to move the closing </head> tag in my original post.
Nancy O.
-
2. Re: How do I get an MP4 video file to autoplay instead of download
ladylori1 Dec 1, 2014 3:37 PM (in response to Nancy O.)Thanks, Nancy -- I will give this a try. I just started working with using videos on our website that are not Photodex Presenter (ProShow Producer) files, and not associated with an image that needs to be clicked on, so this is pretty new to me. Can I contact you if I have more questions about this as I don't know anything about code - I let Dreamweaver do that! :-)
-
3. Re: How do I get an MP4 video file to autoplay instead of download
Nancy O. Dec 1, 2014 3:45 PM (in response to ladylori1)Try the code I gave you. SaveAs test.html and preview in browsers. Post back if you run into any difficulties.
Nancy O.


