how to Play youtube video in Asp.net application using youtube video url

Last post 06-24-2009 8:49 AM by prabhuch85. 10 replies.

Sort Posts:

  • how to Play youtube video in Asp.net application using youtube video url

    06-17-2009, 5:20 AM
    • Member
      2 point Member
    • prabhuch85
    • Member since 12-16-2008, 2:26 AM
    • Posts 10

     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.

  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-17-2009, 5:42 AM
    • All-Star
      21,025 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Posts 3,606

     Hi,
    Below mention code...

    http://www.dotneat.net/2007/12/20/QueryingYoutubeAPIUsingC.aspx

    http://chiragrdarji.wordpress.com/2008/09/16/integrate-youtube-in-aspnet/

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-17-2009, 5:55 AM
    • All-Star
      118,932 point All-Star
    • XIII
    • Member since 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 13,255
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-18-2009, 1:22 AM
    • Member
      2 point Member
    • prabhuch85
    • Member since 12-16-2008, 2:26 AM
    • Posts 10

     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)

  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-18-2009, 2:12 AM
    • All-Star
      118,932 point All-Star
    • XIII
    • Member since 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 13,255
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    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.

  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-18-2009, 2:35 AM
    • Member
      2 point Member
    • prabhuch85
    • Member since 12-16-2008, 2:26 AM
    • Posts 10

    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 .

  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-18-2009, 3:23 AM
    • All-Star
      21,025 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Posts 3,606

     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

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-19-2009, 3:08 AM
    • Member
      2 point Member
    • prabhuch85
    • Member since 12-16-2008, 2:26 AM
    • Posts 10

    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.)

  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-19-2009, 3:19 AM
    • All-Star
      118,932 point All-Star
    • XIII
    • Member since 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 13,255
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi,

    prabhuch85:
    (more solution to the issue are welcome.)

    You can use jQuery and this easy plugin: http://malsup.com/jquery/media/#.

    Grz, Kris.

  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-24-2009, 8:15 AM
    • Member
      191 point Member
    • nareshyalagala
    • Member since 05-23-2009, 10:34 AM
    • Hderabad
    • Posts 27

    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

    Naresh.Y
    nareshyalagala@gmail.com
  • Re: how to Play youtube video in Asp.net application using youtube video url

    06-24-2009, 8:49 AM
    • Member
      2 point Member
    • prabhuch85
    • Member since 12-16-2008, 2:26 AM
    • Posts 10

    hi Naresh,

       flash web control is working fine.

    thanks

Page 1 of 1 (11 items)