Tuesday, 1 October 2013

How to Play YouTube Video Using Embed Code

Hi,

In this Article am Going to Explain, How to Play the YouTube Video Using  Embed Code.

In My Previous Article I Explained About How to Play YouTube Video in ASP.Net Application .

This Will be More Useful, If you want Add Videos in to Your WebSite Or Blog.




Now am going to Explain about,  How to Use Embed Code and Where We need to Add this Embed Code to Paly the Video.

Step1: 
Select the Video Which Video Code We need to take.
In the Below Screenshot, there is a  Share Link( Arrow Mark) Is there Just Click on the that.


















Step2:

In the Share Link you can see again 3 Links (Like Share this Video, Embed, Email) are there.
Click on Embed .



















Step3:

In the Embed Link, we will get TextArea which is Having the EmbedCode and below there is an Option to Change the Video Size.
There  are 3 CheckBoxes
1. Show suggested videos when the Video finishes,
2. Enable privacy-enhanced mode,
3. Use Old embed Code.























There are 2 types of Embed Code are Available for YouTube Video's
1. New Embed Code Which Supports Flash and Html5., this begins with "<iframe",
2. Old Embed Code Only Supports to the Flash,  this begins with "<object".

Code Sample:




<html>
<head></head>
<body> 
<div>
<object width="420" height="315">
<param name="movie"
 value="http://www.youtube.com/v/Kp3dS-T16x4?hl=en_US&amp;version=3&amp;rel=0">
</param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/Kp3dS-T16x4?hl=en_US&amp;version=3&amp;rel=0"
type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always"
 allowfullscreen="true"></embed>
</object>
</div>
</body>
</html>


For More Information About Embed Code Check in Google Support

No comments:

Post a Comment