Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube DirectUploading ASP.NET #2

Open
GoogleCodeExporter opened this issue May 27, 2015 · 3 comments
Open

Youtube DirectUploading ASP.NET #2

GoogleCodeExporter opened this issue May 27, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. index.aspx using google data api
2. retrieveing a video works fine
3. uploading causes Google.GData.Client.GDataRequestException: Execution of
request failed:
http://uploads.gdata.youtube.com/feeds/api/users/Moneoneseven/uploads
---> System.Net.WebException: The remote server returned an error: (400)
Bad Request.
deleting and updatinf causes Google.GData.Client.GDataRequestException: Can
not update a read-only entry

What is the expected output? What do you see instead?
upload/update/delete video

What version of the product are you using? On what operating system?
lastest API, ASP.NET 3.5, IIS 7

Please provide any additional information below.
i think there's something wrong with authentification (developerkey,
clientid, ...)
manual upload via youtube-website works fine.

Original issue reported on code.google.com by [email protected] on 9 Jul 2009 at 10:07

@GoogleCodeExporter
Copy link
Author

   string developerKey = "AI39si5jEvO_F4HUPbnRAz9WB-pV8Zqg0Jszguelg9B15dqu7SqK7IDkd3xirT9nRQuUoxPtmKjolrg6HhM_DbLDxOSe7lC8AA";
        string username = "[email protected]";
        string password = "@lt12345";
        YouTubeRequestSettings settings = new YouTubeRequestSettings("Videoapp", null, developerKey, username, password);
        YouTubeRequest request = new YouTubeRequest(settings);
        Video newVideo = 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);
        // alternatively, you could just specify a descriptive string
        // newVideo.YouTubeEntry.setYouTubeExtension("location", "Mountain View, CA");

        newVideo.YouTubeEntry.MediaSource = new MediaFileSource("c:\\mnt_hood.avi", "video/x-msvideo");
        try
        {
            Video createdVideo = request.Upload(newVideo);
        }
        catch (Exception ex)
        {

        }

Original comment by [email protected] on 26 Oct 2010 at 4:06

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 2 Feb 2011 at 1:41

Attachments:

@GoogleCodeExporter
Copy link
Author

youtube

Original comment by [email protected] on 20 Oct 2011 at 1:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant