Posts: 53
Joined: Dec 2005
Reputation:
0
thor, can i use spyce to do a search then send the results back to my ajax script in &key=value format?
that could be the solution to searching from ajax instead of trying to get code modified in the c code.
Posts: 363
Joined: Jun 2004
Reputation:
0
the formating of returned data can be formed as you wanted.(and one could make the same formatting as httpapi to the spy file.. ajaxapi.spy?command=playnext)
sorry python api is also a little limited.
we have no access to music library.(i submittet a feature request on it now...)
but i can see now that it would be a good feature.
Posts: 48
Joined: Jun 2006
Reputation:
0
bnb
Junior Member
Posts: 48
any idea why the playlist isn't showing up? it is working fine, but i can't see the song list. i'm using the latest firefox.
thanks
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
2006-08-12, 18:55
(This post was last modified: 2006-08-13, 17:17 by kraqh3d.)
LiquidIce...
Random should be accessible via the httpapi since its a "builtin" playercontrol function and all builtin functions are available. Search-while-you-type wont work very well, given that function you mentioned. The time its gonna take to search the database will make it unusably slow. Also, it returns results in each categeory (genre, artist, album, and song). Let me know what you'd like here. I can extend the database search function into the httpapi however you'd like.
Posts: 64
Joined: Apr 2005
Reputation:
0
My problem is that I use a php library that generates the javascript for me when I do Ajax and so I can't help out a whole lot on this endeavor. I just hope liquidice someday comes back.
Posts: 53
Joined: Dec 2005
Reputation:
0
I'm back.
I do have a web interface that is running under 2.0 final, but nothing I would release yet. Since I last released the AJAX I have experimented with several other music systems.. Sonos (with the iSonos / Sonos Web Plugins), and more recently, Jinzora a PHP/mysql based music browsing system. Of course these are just for playing music, but that was mostly why I use all of this stuff. Still nothing seems to be able to beat XBMC in terms of compatibility and functionality.
Anyways, I checked out that zk ajax java framework, but it looks like you need java on the server (in this case the xbox) so I don't think that will help.
the prototype.js library is great for handling the ajax calls, I use it everywhere now.
I am still interested in doing a little music search interface. Now that we're out of the feature freeze i was hoping someone could help me get some search functionality through the httpapi. kraqh3d? I agree the search as you type stuff might be way too slow especially on very large music libraries, but i guess the first step would be to get a file name search working, and go from there.
XBMC distributed was something i threw together one day. I doubt it will ever see the light of day because it is not possible to sync music across multiple XBMC's reliably. Use a Sonos, SlimServer, or Apple Airport Express for that.
I can't make any promises when I will release an updated version as real work has to come first, but i'll do my best to get out a release that will work with 2.0 final. As always thanks for the continued support!
Posts: 265
Joined: Feb 2004
Reputation:
0
nad
Retired Team-Kodi Member
Posts: 265
LiquidIce: This weekend I'll be uploading an addition to httpapi that should provide the search mechanism you are after. You will be able to issue SQL commands directly against the music database.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
being able to send an arbitrary sql query directly to the database sounds like trouble.
Posts: 265
Joined: Feb 2004
Reputation:
0
nad
Retired Team-Kodi Member
Posts: 265
Why? A well crafted 'select' should be useful to client developers.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
exactly... the problem is ensuring that it's "well crafted"... plus, due to memory constraints, we have certain work arounds that allow some of the really large queries to work such as "get all songs"