Thanks for the suggestion mate. However, I don't like installing apps from unknown sources, and I also wanted to use YouTube stock app, that's why I ended up developing this app ;)
How can you do that (without rooting)? I developed this app because I could not find any to turn off the screen while keeping youtube playing without rooting.