added option to detect if device playing music or no