Giter Site home page Giter Site logo

guyaristide / youtuyer Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 4.0 92 KB

Flutter youtube player plugin

License: Other

Kotlin 46.02% Ruby 8.09% Swift 22.17% Objective-C 0.95% Dart 22.77%
youtube-player flutter-plugins android ios flutter-player player dart-library flutter-widget flutter youtube-view

youtuyer's Introduction

youtuyer

๐Ÿ™ Highly inspired by flutter_youtube_view ๐Ÿ™

This plugin provide a Youtube player for Android and iOS. We've encoutered problems using other flutter plugins : iOS integration doesn't work or take long time to load before playing videos.

This plugin using:

Usage

  • Add to your pubspec.yaml file:
youtuyer:
    git:
      url: git://github.com/guyaristide/youtuyer.git
  • Import in dart code
import 'package:youtuyer/youtuyer.dart';

Currently apps need to opt-in for the UIViews embedding preview on iOS by adding a boolean property to the Info.plist (key=io.flutter.embedded_views_preview value=YES).

  • Using Youtuyer
Container(
    child: YoutuyerWidget(
          onViewCreated: _onYoutubeCreated,
          listener: this,
          params: YoutubeParam(
              videoId: 'gcj2RUWQZ60', showUI: true, startSeconds: 5 * 60.0),
    ),
)

Features

Calls during playback

  • play()
  • pause()
  • loadOrCueVideo()
  • seekTo()
  • setVolume() only Android
  • mute()
  • unMute()

PLAYER callback

  void onReady();

  void onStateChange(String state);

  void onError(String error);

  void onVideoDuration(double duration);

  void onCurrentSecond(double second);

youtuyer's People

Contributors

agnamc9 avatar guyaristide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

youtuyer's Issues

Sound off

Thank you, nice package.

My app works fine in the simulator. When I deploy to my IOS 14-based iPhone, the sound can not be heard unless I turn the physical silent mode switch on the top left-hand side of the phone to off. This is not the case when I normally use the youtube app.

Any thoughts on why this might be?

Thanks,
Mark

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.