flutter play local video simply without video_player plugin - flutter

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.

Related

how solve flutter with just_audio package problem

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

Is there any flutter camera package that supports live camera switching during a video record, that works for IOS and Android

Is there any flutter camera package that supports live camera switching during a video record, that works for IOS and Android. I Tried the regular camera plugin for flutter and it doesn't support it out of the Box. And the camerawesome package only supports liveswitching for IOS.
Currently there is a PR for it https://github.com/flutter/plugins/pull/6478. You could use that PR's branch before it is merged

Flutter : agora rtc engine make the app crash in the another device

I want to add agora_rtc_engine plugin into my app , but I'm facing a problem with it . When i debugging the app on real device it is working and when i installing it on another device it doesn't work and show me that on the device screen
agora video call flutter keep stopping
I'm using the agora quick start example https://github.com/AgoraIO-Community/Agora-Flutter-Quickstart
can any one know the wrong with it ?
It happens to me when I rewrite code or copy lib. But when I download examples like this one https://github.com/AgoraIO-Community/Agora-Flutter-Quickstart everything works.
Temporary you can build your project on this one, just changing name and reinstalling it on your phone.

Video player for web, mobile and desktop applications in Flutter?

There is this Flutter plugin for playing videos on iOS & Android (Video Plugin)
However, I also want to embed a video player into my web and desktop applications.
So I dont understand how Flutter is going this way of supporting plugins for different platforms. Because if you have a look at the video plugin it makes use of the AVPlayer on iOS and ExoPlayer on Android, but these are not then supported for web and desktop applications.
My Questions:
Why isn't the community writing a Flutter plugin for videos which is independent of it's underlying platform? Or isn't it possible? Why do we have to rely so much on Android & iOS especially if Flutter will be more and more platform independent in the future? Isn't it possible to write the source code for making videos working on different platforms solely with the Dart language & Flutter framework?
Is there currently a way to embed a video player for web and desktop applications?
You can use dart_vlc to add video playback to your Flutter desktop application.
It currently supports Windows & Linux, we are working on adding macOS support actively.
The library is rather easier to use aswell,
Player player = Player(id: 0);
player.open(
Playlist(
medias: [
Media.file(File('C:/music.mp3')),
Media.file(File('C:/audio.mp3')),
Media.network('https://www.example.com/music.aac'),
],
),
);
Thanks. Checkout project README for more examples and documentation.
You can try using WebView by flutter_webview_plugin package. It can take advantage of the built-in video decoders/players in any Operating Systems as they're pre-loaded as web content.
Edit: This is because not many Video Plugins are to be found for the Desktop and Web Platforms yet (At least by me)
The video_player along with the video_player_web plugins work for web, android and ios. But I have not tested them on a desktop.

Is there a way to open other applications in flutter

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!