Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

youtube videos player plugin

a flutter plugin to play youtube videos “inline” without api key in ranges of quality(240p, 360p, 480p, 720p and 1080p).

youtube videos

salient features

  • inline playback
  • supports hd and full hd quality
  • no need for api key and no limitations
  • thumbnail support
  • playable through <video id> or <link>
  • picture in picture for android sdk > 24
  • customizable controls

usage

1. depend

add this to you package’s pubspec.yaml file:

dependencies:
  youtube_player: ^0.6.0

2. install

run command:

$ flutter packages get

3. import

import in dart code:

import 'package:youtube_player/youtube_player.dart';

4. using youtube player

///
/// low = 240p
/// medium = 360p
/// high = 480p
/// hd = 720p
/// fhd = 1080p
/// "source" can be either youtube video id or link.
/// "showthumbnail" default is true.
/// "acpectratio" default is 16/9
///
youtubeplayer(
          source: "npt8bk2gbau",
          quality: youtubequality.hd,
          aspectratio: 16/9,
          showthumbnail: true,
),

example

example sources

limitation

  • only available for android (currently)

future

  • support for ios
  • adaptive playback as per the internet bandwidth
  • high level of customization

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.