Page 1 of 3

Android App rejected of Youtube background stream

Posted: Mon May 11, 2015 1:57 pm
by Laimonas Naradauskas

Hello,

My app is configured to visit a website on a button click which launches an internal browser within the app to display the page. Now this is all great for me although once this is submit to the android marketplace the app has been rejected of the following:
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.

Could you please investigate this and advice on what should be implemented in order to bypass this issue? I need to launch the website with an external browser and pause the app in order to get around this issue.

Thanks,
Kind Regards,
Laimonas


Android App rejected of Youtube background stream

Posted: Mon May 11, 2015 7:50 pm
by Evgene Karachevtsev

Hello Laimonas,

We are sorry, but unfortunately custom app logic and reasons why your app was declined by Google Market are outside of the scope of our support. You may search for this rejection online and contact google support.


Android App rejected of Youtube background stream

Posted: Mon May 11, 2015 7:53 pm
by Laimonas Naradauskas

Hi Engene, thanks for the reply. The reason why the app was rejected is that some objects have been set up to go to an external URL which consisted of youtube videos. The problem that I am facing is that the inside browser which is launched as you set up an event to go to an url is within the app itself and does not launch an external browser to go outside of the app and just launch a webpage.

Is this something that you could advice on?

Thanks,
Kind Regards,
Laimonas


Android App rejected of Youtube background stream

Posted: Tue May 12, 2015 10:55 am
by Serhii Kulibaba

Hello Laimonas,

Please follow this tutorial: https://devcenter.appery.io/documenta...


Android App rejected of Youtube background stream

Posted: Tue Nov 08, 2016 10:01 am
by Paul Medawar

Hi Sergiy, this link is broken...do you have an updated one?


Android App rejected of Youtube background stream

Posted: Tue Nov 08, 2016 4:46 pm
by Galyna Abramovych

Hello Paul,

Please follow these steps:

  1. Place an HTML component on the page.

  2. In PROPERTIES, set Dimensions to auto and auto.

  3. Set the ClassName property to htmlOtherSite.

  4. Click Edit HTML and switch to HTML Source. Add the following code:

    code<iframe src="https:&#47;&#47;appery&#46;io/" width="100%" height="100%"></iframe>/code

    Change https://appery.io/ to the site that should be wrapped.

  5. Create a new CSS and add the following code:

    codediv div&#46;htmlOtherSite{
    position: absolute;
    left: 0px;
    right: 0px;
    top: 54px;
    bottom: 54px;
    overflow: visible;
    }/code

  6. Test the application. You will see the wrapped content.


Android App rejected of Youtube background stream

Posted: Thu Nov 10, 2016 6:19 am
by Paul Medawar

Hi Galyna,

OK so my app has been rejected for the same reasons laid out as above,

"enabling background play of youtube videos. For example, YouTube videos still play after the "home" button has been hit.".

I have not done anything out of the ordinary or unique with the videos in the build. Simply dragged in Youtube UI Component and inserted a Video ID in the properties panel.

Therefore can you please inform me which extra steps I need to take to stop the background play of the youtube video?

best

paul


Android App rejected of Youtube background stream

Posted: Thu Nov 10, 2016 2:26 pm
by Serhii Kulibaba

Hello Paul,

Please use JS below to stop youtube video:
pre$("&#46;html5-video-player")&#46;stopVideo();/pre

You have to run that code before navigation to the next page


Android App rejected of Youtube background stream

Posted: Thu Nov 10, 2016 3:15 pm
by Paul Medawar

Thanks Sergiy!


Android App rejected of Youtube background stream

Posted: Thu Nov 10, 2016 3:27 pm
by Paul Medawar

I'm getting the following error

VM11383:296 Uncaught TypeError: $(...).stopVideo is not a function(...)