Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bahmanbj

[GLOBAL: userInfoPane.html]
bahmanbj
  • Observer

  • 7 posts
  • Corona SDK

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




[topic_controls]
[/topic_controls]