use 'navigator.mozAudioChannelManager' to detect headset status.
refer here: https://github.com/mozilla-b2g/gaia/blob/master/apps/music/js/Player.js#L26