Disclosure of Invention
The invention provides a method and a terminal for displaying file downloading state information, which are convenient for a user to check the state information when downloading a file.
The method for displaying the file downloading state information comprises the following steps:
when the terminal detects that the file downloading is started, displaying a scene animation with a preset initial animation effect, wherein the scene animation is presented in a form of a floating window; determining the downloading progress and the downloading rate of the file every other preset time length in the file downloading process; and then, according to the determined download progress and download rate, adjusting the initial animation effect of the scene animation to be a first animation effect, wherein the initial animation effect is used for indicating that the terminal is in the state of downloading the file, the download progress is the initial progress, and the download rate is the initial rate, and the first animation effect is used for indicating that the terminal is in the state of downloading the file, the download progress is the determined download progress, and the download rate is the determined download rate.
The terminal displays the file downloading state information such as the state of the downloaded file, the downloading progress and the downloading speed through the animation effect of the scene animation, so that the user can conveniently check the file downloading state information, the display of the file downloading state information is more vivid and vivid, and the user experience is improved.
Optionally, after detecting the first operation, the terminal suspends the process of downloading the file, and adjusts the animation effect of the scene animation to a second animation effect, wherein the second animation effect is used for indicating that the terminal is in the state of suspending downloading the file and the downloading progress is the downloading progress during suspension, and the first operation is used for indicating that the terminal suspends the process of downloading the file; or,
after the terminal fails to acquire the file to be downloaded, suspending the process of downloading the file, and adjusting the animation effect of the scene animation to be a third animation effect, wherein the third animation effect is used for indicating that the terminal is in a state of file downloading failure and the downloading progress is the downloading progress when the file downloading fails; or,
and after the terminal determines that the file downloading is finished, adjusting the animation effect of the scene animation to be a fourth animation effect, wherein the fourth animation effect is used for indicating that the terminal is in a state of finishing downloading the file, and the downloading progress is 100%.
Due to the fact that the animation effects presented by the terminal are different in different downloading states of the files, a user can visually distinguish different file downloading states through different animation effects in the scene animation, and user experience is improved.
Optionally, after detecting the second operation, the terminal starts to continue downloading the file from the position where the downloading progress is located when the file downloading is suspended, and adjusts the second animation effect of the scene animation to the first animation effect; or,
after detecting the third operation, the terminal starts to continue downloading the file from the position of the downloading progress when the file downloading fails, and adjusts the third animation effect of the scene animation into the first animation effect; or,
and after detecting the fourth operation, the terminal downloads the file again and adjusts the fourth animation effect of the scene animation into the first animation effect.
The terminal can switch different animation effects based on different operations, so that switching between different file downloading states is realized, and user experience is improved.
Optionally, the first animation effect is that the fish swims in the water, and the water is in the cup; the second animation effect is that the fish is still in the water, the height of the water in the cup is smaller than that of the cup, the first operation is to drag the fish in the water out of the cup, and the second operation is to drag the fish still in the water left and right; the third animation effect is that the fish sinks into the water bottom, the height of the water in the cup is smaller than that of the cup, and the third animation effect is that the fish is dragged upwards from the water bottom; the fourth animation effect is that the fish floats on the water surface, the height of the water in the cup is equal to that of the cup, and the fourth operation is that the fish floating on the water surface is dragged into the water; the speed of the fish swimming in the water is used for indicating the downloading speed, the height of the water in the cup is used for indicating the downloading progress, and the state of the fish swimming in the water is used for indicating that the terminal is in the file downloading state.
Optionally, after detecting that the start file is downloaded, the terminal determines the displayed scene animation with the preset initial animation effect from the preset at least one scene animation, and then displays the scene animation with the preset initial animation effect, where the displayed scene animation with the preset initial animation effect is the scene animation selected by the user from the at least one scene animation.
The terminal for displaying the file downloading state information in the embodiment of the invention comprises: the processing unit is used for indicating the display unit to display a preset scene animation with an initial animation effect when detecting that the file downloading is started, wherein the scene animation is presented in a form of a floating window, and the initial animation effect is used for indicating that the terminal is in a state of downloading the file, the downloading progress is the initial progress, and the downloading rate is the initial rate; the processing unit is also used for determining the downloading progress and the downloading rate of the file every other preset time length in the file downloading process; the processing unit is further used for indicating the display unit to adjust the initial animation effect of the displayed scene animation to be a first animation effect according to the determined downloading progress and downloading rate, wherein the first animation effect is used for indicating that the terminal is in the state of downloading the file, the downloading progress is the determined downloading progress, and the downloading rate is the determined downloading rate.
Optionally, the processing unit is further configured to: when the first operation is detected, the process of downloading the file is paused, and the display unit is indicated to adjust the animation effect of the displayed scene animation to be a second animation effect, wherein the second animation effect is used for indicating that the terminal is in the state of pausing the downloading of the file and the downloading progress is the downloading progress when pausing, and the first operation is used for indicating the process of pausing the downloading of the file by the terminal; when the file needing to be downloaded is failed to be acquired, suspending the process of downloading the file, and indicating the display unit to adjust the animation effect of the displayed scene animation to be a third animation effect, wherein the third animation effect is used for indicating that the terminal is in a state of file downloading failure and the downloading progress is the downloading progress when the file downloading fails; and after the file downloading is determined to be completed, the indication display unit adjusts the animation effect of the displayed scene animation to be a fourth animation effect, and the fourth animation effect is used for indicating that the terminal is in a state of completing the file downloading and the downloading progress is 100%.
Optionally, the processing unit is further configured to, after detecting the second operation, start downloading the file at a position where the downloading progress is located when the downloading of the file is suspended, and instruct the display unit to adjust the second animation effect of the displayed scene animation to the first animation effect; after the third operation is detected, continuing to download the file from the position where the downloading progress is located when the file downloading fails, and indicating the display unit to adjust the third animation effect of the displayed scene animation to the first animation effect; and after the fourth operation is detected, the file is downloaded again, and the display unit is instructed to adjust the fourth animation effect of the displayed scene animation to the first animation effect.
Optionally, the first animation effect is that the fish swims in the water, and the water is in the cup; the second animation effect is that the fish is still in the water, the height of the water in the cup is smaller than that of the cup, the first operation is to drag the fish in the water out of the cup, and the second operation is to drag the fish still in the water left and right; the third animation effect is that the fish sinks into the water bottom, the height of the water in the cup is smaller than that of the cup, and the third animation effect is that the fish is dragged upwards from the water bottom; the fourth animation effect is that the fish floats on the water surface, the height of the water in the cup is equal to that of the cup, and the fourth operation is that the fish floating on the water surface is dragged into the water; the speed of the fish swimming in the water is used for indicating the downloading speed, the height of the water in the cup is used for indicating the downloading progress, and the state of the fish swimming in the water is used for indicating that the terminal is in the file downloading state.
Optionally, the processing unit is further configured to determine, after detecting that the file download is started and before instructing the display unit to display the scene animation with the preset initial animation effect, the displayed scene animation with the preset initial animation effect from the preset at least one scene animation, where the displayed scene animation with the preset initial animation effect is the scene animation selected by the user from the at least one scene animation.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present application will be described in further detail with reference to the accompanying drawings.
The terminal in the embodiment of the present invention may also be referred to as a User Equipment (UE), and specifically may be an electronic device with a display function, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer.
As shown in fig. 2, the method for displaying file download status information according to the embodiment of the present invention includes:
step 200, when the terminal detects that the file downloading is started, displaying a scene animation with a preset initial animation effect, wherein the scene animation is presented in a form of a floating window, the initial animation effect is used for indicating that the terminal is in a state of downloading the file, the downloading progress is an initial progress, and the downloading rate is an initial rate.
It should be noted that, when the file is a newly downloaded file, the initial progress is 0, and when the file is a previously downloaded file that has not been downloaded, the initial progress is the progress of the already downloaded file, and the initial rate is usually determined according to the transmission speed of the data packet in the current network.
Step 210, the terminal determines the downloading progress and the downloading rate of the file every preset time length in the file downloading process.
It should be noted that the preset duration may be configured according to the needs of the user, and the terminal may further determine the download progress and the download rate of the file in real time.
And step 220, the terminal adjusts the initial animation effect of the scene animation into a first animation effect according to the determined downloading progress and downloading rate, wherein the first animation effect is used for indicating that the terminal is in the state of downloading the file, the downloading progress is the determined downloading progress, and the downloading rate is the determined downloading rate.
The status, downloading progress and downloading rate of file downloading are indicated by using the scene animation as the fish swims in water, specifically, the downloading progress is indicated by the height of water in a cup, the speed of the fish swims in water indicates the downloading rate of the file, as shown in fig. 3, when the file downloading is started, a left cup-only picture shown in fig. 3 is displayed on a display screen of the terminal, wherein the cup-only picture is the scene animation with the initial animation effect, and as time goes on, the downloading progress of the file is 60%, the water in the cup accounts for 60% of the whole space in the cup, as shown in fig. 4, assuming that the width of the cup is divided into 10 equal parts, each part corresponds to one grid, assuming that the actual downloading rate is 1.4KB/S, if the speed of the corresponding fish in the swimming water is 0.01 grid/S when the actual downloading rate is set to be 1.9KB/S to 1.0/S, the speed of the fish swimming in the water is 0.01 grid/S, the animation effect shown in the right picture shown in fig. 3 is the first animation effect, when the actual download rate changes, the speed of the fish swimming in the water can also change correspondingly, and the relationship between the speed of the fish swimming in the water and the actual download rate of the file can be determined by a preset algorithm, wherein the preset algorithm is not limited to the algorithm illustrated in the embodiment of the present invention, and other algorithms capable of determining the relationship between the speed of the fish swimming in the water and the actual download rate of the file can be used.
Further: when the terminal is implemented specifically, the speed of the fish swimming in the water can be determined according to the following modes:
step 1: the terminal determines and stores the download rate every preset time, and the preset time can be set to 3 seconds in a normal case. The specific algorithm for determining the download rate is as follows:
2 configuration variables in advance: the initial values of lenDownloaded _ last, lastTime, and maxseed. Where lenDownloaded _ last indicates the last number of bytes that have been downloaded since the last 3 seconds, lastTime is the current time since the last 3 seconds, and maxseed indicates the maximum speed of the local computer to date (maxseed cannot be set to a fixed value, since the network speed of each terminal is different, the maximum download speed of each terminal is calculated based on the historical speed of the actual download of the local computer). The initial value of maxseed is 0, when the terminal starts the file downloading task, lenDownloaded _ last is 0, and lastTime is the time when the file downloading task starts, and the unit is millisecond. When the terminal detects that the timing arrives, acquiring the number of bytes (denoted as lenDownloaded) which have been downloaded currently and the current time (denoted as nowTime), and the unit is millisecond. The determined download rate (denoted currentSpeed) is:
currentSpeed (lenDownloaded-lenDownloaded _ last)/(nowTime-lastTime) 1000/1024; then, when the current speed is larger than the historical highest speed (namely currentSpeed > maxseed), the terminal modifies the current value of maxseed to the currentSpeed value, saves the modified value of maxseed, and reads the modified value when the program is started.
And step 2, the terminal determines the speedPercent, wherein the speedPercent is current speed/maxSpeed.
And 3, determining the swimming speed of the fish in the water by the terminal according to the range of the speedPercent (namely the speed percentage).
Specifically, the value of the speedPercent is divided into 5 ranges, such as s1 (0. ltoreq. speedPercent < 20%), s2 (20. ltoreq. speedPercent < 40%), s3 (40. ltoreq. speedPercent < 60%), s4 (60. ltoreq. speedPercent < 80%), s5 (80. ltoreq. speedPercent < 100%).
Assuming that the cups are divided into 10 parts in the horizontal direction, wherein one part is a lattice, the speed of the fish swimming in the water corresponding to s1 is preset to be 1 lattice/second; the speed of the fish swimming in the water corresponding to s2 is 2 grids/second, and the speed of the fish swimming in the water corresponding to s3 is 4 grids/second; the speed of swimming of the fish in water corresponding to s4 was 5 lattices/second, and the speed of swimming of the fish in water corresponding to s5 was 10 lattices/second.
When the fish swims from left to right in the cup, the fish swims from right to left again, and so on.
Wherein the terminal determines the height of the water level in the cup as shown in figure 3 in the following way:
step 1, when a terminal starts a file downloading task, determining the total byte number of a file to be downloaded.
And 2, in the downloading process, the terminal acquires the file to be downloaded from the network side equipment and records the number of bytes downloaded.
And 3, starting an internal timer after the terminal starts downloading, determining the downloading progress (the downloading progress is the downloaded byte number/total byte number) in each preset time length, updating the height of the water surface in the cup on the displayed scene cartoon according to the determined downloading progress, wherein the ratio of the height of the water surface to the total height of the cup is equal to the downloading progress.
Specifically, the terminal displays the height of the water surface according to the downloading progress in the following mode:
the terminal determines the rectangular coordinates of each vertex of the displayed cup on the screen through an Application Programming Interface (API), determines the height H of the cup according to the rectangular coordinates of each vertex, and determines the height of the water surface according to the determined height H of the cup and the product of the H and the determined download progress.
In addition, after the terminal determines the height of the water surface, the coordinates of the water surface on the screen are determined based on the coordinates of the two vertexes of the cup bottom and the height of the water surface, the terminal calls the API, and water with preset colors is filled between the determined coordinates of the water surface on the screen and the coordinates of the cup bottom.
Wherein, can set up the size of the picture that the fish was located as required, the terminal passes through API and calls the picture that the fish was located, shows the fish in the cup that shows on the display screen.
Wherein the position of the fish in the cup is determined based on the speed of the fish swimming through the water and according to a preset algorithm.
Besides, the terminal may be in a state of suspending the file download, in a state of completing the file download, and in a state of failing to download the file in the file download process, in addition to the state of downloading the file in the file download process, wherein the terminal may implement switching between the states as shown in fig. 5 by receiving an operation of a user.
In the embodiment of the present invention, in a specific implementation, the terminal presets different values for different download states respectively, and indicates animation effects corresponding to the different download states, for example, a first animation effect corresponding to a state where a file is downloaded is indicated by 0X01, a second animation effect corresponding to a state where the file download is completed is indicated by 0X02, a third animation effect corresponding to a state where the file download is suspended is indicated by 0X03, and an animation effect corresponding to a state where the file download fails is indicated by 0X04, where it should be noted that since the file download is suspended in a normal case when the file download fails, the animation effect corresponding to the state where the file download fails is indicated by 0X 03.
When the terminal determines that the file downloading is completed, the user needs to download the file again due to the reason that the file cannot be opened and the like, taking fig. 3 as an example, the file can be downloaded again by dragging the file to the bottom of the cup, specifically, when the file is downloaded, the file can be dragged to the bottom of the cup through operations such as a mouse, a keyboard or touch, in addition, the process of downloading the file again can be realized through other modes, and the specific realization mode can have different realization modes through different preset programs or algorithms.
Optionally, after the terminal detects the first operation, the process of downloading the file is suspended, the animation effect of the scene animation is adjusted to be the second animation effect, the second animation effect is used for indicating that the terminal is in the state of suspending downloading the file and the downloading progress is the downloading progress when the downloading progress is suspended, and the first operation is used for indicating that the terminal suspends the process of downloading the file.
When the terminal fails to acquire the file to be downloaded, suspending the process of downloading the file, and adjusting the animation effect of the scene animation to be a third animation effect, wherein the third animation effect is used for indicating that the terminal is in a state of file downloading failure and the downloading progress is the downloading progress when the file downloading fails;
and after the terminal determines that the file downloading is finished, adjusting the animation effect of the scene animation to be a fourth animation effect, wherein the fourth animation effect is used for indicating that the terminal is in a state of finishing downloading the file, and the downloading progress is 100%.
In addition, in order to facilitate the user to switch between different downloading states of the file, optionally, after the terminal detects the second operation, the terminal starts to continue downloading the file from the position where the downloading progress is located when the downloading of the file is suspended, and adjusts the second animation effect of the scene animation to the first animation effect; after detecting the third operation, the terminal starts to continue downloading the file from the position where the downloading progress is located when the file downloading fails, and adjusts the third animation effect of the scene animation to the first animation effect; and when the terminal detects the fourth operation, the file is downloaded again, and the fourth animation effect of the scene animation is adjusted to be the first animation effect.
Taking the animation effect shown in fig. 3 as an example, the first animation effect is that a fish swims in water, water is in a cup, the second animation effect is that the fish is still in water, the height of the water in the cup is smaller than that of the cup, the first operation can be to drag the fish in water out of the cup, specifically, the fish can be selected through a mouse, and the fish can be dragged out of the cup, and the specific implementation manner is as follows:
when the terminal is in a state of downloading a file, after a mousedown is received, a position A of a current mouse is obtained, wherein the position of the current mouse is the position of a fish, then a route through which the mouse starts to drag the fish is recorded, and when the terminal receives a mouseup, a position B of the mouse at the moment is obtained. The terminal judges the position B of the mouse, if the position B is in the cup, the state is unchanged, if the terminal determines that the position B is outside the cup, the user drags the fish out of the cup, the current file being downloaded is paused, the state of downloading the file is switched to the state of pausing the file downloading.
It should be understood that the first operation may also be other operations in the embodiment of the present invention, for example, if the terminal supports a touch operation, the fish in the water may be moved to the outside of the cup by the touch operation, and the process of downloading the file may be suspended. Or, the process of downloading the file is suspended by dragging the fish swimming in the water to the water bottom through the first operation so that the fish stops swimming in the cup.
In addition, after the terminal suspends the process of downloading the file, if the user wants to continue downloading the file, the terminal can continue downloading the file through a second operation, and optionally, the second operation is to drag the fish which is still in the water left and right. The specific terminal restarts the suspended downloading task by a second operation, such as moving the fish still left and right to enable the fish to swim again, and the file is continuously downloaded from the position of the downloading progress when the file downloading is suspended.
Optionally, the third animation effect is that the fish sinks into the water bottom, the height of the water in the cup is smaller than that of the cup, the file downloading failure is indicated to the user through the third animation effect, and in addition, the third animation effect can also indicate the process of suspending downloading the file to the user by the fish getting out of the cup. The third operation may be dragging the fish upwards from the water bottom, and when the user wants to retry to start the downloading process, dragging the fish upwards from the water bottom so that the fish returns to the swimming state, and then the restarting of the downloading process is successful.
As shown in fig. 6, after the terminal determines that the file download is completed, a fourth animation effect of the scene animation is as shown in fig. 6, the fish floats on the water surface, the height of water in the cup is equal to the height of the cup, the cup is filled with water to indicate that the terminal is in a state of completing the file download, the download progress is 100%, the speed of the fish in the water is 0, the fish is still on the water surface, and it should be noted that the fish is not displayed in the water.
In addition, after the user checks that the file is downloaded, the floating window as shown in fig. 6 is always displayed, specifically, the current floating window can be exited in a manual mode, or the terminal can automatically exit the current floating window after detecting that the scene animation with the second animation effect is displayed for a preset time.
It should be noted that the fourth operation may be to drag the fish floating on the water surface into the water, and if the file downloaded by the user is damaged and needs to be downloaded again, the file may be downloaded again by dragging the fish floating on the water surface into the water.
In addition, the user can also operate the water level in the cup, for example, the current position of the water level in the cup on the right in fig. 6, and the process of downloading the file again can be realized by pulling the water level downwards to the bottom of the cup.
Optionally, after detecting that the start file is downloaded, the terminal determines the displayed scene animation with the preset initial animation effect from the preset at least one scene animation, and then displays the scene animation with the preset initial animation effect, where the displayed scene animation with the preset initial animation effect is the scene animation selected by the user from the at least one scene animation.
For example, the scene animation preset in the terminal further comprises a picture of a small person climbing a mountain, the small person starts climbing the mountain from the foot of the mountain, the downloading progress is indicated by the ratio of the distance which the small person has passed to the whole distance, the downloading speed is indicated by the speed of the small person climbing the mountain, specifically, when the small person is in the mountain climbing state, the small person can be clicked to make the small person stand still to pause the downloading of the file, the small person is clicked again to make the small person continuously climb the mountain at the paused position to continue downloading the file, the small person is moved to the starting point from the current climbing position to download the file again, and when the small person climbs to the terminal point, the process of completing the file downloading is indicated.
In addition, other scene animations which can be used for indicating the file downloading state information can be also taken as animations, and are not described one by one, and when the terminal starts a file downloading task, the scene animation displayed on the display screen of the terminal is the scene animation selected by a user in advance. Or, the user may select several scene animations according to needs, for example, the user selects 4 scene animations, such as scene animation 1, scene animation 2, scene animation 3, and scene animation 4, which are sequentially arranged according to scene animation 1, scene animation 2, scene animation 3, and scene animation 4, and the existing terminal receives 5 file download tasks, where the files to be downloaded are file 1, file 2, file 3, file 4, and file 5, respectively, where the download order of file 1 to file 5 is file 1, file 2, file 3, file 4, and file 5, and then the terminal displays scene animation 1 when downloading file 1, scene animation 2 when downloading file 2, animation 3 when downloading file 3, scene animation 4 when downloading file 4, and scene animation 1 when downloading file 5.
Based on the same inventive concept, the embodiment of the present invention further provides a terminal for displaying file downloading status information, and as the method corresponding to the terminal of the embodiment of the present invention is the method for displaying file downloading status information of the embodiment of the present invention, the implementation of the terminal of the embodiment of the present invention may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 7, a terminal for displaying file download status information according to an embodiment of the present invention includes: the processing unit 710 is configured to instruct the display unit 720 to display a preset scene animation with an initial animation effect when detecting that file downloading is started, where the scene animation is presented in a form of a floating window, and the initial animation effect is used to instruct the terminal to be in a state of downloading a file, and the downloading progress is an initial progress and the downloading rate is an initial rate; the processing unit 710 is further configured to determine a downloading progress and a downloading rate of the file every preset time length in the file downloading process; the processing unit 710 is further configured to instruct the display unit 720 to adjust an initial animation effect of the displayed scene animation to a first animation effect according to the determined download progress and download rate, where the first animation effect is used to instruct the terminal to be in a state of downloading the file, and the download progress is the determined download progress and the download rate is the determined download rate.
Optionally, the processing unit 710 is further configured to: when the first operation is detected, the process of downloading the file is paused, and the display unit 720 is instructed to adjust the animation effect of the displayed scene animation to a second animation effect, wherein the second animation effect is used for indicating that the terminal is in the state of pausing the downloading of the file and the downloading progress is the downloading progress when pausing, and the first operation is used for indicating that the terminal pauses the process of downloading the file; when the file to be downloaded is failed to be acquired, suspending the process of downloading the file, and instructing the display unit 720 to adjust the animation effect of the displayed scene animation to a third animation effect, wherein the third animation effect is used for indicating that the terminal is in a state of file download failure and the download progress is the download progress when the file download failure occurs; after determining that the file download is completed, the indication display unit 720 adjusts the animation effect of the displayed scene animation to a fourth animation effect, where the fourth animation effect is used to indicate that the terminal is in a state of completing the file download and the download progress is 100%.
Optionally, the processing unit 710 is further configured to, after detecting the second operation, start downloading the file at a position where the downloading progress is located when the downloading of the file is suspended, and instruct the display unit 720 to adjust the second animation effect of the displayed scene animation to the first animation effect; when the third operation is detected, continuing to download the file from the position where the download progress is located when the file download fails, and instructing the display unit 720 to adjust the third animation effect of the displayed scene animation to the first animation effect; when the fourth operation is detected, the file is downloaded again, and the display unit 720 is instructed to adjust the fourth animation effect of the displayed scene animation to the first animation effect.
Optionally, the first animation effect is that the fish swims in the water, and the water is in the cup; the second animation effect is that the fish is still in the water, the height of the water in the cup is smaller than that of the cup, the first operation is to drag the fish in the water out of the cup, and the second operation is to drag the fish still in the water left and right; the third animation effect is that the fish sinks into the water bottom, the height of the water in the cup is smaller than that of the cup, and the third animation effect is that the fish is dragged upwards from the water bottom; the fourth animation effect is that the fish floats on the water surface, the height of the water in the cup is equal to that of the cup, and the fourth operation is that the fish floating on the water surface is dragged into the water; the speed of the fish swimming in the water is used for indicating the downloading speed, the height of the water in the cup is used for indicating the downloading progress, and the state of the fish swimming in the water is used for indicating that the terminal is in the file downloading state.
Optionally, the processing unit 710 is further configured to determine, after detecting that the file download is started and before instructing the display unit to display the scene animation with the preset initial animation effect, the displayed scene animation with the preset initial animation effect from at least one preset scene animation, where the displayed scene animation with the preset initial animation effect is the scene animation selected by the user from the at least one scene animation.
The division of the unit in the embodiments of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation, and in addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, may also exist alone physically, or may also be integrated in one unit by two or more units. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
When the integrated unit may be implemented in a hardware form, the physical hardware in the device corresponding to the processing unit 710 is a processor, and the physical hardware in the device corresponding to the display unit 720 is a display.
As shown in fig. 8, the hardware structure of the terminal 800 may include a processor 810, a display 820, and a memory 830. The memory 830 may be used to store a program/code preinstalled at the factory of the terminal 800, or may store a code or the like used when the processor 810 executes.
The processor 810 may be a general Central Processing Unit (CPU), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to perform related operations to implement the technical solution provided by the embodiment of the present invention.
It should be noted that although the terminal 800 shown in fig. 8 shows only the processor 810, the display 820 and the memory 830, in a specific implementation, it should be understood by those skilled in the art that the terminal 800 also contains other components necessary for normal operation. Also, it will be apparent to those skilled in the art that the terminal may also include hardware components to implement other additional functions, according to particular needs. Further, those skilled in the art will appreciate that the terminal 800 may also contain only those devices or modules necessary to implement embodiments of the present invention, and need not contain all of the devices shown in FIG. 8.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
From the above, it can be seen that: in the embodiment of the invention, when the terminal detects that the file is downloaded, the scene animation with the preset initial animation effect is displayed, and the scene animation is presented in the form of a floating window; determining the downloading progress and the downloading rate of the file every other preset time length in the file downloading process; and then, according to the determined download progress and download rate, adjusting the initial animation effect of the scene animation to be a first animation effect, wherein the initial animation effect is used for indicating that the terminal is in the state of downloading the file, the download progress is the initial progress, and the download rate is the initial rate, and the first animation effect is used for indicating that the terminal is in the state of downloading the file, the download progress is the determined download progress, and the download rate is the determined download rate. According to the technical scheme, the terminal displays the file downloading state information such as the state of the downloaded file, the downloading progress and the downloading speed through the animation effect of the scene animation, so that a user can conveniently check the file downloading state information, the display of the file downloading state information is more vivid and vivid, and the user experience is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.