LinuxMCE Forums

General => Developers => Topic started by: chrisbirkinshaw on November 24, 2007, 01:27:59 PM

Title: How can I add av sync controls to xine?
Post by: chrisbirkinshaw on November 24, 2007, 01:27:59 PM

I wish to add controls to allow Xine_player to receive av sync +/- controls, equivalent to n/m keys when using the normal xine with a keyboard (this does not work with the LMCE version).

I understand that I need to add data to the RemoteMapping table to redirect lirc keypresses to pluto messages, but am not sure what I need to do to get Xine_player to intercept them.

Is anybody else doing any work on this particular feature btw?

Cheers,

Chris
Title: Re: How can I add av sync controls to xine?
Post by: rafik24 on November 24, 2007, 05:13:03 PM
 Hi, chrisbirkinshaw

I had to remap my lircd.conf buttons according to the once in the pluto_main RemoteMappings db.
I added some commands looking up the commands table and creating a field in RemoteMappings using the command number.

Basically you can add your own commands and bind them to unused button on your remote.

If far as i could understand the commands are redirected to the active media player / App

Regards,

Rafik
Title: Re: How can I add av sync controls to xine?
Post by: chrisbirkinshaw on December 04, 2007, 02:05:48 PM
So any commands you add will be converted to key presses by the Xine wrapper? What is this table called? I can't seem to find anything very helpful in the database schema.

What commands were you adding btw?

Thanks,

Chris
Title: Re: How can I add av sync controls to xine?
Post by: colinjones on December 05, 2007, 02:30:08 AM
Chris

Inferring from something I just read from Thom - as Xine_player is just a wrapper to the xine library (ie not a full xine player application such as xine_ui) all the "smarts" for executing the various commands to play/stop/pause/etc are provided by the wrapper itself, and it simply calls the various library functions. So you would have to actually expand the Xine_player wrapper itself to add this functionality and call the appropriate library functions yourself. It wouldn't simply be a matter of piping in the key presses as there is no code in Xine_player to interpret them, and there is no application beneath that, just libraries. I assume that you are using some other player based on the Xine libraries, and this implements that function...

Col.
Title: Re: How can I add av sync controls to xine?
Post by: chrisbirkinshaw on December 05, 2007, 12:32:18 PM
Yes, I now understand how it all works thanks to some help on that other thread. I guess I'll have to dig into the code or put up a bounty for the feature!

Thanks,

Chris