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.
edwin source share