So lets say my phone is 100% charged and still on its charger, and I start watching a video or two. Then I close the app (still in multitask bar) and take it off the charger. I use my phone a bit, put it in my pocket and just forget about it. After a few minutes/hours battery has dropped almost 10% (depends on time). Checking battery stats shows YouTube using most of the battery, more than screen and other processes.
Here's a screenshot of today. Just normal battery usage, then i watched two 4 minute videos over WiFi, closed YouTube and put it away. Got about 10% drop in the following 30 minutes.
Clearing the YouTube app from recents does get rid of the problem, but it seems that this is something unusual, and I hoped someone had a more permanent solution.
My device is running on stock rom with Franco kernel v50 (Vomer settings), although I've had this problem with earlier versions of Franco kernel with other settings. Furthermore I'm using Xposed with App Settings, AppOpsXposed, Gravitybox and Unicon. Using custom DPI for whole system and certain apps (using App Settings). If I forgot some crucial information I'll hear it.
I hope someone can help.