![]() |
Re: youtube application
great ... let's see if this could be a productive weekend.
|
Re: youtube application
Here it is the code, remember it's just a hack to retrieve the URL and see if that can be played back, that is not meant to be production quality code :)
Quote:
Anyway the trick is to get the GDataService first and then make the query by means of GET HTTP requests. In those GET yuo can provide a bounch of parameters to refine the search. The Youtube GDATA API documents all of them exaustively. The answer is an XML message that need to be parsed (and here the power of python helps a lot). There was a python library, but Google updated the youtube API to adapt them to the Google ones. The URL we're looking for, looks like its[1] in the <media:group> block for that video entry. Specifically the <media:content ...> tag. The 'url' attribute is the RTSP stream URI. (Other attributes will be useful when displaying it to the user). So that's the easy part actually :) Once I've got the URL we need to play it. I've tried to call the GStreamer player with: Quote:
Moreover, executing: Quote:
Quote:
Quote:
[1] http://code.google.com/apis/youtube/...earchingVideos |
Re: youtube application
Wow.. the quote above makes the thread look very bad!
And the "edit" button is hidden to me! UPDATE: Safari 3 renders the page correctly, while Firefox 2...12 does not. Great :/ |
Re: youtube application
playing with python a little i got this
http://www.postimage.org/image.php?v=Pq1EKPM9 double clicking will start playing the video after a 5% buffering using the great mplayer port. the gui is usable only by me :) improvments as soon as i get some time. a mock up will be very useful PS: how do i post a image in this thread? |
Re: youtube application
Quote:
*take out the asterisks in that. :) |
Re: youtube application
Quote:
I just checked IRC logs: his nick was tigrux. Inz seems to have saved the testing packages he was hosting for tigrux: http://inz.fi/youtube-viewer-for-tablet/ . NOTE: These were testing packages, not meant for users. So don't blame me or the developer if something goes wrong... |
Re: youtube application
F@#@!#@k .... if only i would have known yesterday!
Now i'm too eager to continue what i've started, i'll do some more coding until i run out of beers :) |
Re: youtube application
We could join and help...
|
Re: youtube application
My idea:
Youtube generates a XML file for a search: http://googlesystem.blogspot.com/200...ube-feeds.html I know a command line app that can download any youtube video or can be connected through a pipe with a player/encoder, mplayer or ffmpeg or whatever http://home.gna.org/clive/ I want to integrate that in a GUI to make a youtube player But If you want you can use the idea because I don't know a lot of development stuff and it can take me ages to do that. ;) |
Re: youtube application
that's what i have done in 3hours of coding last night.
i took a look at youtube-viewer_0.1-1_all.deb code. it's pretty nicely written, it uses gstreamer and has a more complex approach, you can give it a try (check the link provided above by jussik) i'm still stubborned enough to see i can i do with my app and i will still give it a try a few more days |
All times are GMT. The time now is 02:53. |
vBulletin® Version 3.8.8