CN104199643B - Control method, device and the electronic equipment of progress bar loading - Google Patents
Control method, device and the electronic equipment of progress bar loading Download PDFInfo
- Publication number
- CN104199643B CN104199643B CN201410390556.6A CN201410390556A CN104199643B CN 104199643 B CN104199643 B CN 104199643B CN 201410390556 A CN201410390556 A CN 201410390556A CN 104199643 B CN104199643 B CN 104199643B
- Authority
- CN
- China
- Prior art keywords
- loading
- progress bar
- point
- cut
- loaded onto
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses control method, device and the electronic equipment of a kind of progress bar loading, this method includes:Control progress bar is at the uniform velocity loaded onto the first cut-point by the very first time from the loading original position of progress bar;Control progress bar slows down by the second time from the first cut-point is loaded onto the second cut-point;Wherein, the first separation and the second cut-point are arranged between the loading original position of progress bar and loading end position, and the very first time was less than for the second time;If information is completed in the loading that task corresponding to progress bar is listened to after progress bar is loaded onto the second cut-point, control progress bar is loaded onto loading end position from the second cut-point.The control method of the progress bar loading of the embodiment of the present invention, improves the smooth sense of progress bar loading, while can bring the loading experience of user rapidly, and loading accurately can be completed into information and be supplied to user, improves Consumer's Experience.
Description
Technical field
The present invention relates to field of computer technology, more particularly to control method, device and the electronics of a kind of loading of progress bar
Equipment.
Background technology
In order to allow users to understand the processing progress of file or data, such as processing speed, performance, surplus,
The processing progress of file or data can visually be shown for user by schedule display, such as progress bar form.At present, progress
Bar is applied to various scenes, for example, can with progress bar come show the browser loading process of webpage, file scan process,
Document transmission process etc..But be the execution state according to task mostly during progress bar loads, such as web data
Loading capacity, file scan number etc. control the load progress of progress bar, and these states are not sufficiently stable, Shi Kuaishi
Slowly, for example, when data or smaller file, will load it is very smooth, when a data or larger file, it is necessary to response
Time will be longer, and the load progress of progress bar will appear as not changing for a long time, even stagnate, so as to make
Tasks carrying failure can be takeed for into user or is crashed.
At present, although making the loading of progress bar more suitable by being controlled to the loading velocity of progress bar in the presence of some
Freely, smoothly.But these technologies need to rely on the deadline of the task corresponding to progress bar, i.e., obtains task first
Deadline, so as to control the speed of progress bar according to the deadline of task, in fact, the deadline of task is set
The influence of many factors such as equipment operating environment when standby performance, network factors and execution task, it is difficult to it is accurate to obtain, because
This, stabilization, the control method of smooth progress bar loading procedure can be provided the user by still needing to one.
The content of the invention
It is contemplated that at least solves one of technical problem in correlation technique to a certain extent.Therefore, the present invention the
The purpose of one side is to propose a kind of control method of progress bar loading, improves the smooth of progress bar loading and feel, while energy
The very fast loading experience of user is enough brought, improves Consumer's Experience.
The purpose of the second aspect of the present invention is to propose a kind of control device of progress bar loading.
The purpose of the third aspect of the present invention is to propose a kind of electronic equipment.
For the above-mentioned purpose, embodiment proposes a kind of control method of progress bar loading according to a first aspect of the present invention,
Including:Control progress bar is at the uniform velocity loaded onto the first cut-point by the very first time from the loading original position of the progress bar;Control
Make the progress bar and be loaded onto the second cut-point from first cut-point deceleration by the second time;Wherein, described first point
Dot interlace and the second cut-point be arranged on the progress bar loading original position and loading end position between, and it is described first when
Between be less than second time;If listen to the progress bar pair after the progress bar is loaded onto second cut-point
Information is completed in the loading of answering for task, then controls the progress bar to be loaded onto the loading stop bits from second cut-point
Put.
The embodiment of the present invention progress bar loading control method, by advance progress bar loading original position with plus
Carry end position between set cut-point to progress bar loading section divide, and set be loaded into each cut-point when
Between, a longer section is completed so as to control progress bar to load in the short period of time, so as to quickly be loaded to user
Experience, and loaded in an ensuing shorter section by the deceleration of long period to wait the execution of task,
Without the situation of interim card.Thus, the method for the embodiment of the present invention, relative to current method, improve progress bar and add
The smooth sense of load, avoid user and take for progress bar loading failure or situation about stopping, while it is very fast to bring user
Loading experience, and loading accurately can be completed into information and be supplied to user, improve Consumer's Experience.
The embodiment of the second aspect of the present invention provides a kind of control device of progress bar loading, including:First control
Module, for controlling progress bar to be at the uniform velocity loaded onto the first segmentation from the loading original position of the progress bar by the very first time
Point;Second control module, second is loaded onto for controlling the progress bar to slow down by the second time from first cut-point
Cut-point;Wherein, first separation and the second cut-point are arranged on the loading original position of the progress bar and loading is tied
Between beam position, and the very first time is less than second time;3rd control module, for being loaded onto in the progress bar
When the loading of task corresponding to the progress bar listened to after second cut-point completing information, control the progress bar from
Second cut-point is loaded onto the loading end position.
The embodiment of the present invention progress bar loading control device, by advance progress bar loading original position with plus
Carry end position between set cut-point to progress bar loading section divide, and set be loaded into each cut-point when
Between, a longer section is completed so as to control progress bar to load in the short period of time, so as to quickly be loaded to user
Experience, and loaded in an ensuing shorter section by the deceleration of long period to wait the execution of task,
Without the situation of interim card.Thus, the scheme of the embodiment of the present invention, relative to current scheme, improve progress bar and add
The smooth sense of load, avoid user and take for progress bar loading failure or situation about stopping, while it is very fast to bring user
Loading experience, and loading accurately can be completed into information and be supplied to user, improve Consumer's Experience.
The embodiment of the third aspect of the present invention provides a kind of electronic equipment, including:Shell, display, circuit board and
Processor, wherein, the circuit board is placed in the interior volume that the shell surrounds, the display in the housing exterior,
And be connected with the circuit board, the processor is arranged on the circuit board;The processor is used for processing data, and has
Body is used for:Control progress bar is at the uniform velocity loaded onto the first cut-point by the very first time from the loading original position of the progress bar;
Control the progress bar to slow down by the second time from first cut-point and be loaded onto the second cut-point;Wherein, described first
Separation and the second cut-point are arranged between the loading original position of the progress bar and loading end position, and described first
Time is less than second time;If listen to the progress bar after the progress bar is loaded onto second cut-point
Information is completed in the loading of corresponding task, then controls the progress bar to be loaded onto the loading stop bits from second cut-point
Put.
The electronic equipment of the embodiment of the present invention, by advance progress bar loading original position with loading end position it
Between set cut-point to divide progress bar loading section, and set and be loaded into time of each cut-point, so as to control into
Degree bar loads in the short period of time completes a longer section, so as to give experience of the user quickly to load, and is connecing
The shorter section got off is loaded to wait the execution of task, without interim card by the deceleration of long period
Situation.Thus, the smooth sense of progress bar loading is improved, user is avoided and takes for progress bar loading failure or the feelings stopped
Condition, while the very fast loading experience of user can be brought, and loading accurately can be completed into information and be supplied to user, improve
Consumer's Experience.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment
Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of the control method loaded according to the progress bar of one embodiment of the invention;
Fig. 2 a are the speed control schematic diagram according to page load progress bar in the browser of one embodiment of the invention;
Fig. 2 b are the loading velocity change schematic diagram of progress bar in loading procedure according to one embodiment of the invention;
Fig. 3 is the structural representation of the control device loaded according to the progress bar of one embodiment of the invention;
Fig. 4 is the structural representation of the control device loaded according to the progress bar of one specific embodiment of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar component or the component with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings control method, device and the electronics for describing progress bar loading according to embodiments of the present invention are set
It is standby.
Fig. 1 is the flow chart of the control method loaded according to the progress bar of one embodiment of the invention.
As shown in figure 1, the control method of progress bar loading, including:
S101, control progress bar are at the uniform velocity loaded onto the first segmentation by the very first time from the loading original position of progress bar
Point.
S102, control progress bar slows down by the second time from the first cut-point is loaded onto the second cut-point.Wherein, first
Separation and the second cut-point are arranged between the loading original position of progress bar and loading end position, and the very first time is less than
Second time.
It should be noted that in the embodiment of the present invention, progress bar is corresponding with task, that is to say, that progress bar is to use
Carry out the implementation progress to user's displaying task.By taking browser as an example, when browser loads webpage, progress bar is used to show net
The progress of page loading, i.e. progress bar correspond to webpage and load this task.
In one embodiment of the invention, the loading original position of progress bar and end position can be according to load progress bars
Loading interface determine, wherein, loading interface can be file scan progress interface, webpage loading interface etc..At loading interface
In, progress bar has corresponding loading original position and initial position,, can when browser loading page by taking browser as an example
As shown in Figure 2 a, progress bar is to be loaded onto right edge from the left side of browser, thus, it may be determined that the loading of progress bar rises
Beginning position and loading end position be A points and B points respectively, and can be by setting the first cut-point and the second cut-point by browser
In progress bar be divided into first stage, second stage and phase III three phases altogether.
In a preferred embodiment of the invention, the first cut-point to loading original position distance (first stage
Length) it is more than 1/2 of distance between loading original position and loading end position, for example, it may be entirely entering since A
Spend the position of bar 70%;The distance (phase III) of second cut-point to loading end position is less than loading original position and loading
The 1/10 of distance between end position, for example, it may be whole 95% position of progress bar from left to right.
In addition, after the first cut-point and the second cut-point are provided with, progress bar is set respectively from loading start bit
Put the very first time for being loaded onto the first cut-point and the second time that the second cut-point is loaded onto from the first cut-point.Specifically
Ground, the very first time may be configured as shorter a period of time, such as 1 second, so as to perform speed to user task in the first stage
Sensation quickly, when having loaded the first stage due to progress bar, the progress of tasks carrying may and not complete it is so more, so being
Wait tasks carrying progress, the second time may be configured as long period of time, such as 10 seconds, so as to can be with second stage
Performed with the speed slightly slower compared with the first stage, without the sensation to the unexpected interim card of user.
Specifically, in S101, first, the first cut-point is obtained to the distance of loading original position, and according to first point
Cutpoint calculates the first loading velocity of progress bar to the distance of loading original position and the very first time, i.e., is calculated by below equation
First loading velocity:
V1=a,
Wherein, a=S1/t1, V1 are the first loading velocity, and S1 is the first cut-point to the distance for loading original position, t1
For the very first time,
Then progress bar is controlled at the uniform velocity to be loaded onto the first cut-point from loading original position with the first loading velocity.
Wherein, because S1 and T1 have been preset, therefore, V1 is a fixed constant.
In an embodiment of the present invention, for S102, progress bar can be controlled by different deceleration strategies in the second time
It is interior to be loaded onto the second cut-point from the first cut-point, the second loading velocity of progress bar is such as controlled as the load time gradually subtracts
Small or increase with loading position and the distance of loading initial position and be gradually reduced, the present invention reduces to specific
Mode does not limit.
In one particular embodiment of the present invention, can according to the loading position of progress bar, by below equation control into
Degree bar slows down from the first cut-point is loaded onto the second loading velocity of the second cut-point, so that progress bar is according to the second loading velocity
Slow down by the second time from the first cut-point and be loaded onto the second cut-point:
Wherein, V2 is the second loading velocity, and a is the first loading velocity, and x is the loading position of progress bar to loading start bit
The distance put, b, c and d are preset constant.
In an embodiment of the present invention, in S102, the second loading velocity of controllable progress bar is being loaded onto second point
0 is reduced to during cutpoint.Specifically, V2=0 when can make by adjusting b, c and d value the progress bar be loaded onto the second cut-point.
For example, b=8 is worked as, when c=-64, d=1, the change of the loading velocity of progress bar in whole loading procedure
Can be as shown in Figure 2 b.Wherein, transverse axis adds for the loading position of progress bar to the distance for loading original position, the longitudinal axis for progress bar
Carry speed.
It should be appreciated that the loading position of the second acceleration and progress bar can be also embodied by other to loading start bit
The distance put, or be controlled with the taper off loading velocity of function pair second of relation of load time, it is numerous to list herein.
S103, if the loading that task corresponding to progress bar is listened to after progress bar is loaded onto the second cut-point is completed
Information, then progress bar is controlled to be loaded onto loading end position from the second cut-point.
In an embodiment of the present invention, being monitored in real time corresponding to taskbar during progress bar loads for task is held
Capable load progress information, when task is completed, it can receive for indicating that information is completed in the loading that task is completed.It is for example, right
For browser loading webpage, when webpage loads completion, server can return to loading and complete information.
If when progress bar is loaded onto the second cut-point, the loading velocity for having controlled progress bar is 0, then is being loaded onto the
When listening to loading completion information after two cut-points, it can directly control progress bar quickly to load the phase III, i.e., it is quick to add
It is loaded onto loading end position.
Certainly, if before progress bar is loaded onto the first cut-point from loading original position or before the second cut-point
Information is completed in the loading for listening to task corresponding to progress bar, then can control progress bar from adding when listening to loading completion information
Carry position and be quickly loaded onto loading end position, without being loaded further according to speed control progress bar corresponding to the stage.From
And while can ensureing that progress bar smoothness quickly loads, accurately progress bar can be controlled to have loaded according to task completion status
Into.
As shown in Figure 2 a, by taking browser as an example, in the loading procedure of whole progress bar, the loading velocity change of progress bar
Trend is:First at the uniform velocity load in the first stage, this phases-time is shorter, but it is longer to load distance;Slow down in second stage and load,
This phases-time is longer, but it is shorter to load distance;The speed of phase III is is close to 0 or is 0, and the distance in this stage is most
It is short, so as to when receiving loading and completing information control progress bar be loaded directly into loading end position, to user to flow
Smooth experience.
Therefore, the control method of the progress bar loading of the embodiment of the present invention, by advance in the loading start bit of progress bar
Setting cut-point divides to progress bar loading section between putting and loading end position, and sets and be loaded into each cut-point
Time, so as to control progress bar in the short period of time load complete a longer section, so as to user with quick
The experience of loading, and loaded in an ensuing shorter section by the deceleration of long period to wait holding for task
OK, without the situation of interim card.Thus, the method for the embodiment of the present invention, relative to current method, progress bar is improved
The smooth sense of loading, avoid user and take for progress bar loading failure or situation about stopping, while it is very fast to bring user
Loading experience, and can accurately will loading complete information be supplied to user, improve Consumer's Experience.
In order to realize above-described embodiment, the present invention also proposes a kind of control device of progress bar loading.
Fig. 3 is the structural representation of the control device loaded according to the progress bar of one embodiment of the invention.
As shown in figure 3, the control device of progress bar loading, including:First control module 10, the and of the second control module 20
3rd control module 30.
First control module 10 is used to control progress bar by the very first time from the loading original position of progress bar at the uniform velocity to add
It is loaded onto the first cut-point.
Second control module 20 is used to control progress bar to be loaded onto second point from the deceleration of the first cut-point by the second time
Cutpoint.
Wherein, the first separation and the second cut-point be arranged on progress bar loading original position and loading end position it
Between, and the very first time be less than for the second time.
It should be noted that in the embodiment of the present invention, progress bar is corresponding with task, that is to say, that progress bar is to use
Carry out the implementation progress to user's displaying task.By taking browser as an example, when browser loads webpage, progress bar is used to show net
The progress of page loading, i.e. progress bar correspond to webpage and load this task.
In one embodiment of the invention, the loading original position of progress bar and end position can be according to load progress bars
Loading interface determine, wherein, loading interface can be file scan progress interface, webpage loading interface etc..At loading interface
In, progress bar has corresponding loading original position and initial position,, can when browser loading page by taking browser as an example
As shown in Figure 2 a, progress bar is to be loaded onto right edge from the left side of browser, thus, control provided in an embodiment of the present invention
Device processed can determine that the loading original position of progress bar and loading end position is A points and B points respectively, and can pass through setting first
Progress bar in browser is divided into the first to the 3rd three phases by cut-point and the second cut-point.
In a preferred embodiment of the invention, the first cut-point to loading original position distance (first stage
Length) it is more than 1/2 of distance between loading original position and loading end position, for example, it may be entirely entering since A
The position of bar 70% is spent, the distance (phase III) of the second cut-point to loading end position is less than loading original position and loading
The 1/10 of distance between end position, for example, it may be whole progress bar from left to right 95% position.
In addition, after the first cut-point and the second cut-point are provided with, control device provided in an embodiment of the present invention
Progress bar can be also set to be loaded onto the very first time of the first cut-point from loading original position and add from the first cut-point respectively
It is loaded onto the second time of the second cut-point.Specifically, the very first time may be configured as shorter a period of time, such as 1 second, so that
First stage can perform the sensation of speed quickly, when having loaded the first stage due to progress bar, tasks carrying to user task
Progress may and do not complete it is so more, so in order to wait tasks carrying progress, when the second time may be configured as longer one section
Between, such as 10 seconds, so as to be performed in second stage with the speed slightly slower compared with the first stage, without being dashed forward to user
The sensation of right interim card.
More specifically, as shown in figure 4, the first control module 10 specifically includes:Acquiring unit 11, computing unit 12 and control
Unit 13.
Wherein, acquiring unit 11 is used to obtain the first cut-point to the distance of loading original position.
Computing unit 12 is used to calculate progress bar to the distance of loading original position and the very first time according to the first cut-point
The first loading velocity, that is, pass through below equation calculate the first loading velocity:
V1=a,
Wherein, a=S1/t1, V1 are the first loading velocity, and S1 is the first cut-point to the distance for loading original position, t1
For the very first time,
Control unit 13 is used to control progress bar to be at the uniform velocity loaded onto first point from loading original position with the first loading velocity
Cutpoint.
Wherein, because S1 and T1 have been preset, therefore, V1 is a fixed constant.
In an embodiment of the present invention, the second control module 20 can control progress bar second by different deceleration strategies
The second cut-point is loaded onto from the first cut-point in time, such as controls the second loading velocity of progress bar as the load time is gradual
Reduce or be gradually reduced with the increase of loading position and the distance of loading initial position, the present invention is to specifically subtracting
Small mode does not limit.
In one particular embodiment of the present invention, the second control module 20 can pass through according to the loading position of progress bar
Below equation controls progress bar to slow down from the first cut-point and is loaded onto the second loading velocity of the second cut-point, so that progress bar is pressed
Slow down according to the second loading velocity by the second time from the first cut-point and be loaded onto the second cut-point:
Wherein, V2 is the second loading velocity, and a is the first loading velocity, and x is the loading position of progress bar to loading start bit
The distance put, b, c and d are preset constant.
In an embodiment of the present invention, the second control module 20 can control the second loading velocity of progress bar being loaded onto
0 is reduced to during two cut-points.Specifically, the second control module 20 can make progress bar be loaded onto second point by adjusting b, c and d value
V2=0 during cutpoint.
It should be appreciated that the second control module 20 can also embody the loading position of the second acceleration and progress bar by other
Put the distance of loading original position, or be controlled with the taper off loading velocity of function pair second of relation of load time,
It is numerous to list herein.
3rd control module 30 is used to listen to task corresponding to progress bar after progress bar is loaded onto the second cut-point
Loading complete information when, control progress bar be loaded onto loading end position from the second cut-point.In an embodiment of the present invention,
3rd control module 30 can monitor the load progress letter of the tasks carrying of taskbar representative in real time during progress bar loads
Breath, when task is completed, the loading to indicating progress bar can be received and complete information.For example, load webpage for browser
Say, when webpage loads completion, server can return to loading and complete information.
3rd control module 30, which is additionally operable to listen to after progress bar is loaded onto the second cut-point corresponding to progress bar, to be added
When carrying completion information, control progress bar is loaded onto loading end position from the second cut-point.If it is loaded onto second in progress bar
During cut-point, the loading velocity for having controlled progress bar is 0, then control module 10 can be additionally used in after the second cut-point is loaded onto
When listening to loading completion information, directly control progress bar quickly to load the phase III, i.e., be quickly loaded onto loading stop bits
Put.
Certainly, if the 3rd control module 30 progress bar from loading original position be loaded onto the first cut-point before or
When listening to loading completion information corresponding to progress bar before the second cut-point, then progress bar can control to be completed from loading is listened to
Loading position during information is quickly loaded onto loading end position, without entering further according to speed control progress bar corresponding to the stage
Row loading.While quickly loading so as to ensure that progress bar is smooth, progress can accurately be controlled according to task completion status
Bar loading is completed.
As shown in Figure 2 a, by taking browser as an example, in the loading procedure of whole progress bar, the loading velocity change of progress bar
Trend is:First at the uniform velocity load in the first stage, this phases-time is shorter, but it is longer to load distance;Slow down in second stage and load,
This phases-time is longer, but it is shorter to load distance;The speed of phase III is 0, and the distance in this stage is most short, so as to connect
Control progress bar when information is completed in loading is received to be loaded directly into loading end position, to user with the experience of smoothness.
The embodiment of the present invention progress bar loading control device, by advance progress bar loading original position with plus
Carry end position between set cut-point to progress bar loading section divide, and set be loaded into each cut-point when
Between, a longer section is completed so as to control progress bar to load in the short period of time, so as to quickly be loaded to user
Experience, and loaded in an ensuing shorter section by the deceleration of long period to wait the execution of task,
Without the situation of interim card.Thus, the scheme of the embodiment of the present invention, relative to current scheme, improve progress bar and add
The smooth sense of load, avoid user and take for progress bar loading failure or situation about stopping, while it is very fast to bring user
Loading experience, and loading accurately can be completed into information and be supplied to user, improve Consumer's Experience.
In order to realize above-described embodiment, the present invention also proposes a kind of electronic equipment.
The electronic equipment of the embodiment of the present invention, including:Shell, display, circuit board and processor, wherein, circuit board peace
The interior volume surrounded in shell is put, display is connected in housing exterior, and with circuit board, and processor is arranged on circuit board
On;Processor is used for processing data, and is specifically used for:
S101 ', control progress bar are at the uniform velocity loaded onto the first segmentation by the very first time from the loading original position of progress bar
Point.
S102 ', control progress bar slows down by the second time from the first cut-point is loaded onto the second cut-point.
Wherein, the first separation and the second cut-point be arranged on progress bar loading original position and loading end position it
Between, and the very first time be less than for the second time.
It should be noted that in the embodiment of the present invention, progress bar is corresponding with task, that is to say, that progress bar is to use
Carry out the implementation progress to user's displaying task.By taking browser as an example, when browser loads webpage, progress bar is used to show net
The progress of page loading, i.e. progress bar correspond to webpage and load this task.
In one embodiment of the invention, the loading original position of progress bar and end position can be according to load progress bars
Loading interface determine, wherein, loading interface can be file scan progress interface, webpage loading interface etc..At loading interface
In, progress bar has corresponding loading original position and initial position,, can when browser loading page by taking browser as an example
As shown in Figure 2 a, progress bar is to be loaded onto right edge from the left side of browser, thus, it may be determined that the loading of progress bar rises
Beginning position and loading end position be A points and B points respectively, and can obtain by setting the first cut-point and the second cut-point will be clear
The progress bar look in device is divided into three phases.
In a preferred embodiment of the invention, the first cut-point to loading original position distance (first stage
Length) it is more than 1/2 of distance between loading original position and loading end position, for example, it may be entirely entering since A
The position of bar 70% is spent, the distance (phase III) of the second cut-point to loading end position is less than loading original position and loading
The 1/10 of distance between end position, for example, it may be whole progress bar from left to right 95% position.
In addition, after the first cut-point and the second cut-point are provided with, progress bar is set respectively from loading start bit
Put the very first time for being loaded onto the first cut-point and the second time that the second cut-point is loaded onto from the first cut-point.Specifically
Ground, the very first time may be configured as shorter a period of time, such as 1 second, so as to perform speed to user task in the first stage
Sensation quickly, when having loaded the first stage due to progress bar, the progress of tasks carrying may and not complete it is so more, so being
Wait tasks carrying progress, the second time may be configured as long period of time, such as 10 seconds, so as to can be with second stage
Performed with the speed slightly slower compared with the first stage, without the sensation to the unexpected interim card of user.
Specifically, in S101, first, the first cut-point is obtained to the distance of loading original position, and according to first point
Cutpoint calculates the first loading velocity of progress bar to the distance of loading original position and the very first time, i.e., is calculated by below equation
First loading velocity:
V1=a,
Wherein, a=S1/t1, V1 are the first loading velocity, and S1 is the first cut-point to the distance for loading original position, t1
For the very first time,
Then progress bar is controlled at the uniform velocity to be loaded onto the first cut-point from loading original position with the first loading velocity.
Wherein, because S1 and T1 have been preset, therefore, V1 is a fixed constant.
In an embodiment of the present invention, for S102, progress bar can be controlled by different deceleration strategies in the second time
It is interior to be loaded onto the second cut-point from the first cut-point, the second loading velocity of progress bar is such as controlled as the load time gradually subtracts
Small or increase with loading position and the distance of loading initial position and be gradually reduced, the present invention reduces to specific
Mode does not limit.
In one particular embodiment of the present invention, can according to the loading position of progress bar, by below equation control into
Degree bar slows down from the first cut-point is loaded onto the second loading velocity of the second cut-point, so that progress bar is according to the second loading velocity
Slow down by the second time from the first cut-point and be loaded onto the second cut-point:
Wherein, V2 is the second loading velocity, and a is the first loading velocity, and x is the loading position of progress bar to loading start bit
The distance put, b, c and d are preset constant.
In an embodiment of the present invention, in S102, the second loading velocity of controllable progress bar is being loaded onto second point
0 is reduced to during cutpoint.Specifically, V2=0 when can make by adjusting b, c and d value the progress bar be loaded onto the second cut-point.
For example, b=8 is worked as, when c=-64, d=1, the change of the loading velocity of progress bar in whole loading procedure
Can be as shown in Figure 2 b.Wherein, transverse axis adds for the loading position of progress bar to the distance for loading original position, the longitudinal axis for progress bar
Carry speed.
It should be appreciated that the loading position of the second acceleration and progress bar can be also embodied by other to loading start bit
The distance put, or be controlled with the taper off loading velocity of function pair second of relation of load time, it is numerous to list herein.
S103 ', if the loading that task corresponding to progress bar is listened to after progress bar is loaded onto the second cut-point is complete
Into information, then progress bar is controlled to be loaded onto loading end position from the second cut-point.
In an embodiment of the present invention, the tasks carrying of taskbar representative can be monitored in real time during progress bar loads
Load progress information, when task is completed, loading to indicating progress bar can be received and complete information.For example, for browsing
For device loading webpage, when webpage loads completion, server can return to loading and complete information.
If when progress bar is loaded onto the second cut-point, the loading velocity for having controlled progress bar is 0, then is being loaded onto the
When listening to loading completion information after two cut-points, it can directly control progress bar quickly to load the phase III, i.e., it is quick to add
It is loaded onto loading end position.
Certainly, if before progress bar is loaded onto the first cut-point from loading original position or before the second cut-point
Listen to loading corresponding to progress bar and complete information, then can control progress bar from the loading position listened to when information is completed in loading
Loading end position quickly is loaded onto, without being loaded further according to speed control progress bar corresponding to the stage.So as to
While ensureing that progress bar smoothness quickly loads, progress bar loading can be accurately controlled to complete according to task completion status.
As shown in Figure 2 a, by taking browser as an example, in the loading procedure of whole progress bar, the loading velocity change of progress bar
Trend is:First at the uniform velocity load in the first stage, this phases-time is shorter, but it is longer to load distance;Slow down in second stage and load,
This phases-time is longer, but it is shorter to load distance;The speed of phase III is 0, and the distance in this stage is most short, so as to connect
Control progress bar when information is completed in loading is received to be loaded directly into loading end position, to user with the experience of smoothness.
Therefore, the electronic equipment of the embodiment of the present invention, terminated by the loading original position in advance in progress bar with loading
Set cut-point to divide progress bar loading section between position, and the time for being loaded into each cut-point is set, so as to
Control progress bar loads in the short period of time completes a longer section, so as to give experience of the user quickly to load,
And loaded in an ensuing shorter section by the deceleration of long period to wait the execution of task, without going out
The situation of existing interim card.Thus, the smooth sense of progress bar loading is improved, user is avoided and takes for progress bar loading failure or stop
Situation only, while the very fast loading experience of user can be brought, and loading accurately can be completed into information and be supplied to user,
Improve Consumer's Experience.
In the description of the invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", " length ", " width ",
" thickness ", " on ", " under ", "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outer ", " up time
The orientation or position relationship of the instruction such as pin ", " counterclockwise ", " axial direction ", " radial direction ", " circumference " be based on orientation shown in the drawings or
Position relationship, it is for only for ease of and describes the present invention and simplify description, rather than indicates or imply that signified device or component must
There must be specific orientation, with specific azimuth configuration and operation, therefore be not considered as limiting the invention.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that two or more, such as two
It is individual, three etc., unless otherwise specifically defined.
In the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection ", " fixation " etc.
Term should be interpreted broadly, for example, it may be fixedly connected or be detachably connected, or integrally;Can be that machinery connects
Connect or electrically connect;Can be joined directly together, can also be indirectly connected by intermediary, can be in two components
The connection in portion or the interaction relationship of two components, limited unless otherwise clear and definite.For one of ordinary skill in the art
For, the concrete meaning of above-mentioned term in the present invention can be understood as the case may be.
In the present invention, unless otherwise clearly defined and limited, fisrt feature can be with "above" or "below" second feature
It is that the first and second features directly contact, or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature are directly over second feature or oblique upper, or be merely representative of
Fisrt feature level height is higher than second feature.Fisrt feature second feature " under ", " lower section " and " below " can be
One feature is immediately below second feature or obliquely downward, or is merely representative of fisrt feature level height and is less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office
Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area
Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification
Close and combine.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example
Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changed, replacing and modification.
Claims (15)
- A kind of 1. control method of progress bar loading, it is characterised in that including:Control progress bar is at the uniform velocity loaded onto the first cut-point by the very first time from the loading original position of the progress bar;It is described The very first time has preset;Control the progress bar to slow down by the second time from first cut-point and be loaded onto the second cut-point;Wherein, it is described First separation and the second cut-point are arranged between the loading original position of the progress bar and loading end position, and described The very first time is less than second time;If the loading of task corresponding to the progress bar is listened to after the progress bar is loaded onto second cut-point Information is completed, then controls the progress bar to be loaded onto the loading end position from second cut-point;Wherein, the control progress bar slows down by the second time from first cut-point is loaded onto the second cut-point, Including:According to the loading position of the progress bar, control the progress bar to slow down from first cut-point by below equation and add Be loaded onto the second loading velocity of the second cut-point so that the progress bar according to second loading velocity pass through described second when Between from first cut-point slow down be loaded onto the second cut-point:<mrow> <mi>V</mi> <mn>2</mn> <mo>=</mo> <mi>a</mi> <mrow> <mo>(</mo> <mo>-</mo> <mfrac> <mn>2</mn> <mi>&pi;</mi> </mfrac> <mi>a</mi> <mi>r</mi> <mi>c</mi> <mi>t</mi> <mi>a</mi> <mi>n</mi> <mo>(</mo> <mrow> <mi>b</mi> <mi>x</mi> <mo>+</mo> <mi>c</mi> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mo>,</mo> </mrow>Wherein, V2 is second loading velocity, and a is the first loading velocity, and x is that the loading position of the progress bar adds to described The distance of original position is carried, b, c and d are preset constant.
- 2. the control method of progress bar loading as claimed in claim 1, it is characterised in that also include:If it is loaded onto first cut-point or second cut-point from the loading original position in the progress bar Information is completed in the loading for listening to task corresponding to the progress bar before, then is controlled described in the progress bar from described listen to Loading position when information is completed in loading is loaded onto the loading end position.
- 3. the control method of progress bar loading as claimed in claim 1, it is characterised in thatFirst cut-point is more than the loading original position and loading end position to the distance of the loading original position Between distance 1/2;The distance of second cut-point to the loading end position is less than the loading original position and loading end position Between distance 1/10.
- 4. the control method of the progress bar loading as described in any one of claims 1 to 3, it is characterised in that the control progress Bar is at the uniform velocity loaded onto first cut-point by the very first time from the loading original position of the progress bar, including:First cut-point is obtained to the distance of the loading original position;The progress bar is calculated to the distance of the loading original position and the very first time according to first cut-point First loading velocity;The progress bar is controlled at the uniform velocity to be loaded onto first segmentation from the loading original position with first loading velocity Point.
- 5. the control method of progress bar loading as claimed in claim 1, it is characterised in that the control progress bar passes through Second time slowed down from first cut-point is loaded onto the second cut-point, including:The loading velocity of the progress bar is controlled to reduce to 0 when being loaded onto second cut-point.
- A kind of 6. control device of progress bar loading, it is characterised in that including:First control module, for controlling progress bar at the uniform velocity to be loaded from the loading original position of the progress bar by the very first time To the first cut-point;The very first time has preset;Second control module, second is loaded onto for controlling the progress bar to slow down by the second time from first cut-point Cut-point;Wherein, first separation and the second cut-point are arranged on the loading original position of the progress bar and loading is tied Between beam position, and the very first time is less than second time;3rd control module, the progress bar is listened to correspondingly for being loaded onto in the progress bar after second cut-point Task loading complete information when, control the progress bar to be loaded onto the loading end position from second cut-point;Second control module is used for according to the loading position of the progress bar, by below equation control the progress bar from First cut-point, which slows down, is loaded onto the second loading velocity of the second cut-point, so that the progress bar adds according to described second Carry speed and be loaded onto the second cut-point from first cut-point deceleration by second time:<mrow> <mi>V</mi> <mn>2</mn> <mo>=</mo> <mi>a</mi> <mrow> <mo>(</mo> <mo>-</mo> <mfrac> <mn>2</mn> <mi>&pi;</mi> </mfrac> <mi>a</mi> <mi>r</mi> <mi>c</mi> <mi>t</mi> <mi>a</mi> <mi>n</mi> <mo>(</mo> <mrow> <mi>b</mi> <mi>x</mi> <mo>+</mo> <mi>c</mi> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mo>,</mo> </mrow>Wherein, V2 is second loading velocity, and a is the first loading velocity, and x is that the loading position of the progress bar adds to described The distance of original position is carried, b, c and d are preset constant.
- 7. the control device of progress bar loading as claimed in claim 6, it is characterised in that3rd control module is additionally operable to be loaded onto first cut-point from the loading original position in the progress bar Or when the loading completion information of task corresponding to the progress bar is listened to before second cut-point, control the progress Bar is loaded onto the loading end position from the loading position listened to when information is completed in the loading.
- 8. the control device of progress bar loading as claimed in claim 6, it is characterised in thatFirst cut-point is more than the loading original position and loading end position to the distance of the loading original position Between distance 1/2;The distance of second cut-point to the loading end position is less than the loading original position and loading end position Between distance 1/10.
- 9. the control device of the progress bar loading as described in any one of claim 6 to 8, it is characterised in that first control Module includes:Acquiring unit, for obtaining first cut-point to the distance of the loading original position;Computing unit, for being calculated according to first cut-point to the distance of the loading original position and the very first time First loading velocity of the progress bar;Control unit, for controlling the progress bar to be at the uniform velocity loaded onto from the loading original position with first loading velocity First cut-point.
- 10. the control device of progress bar loading as claimed in claim 6, it is characterised in that second control module is specific For:The second loading velocity of the progress bar is controlled to reduce to 0 when being loaded onto second cut-point.
- 11. a kind of electronic equipment, it is characterised in that including:Shell, display, circuit board and processor, wherein, the circuit Plate is placed in the interior volume that the shell surrounds, and the display is connected in the housing exterior, and with the circuit board, The processor is arranged on the circuit board;The processor is used for processing data, and is specifically used for:Control progress bar is at the uniform velocity loaded onto the first cut-point by the very first time from the loading original position of the progress bar;It is described The very first time has preset;Control the progress bar to slow down by the second time from first cut-point and be loaded onto the second cut-point;Wherein, it is described First separation and the second cut-point are arranged between the loading original position of the progress bar and loading end position, and described The very first time is less than second time;If the loading of task corresponding to the progress bar is listened to after the progress bar is loaded onto second cut-point Information is completed, then controls the progress bar to be loaded onto the loading end position from second cut-point;Wherein, according to the loading position of the progress bar, the progress bar is controlled from first cut-point by below equation Slow down and be loaded onto the second loading velocity of the second cut-point, so that the progress bar is according to described in second loading velocity process Second time slowed down from first cut-point is loaded onto the second cut-point:<mrow> <mi>V</mi> <mn>2</mn> <mo>=</mo> <mi>a</mi> <mrow> <mo>(</mo> <mo>-</mo> <mfrac> <mn>2</mn> <mi>&pi;</mi> </mfrac> <mi>a</mi> <mi>r</mi> <mi>c</mi> <mi>t</mi> <mi>a</mi> <mi>n</mi> <mo>(</mo> <mrow> <mi>b</mi> <mi>x</mi> <mo>+</mo> <mi>c</mi> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mo>,</mo> </mrow>Wherein, V2 is second loading velocity, and a is the first loading velocity, and x is that the loading position of the progress bar adds to described The distance of original position is carried, b, c and d are preset constant.
- 12. electronic equipment as claimed in claim 11, it is characterised in that the processor is additionally operable to:If it is loaded onto first cut-point or second cut-point from the loading original position in the progress bar Information is completed in the loading for listening to task corresponding to the progress bar before, then is controlled described in the progress bar from described listen to Loading position when information is completed in loading is loaded onto the loading end position.
- 13. electronic equipment as claimed in claim 11, it is characterised in thatFirst cut-point is more than the loading original position and loading end position to the distance of the loading original position Between distance 1/2;The distance of second cut-point to the loading end position is less than the loading original position and loading end position Between distance 1/10.
- 14. the electronic equipment as described in any one of claim 11 to 13, it is characterised in that the processor is specifically used for:First cut-point is obtained to the distance of the loading original position;The progress bar is calculated to the distance of the loading original position and the very first time according to first cut-point First loading velocity;The progress bar is controlled at the uniform velocity to be loaded onto first segmentation from the loading original position with first loading velocity Point.
- 15. electronic equipment as claimed in claim 11, it is characterised in that the processor is specifically used for:The loading velocity of the progress bar is controlled to reduce to 0 when being loaded onto second cut-point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410390556.6A CN104199643B (en) | 2014-08-08 | 2014-08-08 | Control method, device and the electronic equipment of progress bar loading |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410390556.6A CN104199643B (en) | 2014-08-08 | 2014-08-08 | Control method, device and the electronic equipment of progress bar loading |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104199643A CN104199643A (en) | 2014-12-10 |
CN104199643B true CN104199643B (en) | 2017-12-29 |
Family
ID=52084940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410390556.6A Active CN104199643B (en) | 2014-08-08 | 2014-08-08 | Control method, device and the electronic equipment of progress bar loading |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104199643B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105988913B (en) * | 2015-02-27 | 2019-06-28 | 阿里巴巴集团控股有限公司 | A kind of tempo instructions method and process indicating device |
CN105893074A (en) * | 2015-12-14 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Progress bar optimization method and device |
CN107239386B (en) * | 2017-06-06 | 2022-03-29 | 网易(杭州)网络有限公司 | Progress display method and device |
CN109074303B (en) * | 2017-06-27 | 2021-08-20 | 华为技术有限公司 | Stuck detection method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102141953A (en) * | 2011-04-01 | 2011-08-03 | 奇智软件(北京)有限公司 | Method and device for showing progress bar |
CN103136089A (en) * | 2011-11-25 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and device for process bar display |
CN103488555A (en) * | 2011-04-01 | 2014-01-01 | 北京奇虎科技有限公司 | Progress bar implementation method and device |
CN103530145A (en) * | 2011-04-01 | 2014-01-22 | 北京奇虎科技有限公司 | Progress bar setting method and device |
-
2014
- 2014-08-08 CN CN201410390556.6A patent/CN104199643B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102141953A (en) * | 2011-04-01 | 2011-08-03 | 奇智软件(北京)有限公司 | Method and device for showing progress bar |
CN103488555A (en) * | 2011-04-01 | 2014-01-01 | 北京奇虎科技有限公司 | Progress bar implementation method and device |
CN103530145A (en) * | 2011-04-01 | 2014-01-22 | 北京奇虎科技有限公司 | Progress bar setting method and device |
CN103136089A (en) * | 2011-11-25 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and device for process bar display |
Also Published As
Publication number | Publication date |
---|---|
CN104199643A (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104199643B (en) | Control method, device and the electronic equipment of progress bar loading | |
US9474979B2 (en) | Game program and information processing device | |
US8771070B2 (en) | Game processing server apparatus and recording medium | |
CN102638697B (en) | Image processing equipment and image processing method and program thereof | |
DE102016001467A1 (en) | A method for intelligently loading web references in advance based on a prediction of user behavior | |
DE112011103486T5 (en) | Continuous application performance between multiple devices | |
CN104375862B (en) | A kind of progress bar shows method and device | |
CN109917991B (en) | Electronic book page turning method, electronic equipment and computer storage medium | |
EP3054423B1 (en) | Apparatus and method for processing animation | |
CN109409432B (en) | A kind of image processing method, device and storage medium | |
CN109643164B (en) | Signal processing device, signal processing method, program, and electronic device | |
CN105138302A (en) | Screen splitting display method and device | |
CN103425504A (en) | Method and device for loading video files | |
CN114185465A (en) | Information processing method, information processing apparatus, storage medium, and electronic device | |
CN104239503A (en) | Display control method and device for loading progress, browser and electronic equipment | |
CN113852719A (en) | Method for determining relation of vibration effects of multiple motors and related equipment | |
US7516053B1 (en) | Method and system for simulating fracture propagation in brittle materials | |
CN105843391B (en) | The method, apparatus and terminal of frequency modulation tune core | |
CN105160697B (en) | A kind of information processing method and electronic equipment | |
CN107943875A (en) | The control method of browser kernel, device and terminal in player application | |
CN103617299A (en) | Method and system for setting table attribute | |
CN106210031A (en) | Service execution method, device, client and server | |
JP2021043616A (en) | Control device, control method, and program | |
CN109684010A (en) | Information display method and device and electronic equipment | |
CN107403358A (en) | A kind of information recommendation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |