added option to detect if device playing music or no

i didn't test it yet, but it should work perfectly if there is no issue with delegates
good luck and thanks for your hard work