That said how you use the library matters, be sure to play videos only when the player is visible. Playing YouTube videos in a WebView is the recomended approach by Google, both on Android and iOS. Therefore it is 100% compliant with terms of service. The library uses YouTube's own web player to play videos. This will enable me to continue developing the library, so you don't have to.ĭoes this library break YouTube terms of service? If you choose to use this library and profit from it, consider informing me and become a sponsor on GitHub. Used by over 5 thousands apps, with some big names like Tumblr, Flipkart, McDonald's, InShot Video Editor, Genius and reddit is fun. Now that the official API from Google is deprecated, android-youtube-player is the main YouTube player library for Android. Google now recommends using the IFrame Player API inside a WebView, which is exactly what this library does, while also providing a native Java/Kotlin interface to interact with the web player.Ī lengthier explanation of why this library was created can be found in this Medium post. This library has been historically not reliable and is now deprecated by Google. The library provided by Google is the YouTube Android Player API. This library also provides a Chromecast YouTube player, that you can use to cast YouTube videos from your app to a Chromecast device. Therefore there are no issues with YouTube Terms of Service. The library is a wrapper around the IFrame Player API, which runs inside of a WebView. It provides a simple View that can be easily integrated in every Activity/Fragment. Android-youtube-player is a stable and customizable open source YouTube player for Android.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |