I need to be able open other apps in my flutter application
In an application i am working on I need to be able to play videos however the video_player plugin in flutter only has play and pause options and there is chewie also however we don't have the option of pausing chewie with commands , so I am thinking of opening videos through other apps like vlc,MX players, etc. How do i open these apps in flutter.
Please take a look at the open_file plugin, it supports opening most of the file including videos.
Example usage:
Specify dependency in pubspec.yaml
dependencies:
open_file: ^1.1.1
then
import 'package:open_file/open_file.dart';
OpenFile.open(your_file_path);
Hope that helps!
Related
i used Just_audio pakage for load audio assets for windows app but when I turn the app show me
iam use this way to load assets
if you have solution for this problem or other ways to load assets or another package for windows flutter please tell me
I want to show a video in my website developed using flutter web, what the solution for this problem?
Note: Using video_player package doesn't work for file. VideoPlayerController.file() not implemented for flutter web.
Thx for help!
Just tried video_player plugin with flutter web and .m3u8 file format, but it's not working at all .
Can someone help me if it works in any case or just MP4 is supported in video_player plugin for flutter web
In Flutter Web, I found some libraries that support playing m3u8 files like video_player_web_hls but it's not providing any controls like Play/Pause, Fast Forwarding, etc.
video_player_web_hls
I'm developing a flutter library package. In this package I used some other dependencies, for example the url_launcher like this:
dependencies:
flutter:
sdk: flutter
url_launcher: ^5.5.0
When I import my package into the flutter app, I can't reference to url_launcher in the code until I add it into app pubspec.yaml dependencies
I wonder is there any way to share the imported dependencies from my library package so that I don't need to import again in the app?
I guess, currently there is no specified way to do this. To give you an example, I would pick this package called Chewie. What is does is:
It sits on top of a plugin called video_player, and added some cool controller.
CATCH: Since it uses video_player extensively to give away the nicer controller, however, you still need to import the video_player in your app. Otherwise, your app will crash.
WHAT YOU CAN DO?
You can mention in your documentation stating about having that dependency in the project, like the chewie plugin does. This will help people know about those things before hand, and I am sure, if your plugin is great [which is, IT SAVES TIME], people won't mind adding just another single line in their pubspec.yaml file. Otherwise, they would have done it via url_launcher but they can't. Hahaha!
Guess that will give you some clarity.
Also, do give a read on this Developing Packages
I am making application which plays local video simply.
At first I use https://pub.dev/packages/video_player,
video_player: ^0.10.2+1
However in some reason, it doesn't work in my environment, and more over only a few old version works on flutter 1.9 (my flutter is 1.9)
So, now I want to use play video another plugin or without plugin.
But,I cant find any document, other than this plugin.
What I want to do is just playing one video with native video player.
Where should I start??
I recommend updating your Flutter install with flutter upgrade. The current stable version is 1.12.13, and most of the plugins owned by the Flutter team have bumped their minimum SDK version to 1.12.13.