Solution Finally!
HI, guys, I'm gonna share the solution I've found and it works great, plus it doesn't involve tinkering with anything.
The music auto-stop problem lies deep underneath the application that locks the screen of your phone or probably something malfunctions when the screen is locked. Now, there is a difference between turning off the screen (the light) and locking it. Turning off the lights does not essentially means locking it off. And, as our problem starts when the screen is locked we will try NOT locking it. So, go to Settings->Security->Screen Lock and select "None". This will essentially prevent your phone from locking the screen anyways.
---------- Post added at 10:08 AM ---------- Previous post was at 09:53 AM ----------
But, hold on, does that mean it also removes any kind of security that prevents nosey people from intruding? Yes, it does.
So???
Well, first of all you cannot have screen locked while listening to music. You can turn on/off screen lock after/before you listen to music, but that's annoying.
So, I suggest get this app: jet audio
There's an option in this app to modify screen lock option when this app is running on foreground. In this player, go to preferences->Screen then select No Screen Lock and then use it to listen to music (it's actually a very cool player. for those of you who are using paid players try the plus version, worth every penny.)
Hope this helps.
Note: you don't need to apply both to make this work. If you're using jet it will override the system screen lock settings while it's playing and is foreground
Note2: music players other than jet may have this no screen lock option, you can try those too.