How to get video file size when recording video on Android using MediaRecorder ?
MediaRecorder
String recVideoPath = Environment.getExternalStorageDirectory() + videoRecordedFileName; File file = new File(recVideoPath); long fileVideo = file.length();
More or less something similar to the above.
Put this on a stream or when you update the user interface
currentPosition = (int) mediaPlayer.getCurrentPosition(); yourProgressBar.setProgress(currentPosition);
Hope this helps :)
Source: https://habr.com/ru/post/914696/More articles:how to set up custom jquery mobile on a page with a button section for 3 anchors? - jqueryMeteor Event Stop - eventsMac OS X Sandbox and Disk Arbitration - sandboxASP.Net Buster Cache Strategy - asp.netRDF namespaces (semantic data) - semantic-webWhy can stdint.h be found, but cstdint not? - c ++In UITableView, the best way to undo GCD operations for cells that have left the screen? - iosHide password text - c #Android MediaPlayer with AudioEffect: getting error (-22.0) - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/914701/add-blobs-or-trees-to-a-created-repository-using-pygit2-libgit2&usg=ALkJrhgXyY90Gul5vqU8QEHLqM69iSm3OwAll Articles