Save ExoPlayer Cache video in device Gallery - android

I'm playing video from URL in ExoPlayer and caching it using SimpleCache.
My app has a feature that the user can save video if he/she wants.
My video playing layout has a save button if the user click on that I want to save that video in his/her mobile gallery.
How can I achieve that? & what is the most effective way? Is there any way to save the cache video in gallery? One thing if user click the button before the download completed what should I do?
And one thing I'm playing a list of video in recyclerView if the user clicks on the save button and scrolls up/download I think the download will be distributed ,I think I have save video in a separate thread !!

Related

Exoplayer load frame when seekbar change

I'm using Exoplayer to play a locally saved video.
I noticed that when you move the seekbar the video changes only when it is released.
Is there a way to load the video frame with every move of the seekbar?
The thumbnails you see when you seek a video timeline are actually usually contained in a separate media stream or 'track'.
This is created on the server side and delivered as part of the streamed video, or in your case the locally saved video file, as a track in the video container.
The client downloads (or uploads from s saved file) this track and when a user seeks, it displays the thumbnail image that is closest to the time the user is seeking to.
Generating the thumbnails on the fly is possible but it does require the video to be loaded, decoded and a frame displayed at the point the user was seeking to.
This is quite a bit of work to do in the time available so is not usually a practical approach.

Uploading video from phone

I have a website where the user of my application can upload a video from the Android Gallery. I want to make it so that when the user opens the file chooser it has an option to record a video and upload it from the Androids stock camera. Is this possible or would I have to create an application that would handle the video recording and post the video to the file chooser? Either way it would be nice if someone could point me in the right direction.
I will suggest you to write your application, it will me be more customize and can be handles completely on your way . This link will help you related media recording Media Recorder and for uploading to server you can look in to this Uploading video

MediaRecorder video storage after confirmation

Capturing a video is part of an application I'm currently working on. Video capturing and storing works fine.
I followed the android tutorial for video capturing and all recorded videos are stored directly after the recording stops.
Is there any way to let the user decide (via dialog) if he/she wants to store the video?
I don't really want to delete the video afterwards.

how to implement video gallery in android

i am developing an app that has a video gallery in it. The gallery has thumbnail view of recent videos. when user clicks the video must be played. the video is coming from server only.
I am sure you are looking to implement Android CoverFlow same as youtube video gallery.

Launch gallery with Images and Videos get back the selected image/video - Android

I know how to launch default gallery with Images and get back the selected image URI.
Now I am looking for how to launch default gallery with Images and Video displaying together and get back the selected image/video uri back to my application.
Is this possible with default gallery app?
Thanks
check out this post Android Gallery (view) video (also thumbnail issues)
i have used the gallery but only with images. i would imagine though they are all just drawables (meaning putting a video in the array might work) but i really dont know without testing.
the only other thing is how many videos? if there are to many your apk will be huge.
the way i did videos in my app was to separate them out and use intents
but you could also keep track of where you are in the gallery and when u hit the spot where the vids should be fire the intent then after the vid is watched come back to the gallery.

Categories

Resources