youtube stops playing when switching chrome tab
try to go in chrome://flags (in the address bar) and change pause-background-tabs to disabled. I think it is working for me.
On Google Chrome Version 71.x
Disable expensive-background-timer-throttling
You can disable it with this flag: chrome://flags/#enable-audio-focus-enforcement