Added a feature: auto play music on headset plugin