[HOW-TO] Easily switch audio outputs, settings, etc. - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: [HOW-TO] Easily switch audio outputs, settings, etc. (/showthread.php?tid=199579) |
RE: [HOW-TO] Easily switch audio outputs, settings, etc. - teeedubb - 2015-11-15 Not sure... Maybe it's a Mac thing.. Have you tried putting the script in the kodi userdata directory? What happens if you run it via the terminal? And have you set the script to be executable? RE: [HOW-TO] Easily switch audio outputs, settings, etc. - Concestly - 2015-12-14 Thanks. You save my time alot..Have you tried Default Sound Gadget? RE: [HOW-TO] Easily switch audio outputs, settings, etc. - Ziemowit - 2016-01-09 (2015-11-15, 21:28)teeedubb Wrote: Not sure... Maybe it's a Mac thing.. Have you tried putting the script in the kodi userdata directory? What happens if you run it via the terminal? Turns out it was a typo I didn't notice earlier...works as expected. Brilliant solution, thanks for that! RE: [HOW-TO] Easily switch audio outputs, settings, etc. - BartZorn - 2016-01-13 I had configured this successfully on Kodi 15.2. Now I am running 16beta5 and the only thing I see in the log is: WARNING: CPythonInvoker(6): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version. The expected output "CURRENT AUDIO DEVICE" does not appear in the log. After I (re)start Kodi, the notification appears once, at the first time I press the remote button. After that, nothing but the above message in the log. Is there another requirement in Jarvis to run python scripts? TIA, Bart RE: [HOW-TO] Easily switch audio outputs, settings, etc. - teeedubb - 2016-01-17 Not sure about any changed requirements in Jarvis, though going by that error message the script should still work. I'll set this up again on my windows machine and test it out. RE: [HOW-TO] Easily switch audio outputs, settings, etc. - Ziemowit - 2016-01-24 After restart audio still gets sent to last output device. Any idea how to set it up so after restart default output device will be used, no matter what has been used last? RE: [HOW-TO] Easily switch audio outputs, settings, etc. - teeedubb - 2016-01-24 Put a version of the script that will set your chosen device in http://kodi.wiki/view/Autoexec.py RE: [HOW-TO] Easily switch audio outputs, settings, etc. - Ziemowit - 2016-01-24 Thanks again RE: [HOW-TO] Easily switch audio outputs, settings, etc. - BartZorn - 2016-02-10 (2016-01-17, 04:12)teeedubb Wrote: Not sure about any changed requirements in Jarvis, though going by that error message the script should still work. I'll set this up again on my windows machine and test it out. Did you already find some time to look into this? Thanks, Bart RE: [HOW-TO] Easily switch audio outputs, settings, etc. - teeedubb - 2016-02-10 Yeah I just tried.. while I do get the "WARNING: CPythonInvoker(6): Script invoked without an addon....." error, the script worked over several runs on Jarvis RC3. Post a version of your script and I'll try on my machine. RE: [HOW-TO] Easily switch audio outputs, settings, etc. - BartZorn - 2016-02-10 (2016-02-10, 15:36)teeedubb Wrote: Yeah I just tried.. while I do get the "WARNING: CPythonInvoker(6): Script invoked without an addon....." error, the script worked over several runs on Jarvis RC3. Post a version of your script and I'll try on my machine. Here it is: https://drive.google.com/file/d/0Bya7T6ApDOQ1OHJ5bkJPdXQyNG8/view?usp=sharing I don't think I changed much from your original. I hope you can find something. Thanks, Bart RE: [HOW-TO] Easily switch audio outputs, settings, etc. - teeedubb - 2016-02-10 Works as should on my system. You might wanna try the audio profile switcher addon. RE: [HOW-TO] Easily switch audio outputs, settings, etc. - oyvindo - 2016-03-06 @teeedubb, Can you explain in plain english what this script actually does? Does "switching audio output" means directing the sound to different LAN-connected players, like DLNA players? RE: [HOW-TO] Easily switch audio outputs, settings, etc. - teeedubb - 2016-03-07 It uses kodi's jsonrpc protocol to toggle settings. The example is for switching hardware audio outputs (eg HDMI and analog), but the script can be modified to change any settings that are exposed via jsonrpc. RE: [HOW-TO] Easily switch audio outputs, settings, etc. - Derek - 2016-03-07 Sweet idea like it alot |