Tuesday, April 5, 2011

[YouTube-API] Re: Request entity too large

Hello,

I'm not sure I completely understand what you're asking.

If you'd like to see some (Java) App Engine code that handles the two
steps involved in browser-based uploads, you can take a look at the
YouTube Direct project.

This servlet takes some metadata about a video, requests a browser-
based upload token from the YouTube API, and returns that token to the
browser JavaScript client:

http://code.google.com/p/youtube-direct/source/browse/trunk/ytd/src/com/google/ytd/embed/GetUploadToken.java

This is the client code that requests the token, inserts it into the
browser form, and then submits the form, thereby uploading the file:

http://code.google.com/p/youtube-direct/source/browse/trunk/ytd/war/js/embed.js#436

You kind of have to see everything in action to understand how things
fit together, but hopefully that code will give you something of an
idea as to how you could proceed.

Cheers,
-Jeff Posnick, YouTube API Team
~ YouTube is hiring! ~ http://google.com/jobs/workyoutube ~


On Mar 31, 7:53 am, papet <takis.petrad...@gmail.com> wrote:
> Hello Jeff,
>
> Thanks for helping with the large file issue.
>
> My intention is to spend some time for understanding the proposed
> browser-based uploading option.
>
> Just let me clarify one thing for being sure it is the right thing.
>
> There are some classes inside YouTube API that need to be called.
> The whole implementation is 100% programmable and customable.
> I will have to write a client module that will send the the request
> and a server module that will handle it and it will be YouTube
> hosted.
>
> Thank you for the support
>
> On 25 Μαρ, 18:13, Jeffrey Posnick <je...@google.com> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> >  Yes, that limiting on the size of outgoing HTTP requests is imposed
> > by App Engine.
>
> >  You can use browser-based uploads from within an App Engine app to
> > allow users to submit large videos directly from their hard drives to
> > YouTube's servers, without having them pass through App Engine at all.
>
> >  http://code.google.com/apis/youtube/2.0/developers_guide_protocol_bro...
>
> > Cheers,
> > -Jeff Posnick, YouTube API Team
> > ~ YouTube is hiring! ~http://google.com/jobs/workyoutube~
>
> > On Mar 23, 7:44 am,papet<takis.petrad...@gmail.com> wrote:
>
> > > Hi
> > > I am testing an web aplication that can upload videos to youtube accounts.
> > > When I am using small videos files everything its ok. But when a video file
> > > is greater than 100MB then an exception occurs saying "Request entity too
> > > large, Your clinet issued a request that was too large"
>
> > > is that we have a limit using the Google Application Engine ?

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment