2010-10-06, 12:00
Everyone, what are the thoughts on using http://mythtv.org/wiki/MythXML rather than http://www.mythtv.org/wiki/Myth_Protocol where possible?
libcmyth, which works with the Myth Protocol or MySQL database isn't getting any significant support outside of XBMC to keep it up-to-date.
Pros for using MythXML
1) XML is human readable and has good tooling support for parsing etc.
2) HTTP is well understood and also has good tooling support etc. You can fire a web browser at the backend with the right URL and get what you need for debugging.
Concerns:
1) MythXML is newish and I haven't found any information on how the API will be versioned. The version number of the "object" appears to come back in the response though, e.g. "ProtoVer" in http://mythtv.org/wiki/GetProgramGuide_%28MythXML%29
2) Not sure when it was first introduced. Is it in Myth 0.23? Will this limit the number of people that can use it if they need to be running a 0.23 backend? Do we need to worry about that?
3) Does the streaming of the recording work in XBMC? http://mythtv.org/wiki/GetRecording_%28MythXML%29
4) LiveTV still looks like it will need to be accessed via Myth Protocol.
Next Steps:
1) XBMC (I think) knows how to stream content via HTTP. Perhaps someone could test the http://mythtv.org/wiki/GetRecording_%28MythXML%29 API by specifying a known good URL for XBMC and see what happens. What happens if a good URL is simply pasted into a browser? Volunteers?
2) tafypz, how are you finding it for the work you are doing on the EPG. Which XML parsing library are you using? TinyXML?
3) Build out all the parts we can with MythXML and then go from there?
libcmyth, which works with the Myth Protocol or MySQL database isn't getting any significant support outside of XBMC to keep it up-to-date.
Pros for using MythXML
1) XML is human readable and has good tooling support for parsing etc.
2) HTTP is well understood and also has good tooling support etc. You can fire a web browser at the backend with the right URL and get what you need for debugging.
Concerns:
1) MythXML is newish and I haven't found any information on how the API will be versioned. The version number of the "object" appears to come back in the response though, e.g. "ProtoVer" in http://mythtv.org/wiki/GetProgramGuide_%28MythXML%29
2) Not sure when it was first introduced. Is it in Myth 0.23? Will this limit the number of people that can use it if they need to be running a 0.23 backend? Do we need to worry about that?
3) Does the streaming of the recording work in XBMC? http://mythtv.org/wiki/GetRecording_%28MythXML%29
4) LiveTV still looks like it will need to be accessed via Myth Protocol.
Next Steps:
1) XBMC (I think) knows how to stream content via HTTP. Perhaps someone could test the http://mythtv.org/wiki/GetRecording_%28MythXML%29 API by specifying a known good URL for XBMC and see what happens. What happens if a good URL is simply pasted into a browser? Volunteers?
2) tafypz, how are you finding it for the work you are doing on the EPG. Which XML parsing library are you using? TinyXML?
3) Build out all the parts we can with MythXML and then go from there?