[ 
https://issues.apache.org/jira/browse/CB-11013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15423147#comment-15423147
 ] 

Sergey Shakhnazarov commented on CB-11013:
------------------------------------------

Workaround for JS code could be:
{code}
document.addEventListener("pause", this.onPause, false);
...
app.ref = 
cordova.InAppBrowser.open('https://www.khanacademy.org/math/algebra/introduction-to-algebra/overview_hist_alg/v/origins-of-algebra',
 '_blank', 'location=yes');
...
onPause: function() {
    app.ref.close();
},
{code}

> IAB enabling background play of YouTube videos?
> -----------------------------------------------
>
>                 Key: CB-11013
>                 URL: https://issues.apache.org/jira/browse/CB-11013
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 3.5.0
>         Environment: android OS
>            Reporter: Steve Husting
>            Assignee: Sergey Shakhnazarov
>              Labels: Android, triaged
>
> Google Play send me an email, saying, "Make sure your app doesn’t access or 
> use a service or API in a manner that violates its terms of service, for 
> example, by enabling background play of YouTube videos." My app uses IAB 
> extensively to play videos from YouTube. In some way it is violating the 
> terms of service by playing the videos through IAB. Please examine and fix 
> this bug  so it no longer violates the rules. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to