youtube / api-samples

Code samples for YouTube APIs, including the YouTube Data API, YouTube Analytics API, and YouTube Live Streaming API. The repo contains language-specific directories that contain the samples.
5.49k stars 2.97k forks source link

Android sdk remove ads? #85

Open weijia-yu opened 8 years ago

weijia-yu commented 8 years ago

Every time I play videos, there are ads, any way to remove them?


@Override
    public void onInitializationSuccess(Provider provider, YouTubePlayer player, boolean wasRestored) {
if(null== player) return;

        // Start buffering
        if (!wasRestored) {
            player.cueVideo(VIDEO_ID);
        }
galex commented 6 years ago

It would be nice to have this option as I would like to use subscriptions instead of Youtube Ads when playing videos on Android.