[WIP] Shortcut for switching Audio Output Device

Hi!

I had the issue that I wanted to bind a key on my remote to switching the audio output device (without having to click through the settings first). As I was not able to find such a plugin (I found one that automatically switches the output depending on the media) and I was suspicious in trying to write a Kodi add-on I did it myself.

So the add-on does nothing more than switching to the next audio output when executed.

Here’s the code:
https://github.com/B-S-L/script.switch.audio.device.shortcut

(here a the addon in zip:
https://github.com/B-S-L/script.switch.a…master.zip
)

Maybe some people (those having their TV in a room where they sometimes have to switch to earphones for sake of peace Wink) can use it – or you may tell how this could have been done easier! (anyway – it was fun to try develoe it).