I'm embarking on a fun project this week. I'm going to start coding a Media Center Add In with the following features...
I've got a couple of reasons...
I'm off to a great start -- just finished coding an Add In which takes this XML (learn more about the Click To Record Feature)...
<clickToRecord xmlns="urn:schemas-microsoft-com:ehome:clicktorecord"> <body> <programRecord isRecurring="false"> <program> <key field="urn:schemas-microsoft-com:ehome:epg:program#title">Star Trek: The Next Generation</key> </program> </programRecord> </body></clickToRecord>
...and schedules a recording of a single show via this C# code in an On Demand Add In (learn more starting at About Media Center Add Ins)...
void IAddInEntryPoint.Launch(AddInHost host){ try { string strClickToRecordXML = string.Empty; Television objTV = host.Television; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("ClickToRecord.c2r"); strClickToRecordXML = xmlDoc.InnerXml; objTV.ScheduleRecording(strClickToRecordXML); host.HostControl.Dialog("Completed ScheduleRecording Method Call", "Success", 1, 0, false); } catch(Exception ex) { host.HostControl.Dialog(ex.Message,"Exception",1,5,false); }}
So, I have a couple of questions for the readers of this blog...
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.