But i need to play the youtube video in asp.net page using youtube Url and not embeding the code which we get from youtube( at the right corner of the youtube)
Just add that in to your tool box by right clicking on tool box items and clicking on choose items. If u have already added the tool then select it else browse for dll file and add that...
Now ur tool box contain flash video control that can play flv or swf files.. jus asign
Flash1.MovieURL = "Path of video file from u tube";//Here flash1 is id of flash control
This will work, if not please let me know...
I have taken a data list which displays name of video, description and link button from database..If i click on see video link that will play video in flash control
If u are using only videos from youtube but not playing any videos from ur server or anywhere else u can use following code
protected void lnkSeeVideo_Command(object sender, CommandEventArgs e)
//lnkSeeVideo_Command is event of item template(link button) that is in data list--
{
try
{
string str = Convert.ToString(e.CommandArgument);//str is video id string of a video that is in youtube --- which is fetched from database
prabhuch85
Member
2 Points
12 Posts
how to Play youtube video in Asp.net application using youtube video url
Jun 17, 2009 09:20 AM|LINK
how to Play youtube video in Asp.net application using youtube video url.
lets say if my url is " http://www.youtube.com/watch?v=2o8UgIgI8BU ".
how to play the above you tube url in asp.net application.
kindly give solution to the above problem.
thanks.
Play youtube video in Asp.net
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 17, 2009 09:42 AM|LINK
Hi,
Below mention code...
http://www.dotneat.net/2007/12/20/QueryingYoutubeAPIUsingC.aspx
http://chiragrdarji.wordpress.com/2008/09/16/integrate-youtube-in-aspnet/
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.
XIII
All-Star
182714 Points
23466 Posts
ASPInsiders
Moderator
MVP
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 17, 2009 09:55 AM|LINK
Hi,
please check out this thread: http://forums.asp.net/t/1423991.aspx.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
prabhuch85
Member
2 Points
12 Posts
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 18, 2009 05:22 AM|LINK
hi ,
in this link http://forums.asp.net/t/1423991.aspx... it tells abt how-to-get-youtube-video-screenshot.
But i need to play the youtube video in asp.net page using youtube Url and not embeding the code which we get from youtube( at the right corner of the youtube)
XIII
All-Star
182714 Points
23466 Posts
ASPInsiders
Moderator
MVP
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 18, 2009 06:12 AM|LINK
Hi,
http://forums.asp.net/t/1423991.aspx?PageIndex=3, on page 3 there's a whole discussion on how to integrate a jQuery media plugin to show the youtube movie in the page.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
prabhuch85
Member
2 Points
12 Posts
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 18, 2009 06:35 AM|LINK
hi, qwe123kids
the link which u gave doesnt fix my issue.
i need to Play youtube video in Asp.net application using youtube video url .
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 18, 2009 07:23 AM|LINK
Hi Prabhu,
http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html
http://code.google.com/apis/youtube/js_api_reference.html
Check the above mention links
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.
prabhuch85
Member
2 Points
12 Posts
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 19, 2009 07:08 AM|LINK
hi, thank you guys for ur help.i cant find the exact solution.Temporary i am going with the following solution
<div>
<object width="300" height="300">
<param name="movie" value="http://www.youtube.com/v/2o8UgIgI8BU&hl=en&fs=1&">
</param><param name="allowFullScreen" value="true">
</param><param name="allowscriptaccess" value="always">
</param><embed src="http://www.youtube.com/v/2o8UgIgI8BU&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true" width="425" height="344">
</embed>
</object>
</div>
. (more solution to the issue are welcome.)
XIII
All-Star
182714 Points
23466 Posts
ASPInsiders
Moderator
MVP
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 19, 2009 07:19 AM|LINK
Hi,
You can use jQuery and this easy plugin: http://malsup.com/jquery/media/#.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
nareshyalaga...
Member
244 Points
53 Posts
Re: how to Play youtube video in Asp.net application using youtube video url
Jun 24, 2009 12:15 PM|LINK
Download flash web control from http://www.aspnetflash.com/ .
Just add that in to your tool box by right clicking on tool box items and clicking on choose items. If u have already added the tool then select it else browse for dll file and add that...
Now ur tool box contain flash video control that can play flv or swf files.. jus asign
Flash1.MovieURL = "Path of video file from u tube";//Here flash1 is id of flash control
This will work, if not please let me know...
I have taken a data list which displays name of video, description and link button from database..If i click on see video link that will play video in flash control
If u are using only videos from youtube but not playing any videos from ur server or anywhere else u can use following code
protected void lnkSeeVideo_Command(object sender, CommandEventArgs e)
//lnkSeeVideo_Command is event of item template(link button) that is in data list--
{
try
{
string str = Convert.ToString(e.CommandArgument);//str is video id string of a video that is in youtube --- which is fetched from database
lblVideo.Text = string.Format("<div id=\"video{0}\"><object width=\"491\" height=\"343\"><param name=\"movie\" value=\"http://www.youtube.com/v/{0}&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/{0}&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"491\" height=\"343\"></embed></object></div>", str);
///We are embedding youtube flash video at runtime in a label, this worked fine for us.
}
catch (Exception ex)
{
}
}
Naresh Y Yadav
how to Play youtube video in Asp.net application using youtube video url
nareshyalagala@gmail.com