![]() ![]() Some of the widgets bundled with the plugin are: With v5.x.x and up, use the topActions and bottomActions properties to customize the player. YoutubePlayerController _controller = YoutubePlayerController( Set the isLive property to true in order to change the UI to match Live Video. If fullscreen support is required, wrap your player with YoutubePlayerBuilder YoutubePlayerBuilder( ![]() VideoProgressIndicatorColor: Colors.amber, Using Youtube Player YoutubePlayerController _controller = YoutubePlayerController( Note: Although the minimum to be set is 17, the player won't play on device with API < 20 (19 if Hybrid Composition is enabled).įor API < 20 devices, you might want to forward the video to be played using YouTube app instead, using packages like url_launcher or android_intent. Set minSdkVersion of your android/app/adle file to at least 17. iOS: -ios-language swift, Xcode version >= 11.Android: minSdkVersion 17 and add support for androidx (see AndroidX Migration).Since flutter_inappwebview relies on Flutter's mechanism for embedding Android and iOS views, this plugin might share some known issues tagged with the platform-views label. The plugin uses flutter_inappwebview under-the-hood. Fit Videos to wide screens with pinch gestures.Fast Forward and Rewind on horizontal drag.In future, this package will extend youtube_player_iframe. Flutter plugin for playing or streaming YouTube videos inline using the official iFrame Player API.įor web support, use youtube_player_iframe. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |