Data downloading method, device, computer equipment and computer readable storage medium
By obtaining the average download rate of the terminal and selecting matching multimedia data resolution, the problem of multimedia data lagging in a low network environment is solved and the display effect is improved.
Patent Information
- Application Number
- CN202010702886.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-07-21
AI Technical Summary
When users watch video or image data, the terminal often encounters problems such as lagging and slow loading of multimedia data, which affects the display effect.
By obtaining the average download rate based on the data volume and download time of the downloaded multimedia data, using the preset mapping table to find matching target data quality parameters, determining the target download address from multiple download addresses, and downloading the corresponding target multimedia data. Ensure data clarity matches the network environment.
It alleviates the problems of multimedia data playback and slow loading, improves the terminal's multimedia data display effect, and avoids performance problems caused by default downloading of high-definition data in low network environments.
Smart Images

Figure CN111859218B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a data downloading method, device, computer equipment and computer-readable storage medium. Background Art
[0002] With the rapid development of Internet technology, it is becoming more and more common for users to browse videos and pictures through terminals in daily life.
[0003] Currently, when a user watches multimedia data such as video data and picture data, the terminal generally downloads high-definition multimedia data by default and displays it to the user.
[0004] However, during the actual viewing process of users, multimedia data often freezes and loads slowly, which seriously affects the display effect of the multimedia data on the terminal. Summary of the invention
[0005] Based on this, it is necessary to provide a data downloading method, device, computer equipment and computer-readable storage medium that can improve the display effect of multimedia data of a terminal in response to the above technical problems.
[0006] In a first aspect, an embodiment of the present application provides a data downloading method, the method comprising:
[0007] Obtaining an average download rate according to the amount of downloaded multimedia data and the download duration;
[0008] Searching for a target data quality parameter that matches the average download rate in a preset mapping table; the mapping table represents a corresponding relationship between the download rate and the data quality parameter, and the data quality parameter represents the clarity of the multimedia data;
[0009] A target download address corresponding to the target data quality parameter is determined from a plurality of download addresses, and corresponding target multimedia data is downloaded based on the target download address; the clarity of the multimedia data corresponding to each of the download addresses is different.
[0010] In one embodiment, obtaining the average download rate according to the amount of downloaded multimedia data and the download duration includes:
[0011] In the process of downloading the multimedia data, download information corresponding to each time interval is obtained according to a preset time interval; the download information includes the amount of downloaded data and the download rate of the current time interval;
[0012] Determining at least one target download information from each of the download information according to the amount of download data included in each of the download information;
[0013] The average download rate is obtained based on the download rates included in each of the target download information.
[0014] In one embodiment, in the process of downloading the multimedia data, obtaining download information corresponding to each time interval according to a preset time interval includes:
[0015] Obtaining a first downloaded data volume at a start time and a second downloaded data volume at an end time of each of the time intervals;
[0016] taking the difference between the second downloaded data amount and the first downloaded data amount as the downloaded data amount for the time interval;
[0017] The download rate corresponding to each time interval is calculated according to the amount of downloaded data in each time interval and the duration of the corresponding time interval.
[0018] In one embodiment, determining at least one target download information from each of the download information according to the amount of downloaded data included in each of the download information includes:
[0019] In the order of the acquisition time of each download information from earliest to latest, a preset data volume window is used to sequentially traverse the download data volume included in each download information;
[0020] Each time the amount of downloaded data included in the download information is traversed, it is detected whether the sum of the traversed amounts of downloaded data exceeds the data amount window;
[0021] If it exceeds, at least one download information with the earliest acquisition time in the traversed download data volume is eliminated;
[0022] The download information retained after the traversal is completed is determined as the target download information.
[0023] In one embodiment, the obtaining the average download rate based on the download rate included in each target download information includes:
[0024] An average value of the download rates included in each of the target download information is calculated to obtain the average download rate.
[0025] In one of the embodiments, the multimedia data includes video data and / or picture data; when the multimedia data includes video data, the data quality parameter includes video bit rate, and when the multimedia data includes picture data, the data quality parameter includes picture resolution.
[0026] In one embodiment, obtaining the average download rate according to the amount of downloaded multimedia data and the download duration includes:
[0027] When a preset trigger condition is met, an average download rate is obtained according to the amount of downloaded multimedia data and the download duration;
[0028] The trigger condition includes any of the following:
[0029] The video playback instruction is detected for the first time within a preset time period;
[0030] The video playback instruction for the target live broadcast room is detected for the first time within a preset time period;
[0031] Video preloading operation detected;
[0032] Image loading operation detected.
[0033] In a second aspect, an embodiment of the present application provides a data downloading device, the device comprising:
[0034] An acquisition module, used for acquiring an average download rate according to the amount of data and download duration of the downloaded multimedia data;
[0035] A search module, used to search a preset mapping table for a target data quality parameter that matches the average download rate; the mapping table represents a corresponding relationship between the download rate and the data quality parameter, and the data quality parameter represents the clarity of the multimedia data;
[0036] The download module is used to determine a target download address corresponding to the target data quality parameter from multiple download addresses, and download the corresponding target multimedia data based on the target download address; the clarity of the multimedia data corresponding to each download address is different.
[0037] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the first aspect when executing the computer program.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of the first aspect described above.
[0039] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0040] An average download rate is obtained according to the data volume and download duration of the downloaded multimedia data, and the average download rate is used to approximately characterize the quality of the current network download environment of the terminal; then, in a mapping table that characterizes the correspondence between the download rate and the data quality parameter, a target data quality parameter that matches the average download rate is searched, and the data quality parameter represents the clarity of the multimedia data; then, a target download address corresponding to the target data quality parameter is determined from multiple download addresses, and the clarity of the multimedia data corresponding to each download address is different, that is, a target download address that matches the current network download environment quality of the terminal is determined from multiple download addresses, and the corresponding target multimedia data is downloaded based on the target download address, that is, the target multimedia data with a clarity that matches the current network download environment quality of the terminal is obtained, thereby realizing the selection of the clarity of the multimedia data to be downloaded according to the average download rate of the downloaded multimedia data.
[0041] For example, when the average download rate is low, that is, the quality of the current network download environment of the terminal is poor, by selecting the target data quality parameter that matches the current average download rate and determining the target download address that matches it, the target multimedia data with lower clarity can be downloaded; and when the average download rate is high, that is, the quality of the current network download environment of the terminal is good, similarly, the target multimedia data with higher clarity can be downloaded; this avoids the problem in the traditional technology that the terminal defaults to downloading high-definition multimedia data to display to the user, and still downloading high-definition multimedia data when the terminal network download environment quality is poor, which easily leads to multimedia data playback jamming and slow loading. The embodiment of the present application can alleviate the situation of multimedia data playback jamming and slow loading by selecting a target download address that matches it according to different average download rates to download target multimedia data of corresponding clarity, thereby improving the display effect of the terminal's multimedia data. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 An application environment diagram of a data downloading method in an embodiment;
[0043] Figure 2 A schematic diagram of a flow chart of a data downloading method in an embodiment;
[0044] Figure 3 Schematic diagram of detailed steps of step S100 in one embodiment;
[0045] Figure 4 Schematic diagram of detailed steps of step S101 in one embodiment;
[0046] Figure 5 Schematic diagram of detailed steps of step S102 in one embodiment;
[0047] Figure 6 A schematic diagram of a terminal interface corresponding to a live broadcast room switching operation in an embodiment;
[0048] Figure 7 is a structural block diagram of a data downloading device in one embodiment;
[0049] Figure 8 is a structural block diagram of a data downloading device in one embodiment;
[0050] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] The data download method provided by this application can be applied to Figure 1 In the implementation environment shown. Among them, the terminal 102 communicates with the server 104 through the network. Among them, the terminal 102 can be a personal computer, a laptop computer, a media player, a smart TV, a smart phone, a tablet computer and a portable wearable device, etc., and the embodiment of the present application does not specifically limit the type of the terminal 102. The server 104 can be a server or a server cluster composed of multiple servers. The server 104 can be a tower server, a rack server, a blade server, a high-density server, a single-channel server, a dual-channel server or a multi-channel server, etc. The embodiment of the present application does not specifically limit the type of the server 104.
[0053] In one embodiment, Figure 2 As shown, a data download method is provided, which is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:
[0054] Step S100: The terminal obtains an average download rate according to the data volume and download duration of the downloaded multimedia data.
[0055] In an embodiment of the present application, multimedia data may include video data and / or picture data. The video data may be, for example, drama videos, live broadcast videos, short videos, etc., and the picture data may be pictures in various formats.
[0056] In a possible implementation of step S100, after the multimedia data is downloaded, the terminal can obtain the total data volume of the downloaded multimedia data and the total download time of the multimedia data, and then divide the total data volume by the total download time to obtain the average download rate.
[0057] In another possible implementation of step S100, the terminal can also obtain a dynamic average download rate during the download process of multimedia data. For example, the terminal can set a time window, the length of the time window is fixed, and the length of the time window can be set by itself during implementation; the terminal can move the time window regularly during the download process of multimedia data, such as once per second, and each time the time window is moved, the terminal calculates the sum of the amount of downloaded data in the current time window, and then divides the sum of the amount of downloaded data in the current time window by the length of the time window to obtain the dynamic average download rate in the current time window.
[0058] During the downloading process of multimedia data, the dynamic average downloading rate corresponding to the last time window calculated by the terminal is the average downloading rate obtained by the terminal in step S100.
[0059] In another possible implementation of step S100, the terminal can also obtain the dynamic average download rate by setting a data volume window. The data volume corresponding to the data volume window is fixed, for example, the data volume window is set to be fixed to 900K. During the download process of multimedia data, the terminal can calculate the download data volume and download rate of each time interval according to the preset time interval. Each time the terminal calculates the download data volume and download rate of the current time interval, it will slide the data volume window once, and the data volume window after sliding includes the latest data calculated by the terminal; the terminal detects whether the sum of the download data volume in the data volume window after sliding exceeds the data volume corresponding to the data volume window (for example, 900K). If it exceeds, the terminal removes the download data volume with the longest time in the data volume window to keep the sum of the download data volume in the data volume window not exceeding 900K; the terminal calculates the average value of each download rate in the data volume window after removal, and obtains the dynamic average download rate corresponding to the data volume window.
[0060] During the downloading process of multimedia data, the dynamic average downloading rate corresponding to the last data volume window calculated by the terminal is the average downloading rate obtained by the terminal in step S100.
[0061] This embodiment does not impose any specific restrictions on the manner in which the terminal obtains the average download rate based on the amount of downloaded multimedia data and the download duration.
[0062] In the embodiment of the present application, the downloaded multimedia data may be the multimedia data downloaded by the terminal most recently. The terminal obtains an average download rate based on the data volume and download duration of the downloaded multimedia data. The average download rate is the average of the download rates of the downloaded multimedia data during the download process, and can be used to approximately characterize the current network download environment quality of the terminal. In a possible implementation, the time difference between the download end time of the downloaded multimedia data and the current time may be less than a preset threshold. The smaller the time difference, the closer the average download rate obtained by the terminal is to the actual current network download environment quality of the terminal.
[0063] Step S200: The terminal searches a preset mapping table for a target data quality parameter that matches the average download rate.
[0064] In the embodiment of the present application, a mapping table is preset in the terminal, and the mapping table represents the corresponding relationship between the download rate and the data quality parameter, wherein the data quality parameter represents the clarity of the multimedia data. As an implementation mode, when the multimedia data includes video data, the data quality parameter includes the video bit rate, and when the multimedia data includes picture data, the data quality parameter includes the picture resolution.
[0065] In one possible implementation, the mapping table may include the correspondence between each download rate interval and the data quality parameter. For example, taking the multimedia data as video data and the data quality parameter as the video bit rate, the mapping table may include the video bit rate corresponding to the download rate interval of 100k / s-500k / s as 500kbps, the video bit rate corresponding to the download rate interval of 500k / s-1000k / s as 1000kbps, and the video bit rate corresponding to the download rate interval greater than 1000k / s as 2000kbps.
[0066] The terminal searches for the target data quality parameters that match the average download rate in a preset mapping table. It can be that the terminal first searches for the download rate interval that matches the average download rate in the mapping table, and then searches for the video bit rate corresponding to the download rate interval in the mapping table based on the determined download rate interval to obtain the target data quality parameters.
[0067] It should be noted that, in other embodiments, the mapping table may represent the correspondence between the download rate and the data quality parameter in the form of different download rates corresponding to different data quality parameters, which is not specifically limited here.
[0068] Step S300: The terminal determines a target download address corresponding to a target data quality parameter from a plurality of download addresses, and downloads the corresponding target multimedia data based on the target download address.
[0069] In an embodiment of the present application, the definition of the multimedia data corresponding to each download address is different. For example, taking the multimedia data as video data, video data A corresponds to four download addresses, which are respectively used to download video data A with a definition of "save flow", video data A with a definition of "high definition", video data A with a definition of "ultra-high definition", and video data A with a definition of "blue-ray".
[0070] In the embodiment of the present application, multiple download addresses can be requested by the terminal to the server after detecting that the user enters the multimedia software, and then sent by the server to the terminal, such as live broadcast software, video playback software, etc.
[0071] As an implementation method, for each uploaded multimedia data, such as video data, the server will transcode it into a multi-bitrate video and store it at different download addresses. If the server receives an address of a terminal requesting multimedia data, it will send multiple download addresses corresponding to the multimedia data and a mapping comparison table including the corresponding relationship between each download address and each data quality parameter.
[0072] The terminal can search for the download address corresponding to the target data quality parameter according to the mapping table, and obtain the target download address. After determining the target download address, the terminal downloads the corresponding target multimedia data from the target download address, and thus the obtained target multimedia data is multimedia data with a definition matching the average download rate.
[0073] For example, the terminal obtains the average download rate based on the data volume and download duration of the downloaded multimedia data. If the average download rate is small, it indicates that the current network download environment quality of the terminal is poor, and the terminal chooses to download the target multimedia data with lower clarity. If the average download rate is large, it indicates that the current network download environment quality of the terminal is good, and the terminal chooses to download the target multimedia data with higher clarity.
[0074] This embodiment obtains an average download rate according to the data volume and download duration of the downloaded multimedia data, and uses the average download rate to characterize the current network download environment quality of the terminal; then, in a mapping table that characterizes the correspondence between the download rate and the data quality parameter, a target data quality parameter that matches the average download rate is searched, and the data quality parameter represents the clarity of the multimedia data; then, a target download address corresponding to the target data quality parameter is determined from multiple download addresses, and the clarity of the multimedia data corresponding to each download address is different, that is, a target download address that matches the current network download environment quality of the terminal is determined from multiple download addresses, and the corresponding target multimedia data is downloaded based on the target download address, that is, the target multimedia data with a clarity that matches the current network download environment quality of the terminal is obtained, thereby realizing the selection of the clarity of the multimedia data to be downloaded according to the average download rate of the downloaded multimedia data.
[0075] For example, when the average download rate is low, that is, the current network download environment quality of the terminal is poor, by selecting the target data quality parameter that matches the current average download rate and determining the target download address that matches it, target multimedia data with lower clarity can be downloaded; and when the average download rate is high, that is, the current network download environment quality of the terminal is good, similarly, target multimedia data with higher clarity can be downloaded; this avoids the problem in traditional technology that the terminal defaults to downloading high-definition multimedia data to display to the user, and downloading high-definition multimedia data when the terminal network download environment quality is poor, which can easily lead to multimedia data playback jams and slow loading.
[0076] The embodiment of the present application can alleviate the situation of multimedia data playback jamming and slow loading by selecting a target download address that matches different average download rates to download target multimedia data of corresponding clarity, thereby improving the display effect of the multimedia data on the terminal.
[0077] In one embodiment, based on the above Figure 2 The embodiment shown in the figure is related to the process of how the terminal obtains the average download rate according to the amount of downloaded multimedia data and the download duration. Figure 3 As shown, in this embodiment, step S100 includes step S101, step S102 and step S103:
[0078] Step S101 : During the process of downloading multimedia data, the terminal obtains download information corresponding to each time interval according to preset time intervals.
[0079] In an embodiment of the present application, the time interval may be fixed or variable. For example, the time interval may be fixed at 1s, or the time interval may be set to 5s, 2s, 1s, 3s, 5s, etc., without any specific limitation.
[0080] In a possible implementation of step S101, see Figure 4 , the terminal can execute Figure 4 Steps S1011, S1012 and S1013 shown implement the process of step S101:
[0081] Step S1011: The terminal obtains a first amount of downloaded data at a start time and a second amount of downloaded data at an end time of each time interval.
[0082] For each time interval, the terminal can detect the first downloaded data volume at the start time of the time interval and the second downloaded data volume at the end time. As an implementation method, since each time interval is continuous during the multimedia data download process, the terminal can collect the downloaded data volume once at the end time of each time interval.
[0083] Step S1012: The terminal uses the difference between the second download data amount and the first download data amount as the download data amount for the time interval.
[0084] For each time interval, the terminal subtracts the first downloaded data amount at the start time of the time interval from the second downloaded data amount at the end time of the time interval, where the first downloaded data amount is the downloaded data amount at the end time of the previous time interval, thereby obtaining the downloaded data amount corresponding to the time interval.
[0085] Step S1013: The terminal calculates the download rate corresponding to each time interval according to the amount of downloaded data in each time interval and the duration of the corresponding time interval.
[0086] The terminal divides the amount of downloaded data in the time interval by the duration of the time interval to obtain the download rate corresponding to the time interval. For example, if the amount of downloaded data corresponding to a time interval is 500k and the duration of the time interval is 5s, then the download rate corresponding to the time interval is 100k / s.
[0087] Therefore, during the process of downloading multimedia data, the terminal obtains download information of the current time interval at the end of each time interval.
[0088] Step S102: the terminal determines at least one target download information from each download information according to the download data amount included in each download information.
[0089] It can be understood that, in the download process of the downloaded multimedia data, the closer the download rate is to the current moment, the closer it is to the actual download rate at the current moment. The terminal determines the download information closest to the current moment as the target download information in the download information corresponding to each time interval, or determines multiple consecutive download information closest to the current moment as multiple target download information, thereby facilitating the acquisition of an average download rate closer to the actual network download environment quality of the terminal based on the at least one target download information.
[0090] In one possible implementation, see Figure 5 , the terminal can execute Figure 5 Steps S1021, S1022, S1023 and S1024 shown implement the process of step S102:
[0091] Step S1021, the terminal sequentially traverses the download data amounts included in each download information in the order of the acquisition time of each download information from earliest to latest using a preset data amount window.
[0092] The data volume corresponding to the data volume window is fixed. For example, the data volume window is set to be fixed at 900K. The terminal slides the data volume window once each time it calculates the download information of a time interval. The data volume window after sliding includes the download information latest calculated by the terminal.
[0093] For example, during the download process of multimedia data, the download information corresponding to the first five time intervals is (500k, 100k / s), (400k, 200k / s), (300k, 300k / s), (600k, 200k / s), and (500k, 100k / s). After the download information (500k, 100k / s) of the first time interval is calculated, the terminal slides the data volume window once, and the data volume window after sliding includes the download information (500k, 100k / s). After the download information (400k, 200k / s) of the second time interval is calculated, the terminal slides the data volume window again, and the data volume window after sliding includes the download information (500k, 100k / s) and (400k, 200k / s).
[0094] Step S1022: Each time the terminal traverses the download data amount included in a download information, it detects whether the sum of the traversed download data amounts exceeds the data amount window.
[0095] Each time the terminal slides the data volume window, it detects whether the sum of the traversed download data volumes exceeds the data volume window, that is, it detects whether the sum of the download data volumes of each download information included in the data volume window exceeds the data volume corresponding to the data volume window, for example, it detects whether the sum of the download data volumes of each download information included in the data volume window exceeds 900k.
[0096] For example, after the download information (400k, 200k / s) of the second time interval is calculated, the terminal slides the data volume window again. The data volume window after sliding includes the download information (500k, 100k / s) and (400k, 200k / s), and the sum of the downloaded data volume is 900k, which does not exceed the data volume window. However, after the download information (300k, 300k / s) of the third time interval is calculated, the terminal slides the data volume window again, and the sum of the downloaded data volume in the sliding data volume window is 500k+400k+300k=1200k, which exceeds the set data volume window of 900k.
[0097] Step S1023: If exceeded, the terminal removes at least one download information with the earliest acquisition time from the traversed download data volume.
[0098] If it is detected that the sum of the traversed download data exceeds the data volume window, the terminal will remove one or more download information that exceeds the data volume window in order of the download information acquisition time from early to late, so as to keep the sum of the download data volume of each download information in the data volume window within 900k.
[0099] Step S1024: the terminal determines the download information retained after the traversal is completed as the target download information.
[0100] The terminal determines the download information retained after the traversal is completed as the target download information. For example, if the last download information is retained after the traversal is completed, the last download information is determined as the target download information, or if the last two download information are retained after the traversal is completed, the terminal determines the last two download information as two target download information.
[0101] Step S103: the terminal obtains an average download rate based on the download rates included in each target download information.
[0102] In a possible implementation, if the data volume window includes multiple download information after the traversal is completed, that is, multiple target download information is determined, the terminal can calculate the average value of the download rates included in each target download information to obtain the average download rate.
[0103] In other embodiments of the present application, if the data volume window includes a download information after the traversal is completed, that is, the terminal determines a target download information, then the download rate included in the target download information is the average download rate obtained by the terminal, and no specific limitation is made here.
[0104] In the embodiment of the present application, the data volume window terminal can be implemented by creating an array, thereby collecting new download information and discarding old download information that exceeds the data volume window.
[0105] The embodiment of the present application uses a preset data volume window to dynamically obtain the average download rate in a data volume window during the download process of the downloaded multimedia data, and determines the average download rate in the last data volume window as the average download rate. Since the download time of the downloaded data volume corresponding to the last data volume window is closest to the current time, the average download rate obtained based on the last data volume window can more approximately characterize the current network download environment quality of the terminal; and obtaining the average download rate based on the download rate included in the target download information in the last data volume window is beneficial to avoiding errors caused by sudden changes in a single download rate, thereby improving the accuracy of the average download rate, and facilitating downloading of target multimedia data that is more matched with the current network download environment quality of the terminal based on the average download rate.
[0106] In one embodiment, in the above Figure 2 Based on the illustrated embodiment, step S100 may include step A:
[0107] Step A: when a preset trigger condition is met, an average download rate is obtained according to the amount of downloaded multimedia data and the download duration;
[0108] The triggering condition includes any of the following:
[0109] The terminal detects a video playback instruction for the first time within a preset time period;
[0110] The terminal detects a video playback instruction for the target live broadcast room for the first time within a preset time period;
[0111] The terminal detects a video preloading operation;
[0112] The terminal detects an image loading operation.
[0113] In the embodiment of the present application, different trigger conditions may correspond to different application scenarios. The implementation process of the data download method of the embodiment of the present application will be described below in combination with some application scenarios of the data download method of the embodiment of the present application.
[0114] In one embodiment, taking the video playback scenario as an example, in traditional video playback, when the user does not select the clarity, the terminal will default to downloading and playing high-definition video data. However, when the terminal network download environment quality is poor, it often leads to slow downloads and video freezes, which seriously affects the user's viewing experience and is not conducive to improving user stickiness.
[0115] In this embodiment, when the terminal detects a video playback instruction for the first time within a preset time period, the average download rate is obtained based on the amount of video data downloaded and the download duration. The video playback instruction may be input into the terminal by the user. The preset time period may be, for example, one day or several hours, etc., and no specific restrictions are made here.
[0116] After the terminal detects the video play instruction for the first time within the preset time period, it needs to play the video data specified by the user, and the terminal downloads the video data using the default definition, and during the downloading process of the video data, obtains the average download rate according to the data volume and download duration of the downloaded video data. The specific implementation method of the terminal obtaining the average download rate according to the data volume and download duration of the downloaded video data is shown in the above embodiment, which will not be repeated here.
[0117] The terminal searches a preset mapping table for a target video bit rate that matches the average download rate according to the average download rate. The target video bit rate is used as the video bit rate used when the terminal downloads the second video data.
[0118] When the terminal is downloading the second video data, for example, the user inputs the video playback command again, or the terminal detects that the current video data has been played and needs to automatically play the next video data, the terminal determines the target download address corresponding to the target video bit rate from the multiple download addresses corresponding to the second video data, and downloads the target video data (i.e., the second video data) with the target video bit rate from the target download address.
[0119] Furthermore, when the terminal is downloading the second video data, the terminal continues to obtain the average download rate according to the data volume and download duration of the video data downloaded during the download of the second video data, and then searches the mapping table for the corresponding target video bit rate, thereby determining the download address of the third video data with the target video bit rate, and so on. Thus, the video bit rate, i.e., the definition, of the next video data is selected according to the average download rate of the previous video data, thereby alleviating the situation of video data playback jamming and slow loading, thereby improving the display effect of the video data of the terminal.
[0120] In a possible implementation, the interval between the download end time and the download start time of adjacent video data is less than a preset threshold value. For example, the interval between the download end time of the first video data and the download start time of the second video data is less than the preset threshold value, and the interval between the download end time of the second video data and the download start time of the third video data is less than the preset threshold value, etc. In this way, the situation that the time interval between adjacent video data is too large and the average download rate of the previous video data may be greatly different from the actual network download environment quality of the terminal when the next adjacent video data is downloaded is avoided.
[0121] In one embodiment, taking the live broadcast scenario as an example, in traditional live broadcast, the terminal downloads and plays high-definition live video data by default. In an environment where the terminal network download environment quality is poor, it often leads to slow downloads and live video freezes, which seriously affects the user's viewing experience and is not conducive to improving user stickiness.
[0122] In this embodiment, when the terminal detects a video playback instruction for the target live room for the first time within a preset time period, the average download rate is obtained based on the amount of data and download duration of the downloaded live video data during the download process of the live video data. The video playback instruction may be input into the terminal by the user, and the preset time period may be, for example, a few hours, etc., which is not specifically limited here.
[0123] After the terminal detects the video play instruction for the first time within the preset time period, it needs to play the live video data specified by the user, and the terminal downloads the live video data using the default definition, and during the downloading process of the live video data, obtains the average download rate according to the data volume and download duration of the downloaded live video data. The specific implementation method of the terminal obtaining the average download rate according to the data volume and download duration of the downloaded live video data is shown in the above embodiment, which will not be repeated here.
[0124] The terminal searches for a target video bit rate that matches the average download rate in a preset mapping table according to the average download rate. The target video bit rate is used as the video bit rate corresponding to the second live video data downloaded by the terminal.
[0125] See also Figure 6 , Figure 6 The following is a schematic diagram of the interface corresponding to the live room switching operation in one embodiment. When the terminal detects the user's switching operation to switch the live room (for example, the user slides up the interface), the terminal needs to download the second live video data and display it in the interface after sliding. The terminal determines the target download address corresponding to the target video bit rate from the multiple download addresses corresponding to the second live video data, and downloads the target live video data (i.e., the second live video data) with the target video bit rate from the target download address.
[0126] Furthermore, in the process of downloading the second live video data by the terminal, the terminal continues to obtain the average download rate according to the data volume and download duration of the second live video data that has been downloaded, and then searches the corresponding target video bit rate in the mapping table to determine the download address of the third live video data with the target video bit rate, and so on. Thus, the video bit rate, i.e., the clarity, of the next live video data is selected according to the average download rate of the previous live video data, thereby alleviating the situation of the playback jamming and slow loading of the live video data, thereby improving the display effect of the live video data of the terminal. In addition, in this embodiment, when the user is watching the current live video data, the clarity of the live video data will not change, but the next live video data will change according to the average download rate, which can avoid the problem of poor user viewing experience caused by constantly switching the clarity, thereby improving the user experience and helping to increase the daily active volume of users.
[0127] In one embodiment, taking a video preloading scenario as an example, in traditional video preloading, the terminal uses the same video bit rate to preload each preloaded video data, which often leads to a problem of slow preloading in an environment where the terminal network download environment quality is poor.
[0128] In this embodiment, the terminal detects a video preloading operation, and during the preloading process, the average download rate is obtained according to the data volume and download duration of the downloaded video data. During the first video preloading process, the terminal can load the video data using the default definition, and during the video data loading process, the average download rate is obtained according to the data volume and download duration of the downloaded video data. The specific implementation method of the terminal obtaining the average download rate according to the data volume and download duration of the downloaded video data is shown in the above embodiment, and will not be repeated here.
[0129] The terminal searches for a target video bit rate that matches the average download rate in a preset mapping table according to the average download rate, and the target video bit rate is used as the video bit rate corresponding to the second video data loaded by the terminal. When the terminal needs to load the second video data, for example, the terminal detects that the previous video data has been loaded, and then determines the target download address corresponding to the target video bit rate from multiple download addresses corresponding to the second video data, and downloads the target video data (i.e., the second video data) with the target video bit rate from the target download address.
[0130] Furthermore, when the terminal is loading the second video data, the terminal continues to obtain the average download rate according to the data volume and download duration of the second video data that has been downloaded, and then searches the mapping table for the corresponding target video bit rate, thereby determining the download address of the third video data with the target video bit rate, and so on. Thus, the video bit rate, i.e., the definition, of the next video data to be loaded is selected according to the average download rate of the last loaded video data, thereby alleviating the problem of slow terminal preloading and improving the speed of terminal video preloading.
[0131] In one embodiment, taking the image loading scenario as an example, in traditional image loading, the terminal uses the same image resolution to download each image, which may easily lead to slow image downloading and poor user experience in viewing images in an environment where the terminal network download environment quality is poor.
[0132] In this embodiment, when the terminal detects a picture loading operation, the average download rate is obtained according to the data volume and download duration of the downloaded picture data during the picture download process. When the terminal first downloads the picture data, the picture data can be downloaded using the default definition (i.e., picture resolution), and the average download rate is obtained according to the data volume and download duration of the downloaded picture data during the picture data download process. The specific manner in which the terminal obtains the average download rate according to the data volume and download duration of the downloaded picture data is similar to the manner in which the average download rate of the video data is obtained in the above-mentioned embodiment, and will not be described in detail here.
[0133] The terminal searches for a target picture resolution that matches the average download rate in a preset mapping table according to the average download rate, and the target picture resolution is used as the picture resolution used by the terminal to download the second picture data. When the terminal needs to load the second picture data, for example, the terminal detects a picture loading operation again, the terminal determines a target download address corresponding to the target picture resolution from multiple download addresses corresponding to the second picture data, and downloads the target picture data (i.e., the second picture data) having the target picture resolution from the target download address.
[0134] As an implementation method, the server will transcode each uploaded image data into images of different resolutions and store them at different download addresses. If the terminal requests the address of an image data, the server will send multiple download addresses corresponding to the image data, and send a mapping comparison table including the corresponding relationship between each download address and each image resolution, so that the terminal can find the corresponding target download address according to the target image resolution.
[0135] Furthermore, when the terminal is loading the second picture data, the terminal continues to obtain the average download rate based on the data volume and download duration of the second picture data that has been downloaded, and then searches the mapping table for the corresponding target picture resolution, thereby determining the download address for downloading the third picture data with the target picture resolution, and so on. This enables the image resolution, i.e., clarity, of the next picture data to be loaded to be selected based on the average download rate of the last downloaded picture data, thereby alleviating the problem of slow loading of pictures on the terminal, thereby improving the speed of picture loading, improving user experience, and facilitating increasing the daily activeness of users.
[0136] It should be understood that although Figure 2-5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-5 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0137] In one embodiment, Figure 7 As shown, a data downloading device is provided, comprising:
[0138] An acquisition module 10 is used to acquire an average download rate according to the amount of downloaded multimedia data and the download duration;
[0139] A search module 20, configured to search a preset mapping table for a target data quality parameter that matches the average download rate; the mapping table represents a corresponding relationship between the download rate and the data quality parameter, and the data quality parameter represents the clarity of the multimedia data;
[0140] The download module 30 is used to determine a target download address corresponding to the target data quality parameter from a plurality of download addresses, and download the corresponding target multimedia data based on the target download address; the clarity of the multimedia data corresponding to each of the download addresses is different.
[0141] In one embodiment, in the above Figure 7 Based on the embodiment shown, see Figure 8 , Figure 8 A block diagram of a data downloading device provided in another embodiment. Figure 8 As shown, the acquisition module 10 includes:
[0142] The first acquisition unit 101 is used to acquire download information corresponding to each time interval according to a preset time interval during the process of downloading the multimedia data, wherein the download information includes a download data volume and a download rate of a current time interval;
[0143] The determining unit 102 is used to determine at least one target download information from each of the download information according to the amount of download data included in each of the download information;
[0144] The second acquisition unit 103 is configured to acquire the average download rate based on the download rates included in each of the target download information.
[0145] In one embodiment, in the above Figure 8 Based on the shown embodiment, the first acquisition unit 101 is specifically used to obtain a first amount of downloaded data at the start time of each time interval and a second amount of downloaded data at the end time; taking the difference between the second amount of downloaded data and the first amount of downloaded data as the amount of downloaded data for the time interval; and calculating the download rate corresponding to each time interval based on the amount of downloaded data for each time interval and the length of the corresponding time interval.
[0146] In one embodiment, in the above Figure 8 On the basis of the illustrated embodiment, the determination unit 102 is specifically used to traverse the download data amounts included in each download information in sequence according to the acquisition time of each download information from earliest to latest, using a preset data amount window; each time the download data amount included in one download information is traversed, it is detected whether the sum of the traversed download data amounts exceeds the data amount window; if exceeded, at least one download information with the earliest acquisition time in the traversed download data amounts is eliminated; and the download information retained after the traversal is completed is determined as the target download information.
[0147] In one embodiment, in the above Figure 8 Based on the illustrated embodiment, the second acquisition unit 103 is specifically configured to calculate the average value of the download rates included in each of the target download information to obtain the average download rate.
[0148] In one embodiment, in the above Figure 7 On the basis of the illustrated embodiment, the multimedia data includes video data and / or picture data; when the multimedia data includes video data, the data quality parameter includes video bit rate, and when the multimedia data includes picture data, the data quality parameter includes picture resolution.
[0149] In one embodiment, in the above Figure 7On the basis of the illustrated embodiment, the acquisition module 10 is specifically used to acquire the average download rate according to the data volume and download duration of the downloaded multimedia data when a preset trigger condition is met;
[0150] The trigger condition includes any of the following:
[0151] The video playback instruction is detected for the first time within a preset time period;
[0152] The video playback instruction for the target live broadcast room is detected for the first time within a preset time period;
[0153] Video preloading operation detected;
[0154] Image loading operation detected.
[0155] The specific definition of the data download device can be found in the definition of the data download method above, which will not be repeated here. Each module in the above data download device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0156] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data download method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0157] Those skilled in the art will understand that Fig. 9The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0158] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0159] Obtaining an average download rate according to the amount of downloaded multimedia data and the download duration;
[0160] Searching for a target data quality parameter that matches the average download rate in a preset mapping table; the mapping table represents a corresponding relationship between the download rate and the data quality parameter, and the data quality parameter represents the clarity of the multimedia data;
[0161] A target download address corresponding to the target data quality parameter is determined from a plurality of download addresses, and corresponding target multimedia data is downloaded based on the target download address; the clarity of the multimedia data corresponding to each of the download addresses is different.
[0162] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0163] In the process of downloading the multimedia data, download information corresponding to each time interval is obtained according to a preset time interval, wherein the download information includes a download data volume and a download rate in a current time interval;
[0164] Determining at least one target download information from each of the download information according to the amount of download data included in each of the download information;
[0165] The average download rate is obtained based on the download rates included in each of the target download information.
[0166] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0167] Obtaining a first downloaded data volume at a start time and a second downloaded data volume at an end time of each of the time intervals;
[0168] taking the difference between the second downloaded data amount and the first downloaded data amount as the downloaded data amount for the time interval;
[0169] The download rate corresponding to each time interval is calculated according to the amount of downloaded data in each time interval and the duration of the corresponding time interval.
[0170] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0171] In the order of the acquisition time of each download information from earliest to latest, a preset data volume window is used to sequentially traverse the download data volume included in each download information;
[0172] Each time the amount of downloaded data included in the download information is traversed, it is detected whether the sum of the traversed amounts of downloaded data exceeds the data amount window;
[0173] If it exceeds, at least one download information with the earliest acquisition time in the traversed download data volume is eliminated;
[0174] The download information retained after the traversal is completed is determined as the target download information.
[0175] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0176] An average value of the download rates included in each of the target download information is calculated to obtain the average download rate.
[0177] In one embodiment, the multimedia data includes video data and / or picture data; when the multimedia data includes video data, the data quality parameter includes video bit rate, and when the multimedia data includes picture data, the data quality parameter includes picture resolution.
[0178] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0179] When a preset trigger condition is met, an average download rate is obtained according to the amount of downloaded multimedia data and the download duration;
[0180] The trigger condition includes any of the following:
[0181] The video playback instruction is detected for the first time within a preset time period;
[0182] The video playback instruction for the target live broadcast room is detected for the first time within a preset time period;
[0183] Video preloading operation detected;
[0184] Image loading operation detected.
[0185] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0186] Obtaining an average download rate according to the amount of downloaded multimedia data and the download duration;
[0187] Searching for a target data quality parameter that matches the average download rate in a preset mapping table; the mapping table represents a corresponding relationship between the download rate and the data quality parameter, and the data quality parameter represents the clarity of the multimedia data;
[0188] A target download address corresponding to the target data quality parameter is determined from a plurality of download addresses, and corresponding target multimedia data is downloaded based on the target download address; the clarity of the multimedia data corresponding to each of the download addresses is different.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0190] In the process of downloading the multimedia data, download information corresponding to each time interval is obtained according to a preset time interval, wherein the download information includes a download data volume and a download rate in a current time interval;
[0191] Determining at least one target download information from each of the download information according to the amount of download data included in each of the download information;
[0192] The average download rate is obtained based on the download rates included in each of the target download information.
[0193] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0194] Obtaining a first downloaded data volume at a start time and a second downloaded data volume at an end time of each of the time intervals;
[0195] taking the difference between the second downloaded data amount and the first downloaded data amount as the downloaded data amount for the time interval;
[0196] The download rate corresponding to each time interval is calculated according to the amount of downloaded data in each time interval and the duration of the corresponding time interval.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] In the order of the acquisition time of each download information from earliest to latest, a preset data volume window is used to sequentially traverse the download data volume included in each download information;
[0199] Each time the amount of downloaded data included in the download information is traversed, it is detected whether the sum of the traversed amounts of downloaded data exceeds the data amount window;
[0200] If it exceeds, at least one download information with the earliest acquisition time in the traversed download data volume is eliminated;
[0201] The download information retained after the traversal is completed is determined as the target download information.
[0202] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0203] An average value of the download rates included in each of the target download information is calculated to obtain the average download rate.
[0204] In one embodiment, the multimedia data includes video data and / or picture data; when the multimedia data includes video data, the data quality parameter includes video bit rate, and when the multimedia data includes picture data, the data quality parameter includes picture resolution.
[0205] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0206] When a preset trigger condition is met, an average download rate is obtained according to the amount of downloaded multimedia data and the download duration;
[0207] The trigger condition includes any of the following:
[0208] The video playback instruction is detected for the first time within a preset time period;
[0209] The video playback instruction for the target live broadcast room is detected for the first time within a preset time period;
[0210] Video preloading operation detected;
[0211] Image loading operation detected.
[0212] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0213] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0214] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A data downloading method, characterized in that: The method comprises: Obtaining an average download rate according to the amount of downloaded multimedia data and the download duration; Searching for a target data quality parameter that matches the average download rate in a preset mapping table; the mapping table represents a corresponding relationship between the download rate and the data quality parameter, and the data quality parameter represents the clarity of the multimedia data; Determining a target download address corresponding to the target data quality parameter from a plurality of download addresses, and downloading the corresponding target multimedia data based on the target download address; the clarity of the multimedia data corresponding to each of the download addresses is different; The obtaining of the average download rate according to the amount of downloaded multimedia data and the download duration includes: In the process of downloading the multimedia data, download information corresponding to each time interval is obtained according to a preset time interval; the download information includes the amount of downloaded data and the download rate of the current time interval; Determining at least one target download information from each of the download information according to the amount of download data included in each of the download information; Acquire the average download rate based on the download rate included in each target download information; The step of determining at least one target download information from each of the download information according to the amount of download data included in each of the download information comprises: In the order of the acquisition time of each download information from earliest to latest, a preset data volume window is used to sequentially traverse the download data volume included in each download information; Each time the amount of downloaded data included in the download information is traversed, it is detected whether the sum of the traversed amounts of downloaded data exceeds the data amount window; If it exceeds, at least one download information with the earliest acquisition time in the traversed download data volume is eliminated; The download information retained after the traversal is completed is determined as the target download information.
2. The method according to claim 1, characterized in that The step of obtaining download information corresponding to each time interval according to preset time intervals during the process of downloading the multimedia data includes: Obtaining a first downloaded data volume at a start time and a second downloaded data volume at an end time of each of the time intervals; taking the difference between the second downloaded data amount and the first downloaded data amount as the downloaded data amount for the time interval; The download rate corresponding to each time interval is calculated according to the amount of downloaded data in each time interval and the duration of the corresponding time interval.
3. The method according to claim 1, characterized in that The obtaining the average download rate based on the download rates included in each of the target download information comprises: An average value of the download rates included in each of the target download information is calculated to obtain the average download rate.
4. The method according to claim 1, characterized in that: The multimedia data includes video data and / or picture data; when the multimedia data includes video data, the data quality parameter includes video bit rate; when the multimedia data includes picture data, the data quality parameter includes picture resolution.
5. The method according to claim 1, characterized in that The obtaining of the average download rate according to the amount of downloaded multimedia data and the download duration includes: When a preset trigger condition is met, an average download rate is obtained according to the amount of downloaded multimedia data and the download duration; The trigger condition includes any of the following: The video playback instruction is detected for the first time within a preset time period; The video playback instruction for the target live broadcast room is detected for the first time within a preset time period; Video preloading operation detected; Image loading operation detected.
6. A data downloading device, characterized in that: The device comprises: An acquisition module, used for acquiring an average download rate according to the amount of data and download duration of the downloaded multimedia data; A search module, used to search a preset mapping table for a target data quality parameter that matches the average download rate; the mapping table represents a corresponding relationship between the download rate and the data quality parameter, and the data quality parameter represents the clarity of the multimedia data; A download module, used to determine a target download address corresponding to the target data quality parameter from a plurality of download addresses, and download the corresponding target multimedia data based on the target download address; the clarity of the multimedia data corresponding to each of the download addresses is different; The acquisition module comprises: A first acquisition unit, configured to acquire download information corresponding to each time interval according to a preset time interval during the process of downloading the multimedia data; the download information includes a download data volume and a download rate in a current time interval; a determination unit, configured to determine at least one target download information from each of the download information according to the amount of downloaded data included in each of the download information, wherein the target download information is a piece of download information or a plurality of continuous download information whose distance from the moment corresponding to each of the time intervals to the current moment meets a preset time distance; A second acquisition unit, configured to acquire the average download rate based on the download rate included in each target download information; The determination unit is specifically used to traverse the download data volume included in each download information in sequence according to the acquisition time of each download information from early to late, using a preset data volume window; each time the download data volume included in a download information is traversed, it is detected whether the sum of the traversed download data volumes exceeds the data volume window; if exceeded, at least one download information with the earliest acquisition time in the traversed download data volumes is eliminated; and the download information retained after the traversal is completed is determined as the target download information.
7. The device according to claim 6, characterized in that The first acquisition unit is specifically used to obtain a first amount of downloaded data at the start time of each time interval and a second amount of downloaded data at the end time; taking the difference between the second amount of downloaded data and the first amount of downloaded data as the amount of downloaded data for the time interval; and calculating the download rate corresponding to each time interval based on the amount of downloaded data for each time interval and the length of the corresponding time interval.
8. The device according to claim 6, characterized in that The second acquisition unit is specifically configured to calculate an average value of the download rates included in each of the target download information to obtain the average download rate.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
