I want to schedule recordings with the recording server from another source. From my brief review of the record server, it looks like I need to make xmlrpc calls to the server.
Yes, there are several xmlrpc published methods.
To confess, I know nothing about xmlrpc, and what makes this even more fun is that the program I want to schedule recordings _from_ is written in C, so I will have to figure out xmlrpc in C.
There should be xmlrpc libraries avalable for all popular languages. Most libs or toolkits should come with some sort of xmlrpc tutorial, there was some info in one of my python books and Twisted came with some info as well, there's lots out there.
What do I need to know in terms of "published API" with the record server. Presumably there are a set of RPCs that I can call with various arguments. Is this information published anywhere or do I have to reverse engineer it from the code?
Well, we don't yet have a published API for it but look at all the methods in src/helpers/recordserver.py that start with xmlrpc_. Any part of Freevo that talks to the recordserver imports tv.record_client (src/tv/record_client.py) as an interface calls its functions.
One problem you will have though is passing objects back and forth. Xmlrpc only passes simpe type back and forth so we use Twisted's marmalade functions to serialize objects to xml format then rebuild them on the other side. I know Mike Ruelle was looking into building an app in another lang (perl/tk maybe?) and was having problems with Twisted's marmalade to xml format. I am not sure if he found a solution. Also if you are using another language you will most likely need to make object deffinitions for each type of object you wish to pass back and forth (TvProgram for example).
I hope this helps (I'm feeling kinda ill atm), and good luck.
-Rob
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
