A new Flutter plugin for playing inline youtube videos. It is available only for Android and uses official android Youtube Player API. This plugin provides a FlutterYoutubePlayer widget which can be embedded in app like any other widget.
Supported
- Android
dependencies:
flutter_youtube_player: ^1.1.0
import 'package:flutter_youtube_player/flutter_youtube_player.dart';
FlutterYoutubePlayer(
apiKey: "<API_KEY>",
videoId: "<Youtube Video ID>",
autoPlay: false, //default true
)
Key | Value | Default |
---|---|---|
apiKey | String (Not Null) | |
videoId | String (Not Null) | |
autoPlay | Boolean (Optional) | true |