I am developing an application which contains a video on the home screen. The video will be different for different region. Because the size of a single video is 10 Mb and I have almost 10 videos for different country. So I don't want to store those locally. So my questions are :
Should google play developer console provide the way where I can store those video separately from My apk file and at time of download, corresponding region video downloaded from there and I can link that video to my application.
What will be the better way to achieve that functionality? I want to reduce loading time which require to download the video from web server.
Thanks in advance.
Related
I'm not good at English, so I'm sorry if there are any mistakes in the expression.
I want to Object detection application on Android.
Here is how the app works:
Take some videos for which you want to perform object detection
Select a video from the taken videos
Detect specify object and get that coodinates
To develop avobe app,I have some videos for vertification.
Here is my question. Which folder should I put the vertification videos?
For now, I put the videos in raw folder.
But,I am creating an app assuming that the videos were taken with a camera. If so, should it be in the same place as if it were taken by the camera? and, which folder should the videos be placed in?
I'm new to android development.
Could anyone give me some advice? Thank you.
As you are new to Android development I am going to explain in detail.
First you have the videos for verification. You should put those videos in raw folder. But what if the size of those videos is too large? That means the size of your APK will also increase which is not a good thing if you want to upload your app on google play store. In this case, you can store those videos on your own server, and when user installs your app download those videos from the server.
Now let's come to the second question: Where should I put the videos taken with the camera?
You can put these videos in any of the following paths.
context.getFilesDir();
or
context.getExternalFilesDir(null);
These paths are on which you can store the camera-shooted videos and do any processing on them. If you want to know the difference between these two paths that's another topic. You can learn about them here.
My understanding is that some assets within apps (like the the splash screen) can be shown right from the start / when the user opens the app for the first time because they are bundled together with the app build. Is that also the case with videos? We need some videos within the onboarding tour to be available right away, also when in offline mode.
The simple answer is yes, you can store videos this way. You put your video in a folder named 'raw' user the resources folder.
See here for some examples: Where to put the Video file in android Project
However, video are very large so you may exceed you target app size.
You also will have to update your app if you want to update the video.
Streaming the video would avoid these issues, but you do have to have connectivity.
One compromised might be to have a small simple looked video for quick start up an offline, and switch to a streamed video as soon as it is available after startup.
I am developing a video player where downloaded video tutorials have to be played offline.
I want to secure these video files. What is the best and economical way to encrypt these files per user
once user get video, they can share it with others. I want to restrict that.
Please suggest me some ideas of how I can protect these videos from piracy.
Please help
You could create a key per user and encrypt the file with that before downloading it into the user device. Using the same key you could decrypt the file while playing in you app
I have an app I am developing that needs to include about 55MB of audio (mp3s) these are short files and about 1000 in total. Bundling these in the apps assets makes the compiled apkabout 60MB.
I want to upload this app to the play store but of cause its to big as it it.
So my questions is, before I start working on using the APK Expansion File system is there anyway I could compress the audio files so the apk fits in under the 50MB limit?
The audios current bit rate is 128kbps
I guess Its better if you can make a player for stream the audio from the internet just like youtube does for their android application to play video files on android phone.
Additionally you can give option to the user to select save the audio for next time play without internet download.
I think this is a good question and +1 from me
The requirement is to list a Videos thumbnails and on clicking it should play related video into Application. i am able to play url where video is located using Video View. But now i want to implement this thing in a better ways like Watsapp and instagram. If anybody have a good experience in this reference please share with me. I want to play around caching video and playing videos from cache without buffering (Video view is showing buffering bar and very slow in performance user have to wait a lot for starting a Video). Any kind of help will be appreciated. thanks.
I did it own my own. It's very simple to implement What i do is to download the video with async task along with a progressing seek bar. Once it's downloaded i'll save it in a Folder in my sdcard. We should create a Folder named as Application name so easy to identify and also always available videos with out opening application as well and next time however when i want to watch video again in my application it just check weather it is available in sdcard if yes then play immediately if not then download it. I am happy.