Download youtube video without youtube api

How can we upload videos to Youtube without using api in asp.net? My requirement is that the user uploads the video to our website and after the administrator approves that the video is uploaded to Youtube. I am using ASP.NET

+3
source share
3 answers

Jason I am using this code:

  Dim request As YouTubeRequest
    Dim newVideo As New Video()

    newVideo.Title = "My Test Movie"
    newVideo.Tags.Add(New MediaCategory("Autos", YouTubeNameTable.CategorySchema))
    newVideo.Keywords = "cars, funny"
    newVideo.Description = "My description"
    newVideo.YouTubeEntry.Private = False
    newVideo.Tags.Add(New MediaCategory("mydevtag, anotherdevtag", YouTubeNameTable.DeveloperTagSchema))

    newVideo.YouTubeEntry.Location = New GeoRssWhere(37, -122)

    newVideo.YouTubeEntry.MediaSource = New MediaFileSource("c:\\flame.avi", "video/quicktime")
    Dim createdVideo As Video = request.Upload(newVideo)

But where to specify the credentials and Youtube key?

0
source
 Dim settings As YouTubeRequestSettings = New YouTubeRequestSettings("youtube", developerKey, username, password)

    Dim request As New YouTubeRequest(settings)
    Dim newVideo As New Video()

    newVideo.Title = "My Test Movie"
    newVideo.Tags.Add(New MediaCategory("Autos", YouTubeNameTable.CategorySchema))
    newVideo.Keywords = "cars, funny"
    newVideo.Description = "My description"
    newVideo.YouTubeEntry.Private = False
    newVideo.Tags.Add(New MediaCategory("mydevtag, anotherdevtag", YouTubeNameTable.DeveloperTagSchema))

    newVideo.YouTubeEntry.Location = New GeoRssWhere(37, -122)

    newVideo.YouTubeEntry.MediaSource = New MediaFileSource("c:\\drop.avi", "video/x-msvideo")
    Dim createdVideo As Video = request.Upload(newVideo)
0
source

All Articles