I have integrated Youtube api in my android app. it play video in youtubeplayerview. Now i want to give option for downloading or see offline. Can it possible to download video from my app or to give functionality to see offline.
No, it wont be possible as far as i know. Downloading video will violate their term and policies. check this link might help LINK
Related
I am using youtube api player jar file in my app. Is it Legal to use any video from youtube of any channel without permission of owner of that channel in my app for public use
Can you please help me to deal with this question.
Any anwers are highly appreciated
If you're simply fetching a video from youtube, then, in theory, it should still use Youtube's servers. That means it should be perfectly fine.
You can use this videos BUT you cannot play them in background .
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'm writting an Android App and I'm using YouTube API V3 to let the user to search YouTube for videos and show it to him,
And I would like to NOT have commercials in the beginning of the video.
is there a way todo it? even pay google for it..
Ads are determined by the uploader of the video and are a cornerstone of Youtube's monetization model so it's doubtful that there's a flag somewhere to disable them. I also doubt you'd get far contacting google directly but you could give it a try.
There is a way to check for the existence of ads in a video, so you could try to filter out videos that contain ads.
Is there any way to know if a youtube video display ads? via API?
I am a newbie in android programming. I build the first app and want to publish on google play (intergrated admod ads). In my app, I use youtube api to play videos from youtube url. I have 2 questions
First: In playlist image, I downloaded image from this link: img.youtube.com/vi/videoId/0.jpg. I didn't know that using this image from this link (downloaded) is illegal or not.
Second: Could I place ads in the same layout with youtube player (its more space in there). I don't know if it violates google policy or not.
I am so scared that my app will be ban. Give me an advice. Thank you so much
please i want way to play youtube video in videoview
I looked at a lot of solutions and pages, but I can not find an answer to this question
Please give me a definite solution to this question
Thank you
Hay behalf of VideoView its much better to use Google's YouTube Android Player API, if your need is specific to play YouTube video, Using this you can directly embed all of the functionality of YouTube in your application.
You can do it by simply following below steps_
You should target your application to at least Android 2.2. ( e.g., android:minSdkVersion="8" or API level 8)
Next you need to Registering your application to get an API key. It's free, you need your Google account to get it. You need SHA1 key of your application that you can Get SHA1 key for your application.
Download - YouTube Android Player API and Unzip the compressed folder, locate the YouTubeAndroidPlayerApi.jar, and add it to your project's /libs folder.
Add INTERNET to your manifest (<uses-permission android:name="android.permission.INTERNET"></uses-permission>)
That`s all you are completely set to get a ride on. You can find YouTube demo Sample Applications, youtube - android-player
.
I hope this will help you and all! :)
YouTube has an official YouTube Android Player API specifically designed to play YouTube videos within your applications. You may consider looking at YouTubePlayerFragment which allows you to easily embed a video player.