First of all, thanks to all diehard developers who have made such a great job bringing Kodi to Raspbian Buster. I am so happy enjoying it.
I am running Kodi on a Raspberry Pi4, on top of Raspberry OS Desktop, all official repos, everything up-to-date. It is right beside the TV set, so there are no USB keyboard or mouse. Desktop is controlled via UnifiedRemote, while Kodi is controlled via Kore. I have no issues switching back and forth between these in my phone.
I can set output audio devices without any trouble through desktop selector, be it analog, HDMI or bluetooth headset, and play any video with any desktop application without any problem.
In Kodi, I can set audio device as ALSA:output through GUI, exit Kodi and restart, and I can play any video from any add-on, provided I had previously selected analog or HDMI in the desktop selector. I can exit Kodi to desktop, switch audio output and restart without any trouble. Everything works as it should.
Now, I have found a rather strange issue when using a bluetooth headset, which had already been reported about a year ago here
viewtopic.php?f=63&t=256938&p=1567749&h ... 1#p1567749
If I choose my bluetooth headset as output, Kodi will use it normally to play GUI sounds. If I just exit Kodi back to desktop without playing anything, I can switch devices and restart Kodi as usual.
If, on the other hand, I try to play any video from any add-on using my bluetooth headset, sound simply vanishes. Video playback stalls forever, but you can still navigate forward, back and stop the playback to go back to Kodi GUI. Subtitles appear to run normally, despite the video not being played.
Back to GUI, I can navigate normally but sound is absent. No GUI sounds at all on any device. There is no sound through bluetooth headset, and there is no sound on HDMI or analog output either. Changing audio device in GUI does not restore audio output.
Device controls are not affected by absent audio. I can still exit Kodi and Kore notices there is no media center any more, but the screen is "locked" until I switch off my headset. This is weird. I have tested this several times. After my bluetooth headset is off, Kodi sort of "gives way" and Raspberry desktop reappears like nothing has happened. I can reconnect my headset, switch devices and restart Kodi without any trouble.
This has ended up being quite a long post, but I would really appreciate your help. Please tell me which kind of logs I should provide, as the issue seems quite puzzling to me, and I am not an expert at all.
Thank you very much.