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)
- NeoMorph - 2007-10-07 19:15
spiff Wrote:use the builtin command playercontrol
Err... No reference to record in the playercontrol specs...
Quote:XBMC.PlayerControl(command) [INDENT]Allows control of music and videos. The command may be one of Play, Stop, Forward, Rewind, Next, Previous, BigSkipForward, BigSkipBackward, SmallSkipForward, SmallSkipBackward, Random, Repeat, RepeatOne, RepeatAll, RepeatOff, Partymode(music) or Partymode(video). Play will either pause, resume, or stop ffwding or rewinding. Random toggles random playback, Repeat cycles through the repeat modes, Partymode(music/video) toggles the appropriate partymode, defaults to music if no parameter is given. [/INDENT]
That's where I looked in the first place Spiff as I have got all the other commands linked to my Girder program now. Is there a new ability that hasn't been written up on the wiki?
- spiff - 2007-10-07 21:19
from the musicosd.xml (skin file)
so definitely just a missed in wiki thing.
- NeoMorph - 2007-10-09 00:17
spiff Wrote:from the musicosd.xml (skin file)
Cheers spiff - on the ball as usual... It's recording fine now... One question... is there a way via HTTPAPI to confirm that it's actually recording? I would have assumed that PlayStatus would have changed to "RecordingStream" or something like it.
Onto an old question I submitted about cover art, I managed to use the "Filename:" to figure out where on the net the songs are coming from... I then trimmed off "smb:" and chopped the songname off and replaced it with "folder.jpg" and I have instant cover art. OK it's not the cover art that is in the XBMC database but as I use the folder.jpg method anyway it works for me. I've also added better definition cover art using CoverHD.png and CoverBackHD.png for use with TFT and Plasma screens. Works nice so far.
I just want to say that XBMC is kicking butt now I have sorted out the interface. I still have a ways to go yet but the things I really wanted are working on my testbed (having radio station plus artist and songname displayed on touchscreen panels plus one button record ability). Would you believe even JRMC cant do that.
- Nuka1195 - 2007-10-17 21:05
nad, i need to pass commas as part of the sql string for QueryVideoDatabase()
How would I do this with python?
- Nuka1195 - 2007-10-17 23:01
It appears python's executehttpapi() calls do not get urldecoded, this seems important at least for the query database commands.
If this patch is ok, i'll commit it
Amended thae patch to UrlDecode all params.
XBMC.PlayerControl(record) and HTTPapi - NeoMorph - 2007-10-19 06:12
I'm probably asking for something that isn't a simple change but is it possible to ask for XBMC.PlayerControl(recordstart) and XBMC.PlayerControl(recordstop) to be added so that I can have seperate buttons for starting and stopping recording. Either that or have httpapi respond back whether it has started or stopped recording (actually that would be ideal).
When I send the record command over httpapi I can't tell if it's started recording or not you see. I've had several instances where I thought I'd started recording but actually started and stopped recording you see.
- NeoMorph - 2007-10-19 06:23
Oh yeah and does anyone know why the broadcast info got removed? I really would have loved to be able to use it to trigger songname retrieval in HTTPapi.
- nad - 2007-10-19 18:55
Nuka: just checking your suggested change.
NeoMorph: has broadcast been removed? Assuming it hasn't would a broadcast message indicating start and stop recording be what you are after?
- NeoMorph - 2007-10-20 10:08
nad Wrote:NeoMorph: has broadcast been removed? Assuming it hasn't would a broadcast message indicating start and stop recording be what you are after?
Yeah... and whenever the music changes tracks so my panel knows to grab the new song info. I was told that it doesn't function now... see here....
I tried all sorts to try and read the info but nothing was coming over with the listener program... it just sat there and twiddles its virtual thumbs. To get around it I have to keep querying the xbox every 5 seconds to keep the songname info current(ish). If I could get the broadcast info I could do away without having to spam the xbox.
- nad - 2007-10-20 12:46
NeoMorph: Just checked and broadcast is still working for me. Perhaps you have changed the default broadcast port setting?
Nuka: patch looks good to me.