Please see my response at
http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/8ee8059407e4bf48#
Cheers,
-Jeff Posnick, YouTube API Team
~ YouTube is hiring! ~ http://google.com/jobs/workyoutube ~
On May 29, 7:59 am, Ashish <ashish.softm...@gmail.com> wrote:
> HI Frank,
>
> I am also facing same kind of issue , whenever I try to upload more then
> 300 MB video file I am getting following error :
>
> Here is code:
>
> Video newVideo = new Video();
>
> newVideo.Title = title;
> newVideo.Tags.Add(new MediaCategory("Autos", YouTubeNameTable.
> CategorySchema));
> newVideo.Keywords = "cars, funny";
> newVideo.Description = 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(filepath,
> "video/quicktime");
>
> GDataRequestFactory gdrf =
> (GDataRequestFactory)request.Service.RequestFactory;
> gdrf.Timeout =(7000) * 60 * 60; // one hour (1000 ms * 60s * 60
> m)
>
> Video createdVideo = request.Upload(newVideo); //* here is
> error **'System.OutOfMemoryException'*
--
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