Is it possible to play youtube content in the background both in android and iOS apps for Youtube Red users. I have not found any official documentation regarding allowing Youtube Red users to play youtube content in third party apps. I have just found this unanswered SO post
YouTube Red members login api
And this one which is answered but does not have any reference to any official source explicitly stating that this is not possible
Using YouTube Player API, play video as a specific user, applying YouTube Red subscription
Related
I want to implement YouTube music in my app, I did some searches and I found out that there is a YouTube music api but I couldn't find any documentation about it.
My questions:
Does Youtube Music have an API or an SDK for android?
Does anyone have some ideas about it?
At this time there is no YouTube Music api. Anything you may have seen on the internet is probably third party hacked, and would most likely be against googles TOS.
If google ever does release one it will probably be listed here.
All Develop products
I'm developing news app which is showing YouTube matching embed video on click news post, I'm not owner any of those videos, but I want to place Admob banner ad to the bottom of the video, I saw this post about possible copyright strike from Google or YouTube, but I need to be sure about that before add ads on location showed in image below.
If there are no ads on that specific Youtube Channel i.e. the videos are not monetized via AdSense, you can show AdMob's ads afaik.
Do cross-check the policies though, these policies tend to change quite often.
Note: If the YouTube Channel someday starts to monetize its content, your AdMob account will be at risk so head with precaution.
I'm a beginner and I’m working on an android project in which I play youtube videos using Google YouTube data API.
Is it possible to play the video in the background even after the user has switched to another app or pressed the home button?
Is it possible to separate the audio from the video and stream that in the background?
I don't want to use web view.
It is possible to play the audio in the background.
However , you are not allowed to do so.
This violation of the Youtube API is cause for immidiate removal from the play store.
Official answer:
During review, we found that your app violates the Prohibited Actions provision of the Content Policy.
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;"
youtube red users only they possible to play youtube videos in background (https://support.google.com/youtube/answer/6308116?hl=en). You can check if they have this in the api,
its possible to play youtube videos in background if you open the desktop version of youtube in a browser.
Maybe you can make use of this by opening the correct link in a webview in background
Yes its possible and its easy. No installation, no root, no violations. Let me explain it.
Andriod 9 --> Settings --> Search Picture in Picture --> select YouTube --> Allow
Once Allow picture-in-picture is enabled. You can run YouTube in Background.
I got another idea, but not sure will it violate the rule.
You can build your own service base on youtube-dl. More explain step by step:
First you got the url of the video from Youtube
Second you extract the audio information from the origin video url, and you now get the audio source via youtube-dl
Play the audio source in the background
In this way you are not using the Youtube api directly, I think it's fine to only use the audio from the source and play it in the background.
I have integrated YouTube player to my app.
The problem now is, YouTube logo is displayed in the player and when i click on it, it takes to YouTube app.
Is it possible to remove YouTube logo from player? If not , is it possible to remove click event on the YouTube logo?
Thanks.
As suggested by others, it is mandatory for you to display YouTube logo in your application in case you do not want to violate YouTube Terms of Service. Look Under API USE:
Brand Feature Rules. "YouTube Brand Features" means the trade names, trademarks, service marks, logos, domain names and other
distinctive brand features of YouTube. YouTube grants You a
non-exclusive license to use the YouTube Brand Features solely in
connection with their display on or through the API Client as
delivered by YouTube. Your Application shall provide proper
attribution to YouTube as specified in the YouTube Brand Guidelines
set forth at http://code.google.com/apis/youtube/branding.html, which
may be modified by YouTube at any time. YouTube may terminate Your
license to use the YouTube Brand Features at any time for any or no
reason. Goodwill in YouTube Brand Features will inure only to
YouTube's benefit and You obtain no rights with respect to any of
them. You irrevocably assign and will assign to YouTube any right,
title and interest that You obtain in any of YouTube's Brand Features.
You shall not at any time challenge or assist others to challenge
YouTube Brand Features or their registration (except to the extent You
cannot give up that right by law) or attempt to register any
trademarks, marks or trade names confusingly similar to YouTube's.
This paragraph survives any termination or expiration of this
Agreement.
As far as removing the link goes, even that is against YouTube's branding policy. Look at the last point at the bottom of the page in this link:
Any YouTube logo used within an application must link back to YouTube
content or to a YouTube component of that application.
Hence, I would really suggest leaving that logo and link there. However, meeting the requirements, you could re-size it a little in case if it is big or small.
i want to display all the videos uploaded by a user, say cnn,
in my own android app, i will have a webview, and when user clicks on this video (cnn), it will play that particular youtube video in android's native video player, once video finishes, it will return to my app (webview where user lastly clicked)
my question is, which part of the google youtube data api should i feed to the intent? using the example below?
https://developers.google.com/youtube/2.0/developers_guide_protocol_understanding_video_feeds#Understanding_Video_Entries
can someone give me a CONCRETE example, no abbreviation or whatsoever, a link i should put in the intent?
i am confused because examples i found has .mp4 extension etc, which android will understand the intent that a video is requested to play.
but in the link provided above, there is no link to the raw file, i.e. no URI ends with .mp4
please help
By going thorough the documentation about youtube api and testing the demo App i think in-order make a app using youtube-api need
1) Developer key
2)Phone installed with latest version of youtube application (i think Actually youtube-api use some supports of youtube app to play video)
3)By using this api video will stay inside your app. but it use support from youtube app to play video
Note:- if am wrong Correct me