Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App enables background playing of videos, cordova issues, google play rejecting apps

I have created a few android apps using Cordova, These are having videos in it. I am trying to upload the Apps on Google play store but every-time they are rejecting all apps with the following reasons.

  1. 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....

  2. After a regular review, we have determined that your app enables background playing of YouTube videos, which is a violation of the YouTube API Terms of Service...

I am not sure what's wrong with them. Could anyone please help me out

Thanks in advance.

like image 804
Gurpreet Rajpal Avatar asked Oct 31 '22 00:10

Gurpreet Rajpal


1 Answers

Google just told me that the problem is when you hit the power button when playing your video. The screen will turn off but you also must stop your video playing. The mediaplayer handles Powerbutton off differently to changing to a different app (where it turnes off automatically). Since you are still having a valid screen (although dark), it keeps playing. That behavior is wanted when you for example have a mp3 player and you want to continue listening to your music whlie the screen is off. But Youtube doesn't like that with their videos.

like image 93
schmiddy Avatar answered Nov 11 '22 13:11

schmiddy