Code Monkey home page Code Monkey logo

vimeo_player's Introduction

vimeo_player_flutter plugin

vimeo_player_flutter plugin provides vimeo player Flutter widget based on the webview_flutter plugin.

Getting Started

Add this to your package's pubspec.yaml file:

dependencies:
  vimeo_player_flutter: ^0.1.0

Usage

Then you just have to import the package with

import 'package:vimeo_player_flutter/vimeo_player_flutter.dart';

Example

    Center(
        child: Column(
            children: [
            Container(
                height: 250,
                child: VimeoPlayer(
                videoId: videoId,
                ),
            ),
            ],
        ),
    ),

Issues

Please feel free to let me know any issue regarding to this plugin.

vimeo_player's People

Contributors

adelarsq avatar malazhariy avatar prahack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vimeo_player's Issues

Vimeo private videos

Please make this package work for vimeo private videos there is no such a way that we can play vimeo private videos

Get Video Status

How to know if the video has reached the end and then mark it as seen?

Update webview_flutter version to 4.0.1

pubspec.yaml

dependencies:
  vimeo_player_flutter: ^0.0.3+2
  webview_flutter: ^4.0.1
flutter pub get
Because vimeo_player_flutter 0.0.3+2 depends on webview_flutter ^3.0.0 and no versions of vimeo_player_flutter match >0.0.3+2 <0.1.0, vimeo_player_flutter ^0.0.3+2 requires webview_flutter ^3.0.0.
So, because td_mobile_v2 depends on both vimeo_player_flutter ^0.0.3+2 and webview_flutter ^4.0.1, version solving failed.
Running "flutter pub get" in td_mobile_v2...                            
pub get failed (1; So, because td_mobile_v2 depends on both vimeo_player_flutter ^0.0.3+2 and webview_flutter ^4.0.1, version solving failed.)

https://pub.dev/packages/webview_flutter

Android Trying to create a platform view of unregistered type: plugins.flutter.io/webview

I/flutter (16503): PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.flutter.io/webview
I/flutter (16503): at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:192)
I/flutter (16503): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
I/flutter (16503): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
I/flutter (16503): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
I/flutter (16503): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
I/flutter (16503): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
I/flutter (16503): at android.os.MessageQueue.nativePollOnce(Native Method)
I/flutter (16503): at android.os.MessageQueue.next(MessageQueue.java:340)
I/flutter (16503): at android.os.Looper.loop(Looper.java:183)
I/flutter (16503): at android.app.ActivityThread.main(ActivityThread.java:7880)
I/flutter (16503): at java.lang.reflect.Method.i

Auto Fullscreen

The player default to full screen when the video is played and the full screen is horizontal. I have checked the docs and nothing seems to describe how to reconfigure this behavior.

Vimeo Player Not showing fullscreen button

2022-01-05 (2)
I added the vimeo_player 0.0.3 to a flutter project. It's supposed to show a fullscreen button but doesn't (see image). The Play button also seems to be oversized now for some reason.

Null-Safety

O plugin diz vir com compatibilidade para o null-safety mas não funciona usando o flutter 2.2, além disso mesmo fazendo as devidas correções o vídeo não é executado.

Rotating

Video is not rotating.in full screen

VoidCallback? onFinished

it will be called when video finishes playback add functionality and video full show to send statues

A platform implementation for `webview_flutter` has not been set.

I'm getting the following error when running the example project on flutter web :

image
selectable content:


══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown building Container(constraints: BoxConstraints(0.0<=w<=Infinity,
h=250.0)):
Assertion failed:
file:///C:/Users/mojta/AppData/Local/Pub/Cache/hosted/pub.dev/webview_flutter_platform_interface-2.6.0/lib/src/platform_webview_controller.dart:26:7
WebViewPlatform.instance != null
"A platform implementation for `webview_flutter` has not been set. Please ensure that an
implementation of `WebViewPlatform` has been set to `WebViewPlatform.instance` before use. For unit
testing, `WebViewPlatform.instance` can be set with your own test implementation."

The relevant error-causing widget was:
  Container
  Container:file:///C:/Users/mojta/Downloads/Compressed/vimeo_player-master/vimeo_player-master/example/lib/main.dart:42:13

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:49            throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 35:3              assertFailed
packages/webview_flutter_platform_interface/src/platform_webview_controller.dart 26:32  new
packages/webview_flutter/src/webview_controller.dart 101:11                             fromPlatformCreationParams
packages/vimeo_player_flutter/vimeo_player_flutter.dart 28:23                           new
packages/vimeo_player_flutter/vimeo_player_flutter.dart 24:39                           createState
packages/flutter/src/widgets/framework.dart 5381:24                                     new

flutter doctor:
image

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.