Audio sound problems

Hi,

When I test my bluetooth headset with speaker test all work ok. When I connect to Youtube it not ok. Sound disappera after a copule of seconds. When I check with blueman the headset is disconnected. Even blueman seems to slow done the computer. When I play music and video with VLC it is ok. Analog connection give lot of noise, its not good sound.

Analog sound is ok if I use Openelec. Is this a problem with Ubuntu?

Computer: Raspberry PI3
Software: Ubuntu 16.04
Kernel: 4.4.10-v7+