Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

How detect Power button event to call a javascript method!
Started by bahmanbj Nov 24 2017 11:52 AM

No replies to this topic
youtube power button
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 7 posts
  • Corona SDK


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