title: How to pause audio player when video player starts playing?
body: <p>I am developing an audio player, it can play the audio files in background. My problem is that I need to pause the audio player when video recorder or video player is starts.</p>
  
  <p>Are there any methods to handle this task? For example I have <code>PhoneStateListener</code> to handle the calls. When I received a call or wnat to make a call we can pause the player by using call state. I want the same scenario for the video recorder or video player aswell. When video/recording starts I need to pause my audio player.</p>