Thanks for your help. I went and taught myself PHP and bit the bullet and went outside of SL for my solution. Thanks very much for your help.
On a somewhat unrelated note, do you, by any chance, know how to formulate a cURL request to pass through to the user an MP4 file residing on the Web? If so, I'd love to know how to do that.
Main Topics
Browse All Topics





by: abelPosted on 2009-02-27 at 10:22:09ID: 23758361
The HTTP request is not so hard, you can just build up a request for a query of a video, but unfortunately, as you may deduct from the sample answer below (and that's for only one video), there's a lot of data involved in the response of the youtube API.
If you cannot get more than the first couple of bytes of a web page, is it possible to call into an external dll/exe/lib that has more possibilities? You could write a simple C++ app or java app (or whatever language you can use), and let that do the web request and filter the atom/xml response.
This response comes from a query like the following HTTP request:
GData
X-GData-Client: ytapi-google-jsdemo
Content
Cache-
and it responded with the following http headers (already quite large):
200 OK
X-GData-User-Country: NL
Content-Type: application/atom+xml; charset=UTF-8; type=feed
Expires: Fri, 27 Feb 2009 18:14:12 GMT
Date: Fri, 27 Feb 2009 18:14:12 GMT
Cache-Control: private, max-age=1800, no-transform
Vary: *
GData-Version: 2.0
Etag: W/"AkMBQ30_eyp7ImA9WxVWF0g
Content-
Last-Modified: Fri, 27 Feb 2009 18:14:12 GMT
Content-Encoding: gzip
Transfer-Encoding: chunked
X-Content-Type-Opti
Server: GFE/2.0
Alternatively, if this is not an option in LSL / Second Life, then your best bet is to create a simple webpage yourself that responds to simple queries from your LSL application. It's not that hard to create such a filter/pass-through web site.
Sorry that I don't have much better information for you. The API returns an Atom feed (or RSS) and the info is rather a lot. You can test if for yourself here (if you haven't already): http://gdata.youtube.com/d
-- Abel --
Select allOpen in new window