2022-01-02, 13:47
(2021-12-31, 18:24)ralfonat Wrote: I feel you. I have been thinking if this could be done by a script.One of the problems was recently fixed about the audio sync https://github.com/xbmc/xbmc/pull/20745 you should try the latest matrix nightly.
bind keys to execute python script with args tempoup/down
In the script verify that sync is enabled via:
* JSONRPC to enable videoplayer.usedisplayasclock (sync refresh to display)
make a monitor subclass that checks for playback ended -> reset previous values.
It's kind of a hack n slay approach.
You cannot (as far as i see) get the current tempo setting via pyhton so you can't disable sync display again when tempo is 1.0 unless you try and count the tempo ups/downs, again a guesstimate route i'd rather not take.
Also this would probably have to be implemented as a service addon so it can track the previous sync-display value and re-set it.
However then you would need to be able to send commands via keymap->action to the service addon to increase/decrease tempo... Not sure if/how that works.
Can anyone chime in?
As far as auto setting sync to display goes I use the audio profiles plugin to enable the option for stereo audio and not for the rest. You can also set the plugin to ask you every time you start a video