I wanted a flutter app, which downloads video from the network and stores it in local memory. Video stored in local memory should not be accessible by other media players. Those videos should only be shown by my apps video player. Is it possible to do it in flutter?
you can store video in application directory, other apps cannot access it
import 'package:path_provider/path_provider.dart' as path_provider;
final directory = await path_provider.getApplicationDocumentsDirectory();
Related
i want to make a media player
i want to read all device directories (device storage and Sd card) and show which contains videos
like this
Using this package
https://pub.dev/packages/photo_manager
final List<AssetPathEntity> paths = await PhotoManager.getAssetPathList(type: RequestType.video);
This package will help u to retrieve albums but u have to build your own UI to display it.
Any one can explain my query
Why Firebase storage slow working ?
when we upload a video in firebase storage from the app , and we play video in flutter video player using downloading URL. it take 7 to 8 sec for play video.
but we directly put a another server hosted video URL in firebase storage ,then play in video player it take 2 to 3 sec.
Why & How can we achieve fast loading from firebase storage in application.
Thanks for reach the post & suggestion.
I have made a flutter video player app and want to play IPTV channel in the app. The player is playing some online videos successfully but it is not able to run the link of IPTV.
I have a paid IPTV m3u playlist file. I want to play the specific channel of the list in the video player. I have extracted the link from the m3u file and pasted in the player but its not working.
The link is looks like this(http://ottbest.net:80/940F4D6ACD4F/4A30606C8931/83137). This link is running successfully in VLC and MX Player.
First extract your m3u playlist to dart object using m3u_nullsafe package.
Then, you can use Flutter_vlc_player to play m3u videos
In my app I need the ability to take and upload or save a short 5 to 15 second video. I also need to be able to save the video if the user is offline, and upload it when connected to internet.
I can create the video file with the plugin image_picker, I tried to save it to the users gallery using plugin image_picker_saver but that seems to only handle images.
So I will probably have to use something like path_provider to save it to local storage (again examples of writing files are images as byte data)
When connected is there a way to upload a video to a Youtube account ?
I have read up on some Youtube plugins, but they are geared towards playing videos.
I was thinking of using WebViews to pop up the m.youtube.com/upload page but once you start an upload it goes to the desktop www.youtube.com
Other option to consider is using Firestore as the upload destination when they have a connection, but I would still have to manage offline local storage.
Thank you any help
Edit RE: comments below
Here is what I get when trying to capture a Landscape video on iPhone X with camera plugin:
I am developing an iPhone app, in which I have to play multiple videos like "Top rated", "Most played","Favorites" etc.. Each category may have around 20 videos. So having around 100 videos inside resources folder increases the app size. So what I am trying to do is, first saving all the videos locally within the device and selecting the respective videos from the app whenever these videos needs to be played. So is it possible to do so?
Or have to have all the videos inside resources folder?
Thanks in advance.
yes, this is very well possible. you can store your videos in the device before instead of the resources folder and use the ALAssetsLibrary to get access to your videos stored in the photo library.
refer this on how to use the ALAssetsLibrary display image from URL retrieved from ALAsset in iPhone