WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps (/showthread.php?tid=8760)
- nad - 2007-12-08 16:50
Kev: My point was that you may want to borrow the code from XBMCControl rather than reinvent everything. This includes the base64 image request you made today, though the code is vb.net not c#.
- KevMoore123 - 2007-12-08 16:53
Sorry Nad, Mis-read your comment !
Ive managed to solve it now . Initialising the PictureBox with a new Bitmap(stream) seemed to do the trick.
I'll have a butchers at your app now.
Thanks a bunch anyway,
- KevMoore123 - 2007-12-08 17:27
Loving the app Nad. I havent got as far as doing Movie compatibility yet, as the sole aim for my app was to be able to play music without having the TV on.
Are you still developing your app? Ive done VB.NET before, so am happy to help when/where I can.
Similiarly, my code will be on sourceforge pretty soon so feel free to download it and play with it. Translation between c# and VB.NET on the CF are pretty straight forward.
I will post my source link here once the project is approved.
- nad - 2007-12-08 18:52
Kev: If you go back to the start of this thread (50 pages!) you will find that "play music without having the TV on" was my aim as well. It is why I produced the HttpApi as well as XBMCControl. I just kept tinkering with both to where it is today. I was planning on making 1.91 the last version for a while. I can't think of much more functionality that I want. However, I still wish it looked better. When I started XBMCControl I was hoping someone with some artistic capabilities would pick it up and beautify it.
While my original aim was to have the app running on my PPC (which it does); I have found that the limited battery life of my PPC means that most of the time I am running the app on a laptop. So in v2 I may give up the ability to run the code on the PPC. This would allow me to come up with a nicer user interface though I am sure it still will look pretty awful.
I have just moved to VS2008, so whenever I do v2.0 it will use that project format.
- KevMoore123 - 2007-12-09 03:51
NAD: I absolutely agree, the battery life on the PDA is not great. Sorry for not reading 50 pages ago, im just a little impatient . Im new to the XBMC and am only just discovering the power that the HTTP-API can do.
Upmost respect for the API, im from a c++ background myself but was unfortunate enough to be mostly coding MFC . Since the launch of c# ive moved over to that arena, and to be honest ive never looked back since.
Whilst PDA's are great for portable low footprint apps, the battery life does let them down. Although I am fortunate enough to have PC to hand in the front room which can do a better job, I still like the idea of a PDA app on the coffee table that I can just pick up and mess with (Playlist etc).
I used to be an ITunes man, but soon realised that letting people (in a social situ) onto your machine to "Browse" music is a bad idea
I Scrapped Itunes and converted all my M4p files to Mp3, and used TagScanner 5 to sort my library out. XBMC and its SQLLite DB is awesome, and being able to query that makes my life a lot easier.
Ive even had my Nintendo DS (Via Opera) browsing the music DB via a small Ajax browser I created, but found that Opera just didnt cut the mustard when it came to client based scripting.
Anyhoo, its good to know that there is someone out there with the technical ability to solve a problem using CF, Ajax. and even more important, someone who has created such an awesome API as HTTP-API.
HTTP-API and ID3 Tags - KevMoore123 - 2007-12-12 00:22
does anyone know how I can use the HTTP-API to get iD3 information from the currently playing track? The reason I ask is that I am working on a BPM type search (where you can set a beat you prefer, and a search can be done on that bpm). All my MP3's have been tagged with their bpm, but I cannot see the column in any of the SQL-Lite tables.
Any help would be appreciated,
- jmarshall - 2007-12-12 00:32
The info doesn't magically get added to the db. You have to code up:
1. Extraction from the tags.
2. Addition to the structures to hold those tags.
3. Additional columns to the db.
4. Extraction of said columns out of the db.
- KevMoore123 - 2007-12-12 00:36
Hi, and thanks for that.
Im aware that magic and coding can never form a relationship, and that coding would ultimately be the solution. Im just a big believer in not re-inventing the wheel, and wondered if the HTTP-API had already catered for ID3 information. If there is no function to do this already, I will gladly knock one up.
- jmarshall - 2007-12-12 00:46
It caters for all the information that the rest of XBMC has about tags. As XBMC has no knowledge of "bpm" tags, it's not available anywhere.
- KevMoore123 - 2007-12-12 00:53
Looks like i need to get busy .
Thinking about it, I mayextend the existing GetTagFromFilename() function to return the bpm and most of the other ID3v2 frames (including BPM). If anyone else wants any more tag info returned ,let me know...