android-youtube-player v10.0.0 Release Notes

Release Date: 2019-02-11 // almost 3 years ago
  • โฌ†๏ธ This is a major update, upgrading from an older version will break backward compatibility.
    The code base has been rewritten in Kotlin and major improvements have been implemented throughout the library.

    Most notably, now YouTubePlayerView:

    • ๐Ÿ‘Œ Supports custom attributes, to configure it directly from XML. It is now possible to play a video without writing a single line of Java/Kotlin code. For more advanced use cases everything can also be done programmatically, as before.
    • ๐Ÿšš Can manage its initialization internally! YouTubePlayerInitListener is a thing of the past, it has been removed from the code base. You can now directly add a YouTubePlayerListener to YouTubePlayerView.
    • ๐Ÿ’ป Can be easily used with the web-based UI instead of the native UI. When using the web-based UI it will be possible to click the "share" and "watch later" buttons that YouTube recently forced to be always visible.

    The documentation has been greatly improved, please use it and feel free to contribute :)

    Follows a detailed description of the changes.

    ๐Ÿ’ฅ Breaking changes:

    • ๐Ÿšš YouTubePlayerInitListener has been removed.
    • Every method of YouTubePlayerListener now takes a YouTubePlayer as first argument.
    • ๐Ÿšš Useless parameters have been removed from IFramePlayerOptions, such as autoplay, origin, showInfo and modestBranding. They are deprecated on the IFrame player or not working on mobile devices.
    • ๐Ÿšš The class androidyoutubeplayer.utils.Callable has been removed.
    • ๐Ÿšš The method setYouTubePlayerMenu has been removed from PlayerUIController.
    • ๐Ÿ“ฆ The content of the core module is now under a core package.

    ๐Ÿ†• New features:

    ๐Ÿ‘Œ Improvements:

    • The core module has been rewritten in Kotlin. This doesn't break its compatibility with Java, it just improves the code base.
    • YouTubePlayerView has a new getYouTubePlayerWhenReady method.
    • ๐Ÿ“š The utility cueOrLoadVideo has been added, read the documentation to know more.
    • PlayerUIController now has a fluent interface
    • YouTubePlayerMenu now has a fluent interface
    • The dependencies of both the core and chromecast-sender modules have been reorganized in order to import only what's needed.
    • Private resources of the library have been renamed with the "ayt_" prefix.
    • The sample apps have been reorganized and improved with new examples.
    • Both sample apps are now built on top of library-sample-app-template.

    ๐Ÿ›  Bugfixes: