Content downloading method and device and related product

By evaluating the connection quality scores of Wi-Fi and cellular network cards and allocating content sizes for download accordingly, the problem of poor content download performance in multi-NIC download mode was solved, thus improving download speed and efficiency.

CN121751145APending Publication Date: 2026-03-27TENCENT TECH SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, multi-NIC download mode suffers from poor content download performance due to latency issues between Wi-Fi and cellular NICs, requiring users to wait for all sub-links to complete data transmission before the downloaded content can be obtained.

Method used

By evaluating the connection quality scores of Wi-Fi and cellular network cards, the content size is allocated to different network card connections for download, avoiding waiting for all network cards to complete before the content is available, thus improving download performance.

Benefits of technology

This allows users to obtain partial content without waiting for all network cards to complete downloads, thus improving download performance and speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121751145A_ABST
    Figure CN121751145A_ABST
Patent Text Reader

Abstract

The invention discloses a content downloading method and device and a related product. Evaluating the wifi network card link and the cellular network card link to obtain a first link quality score corresponding to the wifi network card link and a second link quality score corresponding to the cellular network card link; according to the first link quality score and the second link quality score, distributing a first sub-content size in the content size to a wifi network card link, and distributing a second sub-content size in the content size to a cellular network card link; and downloading the size of the first sub-content through the wifi network card link to obtain the first sub-content in the to-be-downloaded content, and downloading the size of the second sub-content through the cellular network card link to obtain the second sub-content in the to-be-downloaded content. Therefore, the downloaded content can be obtained without waiting for all the network cards to download the content, so that the content downloading performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of content downloading technology, and in particular to a content downloading method, apparatus and related products. Background Technology

[0002] In the field of content downloading technology, a single network interface card (NIC) download mode is typically used. If the cellular network signal is stronger than the Wi-Fi network signal, the cellular network card is used directly for downloading, which may result in significant cellular data consumption. Therefore, related technologies propose download modes based on MPTCP, MPUDP, and MPRTP, which can download content using multiple sub-links, thus enabling multiple NICs to download content. However, since these sub-links must wait for all content to be transmitted before receiving the downloaded content, this can lead to poor download performance. Therefore, improving content download performance has become a pressing technical problem in this field. Summary of the Invention

[0003] This application provides a content download method, apparatus, and related products, aiming to improve content download performance.

[0004] The first aspect of this application provides a method for downloading content, including:

[0005] The network card links corresponding to multiple terminal network cards of the terminal device and the content size of the content to be downloaded are obtained respectively, wherein the network card links corresponding to the multiple terminal network cards include Wi-Fi network card links and cellular network card links;

[0006] The Wi-Fi network card connection and the cellular network card connection are evaluated to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection.

[0007] Based on the first link quality score and the second link quality score, the first sub-content size of the content size is allocated to the Wi-Fi network card link, and the second sub-content size of the content size is allocated to the cellular network card link;

[0008] The first sub-content is downloaded via the Wi-Fi network card to obtain the first sub-content in the content to be downloaded, and the second sub-content is downloaded via the cellular network card to obtain the second sub-content in the content to be downloaded.

[0009] A second aspect of this application provides a content downloading device, comprising:

[0010] The network card connection acquisition unit is used to acquire the network card connection corresponding to multiple terminal network cards of the terminal device and the content size corresponding to the content to be downloaded, wherein the network card connection corresponding to the multiple terminal network cards includes Wi-Fi network card connection and cellular network card connection.

[0011] A network card connection evaluation unit is used to evaluate the Wi-Fi network card connection and the cellular network card connection to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection.

[0012] A content size allocation unit is configured to allocate a first sub-content size of the content size to the Wi-Fi network card link and allocate a second sub-content size of the content size to the cellular network card link based on the first link quality score and the second link quality score.

[0013] The content size download unit is used to download the first sub-content size through the Wi-Fi network card connection to obtain the first sub-content in the content to be downloaded, and to download the second sub-content size through the cellular network card connection to obtain the second sub-content in the content to be downloaded.

[0014] A third aspect of this application provides a computer device, the device comprising a processor and a memory:

[0015] The memory is used to store computer programs and to transfer the computer programs to the processor;

[0016] The processor is configured to execute the steps of the content download method provided in the first aspect according to the instructions in the computer program.

[0017] A fourth aspect of this application provides a computer-readable storage medium for storing a computer program that, when executed by a computer device, implements the steps of the content download method provided in the first aspect.

[0018] The fifth aspect of this application provides a computer program product, including a computer program that, when executed by a computer device, implements the steps of the content download method provided in the first aspect.

[0019] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:

[0020] The technical solution of this application first obtains the network card links corresponding to multiple terminal network cards of the terminal device and the content size corresponding to the content to be downloaded; then, it evaluates the Wi-Fi network card links and cellular network card links to obtain a first link quality score corresponding to the Wi-Fi network card link and a second link quality score corresponding to the cellular network card link; based on the first link quality score and the second link quality score, it allocates the first sub-content size of the content size to the Wi-Fi network card link and the second sub-content size of the content size to the cellular network card link; finally, it downloads the first sub-content size through the Wi-Fi network card link to obtain the first sub-content of the content to be downloaded, and downloads the second sub-content size through the cellular network card link to obtain the second sub-content of the content to be downloaded.

[0021] As can be seen, this application first assesses the link quality scores for the Wi-Fi and cellular network card links respectively. Then, based on these quality scores, different sub-content sizes within the content are allocated to different network card links, allowing the Wi-Fi and cellular network card links to download different sub-contents of the content to be downloaded separately. This eliminates the need to wait for all network cards to complete downloading before obtaining the downloaded content, thus improving download performance. Attached Figure Description

[0022] Figure 1 A scenario architecture diagram of a content download method provided in an embodiment of this application;

[0023] Figure 2 A flowchart illustrating a content download method provided in this application embodiment;

[0024] Figure 3 A flowchart illustrating the evaluation of network card links in a content download method provided in this application embodiment;

[0025] Figure 4 A flowchart illustrating the evaluation of network card links in another content download method provided in this application embodiment;

[0026] Figure 5 This is a schematic diagram of a playback point in a content downloading method provided in an embodiment of this application;

[0027] Figure 6 A schematic diagram illustrating the allocation of content size in a content downloading method provided in an embodiment of this application;

[0028] Figure 7 A flowchart illustrating the entire process of content downloading in a content downloading method provided in this application embodiment;

[0029] Figure 8This is a schematic diagram of the structure of a content downloading device provided in an embodiment of this application;

[0030] Figure 9 This is a schematic diagram of the server structure in an embodiment of this application;

[0031] Figure 10 This is a schematic diagram of the structure of a terminal device in an embodiment of this application. Detailed Implementation

[0032] The embodiments of this application will now be described with reference to the accompanying drawings.

[0033] First, we will explain several terms that may be involved in the embodiments of this application below.

[0034] MPTCP: MultiPath TCP, a multipath transmission control protocol.

[0035] MPUDP: Multi-path User Datagram Protocol.

[0036] MPRTP: Multipath Real-time Transport Protocol.

[0037] In the field of content download technology, a single network card download mode is usually used to download content. If the network signal of the Wi-Fi network card is better than that of the cellular network card, the Wi-Fi network card is used directly to download the content; if the network signal of the cellular network card is better than that of the Wi-Fi network card, the cellular network card is used directly to download the content. For the terminal user, this may result in a large consumption of cellular data.

[0038] Therefore, related technologies propose downloading content based on download modes such as MPTCP, MPUDP, and MPRTP. It's understandable that the principle of MPTCP, MPUDP, and MPRTP is primarily to achieve data transmission (i.e., content download) based on a single link. This single link can contain multiple transmission sub-links, allowing content download by simultaneously sending data to different sub-links. That is, each sub-link can be supported by a different network interface card (NIC), and download modes such as MPTCP, MPUDP, and MPRTP can all support downloading the same data from different sub-links. For example, in MPTCP, sub-links A and B can simultaneously download content G, where sub-link A can be supported by a Wi-Fi NIC, and sub-link B can be supported by a cellular NIC.

[0039] However, due to potential latency issues between Wi-Fi and cellular network cards, it's necessary to wait for all sub-links to complete data transmission before downloading the content, potentially resulting in poor download performance. Therefore, improving download performance has become a pressing technical challenge in this field.

[0040] In view of the above problems, this application provides a content download method, apparatus, and related products, aiming to improve content download performance. In the technical solution provided in this application, firstly, the network card links corresponding to multiple terminal network cards of a terminal device and the content sizes corresponding to the content to be downloaded can be obtained. Then, the Wi-Fi network card links and cellular network card links can be evaluated to obtain a first link quality score for the Wi-Fi network card link and a second link quality score for the cellular network card link. Based on the first and second link quality scores, a first sub-content size within the content size can be allocated to the Wi-Fi network card link, and a second sub-content size can be allocated to the cellular network card link. Finally, the first sub-content size can be downloaded via the Wi-Fi network card link to obtain the first sub-content of the content to be downloaded, and the second sub-content size can be downloaded via the cellular network card link to obtain the second sub-content of the content to be downloaded.

[0041] As can be seen, this application first assesses the link quality scores corresponding to the Wi-Fi and cellular network card links respectively. Then, based on these quality scores, different sub-content sizes within the content can be allocated to different network card links, allowing each link to download its own sub-content. This eliminates the need to wait for all network cards to complete downloading before obtaining the downloaded content, thus improving download performance.

[0042] The content download method provided in this application can be executed by a terminal device. For example, the network card links corresponding to multiple network cards of the terminal device and the content size corresponding to the content to be downloaded can be obtained on the terminal device. As an example, the terminal device may include, but is not limited to, mobile phones, desktop computers, tablet computers, laptops, PDAs, smart voice interaction devices, smart home appliances, vehicle terminals, and aircraft. The content download method provided in this application can also be executed by a server, i.e., the network card links corresponding to multiple network cards of the terminal device and the content size corresponding to the content to be downloaded can be obtained on the server. Furthermore, the content download method provided in this application can also be executed collaboratively by the terminal device and the server. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited herein. Therefore, this application does not limit the implementing entity of the technical solution of this application.

[0043] Figure 1 An exemplary scenario architecture diagram of a content download method is shown. The diagram includes a server and various types of terminal devices. For example, the network card connection on the terminal device and the size of the content to be downloaded can be obtained. Then, the server allocates network cards according to the content size, thereby enabling different network card connections to download different content. Figure 1 The server shown can be a standalone physical server, a server cluster consisting of multiple physical servers, or a distributed system. Additionally, the server can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0044] See Figure 2 This figure is a flowchart of a content downloading method provided in an embodiment of this application. Figure 2 The content download method shown can be executed by a computer device, which can be a terminal device or a server, and includes the following steps:

[0045] S201: Obtain the network card links and content sizes corresponding to the multiple terminal network cards of the terminal device.

[0046] In this step, the network card links corresponding to the multiple terminal network cards include Wi-Fi network card links and cellular network card links. The Wi-Fi network card link supports subsequent content download operations through the Wi-Fi network card, and the cellular network card link supports subsequent content download operations through the cellular network card. There is at least one Wi-Fi network card link and at least one cellular network card link.

[0047] This is understandable, as current terminal devices support dual SIM dual standby mode, meaning two SIM cards can be inserted into the terminal device (such as a mobile phone), and both SIM cards can access the internet simultaneously. In this case, the terminal device can have two cellular network cards. Furthermore, current terminal devices can also support simultaneous connection to two Wi-Fi networks, meaning the terminal device can have two Wi-Fi network cards.

[0048] It should be noted that before performing the operations of obtaining the network card links corresponding to the multiple terminal network cards of the terminal device and the content size corresponding to the content to be downloaded, this application can also obtain the content to be downloaded. The content to be downloaded can be a video or an application. There is no limitation on the content to be downloaded here, and it can be determined according to the actual situation in actual application.

[0049] Specifically, in this application, a low-speed detection can be performed on the network environment (i.e., the network environment of the Wi-Fi network card) where the content to be downloaded exists to obtain a detection result. If the detection result indicates that the network environment where the content to be downloaded exists is without network, or if the detection result indicates that the network environment where the content to be downloaded exists is poor, then multiple terminal network cards of the terminal device are obtained, and network card links corresponding to multiple terminal networks are created based on these multiple terminal networks, and the content size corresponding to the content to be downloaded is obtained, so as to facilitate the subsequent allocation of content size.

[0050] It should also be noted that a poor network environment can be determined based on the playback time of the content to be downloaded. Specifically, if the playable time of the content is 0 seconds within a continuous duration (e.g., 3 seconds), and the Wi-Fi download speed is lower than the preset bitrate (which can be 0.8 times the bitrate of the content), then the network environment for the content to be downloaded is considered poor. A poor network environment can also be determined based on the playback quality of the content to be downloaded. Specifically, if the playable time of the content is less than 6 seconds within a continuous duration (e.g., 6 seconds), and the Wi-Fi download speed is lower than the preset bitrate (which can be 0.8 times the bitrate of the content), then the network environment for the content to be downloaded is considered poor. The network environment in which the content to be downloaded exists is considered poor. This can be determined based on the network quality of the network environment. Specifically, if the download speed of the Wi-Fi card is lower than the preset bitrate for a continuous period of time (e.g., 10 seconds), where the preset bitrate can be 0.8 times the bitrate of the content to be downloaded, then the network environment in which the content to be downloaded exists is considered poor.

[0051] S202: Evaluate the Wi-Fi network card link and the cellular network card link to obtain a first link quality score corresponding to the Wi-Fi network card link and a second link quality score corresponding to the cellular network card link.

[0052] In this step, the Wi-Fi network card connection can be evaluated to obtain a first connection quality score, and the cellular network card connection can be evaluated to obtain a second connection quality score. This allows for the allocation of download content size based on the connection quality scores of the Wi-Fi and cellular network card connections in subsequent processes.

[0053] In the embodiments of this application, there are multiple possible implementations of S202 mentioned above, which will be described below. It should be noted that the implementations given below are only illustrative examples and do not represent all implementations of the embodiments of this application.

[0054] like Figure 3 As shown, Figure 3 This application provides a flowchart of the network card connection evaluation process in a content download method, which will be discussed in conjunction with the following embodiments. Figure 3 The first optional implementation of S202 will be introduced. Figure 3 This includes steps S202-A1 and S202-A2, which are detailed below:

[0055] S202-A1: The quality of the Wi-Fi network card link and the cellular network card link is evaluated using the first evaluation formula to obtain the first evaluation result corresponding to the Wi-Fi network card link and the first evaluation result corresponding to the cellular network card link.

[0056] First, it should be noted that before performing the evaluation process of the Wi-Fi network card link and the cellular network card link to obtain the first link quality score corresponding to the Wi-Fi network card link and the second link quality score corresponding to the cellular network card link, this application can also obtain a first evaluation formula. The first evaluation formula is used to evaluate the link quality corresponding to the Wi-Fi network card link and the cellular network card link respectively. This first evaluation formula can evaluate which network card link has a better link quality between the Wi-Fi network card link and the cellular network card link.

[0057] It should also be noted that before performing the quality assessment of the Wi-Fi network card connection and the cellular network card connection using the first evaluation formula to obtain the first evaluation result for the Wi-Fi network card connection and the first evaluation result for the cellular network card connection, this application can also obtain the first download speed for the Wi-Fi network card connection, the second download speed for the cellular network card connection, the first duration for the first download speed, the second duration for the second download speed, and the target bitrate for the content to be downloaded. The first duration for the first download speed can be understood as the duration of the Wi-Fi network card connection at the first download speed, the second duration for the second download speed can be understood as the duration of the cellular network card connection at the second download speed, and the target bitrate for the content to be downloaded can be understood as the transmission bitrate of the content to be downloaded during content transmission.

[0058] In one feasible implementation, the first evaluation formula can be embodied in formula (1), which is specifically embodied as follows:

[0059] link_speed>β*code_rate && link_time_stamp>k_s formula (1)

[0060] Wherein, link_speed represents the first download speed corresponding to the Wi-Fi network card connection or the second download speed corresponding to the cellular network card connection, β represents the first preset bitrate threshold (which can be preset to 2 or 3), code_rate represents the target bitrate corresponding to the content to be downloaded, link_time_stamp represents the first duration corresponding to the first download speed or the second duration corresponding to the second download speed, and k_s represents the preset duration threshold (which can be preset to 3(s)).

[0061] Specifically, in this application, a first evaluation formula can be used to evaluate the quality of a Wi-Fi network card link based on the first download speed corresponding to the Wi-Fi network card link, the first duration of the first download speed corresponding to the Wi-Fi network card link, and the target bitrate corresponding to the content to be downloaded, so as to obtain a first evaluation result corresponding to the Wi-Fi network card link. The first evaluation result corresponding to the Wi-Fi network card link can indicate that the Wi-Fi network card link does not meet the first evaluation formula, and the first evaluation result corresponding to the Wi-Fi network card link can also indicate that the Wi-Fi network card link meets the first evaluation formula.

[0062] Understandably, if the first download speed corresponding to the Wi-Fi network card link is higher than β times the target bitrate corresponding to the content to be downloaded, and the first duration of the first download speed corresponding to the Wi-Fi network card link is higher than the preset duration threshold, then the first evaluation result indicates that the Wi-Fi network card link meets the first evaluation formula; otherwise, the first evaluation result indicates that the Wi-Fi network card link does not meet the first evaluation formula.

[0063] Furthermore, the quality of a cellular network card link can be evaluated using a first evaluation formula based on the second download speed corresponding to the cellular network card link, the second duration of the first download speed corresponding to the cellular network card link, and the target bitrate corresponding to the content to be downloaded, so as to obtain a first evaluation result corresponding to the cellular network card link. The first evaluation result corresponding to the cellular network card link can indicate that the cellular network card link does not meet the first evaluation formula, and the first evaluation result corresponding to the cellular network card link can also indicate that the cellular network card link meets the first evaluation formula.

[0064] Understandably, if the first download speed corresponding to the cellular network card link is higher than β times the target bitrate corresponding to the content to be downloaded, and the first duration of the first download speed corresponding to the cellular network card link is higher than the preset duration threshold, then the first evaluation result indicates that the cellular network card link meets the first evaluation formula; otherwise, the first evaluation result indicates that the cellular network card link does not meet the first evaluation formula.

[0065] S202-A2: If the first evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link does not meet the first evaluation formula, and the first evaluation result corresponding to the cellular network card link indicates that the cellular network card link meets the first evaluation formula, then generate the first link quality score corresponding to the Wi-Fi network card link and the second link quality score corresponding to the cellular network card link.

[0066] It should be noted that before performing the operation of generating the first link quality score and the second link quality score corresponding to the Wi-Fi network card link if the first evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link does not meet the first evaluation formula, and the first evaluation result corresponding to the cellular network card link indicates that the cellular network card link meets the first evaluation formula, this application can determine whether the first evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link does not meet the first evaluation formula, and determine whether the first evaluation result corresponding to the cellular network card link indicates that the cellular network card link meets the first evaluation formula.

[0067] If the first evaluation result for the Wi-Fi network card link indicates that the Wi-Fi network card link does not meet the first evaluation formula, and the first evaluation result for the cellular network card link indicates that the cellular network card link meets the first evaluation formula, then a first link quality score for the Wi-Fi network card link can be generated based on the first evaluation result for the Wi-Fi network card link, and a second link quality score for the cellular network card link can be generated based on the first evaluation result for the cellular network card link.

[0068] Understandably, if the first evaluation result for a Wi-Fi network card connection indicates that the Wi-Fi network card connection does not meet the first evaluation formula, then the network quality of the Wi-Fi network card connection can be determined to be poor, and a first link quality score can be generated. Conversely, if the first evaluation result for a cellular network card connection indicates that the cellular network card connection meets the first evaluation formula, then the network quality of the cellular network card connection can be determined to be good, and a second link quality score can be generated. In this case, the first link quality score is lower than the second link quality score. Thus, in subsequent processes, the network quality of the Wi-Fi network card connection and the cellular network card connection can be determined based on the link quality scores, thereby assigning different content sizes to the Wi-Fi network card connection and the cellular network card connection.

[0069] It should also be noted that if the first evaluation result for the Wi-Fi network card connection indicates that the Wi-Fi network card connection meets the first evaluation formula, while the first evaluation result for the cellular network card connection indicates that the cellular network card connection does not meet the first evaluation formula, and the quality score of the first connection is greater than that of the second connection, then subsequent steps will not be executed, and the Wi-Fi network card connection will continue to be used for content download. Conversely, if the first evaluation result for both the Wi-Fi and cellular network card connections indicates that the Wi-Fi network card connection meets the first evaluation formula, and the quality scores of the first and second connections are the same, then subsequent steps will not be executed, and the Wi-Fi network card connection will continue to be used for content download. In this way, the size of the content to be downloaded can be allocated based on the connection quality score in subsequent processes.

[0070] like Figure 4 As shown, Figure 4 A flowchart illustrating the network card connection evaluation process in another content download method provided in this application embodiment will be presented below. Figure 4 The second optional implementation of S202 will be introduced. Figure 4 This includes steps S202-B1 and S202-B2, which are detailed below:

[0071] S202-B1: The quality of the Wi-Fi network card link and the cellular network card link is evaluated using the second evaluation formula to obtain the second evaluation result corresponding to the Wi-Fi network card link and the second evaluation result corresponding to the cellular network card link.

[0072] First, it should be noted that before performing the evaluation process of the Wi-Fi network card link and the cellular network card link to obtain the first link quality score corresponding to the Wi-Fi network card link and the second link quality score corresponding to the cellular network card link, this application can also obtain a second evaluation formula. The second evaluation formula is used to evaluate the link quality corresponding to the Wi-Fi network card link and the cellular network card link respectively. This second evaluation formula can evaluate which network card link has a poorer link quality between the Wi-Fi network card link and the cellular network card link.

[0073] It should also be noted that before performing the quality assessment of the Wi-Fi network card link and the cellular network card link using the second evaluation formula to obtain the second evaluation result corresponding to the Wi-Fi network card link and the cellular network card link, this application can also obtain the first total download time and first download speed of the Wi-Fi network card link, the second total download time and second download speed of the cellular network card link, the target total duration corresponding to the content to be downloaded, and the target bitrate corresponding to the content to be downloaded. The first total download time of the Wi-Fi network card link can be understood as the total download time required for the Wi-Fi network card link to download the content to be downloaded, the second total download time of the cellular network card link can be understood as the total download time required for the cellular network card link to download the content to be downloaded, and the target total duration corresponding to the content to be downloaded can be understood as the total duration of the content to be downloaded (such as the total duration of a video).

[0074] In one feasible implementation, the second evaluation formula can be embodied in formula (2), which is specifically embodied as follows:

[0075] download_time>r*assign_duration && link_speed<α*code_rate formula (2)

[0076] Wherein, download_time represents the first total download time of the Wi-Fi network card connection or the second total download time of the cellular network card connection, r represents the preset download time threshold (this preset download time threshold can be preset to 1.5 or 2), assign_duration represents the target total time corresponding to the content to be downloaded, link_speed represents the first download speed corresponding to the Wi-Fi network card connection or the second download speed corresponding to the cellular network card connection, α represents the second preset bitrate threshold (this second preset bitrate threshold can be preset to 0.8), and code_rate represents the target bitrate corresponding to the content to be downloaded.

[0077] Specifically, in this application, a second evaluation formula can be used to evaluate the quality of the Wi-Fi network card link based on the first total download time corresponding to the Wi-Fi network card link, the first download speed corresponding to the Wi-Fi network card link, the target total download time corresponding to the content to be downloaded, and the target bitrate corresponding to the content to be downloaded, so as to obtain a second evaluation result corresponding to the Wi-Fi network card link. The second evaluation result corresponding to the Wi-Fi network card link can indicate that the Wi-Fi network card link does not meet the second evaluation formula, and the second evaluation result corresponding to the Wi-Fi network card link can also indicate that the Wi-Fi network card link meets the second evaluation formula.

[0078] Understandably, if the total download time of the first Wi-Fi network card connection exceeds r times the target total download time of the content to be downloaded, and the first download speed of the Wi-Fi network card connection is lower than α times the target bitrate of the content to be downloaded, then the second evaluation result indicates that the Wi-Fi network card connection satisfies the second evaluation formula; otherwise, the second evaluation result indicates that the Wi-Fi network card connection does not satisfy the second evaluation formula.

[0079] Furthermore, the quality of the cellular network card link is evaluated using a second evaluation formula based on the second total download time corresponding to the cellular network card link, the second download speed corresponding to the cellular network card link, the target total download time corresponding to the content to be downloaded, and the target bitrate corresponding to the content to be downloaded, so as to obtain a second evaluation result for the cellular network card link. The second evaluation result for the cellular network card link can indicate that the cellular network card link does not meet the second evaluation formula, and the second evaluation result for the cellular network card link can also indicate that the cellular network card link meets the second evaluation formula.

[0080] Understandably, if the total download time of the first download corresponding to the cellular network card link exceeds r times the target total download time of the content to be downloaded, and the first download speed of the cellular network card link is lower than α times the target bitrate of the content to be downloaded, then the second evaluation result indicates that the cellular network card link meets the second evaluation formula; otherwise, the second evaluation result indicates that the cellular network card link does not meet the second evaluation formula.

[0081] S202-B2: If the second evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link satisfies the second evaluation formula, and the second evaluation result corresponding to the cellular network card link indicates that the cellular network card link does not satisfy the second evaluation formula, then a first link quality score corresponding to the Wi-Fi network card link and a second link quality score corresponding to the cellular network card link are generated.

[0082] It should be noted that before performing the operation of generating the first link quality score and the second link quality score corresponding to the Wi-Fi network card link if the second evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link meets the second evaluation formula, and the second evaluation result corresponding to the cellular network card link indicates that the cellular network card link does not meet the second evaluation formula, this application can determine whether the second evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link meets the first evaluation formula, and determine whether the second evaluation result corresponding to the cellular network card link indicates that the cellular network card link does not meet the first evaluation formula.

[0083] Understandably, if the second evaluation result for a Wi-Fi network card connection indicates that the Wi-Fi network card connection meets the second evaluation formula, then the network quality of the Wi-Fi network card connection can be determined to be poor, and a first link quality score can be generated. Conversely, if the second evaluation result for a cellular network card connection indicates that the cellular network card connection does not meet the second evaluation formula, then the network quality of the cellular network card connection can be determined to be good, and a second link quality score can be generated. In this case, the first link quality score is lower than the second link quality score. Thus, in subsequent processes, the network quality of the Wi-Fi network card connection and the cellular network card connection can be determined based on the link quality scores, thereby assigning different content sizes to the Wi-Fi network card connection and the cellular network card connection.

[0084] It should also be noted that if the second evaluation result for the Wi-Fi network card link indicates that the Wi-Fi network card link does not meet the second evaluation formula, but the second evaluation result for the cellular network card link indicates that the cellular network card link meets the second evaluation formula, and the quality score of the first link is greater than that of the second link, then the subsequent steps are not executed, and the Wi-Fi network card link continues to be used for content download. Conversely, if the second evaluation result for both the Wi-Fi and cellular network card links indicates that the Wi-Fi network card link does not meet the second evaluation formula, and the quality scores of the first and second links are the same, then the subsequent steps are not executed, and the Wi-Fi network card link continues to be used for content download. In this way, the size of the content to be downloaded can be allocated based on the link quality score in subsequent processes. Furthermore, it should be noted that the terminal device can choose one or combine multiple of the above two optional implementation methods, and this application does not impose any restrictions on this.

[0085] S203: Based on the first link quality score and the second link quality score, allocate the first sub-content size of the content size to the Wi-Fi network card link, and allocate the second sub-content size of the content size to the cellular network card link.

[0086] In this step, based on the first link quality score and a dynamic range allocation algorithm, the first sub-content size of the content size can be allocated to the Wi-Fi network card link, and based on the second link quality score and a dynamic range allocation algorithm, the second sub-content size of the content size can be allocated to the cellular network card link. Thus, this application, under the influence of link quality score and dynamic range allocation algorithm, can allocate different sub-content sizes of the content size to the Wi-Fi network card link and the cellular network card link respectively, thereby improving the download speed of the content.

[0087] In one feasible implementation, the size of the first sub-content to be allocated to the Wi-Fi network card link and the size of the second sub-content to be allocated to the cellular network card link can be determined according to formulas (3) and (4), which are specifically embodied as follows:

[0088]

[0089] Here, good_link_download_size represents the size of the second sub-content to be allocated to the cellular network card link, bad_link_download_size represents the size of the first sub-content to be allocated to the Wi-Fi network card link, total_download_size represents the size of the content to be downloaded, speed_g represents the download speed of the cellular network card link, and speed_b represents the download speed of the Wi-Fi network card link.

[0090] It should be noted that before performing the operations of allocating the first sub-content size of the content size to the Wi-Fi network card link and the second sub-content size of the content size to the cellular network card link based on the first link quality score and the second link quality score, this application can also determine whether the first link quality score is less than the second link quality score. If the first link quality score is less than the second link quality score, it is determined that the network quality of the Wi-Fi network card link is worse than that of the cellular network card link, and subsequent steps can be performed to improve network download quality. If the first link quality score is not less than the second link quality score, it is determined that the network quality of the Wi-Fi network card link is better than that of the cellular network card link, and subsequent steps can be skipped, continuing to use the Wi-Fi network card link for content download, thus minimizing the data consumption of the cellular network card link.

[0091] Specifically, in this application, if the quality score of the first link is lower than the quality score of the second link, the size of the first sub-content corresponding to the first sub-content to be downloaded that is far from the playback point in the content to be downloaded can be allocated to the Wi-Fi network card link, and the size of the second sub-content corresponding to the second sub-content to be downloaded that is close to the playback point in the content to be downloaded can be allocated to the Wi-Fi cellular network card link. The playback point can include the starting playback point and the buffer playback point of the content to be downloaded. This buffer playback point can provide a certain amount of redundancy in abnormal environments such as network jitter.

[0092] like Figure 5 As shown, Figure 5 This is a schematic diagram of a playback point in a content download method provided in an embodiment of this application. Figure 5 In the diagram, A represents the content to be downloaded, B represents the starting playback point, and C represents the buffer playback point.

[0093] like Figure 6 As shown, Figure 6 This diagram illustrates the allocation of content size in a content downloading method provided in an embodiment of this application. Figure 6 When the quality score of the first connection is lower than that of the second connection (i.e., when the network quality of the Wi-Fi connection is worse than that of the cellular connection), the size of the first sub-content corresponding to the sub-content to be downloaded can be reduced. Figure 6 The E in the diagram is allocated to the Wi-Fi network card link (i.e., the size of the first sub-content farthest from the playback point), and the size of the second sub-content corresponding to the sub-content to be downloaded ( Figure 6 In this process, D) is allocated to the cellular network card link (i.e., the second sub-content size furthest from the playback point). This allows both the Wi-Fi and cellular network card links to download their respective sub-content sizes in subsequent processes, eliminating the need to wait for all network cards to finish downloading before receiving the downloaded content, thus improving download performance.

[0094] S204: Download the first sub-content size through the Wi-Fi network card connection to obtain the first sub-content in the content to be downloaded, and download the second sub-content size through the cellular network card connection to obtain the second sub-content in the content to be downloaded.

[0095] It should be noted that before performing the operations of downloading the first sub-content size via a Wi-Fi network card connection to obtain the first sub-content in the content to be downloaded, and downloading the second sub-content size via a cellular network card connection to obtain the second sub-content in the content to be downloaded, this application can determine whether the current download time corresponding to the Wi-Fi network card connection does not meet the first preset allocation condition, and whether the current download speed corresponding to the Wi-Fi network card connection does not meet the second preset allocation condition; and it can also determine whether the current download time corresponding to the cellular network card connection does not meet the first preset allocation condition, and whether the current download speed corresponding to the cellular network card connection does not meet the second preset allocation condition.

[0096] Specifically, if the current download time corresponding to the Wi-Fi network card connection does not meet the first preset allocation condition, and the current download speed corresponding to the Wi-Fi network card connection does not meet the second preset allocation condition, then the first sub-content size is downloaded through the Wi-Fi network card connection to obtain the first sub-content in the content to be downloaded; and if the current download time corresponding to the cellular network card connection does not meet the first preset allocation condition, and the current download speed corresponding to the cellular network card connection does not meet the second preset allocation condition, then the second sub-content size is downloaded through the cellular network card connection to obtain the second sub-content in the content to be downloaded. Otherwise, the steps of evaluating the Wi-Fi network card connection and the cellular network card connection, and the steps of allocating the sub-content size for the Wi-Fi network card connection and the cellular network card connection are re-executed. This allows for real-time measurement of the network quality of the Wi-Fi network card connection and the cellular network card connection, thereby reducing excessive cellular network card traffic consumption.

[0097] Furthermore, the first preset allocation condition can be determined by the content size, the first download speed, and the second download speed; the second preset allocation condition can be determined by the historical download speed corresponding to the Wi-Fi network card connection or the historical download speed corresponding to the cellular network card connection. In one feasible implementation, the first preset allocation condition can be represented by formula (5), and the second preset allocation condition can be represented by formula (6). Formulas (5) and (6) are specifically embodied as follows:

[0098] link_run_time > link_download_size / (speed_b + speed_g) / 2 Formula (5)

[0099] cur_link_speed < γ * link_speed || cur_link_speed > τ * link_speed formula (6)

[0100] Wherein, link_run_time represents the current download time for either the Wi-Fi or cellular network card connection; link_download_size represents the size of either the first or second sub-content; speed_b represents the download speed (i.e., the first download speed) for the Wi-Fi connection; speed_g represents the download speed (i.e., the first download speed) for the cellular network card connection; cur_link_speed represents the current download speed (either the Wi-Fi or cellular network card connection); link_speed represents the historical download speed (either the Wi-Fi or cellular network card connection); γ represents the preset upper threshold (which can be preset to 0.8); and τ represents the preset lower threshold (which can be preset to 2 or 3).

[0101] Understandably, in this application, if the current download time corresponding to the Wi-Fi network card connection exceeds a specified duration, and the current download speed corresponding to the Wi-Fi network card connection does not exceed a first specified speed or the current download speed corresponding to the Wi-Fi network card connection exceeds a second specified speed, then steps S202 and S203 can be re-executed; and if the current download time corresponding to the cellular network card connection exceeds a specified duration, and the current download speed corresponding to the cellular network card connection does not exceed a first specified speed or the current download speed corresponding to the cellular network card connection exceeds a second specified speed, then steps S202 and S203 can be re-executed.

[0102] It should be further noted that after performing the operations of downloading the size of the first sub-content via a Wi-Fi network card connection to obtain the first sub-content in the content to be downloaded, and downloading the size of the second sub-content via a cellular network card connection to obtain the second sub-content in the content to be downloaded, this application can also obtain the current download speed of the Wi-Fi network card connection and determine whether the current download speed of the Wi-Fi network card connection is greater than the preset download speed. If the current download speed of the Wi-Fi network card connection is greater than the preset download speed, the download operation of the cellular network card connection can be stopped, which can save cellular network card traffic to a certain extent.

[0103] In one feasible implementation, formula (7) can be used to determine whether the Wi-Fi network card can be completely restored. Formula (7) is specifically embodied as follows:

[0104] wifi_link_speed >ρ*code_rate formula (7)

[0105] Wherein, wifi_link_speed represents the current download speed of the wifi network card connection, ρ represents the third preset bitrate threshold (this third preset bitrate threshold can be preset to 3), and code_rate represents the target bitrate corresponding to the content to be downloaded.

[0106] In addition, the above steps can be polled in this application to improve the overall download speed of the content by downloading through multiple network cards when the Wi-Fi network card download speed is low, so as to ensure the basic playback experience of the content. Furthermore, it can detect in real time when the Wi-Fi network card speed recovers and switch to the Wi-Fi network card in a timely manner without consuming too much cellular network card data.

[0107] like Figure 7 As shown, Figure 7 This is a flowchart illustrating the entire content download process in a content download method provided in this application embodiment. Figure 7 First, the system can perform a low-speed detection on the Wi-Fi network card. If the Wi-Fi network card experiences low download speeds, it obtains the network card connections and the content size of the content to be downloaded for each of the terminal network cards on the terminal device. Then, based on the evaluated link quality scores of the Wi-Fi and cellular network card connections, it allocates the first sub-content size to the Wi-Fi network card connection and the second sub-content size to the cellular network card connection. The first and second sub-content sizes are then downloaded via the Wi-Fi and cellular network card connections respectively to obtain the first and second sub-contents of the content to be downloaded. If the link quality of the Wi-Fi and cellular network card connections changes during the download process, the network link evaluation and content size allocation operations are re-executed. This improves the content download performance.

[0108] In summary, this application embodiment first assesses the link quality scores corresponding to the Wi-Fi and cellular network card links. Then, based on these scores, different sub-content sizes within the content can be allocated to different network card links, allowing each link to download its own sub-content. This eliminates the need to wait for all network cards to complete downloading before obtaining the downloaded content, thus improving download performance. Furthermore, this application also conserves cellular network card bandwidth to some extent.

[0109] Based on the content downloading method provided in the preceding embodiments, this application also provides a content downloading device. The content downloading device provided in the embodiments of this application will be described in detail below.

[0110] See Figure 8 This figure is a schematic diagram of the structure of a content downloading device provided in an embodiment of this application. Figure 8 As shown, the content download device specifically includes:

[0111] The network card connection acquisition unit 801 is used to acquire the network card connection corresponding to multiple terminal network cards of the terminal device and the content size corresponding to the content to be downloaded, wherein the network card connection corresponding to the multiple terminal network cards includes Wi-Fi network card connection and cellular network card connection.

[0112] The network card connection evaluation unit 802 is used to evaluate the Wi-Fi network card connection and the cellular network card connection to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection.

[0113] The content size allocation unit 803 is used to allocate a first sub-content size of the content size to the Wi-Fi network card link and allocate a second sub-content size of the content size to the cellular network card link according to the first link quality score and the second link quality score.

[0114] The content size download unit 804 is used to download the first sub-content size through the Wi-Fi network card connection to obtain the first sub-content in the content to be downloaded, and to download the second sub-content size through the cellular network card connection to obtain the second sub-content in the content to be downloaded.

[0115] In one feasible implementation, the device further includes:

[0116] The first evaluation formula acquisition unit is used to acquire a first evaluation formula, wherein the first evaluation formula is used to evaluate the link quality corresponding to the Wi-Fi network card link and the cellular network card link respectively.

[0117] The network interface card (NIC) link evaluation unit 802 includes:

[0118] The first link quality assessment unit is used to assess the quality of the Wi-Fi network card link and the cellular network card link using the first assessment formula, and obtain the first assessment result corresponding to the Wi-Fi network card link and the first assessment result corresponding to the cellular network card link.

[0119] The first quality score generation unit is configured to generate a first link quality score corresponding to the Wi-Fi network card link and a second link quality score corresponding to the cellular network card link if the first evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link does not meet the first evaluation formula, and the first evaluation result corresponding to the cellular network card link indicates that the cellular network card link meets the first evaluation formula, wherein the first link quality score is less than the second link quality score.

[0120] In one feasible implementation, the device further includes:

[0121] The first link information acquisition unit is used to acquire the first download speed corresponding to the Wi-Fi network card link, the second download speed corresponding to the cellular network card link, the first duration corresponding to the first download speed, the second duration corresponding to the second download speed, and the target bitrate corresponding to the content to be downloaded.

[0122] The first link quality assessment unit is specifically used for:

[0123] The first evaluation formula is used to evaluate the quality of the Wi-Fi network card link based on the first download speed, the first duration, and the target bit rate, to obtain the first evaluation result corresponding to the Wi-Fi network card link.

[0124] The cellular network card link is evaluated using the first evaluation formula based on the second download speed, the second duration, and the target bitrate, to obtain the first evaluation result corresponding to the cellular network card link.

[0125] In one feasible implementation, the device further includes:

[0126] The second evaluation formula acquisition unit is used to acquire a second evaluation formula, wherein the second evaluation formula is used to evaluate the link quality corresponding to the Wi-Fi network card link and the cellular network card link respectively.

[0127] The network interface card (NIC) link evaluation unit 802 includes:

[0128] The second link quality assessment unit is used to assess the quality of the Wi-Fi network card link and the cellular network card link using the second assessment formula, and obtain the second assessment result corresponding to the Wi-Fi network card link and the second assessment result corresponding to the cellular network card link.

[0129] The second quality score generation unit is configured to generate a first link quality score for the Wi-Fi network card link and a second link quality score for the cellular network card link if the second evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link satisfies the second evaluation formula, and the second evaluation result corresponding to the cellular network card link indicates that the cellular network card link does not satisfy the second evaluation formula, wherein the first link quality score is less than the second link quality score.

[0130] In one feasible implementation, the device further includes:

[0131] The second link information acquisition unit is used to acquire the first total download time and first download speed of the Wi-Fi network card link, the second total download time and second download speed of the cellular network card link, the target total time corresponding to the content to be downloaded, and the target bitrate corresponding to the content to be downloaded;

[0132] The second link quality assessment unit is specifically used for:

[0133] The second evaluation formula is used to evaluate the quality of the Wi-Fi network card link based on the first total download time, the first download speed, the target total time, and the target bit rate, to obtain the second evaluation result corresponding to the Wi-Fi network card link.

[0134] The second evaluation formula is used to evaluate the quality of the cellular network card link based on the second total download time, the second download speed, the target total time, and the target bitrate, to obtain the second evaluation result corresponding to the cellular network card link.

[0135] In one possible implementation, the content size allocation unit 803 is specifically used for:

[0136] If the quality score of the first link is less than the quality score of the second link, the size of the first sub-content corresponding to the first sub-content to be downloaded that is far from the playback point in the content to be downloaded is allocated to the Wi-Fi network card link, and the size of the second sub-content corresponding to the second sub-content to be downloaded that is close to the playback point in the content to be downloaded is allocated to the Wi-Fi cellular network card link.

[0137] In one feasible implementation, the content size download unit 804 is specifically used for:

[0138] If the current download time corresponding to the Wi-Fi network card link does not meet the first preset allocation condition, and the current download speed corresponding to the Wi-Fi network card link does not meet the second preset allocation condition, then the first sub-content size is downloaded through the Wi-Fi network card link to obtain the first sub-content in the content to be downloaded;

[0139] If the current download time corresponding to the cellular network card link does not meet the first preset allocation condition, and the current download speed corresponding to the cellular network card link does not meet the second preset allocation condition, then the second sub-content size is downloaded through the cellular network card link to obtain the second sub-content in the content to be downloaded.

[0140] In one feasible implementation, the first preset allocation condition is determined by the content size, the first download speed, and the second download speed; the second preset allocation condition is determined by the historical download speed corresponding to the Wi-Fi network card connection or the historical download speed corresponding to the cellular network card connection.

[0141] In one feasible implementation, the device further includes:

[0142] The download speed acquisition unit is used to acquire the current download speed of the Wi-Fi network card connection;

[0143] The download operation stop unit is used to stop the download operation of the cellular network card connection if the current download speed of the Wi-Fi network card connection is greater than the preset download speed.

[0144] The content downloading device provided in this application embodiment has the same beneficial effects as the content downloading method provided in the above embodiments, and therefore will not be described again.

[0145] This application provides a computer device, which can be a server. Figure 9 This is a schematic diagram of a server structure provided in an embodiment of this application. The server 900 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 922 (e.g., one or more processors) and memory 932, and one or more storage media 930 (e.g., one or more mass storage devices) for storing application programs 942 or data 944. The memory 932 and storage media 930 can be temporary or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the server. Furthermore, the CPU 922 may be configured to communicate with the storage media 930 and execute the series of instruction operations in the storage media 930 on the server 900.

[0146] Server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input / output interfaces 958, and / or one or more operating systems 941, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0147] CPU 922 is used to perform the following steps:

[0148] The network card links corresponding to multiple terminal network cards of the terminal device and the content size of the content to be downloaded are obtained respectively, wherein the network card links corresponding to the multiple terminal network cards include Wi-Fi network card links and cellular network card links;

[0149] The Wi-Fi network card connection and the cellular network card connection are evaluated to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection.

[0150] Based on the first link quality score and the second link quality score, the first sub-content size of the content size is allocated to the Wi-Fi network card link, and the second sub-content size of the content size is allocated to the cellular network card link;

[0151] The first sub-content is downloaded via the Wi-Fi network card to obtain the first sub-content in the content to be downloaded, and the second sub-content is downloaded via the cellular network card to obtain the second sub-content in the content to be downloaded.

[0152] This application also provides another computer device, which can be a terminal device. For example... Figure 10 As shown, for ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the method section of the embodiments of this application. Taking a mobile phone as an example:

[0153] Figure 10 The diagram shown is a block diagram of a portion of the structure of a mobile phone provided in an embodiment of this application. (Reference) Figure 10 The mobile phone includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090, etc. Those skilled in the art will understand that... Figure 10The mobile phone structure shown does not constitute a limitation on the mobile phone and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0154] The following is combined Figure 10 A detailed introduction to each component of a mobile phone:

[0155] The RF circuit 1010 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 1080; additionally, it transmits uplink data to the base station. Typically, the RF circuit 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc. Furthermore, the RF circuit 1010 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Messaging Service (SMS).

[0156] The memory 1020 can be used to store software programs and modules. The processor 1080 executes various mobile phone functions and data processing by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory 1020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0157] The input unit 1030 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the mobile phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 1031), and drive the corresponding connection devices according to a pre-set program. Optionally, the touch panel 1031 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 1080, and can also receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1031, the input unit 1030 may also include other input devices 1032. Specifically, other input devices 1032 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.

[0158] The display unit 1040 can be used to display information input by the user or information provided to the user, as well as various menus of the mobile phone. The display unit 1040 may include a display panel 1041, which may optionally be configured as a Liquid Crystal Display (LCD), Organic Light-Emitting Diode (OLED), or similar display panel 1041. Further, a touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it transmits the information to the processor 1080 to determine the type of touch event. Subsequently, the processor 1080 provides corresponding visual output on the display panel 1041 according to the type of touch event. Although in Figure 10 In this embodiment, the touch panel 1031 and the display panel 1041 are two separate components to realize the input and output functions of the mobile phone. However, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the mobile phone.

[0159] The mobile phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1041 according to the ambient light level, and the proximity sensor can turn off the display panel 1041 and / or the backlight when the phone is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, taps), etc. Other sensors that may be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0160] The audio circuit 1060, speaker 1061, and microphone 1062 provide an audio interface between the user and the mobile phone. The audio circuit 1060 converts the received audio data into electrical signals and transmits them to the speaker 1061, where the speaker 1061 converts them into sound signals for output. On the other hand, the microphone 1062 converts the collected sound signals into electrical signals, which are then received by the audio circuit 1060, converted into audio data, and then processed by the processor 1080 before being transmitted via the RF circuit 1010 to, for example, another mobile phone, or the audio data can be output to the memory 1020 for further processing.

[0161] WiFi is a short-range wireless transmission technology. Through the WiFi module 1070, mobile phones can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 10 The WiFi module 1070 is shown, but it is understood that it is not an essential component of a mobile phone and can be omitted as needed without changing the essence of the invention.

[0162] The processor 1080 is the control center of the mobile phone, connecting various parts of the phone through various interfaces and lines. It executes software programs and / or modules stored in the memory 1020 and calls data stored in the memory 1020 to perform various functions and process data, thereby collecting overall data and information from the phone. Optionally, the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1080.

[0163] The mobile phone also includes a power supply 1090 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.

[0164] Although not shown, mobile phones may also include a camera, Bluetooth module, etc., which will not be described in detail here.

[0165] In this embodiment of the application, the processor 1080 included in the mobile phone also has the following functions:

[0166] The network card links corresponding to multiple terminal network cards of the terminal device and the content size of the content to be downloaded are obtained respectively, wherein the network card links corresponding to the multiple terminal network cards include Wi-Fi network card links and cellular network card links;

[0167] The Wi-Fi network card connection and the cellular network card connection are evaluated to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection.

[0168] Based on the first link quality score and the second link quality score, the first sub-content size of the content size is allocated to the Wi-Fi network card link, and the second sub-content size of the content size is allocated to the cellular network card link;

[0169] The first sub-content is downloaded via the Wi-Fi network card to obtain the first sub-content in the content to be downloaded, and the second sub-content is downloaded via the cellular network card to obtain the second sub-content in the content to be downloaded.

[0170] This application also provides a computer-readable storage medium for storing a computer program that, when run on a computer device, causes the computer device to perform any one of the content download methods described in the foregoing embodiments.

[0171] This application also provides a computer program product including a computer program, which, when run on a computer device, causes the computer device to execute any one of the content download methods described in the foregoing embodiments.

[0172] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the system and equipment described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0173] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of the system is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple systems may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0174] The system described as separate components may or may not be physically separate. Components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0175] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0176] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing computer programs.

[0177] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0178] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A content download method, characterized in that, include: The network card links corresponding to multiple terminal network cards of the terminal device and the content size of the content to be downloaded are obtained respectively, wherein the network card links corresponding to the multiple terminal network cards include Wi-Fi network card links and cellular network card links; The Wi-Fi network card connection and the cellular network card connection are evaluated to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection. Based on the first link quality score and the second link quality score, the first sub-content size of the content size is allocated to the Wi-Fi network card link, and the second sub-content size of the content size is allocated to the cellular network card link; The first sub-content is downloaded via the Wi-Fi network card to obtain the first sub-content in the content to be downloaded, and the second sub-content is downloaded via the cellular network card to obtain the second sub-content in the content to be downloaded.

2. The method according to claim 1, characterized in that, Before evaluating the Wi-Fi network card link and the cellular network card link to obtain the first link quality score corresponding to the Wi-Fi network card link and the second link quality score corresponding to the cellular network card link, the method further includes: Obtain a first evaluation formula, wherein the first evaluation formula is used to evaluate the link quality corresponding to the Wi-Fi network card link and the cellular network card link respectively; The evaluation process for the Wi-Fi network card connection and the cellular network card connection to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection includes: The quality of the Wi-Fi network card link and the cellular network card link is evaluated using the first evaluation formula to obtain the first evaluation result corresponding to the Wi-Fi network card link and the first evaluation result corresponding to the cellular network card link. If the first evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link does not meet the first evaluation formula, and the first evaluation result corresponding to the cellular network card link indicates that the cellular network card link meets the first evaluation formula, then a first link quality score corresponding to the Wi-Fi network card link and a second link quality score corresponding to the cellular network card link are generated, wherein the first link quality score is less than the second link quality score.

3. The method according to claim 2, characterized in that, Before performing a quality assessment on the Wi-Fi network card link and the cellular network card link using the first evaluation formula to obtain the first evaluation result corresponding to the Wi-Fi network card link and the first evaluation result corresponding to the cellular network card link, the method further includes: The first download speed corresponding to the Wi-Fi network card connection, the second download speed corresponding to the cellular network card connection, the first duration corresponding to the first download speed, the second duration corresponding to the second download speed, and the target bitrate corresponding to the content to be downloaded are obtained. The step of evaluating the quality of the Wi-Fi network card link and the cellular network card link using the first evaluation formula to obtain the first evaluation result corresponding to the Wi-Fi network card link and the first evaluation result corresponding to the cellular network card link includes: The first evaluation formula is used to evaluate the quality of the Wi-Fi network card link based on the first download speed, the first duration, and the target bit rate, to obtain the first evaluation result corresponding to the Wi-Fi network card link. The cellular network card link is evaluated using the first evaluation formula based on the second download speed, the second duration, and the target bitrate, to obtain the first evaluation result corresponding to the cellular network card link.

4. The method according to claim 1, characterized in that, Before evaluating the Wi-Fi network card link and the cellular network card link to obtain the first link quality score corresponding to the Wi-Fi network card link and the second link quality score corresponding to the cellular network card link, the method further includes: Obtain a second evaluation formula, wherein the second evaluation formula is used to evaluate the link quality corresponding to the Wi-Fi network card link and the cellular network card link respectively; The evaluation process for the Wi-Fi network card connection and the cellular network card connection to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection includes: The quality of the Wi-Fi network card link and the cellular network card link is evaluated using the second evaluation formula to obtain the second evaluation result corresponding to the Wi-Fi network card link and the second evaluation result corresponding to the cellular network card link. If the second evaluation result corresponding to the Wi-Fi network card link indicates that the Wi-Fi network card link meets the second evaluation formula, and the second evaluation result corresponding to the cellular network card link indicates that the cellular network card link does not meet the second evaluation formula, then a first link quality score corresponding to the Wi-Fi network card link and a second link quality score corresponding to the cellular network card link are generated, wherein the first link quality score is less than the second link quality score.

5. The method according to claim 4, characterized in that, Before performing quality assessment on the Wi-Fi network card link and the cellular network card link using the second evaluation formula to obtain the second evaluation result corresponding to the Wi-Fi network card link and the second evaluation result corresponding to the cellular network card link, the method further includes: Obtain the first total download time and first download speed of the Wi-Fi network card connection, the second total download time and second download speed of the cellular network card connection, the target total download time corresponding to the content to be downloaded, and the target bitrate corresponding to the content to be downloaded; The step of evaluating the quality of the Wi-Fi network card link and the cellular network card link using the second evaluation formula to obtain the second evaluation result corresponding to the Wi-Fi network card link and the second evaluation result corresponding to the cellular network card link includes: The second evaluation formula is used to evaluate the quality of the Wi-Fi network card link based on the first total download time, the first download speed, the target total time, and the target bit rate, to obtain the second evaluation result corresponding to the Wi-Fi network card link. The second evaluation formula is used to evaluate the quality of the cellular network card link based on the second total download time, the second download speed, the target total time, and the target bitrate, to obtain the second evaluation result corresponding to the cellular network card link.

6. The method according to claim 3 or 5, characterized in that, The step of allocating a first sub-content size of the content size to the Wi-Fi network card link and allocating a second sub-content size of the content size to the cellular network card link based on the first link quality score and the second link quality score includes: If the quality score of the first link is less than the quality score of the second link, the size of the first sub-content corresponding to the first sub-content to be downloaded that is far from the playback point in the content to be downloaded is allocated to the Wi-Fi network card link, and the size of the second sub-content corresponding to the second sub-content to be downloaded that is close to the playback point in the content to be downloaded is allocated to the Wi-Fi cellular network card link.

7. The method according to claim 3 or 5, characterized in that, The steps of downloading the first sub-content size via the Wi-Fi network card connection to obtain the first sub-content in the content to be downloaded, and downloading the second sub-content size via the cellular network card connection to obtain the second sub-content in the content to be downloaded, include: If the current download time corresponding to the Wi-Fi network card link does not meet the first preset allocation condition, and the current download speed corresponding to the Wi-Fi network card link does not meet the second preset allocation condition, then the first sub-content size is downloaded through the Wi-Fi network card link to obtain the first sub-content in the content to be downloaded; If the current download time corresponding to the cellular network card link does not meet the first preset allocation condition, and the current download speed corresponding to the cellular network card link does not meet the second preset allocation condition, then the second sub-content size is downloaded through the cellular network card link to obtain the second sub-content in the content to be downloaded.

8. The method according to claim 7, characterized in that, The first preset allocation condition is determined by the content size, the first download speed, and the second download speed; the second preset allocation condition is determined by the historical download speed corresponding to the Wi-Fi network card connection or the historical download speed corresponding to the cellular network card connection.

9. The method according to claim 1, characterized in that, After downloading the first sub-content size via the Wi-Fi network card to obtain the first sub-content in the content to be downloaded, and downloading the second sub-content size via the cellular network card to obtain the second sub-content in the content to be downloaded, the process further includes: Get the current download speed of the Wi-Fi network card connection; If the current download speed of the Wi-Fi network card connection is greater than the preset download speed, then the download operation of the cellular network card connection will be stopped.

10. A content downloading device, characterized in that, include: The network card connection acquisition unit is used to acquire the network card connection corresponding to multiple terminal network cards of the terminal device and the content size corresponding to the content to be downloaded, wherein the network card connection corresponding to the multiple terminal network cards includes Wi-Fi network card connection and cellular network card connection. A network card connection evaluation unit is used to evaluate the Wi-Fi network card connection and the cellular network card connection to obtain a first connection quality score corresponding to the Wi-Fi network card connection and a second connection quality score corresponding to the cellular network card connection. A content size allocation unit is configured to allocate a first sub-content size of the content size to the Wi-Fi network card link and allocate a second sub-content size of the content size to the cellular network card link based on the first link quality score and the second link quality score. The content size download unit is used to download the first sub-content size through the Wi-Fi network card connection to obtain the first sub-content in the content to be downloaded, and to download the second sub-content size through the cellular network card connection to obtain the second sub-content in the content to be downloaded.

11. A computer device, characterized in that, The device includes a processor and a memory: The memory is used to store computer programs and to transfer the computer programs to the processor; The processor is configured to execute the steps of the content download method according to any one of claims 1 to 9, based on instructions in the computer program.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program that, when executed by a computer device, implements the steps of the content download method according to any one of claims 1 to 9.

13. A computer program product, characterized in that, Includes a computer program that, when executed by a computer device, implements the steps of the content download method according to any one of claims 1 to 9.