locked
how to upload website videos to youtube using asp.net webpages and retrieve them to play or view. RRS feed

  • Question

  • User1493762548 posted

    Hi all,

     i am new programmer .i have asp.net webpages site. i want to show a page so that user can upload videos which should be hosted on youtube .and another from where user can view or play videos .thanks in advance.

    Monday, October 10, 2016 8:00 AM

Answers

All replies

  • User-821857111 posted

    You need to learn how to use the Youtube API: https://developers.google.com/youtube/

    Monday, October 10, 2016 8:21 AM
  • User1493762548 posted

    thanks mike,

                         i followed the link and 1. created project on youtube.

    2.got api key.

    3.installed client library by opening the website in visual studio and install by nuget package manager successfully.( nuget does not update in webmatrix ).

    the dll filles created successfully in bin folder.

    4. copied the sample files from this link to app_code folder  :https://github.com/youtube/api-samples/tree/master/dotnet

    UploadVideo.cs

    but how to call and use them in my upload.cshtml  as i am using webpages .most forums help for MVC .i have no experience of MVC. if it is not possible in webpages than can i shift project  to MVC and learn that?

    Saturday, October 15, 2016 3:10 PM
  • User-2057865890 posted

    Hi Fiazahmed,

    You could consider using the Google APIs Client Library for JavaScript to upload video to YouTube.

    https://developers.google.com/youtube/v3/code_samples/javascript 

    Best Regards,

    Chris

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 21, 2016 6:54 AM