I am getting the video files from filepicker package now i want to show the videos on gridview when clicked on them video should be played (similar to gallery)
Found answer my self first I generated the thumbnail of the video by thumbnail package(https://pub.dev/packages/video_thumbnail) from then saved created a model of thumbnail path and video path saved the path of both and accessed them :)
Related
How to get first frame of online video on flutter?
I try use https://pub.dev/packages/video_thumbnail_imageview but their backend not working, so library do not return thumbnail. Any idea how to do it without downloading whole video from web?
For me it is important to run this on platform iOS/Android/Web
How to design a custom photo gallery in flutter.
How to retrieve all the .jpg and .png file paths from mobile internal storage and show them in list view or grid view on the screen.
Attached reference video for better understanding.
https://drive.google.com/file/d/16EkxLchqr57yAZkbmmlfzP22U3wYfxu7/view?usp=sharing
I am creating an app in which I need to copy image from IOS Photo library to the app's Document directory and then upload the file to the server. I'm using the UIImagePickerController to select the image from the Photo library and save it in the app folder. It works good for the "jpeg" and "png" images using UIImageJPEGRepresentation and UIImagePNGRepresentation.
I don't see any option to copy and save the "gif" images in IOS. Is it possible to save the animated gif images. Please throw some light on how to process and save the original images (bmp, jpg, gif, png, tiff, etc.,).
Thanks in advance.
While you can load them (though you need to split them up for animations; Add animated Gif image in Iphone UIImageView - note the convert command near the bottom) one cannot save them.
To save them you'll need to use a third party library.
See this question, How to save a GIF on the iPhone?, and this http://jitsik.com/wordpress/?p=208 library for a solution.
I have an App which allows the user to play a selection of videos.
What I would like is to have one or two thumbnails shown on my view which shows the user that if they click on these images it will launch a video.
How do I capture a screen shot from the video to use as an thumbnail or do I have to user some other random image?
Try using thumbnailImageAtTime:timeOption with an MPMoviePlayerController.
You can also request to fetch multiple Thumbnails asynchronously (requestThumbnailImagesAtTimes:timeOption:). In that case you have to register an observer for the MPMoviePlayerThumbnailImageRequestDidFinishNotification.
I'm loading video from external URL in my iphone app. This loading takes few minutes as the control downloads the video. While the video is being downloaded, I would like to display a small snapshot of the video (separate png file) on top of the media player control. This would be similar to the youtube app which displays a snapshot while video is downloading and the snapshot goes off when playback starts.
Any hints as how this can be achieved?
regards,
D2
Just create a new UIImageView with your png, and [moveiPLayerController.view addSubview:myPNGImgView]; to display it. When the movie is loaded, then do a -removeSubview.