October 11th, 2007, 02:00 PM
Get States from MCE to trigger action
We would like to see with you gents if its possible to have a plug-in for MCE to get the state of the interface (Live TV, DVD, Radio, etc...) The purpose would be to trigger action based on where we are in the interface. For example, when I'm playing Live TV, I would like to send to my receiver to switch to movie surround mode, when I'm playing music, I would like it to be in Stereo 7 channels.
This would require that Girder monitor MCE state change to get the info from Media Status Aggregation Service (MSAS). The task is similar to displaying MCE info on a VFD but in this case, we trigger action based on the status.
There is a thread already started on that subject but I think it is more appropriate to put it here since it need development.
I donít know if my request is clear enough but if not, feel free to ask questions. We are not asking you do do all the work but if you can help us with a good start then we will be able to finish the work.
October 11th, 2007, 06:16 PM
I've had a brief look at the VB source (VB is not my favourite language) and I couldn't see anything obvious in there that couldn't be done in Lua and luacom.
Some formal documentation of MSAS would help.
October 11th, 2007, 07:39 PM
Thanks for your reply Rob,
Originally Posted by Rob H
What would you need then? Unfortunatly, I have no programming skills in VB or anything like that maybe I could help in MSDOS:grin:
What kind of info on MSAS would help you? There is a post already floating on a similar project but since the guy didn't have any skills in LUA he made his own program to talk with Girder. The info he provided is valuable, IMO.
Here is the link were you can download the work he did.
Let me know Rob if anything I can do to help you.
October 11th, 2007, 07:43 PM
Sorry, I forgot this one...
Downloadable SDK for Media Center. http://www.microsoft.com/downloads/d...displaylang=en
October 11th, 2007, 08:55 PM
Here is the MS link on MSAS. http://msdn2.microsoft.com/en-us/library/bb189477.aspx
October 12th, 2007, 06:06 AM
Not sure that I'll have any time to look at this at the moment (getting ready to move house in a couple of weeks), but perhaps someone else will step up?
October 12th, 2007, 06:57 AM
$$$$$$$$ Cash is on the table
I understand your situation! Hapy move.
Anyone else wants to work on this project? I'm ready to pay what is worth for the developement.
Regards to all,
December 30th, 2007, 09:12 AM
help with LuaCOM
Gave it a try over the weekend but I'm not into COM.
The SDK lists 2 objects;
1) MSAS (the MCE COM server that provides the information)
2) MediaState (the COM sink that is used to get the info from MSAS)
Question 1) MediaState is the preferred option to be used, but it is a .NET managed assembly. So I'm wondering, can I use that one at all from LuaCOM?
Question 2) Can someone provide me some sample code on how to create either of the objects, or access to them or whatever I need to have to get the events and properties?
Once I get that going, I think I can manage to do the remainder myself in Lua.
Any help would be greatly appreciated.
March 1st, 2008, 09:53 PM
With 2 TV cards
I'm using MCE2005 with Girder4 and MCE-Spy with VFD very well. Before using MCE-Spy, my MCE2005 machine had several errors (missing recordings and not going standby mode) and I didn't use VFD (sasem on air).
Thanks to MCE-Spy, my machine didn't miss any recordings and go standby mode after recording very well and I could use VFD correctly for the first time. MCE-Spy is very useful for me, it's great.
Recently I got second TV card. And I programmed girder to apply the second TV card. But MCE-Spy didn't work correctly. For instance, the 1st recording starts it returns 'MSAS.SessionStart.Recording' and the 2nd recording starts it returns 'MSAS.SessionEnd.Recording' and 'MSAS.SessionStart.Recording' sequenly thou the 1st recording doesn't stop yet. And the 1st recording stops it returns 'MSAS.Error', the 2nd recording stops it returns 'MSAS.SessionEnd.Recording' correctly.
I eagerly hope that I use MCE-Spy normally with 2 TV cards.
I want you to fix that problem and to hear your idea about it.
Please send me e-mail.
Thanks and Regards.
I found to get authority to post the form. ;-)
March 2nd, 2008, 12:21 PM
I don't use the recording info myself, so that's probably why I never noticed anything. I'm very busy at the moment so it might take me a while to look into it. When I have a moment to spare I'll give it a try to reproduce the behaviour you described.