LinuxMCE Forums

General => Developers => Topic started by: Mikel on February 06, 2010, 02:13:56 pm

Title: Newbie in device programming
Post by: Mikel on February 06, 2010, 02:13:56 pm
Hi, I'm a newbie in linuxMCE world, and I want to encode a Device that catches the Commands from Xine Player. I read the wiki and forum, but I have a few questions yet:

- Do I need to create a Child Device of Xine Player to catch the Commands?

- To catch the Commands, simply I have to write the code into the stubs of the Commands? For example, writing my code into CMD_StopMedia procedure into MyClass.cpp is going to execute this code when I pause the video in LinuxMCE?

I am asking these questions because we are working with LinuxMCE to realize a project into our university. We have a lot of work to do, but soon as we finish the project, we are going to share it with community.

Thanks!  ;)
Title: Newbie in device programming
Post by: weergygrogarf on February 07, 2010, 10:15:15 am
Thanks for sharing all the info. Have you or anyone else used cocos2d? Im curious about its performance on a device.
Title: Re: Newbie in device programming
Post by: colinjones on February 07, 2010, 08:56:02 pm
Not 100% clear on what you are trying to do, but I don't think it needs to be as complicated as that. You may just be able to register for an event.
Title: Re: Newbie in device programming
Post by: Mikel on February 07, 2010, 09:39:42 pm
Not 100% clear on what you are trying to do, but I don't think it needs to be as complicated as that. You may just be able to register for an event.

Yeah, I found the answer this afternoon. The key is the Event handler.

By the way, our project is gonna be like LastFM for TV shows.   :D

Thanks!  ;)
Title: Re: Newbie in device programming
Post by: dlewis on February 08, 2010, 02:37:14 pm
Please keep us updated on your progress.