flutter_youtube

Flutter Plugin to play youtube Videos using youtube player api (android)

Supported : Android

How to Use

dependencies:
  flutter_youtube: "^0.1.2"

###Imports

import 'package:flutter_youtube/flutter_youtube.dart';

###Code

FlutterYoutube.playYoutubeVideoByUrl(
  apiKey: "<API_KEY>",
  videoUrl: "<Youtube Video URL>",
  fullScreen: true //default false
);
FlutterYoutube.playYoutubeVideoById(
  apiKey: "<API_KEY>",
  videoId: "<Youtube Video ID>",
  fullScreen: true //default false
);
KeyValue
apiKeyString (Not Null)
videoUrlString (Not Null)
videoIdString (Not Null)
fullScreenBoolean (Optional)(Default = false)

Libraries

flutter_youtube