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
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.

[Image: tQS4wXc.gif]
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.

[Image: tQS4wXc.gif]
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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Help converting Instapage to HTML Leo 4 394 2017-04-19, 07:25 PM
Last Post: PRINC3
  [Urgent] Help With HTML (Form to Email) IndeXer 5 271 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 378 2017-02-01, 01:47 AM
Last Post: CharlieHarper
  Alternatives to cpagrip (custom html/css lockers) ArtoAllan 22 3,523 2016-12-17, 07:48 PM
Last Post: COBNET
  CPA NETWORKS WITH CUSTOM CSS/HTML kderow 0 544 2016-12-04, 05:07 AM
Last Post: kderow




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

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