I apologize if this has been discussed before, but I couldn't find a similar post using a Search. and i want to use flashweb control for my project of free of cost is it possible...or can i use any other web control instead of this flash control
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
///We are embedding youtube flash video at runtime in a label, this worked fine for us.
}
catch (Exception ex)
{
}
}
sir,here i understand every thig clearly...this post was taken from one of the thread simillar to me.....but what was my dought is here he given flash control when i went to that site in licence they given not for commercial purposse.but my website is a
job portal...for this what can i do....
pvss341
Member
2 Points
3 Posts
how to Play youtube video in Asp.net application using youtube video url.
Dec 22, 2012 06:40 AM|LINK
I apologize if this has been discussed before, but I couldn't find a similar post using a Search. and i want to use flashweb control for my project of free of cost is it possible...or can i use any other web control instead of this flash control
SohailShaikh
Contributor
6109 Points
1167 Posts
Re: how to Play youtube video in Asp.net application using youtube video url.
Dec 22, 2012 06:46 AM|LINK
http://videoplayer.codeplex.com/
http://stackoverflow.com/questions/4970831/how-to-play-video-in-asp-net-with-google-youtube-api-and-capture-the-onstatuscha
Sohail Shaikh
pvss341
Member
2 Points
3 Posts
Re: how to Play youtube video in Asp.net application using youtube video url.
Dec 22, 2012 09:34 AM|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)
{
}
}
sir,here i understand every thig clearly...this post was taken from one of the thread simillar to me.....but what was my dought is here he given flash control when i went to that site in licence they given not for commercial purposse.but my website is a job portal...for this what can i do....
SohailShaikh
Contributor
6109 Points
1167 Posts
Re: how to Play youtube video in Asp.net application using youtube video url.
Dec 24, 2012 01:25 PM|LINK
Hey your this control never work on IPad
Please use Jquery Media for its work on all device and its free just check this i think its want just url of video
http://jquery.malsup.com/media/
Sohail Shaikh