1. Autoplay does not work on all devices and web browsers especially if it contains audio.
2. Autoplay is widely regarded as intrusive and annoying. For this reason, many people block autoplay in their browser settings.
3. The use of Autoplay is not recommended. Don't rely on it to start playback. See the specs below.
4. If you make the video disappear, how will users access it again?
I totally agree with Nancy's answer, if I come across a website that plays a video automatically, then I will never return.
Oh awesome thanks for the link but the reason I'm asking is because I want it to play the video on a demo site I'm creating and the video is gonna play ounce then load the site, kinda like an intro animation.
Ok so I have an mp4 video file in my site folder that i have made and i want it in this code on dreamweaver html. What would i type to replace the youtube files that are in here?
"What would i type to replace the youtube files that are in here? "
This is not an endorsement of what you're trying to do. I think it's bad from a usability standpoint. But to answer your last question, upload your MP4 video to YouTube and use the YouTube API that Ben posted.
Personally l wouldnt try to time how long the video plays for and then hide/remove it because there is a possibility of lagging which will result in the video being removed before it finishes