Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Tip: Loading a Youtube Video in an HTML Page

Learn how to add videos to your HTML pages via YouTube.


advertisement

You can convert videos in different formats to view them in your browser. An easier way to play video in HTML format is to use YouTube.

YouTube generates an automated id that must be inserted into the HTML code. Load the video, define with the element and the height and width attributes:

Src = "https://www.youtube.com/embed/ PVjcIO4MT4"

Autoplay

You can play the video automatically when the user accesses your web page by adding a parameter to the YouTube URL:

Src = "https://www.youtube.com/embed/ PVjcIO4MT4? Autoplay = 1"

 

Visit the DevX Tip Bank

 





   
Octavia Andreea Anghel is a senior PHP developer currently working as a primary trainer for programming teams that participate at national and international software-development contests. She consults on developing educational projects at a national level. She is a coauthor of the book "XML Technologies--XML in Java" (Albastra, ISBN 978-973-650-210-1), for which she wrote the XML portions. In addition to PHP and XML, she's interested in software architecture, web services, UML, and high-performance unit tests.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date