angular-youtube-embed: Rejected from the Play Store

I am using this in an ionic hybrid app, and it got rejected for this reason:

REASON FOR REJECTION:Violation of the Prohibited Actions provision of the Content Policy.

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:

“Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to: (8) separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API;”

I am playing the video simply, like this: <youtube-video video-id="videoId" player="yt_video" player-vars="playerVars"></youtube-video>

Does anyone know what I need to do to avoid being rejected?

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Reactions: 1
  • Comments: 15 (1 by maintainers)

Most upvoted comments

Hi everyone, for those who have rejected them from the Play Store for “YouTube background play when the screen is off.” or because the player still playing in background I solved with the following: When the player is ready I assign the player to a root scope variable:

$scope.$on('youtube.player.ready', function ($event, player) {
  $rootScope.YTPlayer = player;
});

and then i just listening the onPause of the android life cycle and stop de video:

document.addEventListener("pause", function() {
  if ($rootScope.YTPlayer) {
    $rootScope.YTPlayer.stopVideo();
  }
}, false);

Greetings !