Author Topic: Newbie in device programming  (Read 4702 times)

Mikel

  • Newbie
  • *
  • Posts: 11
    • View Profile
Newbie in device programming
« 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!  ;)
« Last Edit: February 07, 2010, 02:13:58 pm by Mikel »

weergygrogarf

  • Guest
Newbie in device programming
« Reply #1 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.

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Newbie in device programming
« Reply #2 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.

Mikel

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Newbie in device programming
« Reply #3 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!  ;)

dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: Newbie in device programming
« Reply #4 on: February 08, 2010, 02:37:14 pm »
Please keep us updated on your progress.