In some Threads they are trying to code an automatic output switch with special addon.
For me the easiest and working way is just add a second profile for music with audio output USB. It starts with it and if I want to watch video I can change the profile on the screen to video with audio output HDMI