Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to store local video for playback in Android Studio

I am making a simple video playback application in Android Studio. The video is approximately 600MB, and has an appropriate title (no spaces etc.). The video will be played back using VideoView.

Where should the video be saved? When it is placed in src/res/raw, (like other files I am using such as .wav for sound effects), it creates resource errors. Do I create a new folder called assets and store the videos there?

like image 564
regamblr Avatar asked Oct 20 '25 02:10

regamblr


1 Answers

Noooo. You will not put that video in your apk. Will your app exceed 600mb size on playstore. See on google documentation.

Google Play currently requires that your APK file be no more than 100MB

Solution:

  • First try to compress your video, as you don't need high resolution video.
  • Put video on cloud (like Amazon s3 bucket).
  • Download this video file at run time in device from Amazon. And then play it anywhere from device storage.
like image 194
Khemraj Sharma Avatar answered Oct 21 '25 15:10

Khemraj Sharma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!