Thursday, March 31, 2011

[YouTube-API] Re: Direct Upload progress in client application

Hello Amir,

Regarding the upload halting the application, you don't have to
perform the upload on your UI thread. You should be able to spawn a
new thread and make the client library calls to upload the video from
there.

I believe that the .NET client library has decent support for YouTube
API resumable uploads, and there's probably a way to tie into that to
periodically pass a message to your UI thread notifying it about the
upload progress. There's a sample project that uses resumable uploads
at

http://code.google.com/p/google-gdata/downloads/detail?name=YouTube%20SDK%20%281.7.0.1%29.msi&can=2&q=

but you might also have to modify the client library's source code a
bit to tie in to the upload progress—I haven't actually taken a look
at the code.

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


On Mar 27, 1:38 am, Amir Inbar <playlistmo...@gmail.com> wrote:
> Hi, YouTube!
>
> I am uploading a video file with Request.Upload(Video) command in
> windows form .net application.
> The upload is halting the application until it's complete.
>
> My questions are:
>
> Can i do an async load from .net client application?
> Can i view the progress of the upload?
>
> Please help.
> Regards, Amir.

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