How detect Power button event to call a javascript method!

Hi,

I setup a youtube video player based on iframe and it works.

But when I uploaded to Google, got this reason to close my app:

Your app will not be reinstated because it violates our Device and Network Abuse policy by downloading, monetizing, or otherwise accessing YouTube videos in violation of the YouTube Terms of Service or YouTube API Terms of Service.

your app is still able to play YouTube videos after pressing the “Power” button.

I setup some javascript methods to stop player but I could not find a way to detect Power event button to call a method from javascript to stop youtube player.

Any suggestion?

Thank  you