HTML Help!
2015-03-07, 12:50 PM,
#1
I am new to HTML and would Like to know How to make a video auto-play when a visitor comes...

Anyone would like to help?
Reply
Share This Thread :

2015-03-07, 01:06 PM,
#2
You can use the html5 <video> tag.

Code:
<video width="600" height="355" controls autoplay>
<source src="yourlinktovideo.mp4" type='video/mp4; codecs="avc1.4D401E, mp4a.40.2"'>
</video>

thats what I use, you can change the width etc. and put in your link (mp4 format) - the autoplay in the video tag will play it instantly.
Reply
2015-03-07, 01:23 PM,
#3
(2015-03-07, 01:06 PM)Draguny Wrote: You can use the html5 <video> tag.

Code:
<video width="600" height="355" controls autoplay>
<source src="yourlinktovideo.mp4" type='video/mp4; codecs="avc1.4D401E, mp4a.40.2"'>
</video>

thats what I use, you can change the width etc. and put in your link (mp4 format) - the autoplay in the video tag will play it instantly.

I want to play a video uploaded on YouTube..:)
Reply
2015-03-07, 02:10 PM,
#4
YouTube provides the code already, just go on your video and to share options and use the embed code.
Reply
2015-03-08, 07:18 AM, (This post was last modified: 2015-03-08, 07:20 AM by baxxx.)
#5
Just add
Code:
?rel=0&autoplay=1
to the end of yt video.
For example:

Code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/YOURVIDEO?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>

@ mod, just edit my post so its not hyperlink to youtube.. ^^
Reply


Related Threads
Thread Author Replies Views Last Post
  How to put HTML landing page script in blogger walterzingo 4 451 2018-02-03, 06:55 PM
Last Post: umberblue
  Where should I put <script> tags in HTML? Pirata 5 499 2017-12-03, 11:38 AM
Last Post: Pirata
  Help converting Instapage to HTML Leo 4 615 2017-04-19, 07:25 PM
Last Post: EnChanter
  [Urgent] Help With HTML (Form to Email) IndeXer 5 373 2017-02-01, 01:55 AM
Last Post: IndeXer
  How to make html (php) file loads random js files every time reloading the page? immart247 8 564 2017-02-01, 01:47 AM
Last Post: CharlieHarper





About Us | Contact Us | CPA Elites | Advertise | Stats

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top