Is Android Youtube API Using Official Youtube App for playing video?

后端 未结 1 939
无人共我
无人共我 2021-01-23 10:10

I used Youtube api for android to develop an app. Even though i create app and it works fine. Still i was not able to Find out what this api really do

1) When i run it

1条回答
  •  孤街浪徒
    2021-01-23 10:44

    The YouTube API is used to add YouTube playback to your app. Which means you will be able to embed a YouTube video within the interface of your app. Yes, it does need the official YouTube client to be installed, since that's what will be giving you the playback code, and the ability to play videos. But you don't need to run it, the video will be within your app.

    I haven't checked, but it's logical to assume that com.google.android.youtube.player.YouTubePlayerView is a View implemented in the YouTube official app, that will be injected in your app using the YouTube API, which will be rendering the video. Simple as that.

    Regarding your last question - the YouTube API docs does mention it will be available on devices running Android 2.2 (Froyo)

    0 讨论(0)
提交回复
热议问题