progress-bar

Can ffmpeg show a progress bar?

牧云@^-^@ 提交于 2019-12-17 03:54:24
问题 I am converting a .avi file to .flv file using ffmpeg. As it takes a long time to convert a file I would like to display a progress bar. Can someone please guide me on how to go about the same. I know that ffmpeg somehow has to output the progress in a text file and I have to read it using ajax calls. But how do I get ffmpeg to output the progress to the text file? Thank you very much. 回答1: I've been playing around with this for a few days. That "ffmpegprogress" thing helped, but it was very

CSS Progress Circle [closed]

☆樱花仙子☆ 提交于 2019-12-17 00:25:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I have searched this website to find progress bars, but the ones I have been able to found show animated circles that go to the full 100%. I would like it to stop at certain percentages like in the screenshot below. Is there any way I can do that using only CSS? 回答1: I created a tutorial on how to do exactly

How to use ProgressDialog to show JSON parsing progress?

徘徊边缘 提交于 2019-12-14 04:23:07
问题 I want to show progress of some JSON parsing using with progress bar. I've never used it and found some examples in the Internet. So, I try to realize it but application crashes when parsing starts. Here is code: public class Parser extends Activity { public static String w_type1 = "news"; public static String w_type2 = "events_put"; public ListView lv; ArrayList<Widget> data = new ArrayList<Widget>(); WidgetAdapter wid_adptr = new WidgetAdapter(this, data); @Override protected void onCreate

Is this WPF ProgressBar Odd render behaviour a Bug?

本秂侑毒 提交于 2019-12-14 04:03:38
问题 Hope someone can help. I have a simple scenario where clicking checkboxes is driving a progress bar in WPF. The checkboxes are contained in a UserControl and the Progress bar is in a simple WPF client window. On the user control I am using two dependency properties: 1) the existing Tag property has the value I wish to bind to the progress bar value and 2) a DP called CbCount which represents the total number of checkboxes. The problem: When the application runs the progress bar's progress

How to add a border/corner radius to a LinearProgressIndicator in Flutter?

人盡茶涼 提交于 2019-12-14 03:58:15
问题 I am trying to add a border radius to a LinearProgressIndicator in Flutter. When I replace the LinearProgressIndicator with another widget (e.g. Text ) in the code below, it works, as expected. Container( decoration: new BoxDecoration( borderRadius: new BorderRadius.all(const Radius.circular(20.0))), child: LinearProgressIndicator( value: _time, ), ) 回答1: For exact your needs follow this dependency https://pub.dev/packages/percent_indicator Try this template code child: Padding( padding:

Android ProgressDialog Progress Bar doing things in the right order

跟風遠走 提交于 2019-12-14 02:27:00
问题 I just about got this, but I have a small problem in the order of things going off. Specifically, in my thread() I am setting up an array that is used by a Spinner. Problem is the Spinner is all set and done basically before my thread() is finished, so it sets itself up with a null array. How do I associate the spinners ArrayAdapter with an array that is being loaded by another thread? I've cut the code down to what I think is necessary to understand the problem, but just let me know if more

How to add progress bar to standalone Asynctask?

狂风中的少年 提交于 2019-12-14 01:37:35
问题 I have an asynctask that is in its own activity. I pass it a string value and it connects to my web service and downloads Json data based on the name I pass in, returning the Json resultset. Works great. I'd like to add a progress spinner to the asynctask, but I'm stymied as to how to do it. I've perused this and many other blogs, and come close but have not yet found the solution. It seems I either need to have the asynctask in with an Activity class to get the context or I have to pass in

setProgressDrawable fills the entire seekBar

你。 提交于 2019-12-14 00:50:34
问题 As I say in the title, when I use setProgressDrawable, it fills the entire SeekBar: if progress is at 34%, progress show 100% but thumb shows the correct percentatge 34%. I don't figure out what can be the problem... done.setProgressDrawable(getResources().getDrawable(R.drawable.seekbar_progress)); done.setThumb(getResources().getDrawable(R.drawable.seekbar_thumb)); seekbar_progress.xml <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android

Android Progress bar not showing up

梦想与她 提交于 2019-12-14 00:33:55
问题 private Handler handler = new Handler() { @Override public void handleMessage(Message msg) { removeDialog(0); switch (msg.what) { case SUCCESS: Log.i("LoginActivity", "Got inputstream"); final InputStream is = (InputStream)msg.obj; if (is != null) { //TODO: examine the input stream, etc... } break; case FAILURE: Log.i("LoginActivity", "Login failed"); //TODO: Failure handling break; default: break; } } }; @Override protected Dialog onCreateDialog(int id) { switch (id) { case 0: { dialog = new

Progress Bar C# Variable

蹲街弑〆低调 提交于 2019-12-13 22:38:20
问题 I'm trying to get the value for a progessbar(in C#) from a variable I currently have, divided by 52, and multiplied by 100. This is the code I have, any suggestions to fix it ? int value; value = TestP1.corAns / 52 * 100; ProgressBar pBar = new ProgressBar(); pBar.Value = value; label2.Text = Convert.ToString(value) + "%"; 回答1: Value is int variable and therefore TestP1.corAns / 52 will be rounded to some integer value even if TestP1.corAns is a real number ( float or double ). Moreover, if