Giter VIP home page Giter VIP logo

mindinventory / vimeo_video_player Goto Github PK

View Code? Open in Web Editor NEW
33.0 4.0 33.0 12.15 MB

A Video Player For Vimeo Videos in Flutter. This plugin allows us to play video from Vimeo and it supports Android and iOS platforms.

Home Page: https://www.mindinventory.com/flutter-app-development.php

License: MIT License

Kotlin 0.64% Swift 2.08% Objective-C 0.20% Dart 69.90% HTML 20.21% Ruby 6.98%
vimeo-player vimeo-flutter-player flutter-vimeo-video-player

vimeo_video_player's Introduction

vimeo_video_player

Flutter Website Dart Website MIT License

A Video Player For Vimeo Videos in Flutter. This plugin allow us to play video from vimeo and it's supports Android and iOS platforms.

Key Features

  • easy way to play vimeo video in video player.

Preview

vimeo_video_player

Basic Usage

Import it to your project file

import 'package:vimeo_video_player/vimeo_video_player.dart';

And add it in its most basic form like it:

VimeoVideoPlayer(
  url: 'https://vimeo.com/70591644',
);

Required parameters of VimeoVideoPlayer


Parameter Description
String url the string url of valid vimeo video

Optional parameters of VimeoVideoPlayer


Parameter Description
List systemUiOverlay top-bottom overlay to hide/show status bars
DeviceOrientation deviceOrientation deviceOrientation of video view
Duration? startAt video will have initial position set to given minute/second
Function(Duration timePoint)? onProgress it will be called periodically with current video position (approximately every 500 ms)
VoidCallback? onFinished it will be called when video finishes playback
bool autoPlay to auto-play the video once initialized
Options? dioOptionsForVimeoVideoConfig Options to pass in Dio GET request, Used in vimeo video public API call to get the video config

Dependencies

Guideline for contributors


  • Contribution towards our repository is always welcome, we request contributors to create a pull request for development.

Guideline to report an issue/feature request


It would be great for us if the reporter can share the below things to understand the root cause of the issue.

  • Library version
  • Code snippet
  • Logs if applicable
  • Device specification like (Manufacturer, OS version, etc)
  • Screenshot/video with steps to reproduce the issue
  • Library used

LICENSE!

vimeo_video_player is MIT-licensed.

Let us know!

We’d be really happy if you send us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding our work.

vimeo_video_player's People

Contributors

anujmi297 avatar deep-mindinventory avatar mi-ghanshyam avatar mohit-chauhan-mi avatar mrossi-os avatar parthmehta339 avatar phankietit avatar piotrszych avatar pratikkansaramind avatar sagarfaldu17 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vimeo_video_player's Issues

Callbacks 'onFinished' and 'onProgress' not work

Callbacks are unresponsive on all videos. I performed the tests on Android 13 and Iphone 13 with iOS 16.4.1

Flutter doctor -v:

[✓] Flutter (Channel stable, 3.7.12, on macOS 13.3.1 22E772610a darwin-arm64, locale pt-BR)
• Flutter version 3.7.12 on channel stable at /Users/xxxxx/fvm/versions/3.7.12
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4d9e56e694 (5 weeks ago), 2023-04-17 21:47:46 -0400
• Engine revision 1a65d409c7
• Dart version 2.19.6
• DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/xxxxxxx/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• ANDROID_HOME = /Users/xxxxxxx/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E222b
• CocoaPods version 1.11.3

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.78.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.64.0

[✓] Connected device (3 available)
• iPhone (mobile) • 44fb02e7e720092d8ecd87gfsdgg23ff2395b9f7187b • ios • iOS 16.4.1 20E252
• macOS (desktop) • macos • darwin-arm64 • macOS 13.3.1 22E772610a darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 113.0.5672.126

[✓] HTTP Host Availability
• All required HTTP hosts are available

• No issues found!

Support for Privacy settings

In the repository, I didn't find any implementation to take passwords for videos which are password restricted,
I want to build a solution where I can show videos to the user app, and that video cannot be accessed outside the application, as such I cant use public and unlisted video links.
And similarly I don't want to show a password box to user, it should be in the application login only.

Check this link for more information on Vimeo Privacy settings
https://help.vimeo.com/hc/en-us/articles/12426199699985-Overview-of-video-privacy-settings

Improvements

  • Disable controls play or pause button / firescreen option when i try to customise this in flutter HTML content

  • Just load the thumbnails in flutter HTML like YouTube get thumbnail from video-id / URL without any authentication

Live video support

I get error when try to play live video. Does this package supports live streams or I am doing something wrong?

E/flutter (29564): Tried calling: map(Closure: (dynamic) => VimeoProgressive)
E/flutter (29564): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5)
E/flutter (29564): #1      new VimeoFiles.fromJson (package:vimeo_video_player/src/model/vimeo_video_config.dart:24:31)
E/flutter (29564): #2      new VimeoRequest.fromJson (package:vimeo_video_player/src/model/vimeo_video_config.dart:14:38)
E/flutter (29564): #3      new VimeoVideoConfig.fromJson (package:vimeo_video_player/src/model/vimeo_video_config.dart:5:46)
E/flutter (29564): #4      _VimeoVideoPlayerState._getVimeoVideoConfig (package:vimeo_video_player/src/vimeo_player.dart:258:41)
E/flutter (29564): <asynchronous suspension>
E/flutter (29564): #5      _VimeoVideoPlayerState._getVimeoVideoConfigFromUrl (package:vimeo_video_player/src/vimeo_player.dart:246:22)
E/flutter (29564): <asynchronous suspension>

video loading issue

i have used latest version to fetch some issue but i have resole issue to solution send by email please check and update please

Unhandled Exception: type 'Null' is not a subtype of type 'List' in type cast
#0 new VimeoFiles.fromJson (package:vimeo_video_player/src/model/vimeo_video_config.dart:23:42)
#1 new VimeoRequest.fromJson (package:vimeo_video_player/src/model/vimeo_video_config.dart:14:38)
#2 new VimeoVideoConfig.fromJson (package:vimeo_video_player/src/model/vimeo_video_config.dart:5:46)
#3 _VimeoVideoPlayerState._getVimeoVideoConfig (package:vimeo_video_player/src/vimeo_player.dart:271:41)

#4 _VimeoVideoPlayerState._getVimeoVideoConfigFromUrl (package:vimeo_video_player/src/vimeo_player.dart:258:22)

#5 _VimeoVideoPlayerState._videoPlayer. (package:vimeo_video_player/src/vimeo_player.dart:216:50)

Version failure

Please update flick_video_player to its latest version. It's giving compatibility issues with new flutter version. Please update other dependencies as well.

Old version of dependencies

Hello!

Please update to the latest version of the dependencies.

dependencies:
  flutter:
    sdk: flutter
  dio: ^5.4.0
  flick_video_player: ^0.7.0
  video_player: ^2.8.1

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^3.0.1

Vimeo API ERROR

I emailed support and said this is not supported anymore.

'https://player.vimeo.com/video/$vimeoVideoId/config',

E/flutter (12076): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'List<dynamic>' in type cast

type 'double' is not a subtype of type 'int?'

When trying to use the vimeo link: "https://vimeo.com/184825484"

I get the following error without the video playing:

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: type 'double' is not a subtype of type 'int?'
#0 new VimeoProgressive.fromJson
vimeo_video_config.dart:52
#1 new VimeoFiles.fromJson.
vimeo_video_config.dart:25
#2 MappedListIterable.elementAt (dart:_internal/iterable.dart:415:31)
#3 ListIterator.moveNext (dart:_internal/iterable.dart:344:26)
#4 new List.from (dart:core-patch/array_patch.dart:42:17)
#5 new VimeoFiles.fromJson
vimeo_video_config.dart:23
#6 new VimeoRequest.fromJson
vimeo_video_config.dart:14
#7 new VimeoVideoConfig.fromJson
vimeo_video_config.dart:5
#8 _VimeoVideoPlayerState._getVimeoVideoConfig
vimeo_player.dart:240

#9 _VimeoVideoPlayerStat<…>

This happens on both iOS and Android simulator and the error is found in the vimeo_vido_config.dart file.

'String?' can't be assigned to the parameter type 'Object'

Hello

When I try to run your example code in a new project I get the following error:

Screenshot 2023-05-30 at 09 34 30_

This error appears when you try to start the application with the import of the vimeo_video_player library on either the iOS or Android simulator.

Running this on Flutter Channel stable 3.10.2.

Let me know if you require more information.

LateInitializationError: Field '_videoPlayerController@2932358648' has not been initialized.

Getting this error few times not sure what to initialize

using vimeo_video_player : 0.0.6

got this exception

When the exception was thrown, this was the stack:
#0 _VimeoVideoPlayerState._videoPlayerController (package:vimeo_video_player/src/vimeo_player.dart)
#1 _VimeoVideoPlayerState.deactivate (package:vimeo_video_player/src/vimeo_player.dart:91:5)
#2 StatefulElement.deactivate (package:flutter/src/widgets/framework.dart:4976:11)
#3 _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1944:13)
#4 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6271:14)
#5 _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1946:13)
#6 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6386:16)
#7 _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1946:13)

CORS issues when using VimeoVideoPlayer

I have the following code

Center(
                child: VimeoVideoPlayer(
                  url: 'https://vimeo.com/${mediaItem.video_id}',
                ),
              )

This has been working previously, but suddenly this started throwing a CORS error

Access to XMLHttpRequest at 'https://player.vimeo.com/video/353189349/config' from origin 'https://my-sitename.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

No Configurations have been changed.

This is the version i have

vimeo_video_player: ^0.0.9

App crach pressed back button

i have an app whit multiples screen , when select video section play the video , but when i pressed button back , the app crach

error 1:

FlutterError (A VideoPlayerController was used after being disposed.
Once you have called dispose() on a VideoPlayerController, it can no longer be used.)

error 2

FlutterError (setState() or markNeedsBuild() called during build.
This _InheritedProviderScope<FlickVideoManager?> widget cannot be marked as needing to build because the framework is already in the process of building widgets. A widget can be marked as needing to be built during the build phase only if one of its ancestors is currently building. This exception is allowed because the framework builds parent widgets before children, which means a dirty descendant will always be built. Otherwise, the framework might not visit this widget during this build phase.
The widget on which setState() or markNeedsBuild() was called was:
_InheritedProviderScope<FlickVideoManager?>
The widget which was currently being built when the offending call was made was:
Container)

Thumbnails not showing

Hello,
I need to add a thumbnail to the player, but I can't find that option.
Please advice.

Auto play option

is there a plan to add this? can you direct me as to where can I add this functionality myself as PR?
thank you

VideoStream.fromJson is broken

VimeoPlayer fromJson issue

VideoStream.id is declared as an int? but the actual value is a string. This is causing the package to not work at all.

Vimeo video quality

Good afternoon,

I'm having trouble changing the quality of the video.

I would like to know if there is a way to change the quality of the video and if so, how do I do that?

await dio.get( 'https://api.vimeo.com/videos/$vimeoVideoId?fields=play', );

video play issue

video play to not show video properly and background in voice play continue
Please test iPhone 11 to up iPhones

flick_video_player version is depricated and cause conflict with provider v6

flutter pub add vimeo_video_player
Because flutter_bloc >=7.2.0 depends on provider ^6.0.0 and flick_video_player >=0.2.0 <0.4.0-dev.4 depends on provider ^5.0.0, flutter_bloc >=7.2.0 is incompatible with flick_video_player >=0.2.0 <0.4.0-dev.4. And because every version of vimeo_video_player depends on flick_video_player ^0.3.1, flutter_bloc >=7.2.0 is incompatible with vimeo_video_player. So, because digitaler depends on both flutter_bloc ^7.3.3 and vimeo_video_player any, version solving failed.
GeekyAnts/flick-video-player#139

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.