record audio from movies using a keyboard-shortcut
#1
Hey there,

I'm trying to code a litte script that "records" audio material (stereo) of a movie playing.
First thing to say is I'm new to python and xbmc dev, so don't hesitate to tell me if I'm completely wrong...

After some reading of wiki etc. my first decision to be made might be:

a) Building a script that is called everytime when I want to record? (preferred, i guess)
or
b) Building a service that runs in background when xbmc runs and switches between rec and don't rec? (unnecessary or unavoidable?)

Either way I'm stuck with the script noticing my keyboard shortcut.

I read about settings.xml and the way to read/write settings from within the script,
and I read about keyboard.xml and calling the script itself, but I need to pass over a variable to the running script if I want to stop recording.
So I guess I need to:

1) pass a variable to the running script directly (or change one from within)
or
2) change a setting (settings.xml)
both via keyboard shortcut.

Btw: I don't necessarily need to have any gui for the function, but a little "popup" saying "recording..." would be nice anyway... Just in case this affects the prior decisions.


Thanks and have a nice day
Reply

Logout Mark Read Team Forum Stats Members Help
record audio from movies using a keyboard-shortcut0