Monday, March 19, 2012

[YouTube-API] Re: Memory Problems (CodeIgniter PHP)

Hello,

It's not possible to give the YouTube API a URL pointing to a file.
You need to include the file's contents in the HTTP request.

I don't have any insight as to what the CodeIgniter library is doing,
but it's a) open source, so you could take a look at the code and b)
the maintainer of the library does read this Google Group, so you
might hear from him.

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Mar 16, 2:14 pm, Nathanael Shermett <xyte...@gmail.com> wrote:
> Hey there!
>
> I'm having issues with memory and direct uploads. I'm using the PHP
> CodeIgniter library for the YouTube API, but the directUpload() function is
> giving me some problems. I got it working, sure, but from a memory
> standpoint, this is not working.
>
> Basically, I am attempting to upload files to YouTube via their URL, as
> they are stored on a separate server. To do this, I am reading the file,
> writing it to a temporary file on my own server, and then uploading that
> temporary file. However, as you can imagine, this is a major memory issue.
> I guess I have two questions:
>
>    1. Is it possible to directly upload files via their URL using the PHP
>    YouTube API?
>    2. If not, how would I--using the CodeIgniter API--send only chunks of
>    data at once? Is there a way I can modify the directUpload() function to
>    support this? It seems doable, but I don't quite understand how the
>    resumable uploads work.
>
> Thanks!

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