2014-09-20, 00:33
I don't know if anyone else is expecting the problem that audio is not working on Linux (xbmc, ALSA) but to suspend the audio I made a small workaround last night in the code of the plugin.
It basically suspends xbmc audio to free the ALSA audio device and tells xbmc to stop playing navigation sounds.
The problematic thing with this patch is that it enables the xbmc sounds again before the video stream stops but it works quite well for me.
492 elif osLinux:
493 xbmc.audioSuspend()
494 xbmc.enableNavSounds(False)
495 xbmc.executebuiltin("RunPlugin(plugin://plugin.program.chrome.launcher/?url="+urllib.quote_plus(url)+"&mode=showSite&kiosk="+kiosk+"&userAgent="+urllib.quote_plus(userAgent)+")")
........
502 subprocess.Popen('xdotool mousemove 9999 9999', shell=True)
503 xbmc.audioResume()
504 xbmc.enableNavSounds(True)
It basically suspends xbmc audio to free the ALSA audio device and tells xbmc to stop playing navigation sounds.
The problematic thing with this patch is that it enables the xbmc sounds again before the video stream stops but it works quite well for me.
492 elif osLinux:
493 xbmc.audioSuspend()
494 xbmc.enableNavSounds(False)
495 xbmc.executebuiltin("RunPlugin(plugin://plugin.program.chrome.launcher/?url="+urllib.quote_plus(url)+"&mode=showSite&kiosk="+kiosk+"&userAgent="+urllib.quote_plus(userAgent)+")")
........
502 subprocess.Popen('xdotool mousemove 9999 9999', shell=True)
503 xbmc.audioResume()
504 xbmc.enableNavSounds(True)