Using the YouTube API for Android without the Google YouTube app?

We are developing a YouTube application (using the YouTube API for Android) for an Android user device. Now the problem is that we don’t have a pre-installed Google YouTube application on our device (which is per-requsite for using these APIs). Below are my questions:

  • Can I use these APIs without the Google YouTube app?

  • If not, is there anyway, can we associate the YouTube App App with our application and install the Google application the first time we launch our application? Is this approach possible?

  • What permissions will Google require and how can we get it?

Pay attention . We don’t want to use our own video player for Android, and we don’t want to embed YouTube Player in the web view.

thanks

+4
source share
2 answers

The YouTube API is used to add YouTube playability to your application, which means you can embed YouTube videos in your application’s interface. Yes, this requires the official YouTube client to be installed, as this will give you a playback code and the ability to play videos. But you do not need to run it. The video will be in your application.

I did not check, but it is logical to assume that com.google.android.youtube.player.YouTubePlayerView is a view implemented in the official YouTube API that will be introduced into the application using the YouTube API that will display the video.

To make a video and play it in your application, you need support from the official YouTube application. Just like that.

Documents API YouTube mentions that it will be available on devices running Android 2.2 (Froyo).

So, to use the API, we need support from the YouTube app.

Regarding your second question, refer to this post .

First of all, the Google YouTube app (4.2.16) that we use to support the YouTube API is not open source. This is a free application, but that does not mean that it is open source. Google has not published the source code for the latest YouTube application, and the YouTube API is also not open source. Moreover, this is a pilot project.

Have you seen anywhere the source code of these two projects?

They may come up with more modifications and features, but I think there is no workaround, as you said.

If I am wrong, please correct me.

+4
source

Here you will find the new answer that iFrame used inside webview

REFER

youtube api supports iFrame

0
source

All Articles