News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

How can I add av sync controls to xine?

Started by chrisbirkinshaw, November 24, 2007, 01:27:59 PM

Previous topic - Next topic

chrisbirkinshaw


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

rafik24

 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

chrisbirkinshaw

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

colinjones

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.

chrisbirkinshaw

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