title: How to pause YouTube video on InAppBrowser when my Cordova app goes to background?
body: <p>I am developing an Android app using Cordova and Ionic framework. I am playing a YouTube video with InAppBrowser using the code below:</p>
  
  <pre><code>window.open('https://www.youtube.com/embed/rAiw2SXPS-4', '_self');
  </code></pre>
  
  <p>But when I press the home button on the device while playing the video, the video is not paused. Due to this issue, my app is rejected after submitting to Google Play with the reason below:</p>
  
  <blockquote>
    <p>Your submission has been rejected for enabling background playing of YouTube videos in violation of the YouTube API Terms of Service. If this submission was an update to an existing app, the version published prior to this update is still available in Google Play. Please modify your app and resubmit. Additional details have been sent to your account owner's email address.</p>
  </blockquote>
  
  <p>I searched for a solution but have no luck. Can anybody help?</p>