Last.FM playing through JSON-RPC - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (/forumdisplay.php?fid=174)
+---- Thread: Last.FM playing through JSON-RPC (/showthread.php?tid=93030)
Last.FM playing through JSON-RPC - sereende - 2011-02-03 13:59
I was digging recently into the JSON-RPC code to understand why from the AWX web interface the playing of Last.FM radio stations was not working.
Looking into XBMC code, apparently the only way to programmatically play a Last.FM radio is through the builtin XBMC.PlayMedia, which is not mapped in JSON-RPC.
Actually, JSON-RPC has Play, which is mapped on ApplicationMessenger.MediaPlay, whose code is not handling lastfm:// and seems overlapping XBMC.PlayMedia on some respects.
There is some refactoring needed here? Or I'm wrong and looking in the wrong directions?
Playing Last.FM streams should be embedded in normal player handling in my opinion, given the decision to have native code in XBMC dedicated to Last.FM.