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


Tip of the Day
Language: Web
Expertise: Beginner
Oct 4, 2017

Loading a Youtube Video in an HTML Page

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"
Octavia Anghel
 
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