Coder Social home page Coder Social logo

trendingtechnology / youtube_player Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sarbagyastha/youtube_player

0.0 2.0 0.0 5.07 MB

A flutter plugin to play Youtube Videos without API Key in range of Quality(240p,360p,480p,720p and 1080p).

License: Apache License 2.0

Java 19.76% Objective-C 1.61% Dart 77.92% Ruby 0.71%

youtube_player's Introduction

Youtube Player Plugin

pub package

A flutter plugin to play Youtube Videos "inline" without API Key in ranges of Quality(240p, 360p, 480p, 720p and 1080p).

Salient Features

  • Inline playback
  • Supports HD and Full HD quality
  • No need for API Key and no Limitations
  • Thumbnail Support
  • Playable through
  • Picture in Picture for Android SDK > 24
  • Customizable Controls

DEMO

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

Credit

This plugin is a fork of video_player which supports youtube playback. The controls used in the plugin is derived from chewie.

Cheers to @Flutter Team and @Brian Egan for developing such useful plugin and packages.

License

Copyright 2019 Sarbagya Dhaubanjar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

youtube_player's People

Watchers

Trending Technology avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.