Channel installation package downloading method, device and computer readable storage medium

By downloading the installation package asynchronously multi-threaded on the client and generating the channel installation package on the live broadcast platform, and using verification information comparison to ensure the consistency of the package, the customer churn and data statistics problems caused by the long generation time of channel installation packages in the existing technology are solved, and faster download speed and more accurate data statistics are achieved.

CN117675797BActive Publication Date: 2025-05-23GUANGZHOU HUYA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311649030.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-01
Publication Date
2025-05-23
Estimated Expiration
2043-12-01

AI Technical Summary

Technical Problem

In the prior art, live broadcast platforms may lead to customer churn and poor user experience when generating channel installation packages, or they cannot accurately count user data downloaded through live broadcast room channels.

Method used

By downloading the official installation package or channel installation package asynchronously and multi-threaded on the client, and comparing the channel installation package using the first verification information and the second verification information when generating the channel installation package on the live broadcast platform, we ensure that the package installed by the client is consistent with the channel installation package.

Benefits of technology

It improves download speed, shortens user waiting time, reduces user churn rate, and ensures that the client can correctly report channel distribution data, which is convenient for issuing manufacturers to statistics and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117675797B_ABST
    Figure CN117675797B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a channel installation package downloading method, system and computer-readable storage, which relate to the field of Internet technology. When the above method is applied to a client and a live broadcast platform that are in communication connection, the client can asynchronously download the official installation package or the channel installation package in a multi-threaded manner, thereby making full use of system resources, improving the download speed, shortening the user's waiting time, and reducing the user churn rate. On the other hand, the live broadcast platform can generate a channel installation package while the client is downloading the official installation package, and finally compare and replace the first verification information and the second verification information, thereby ensuring that the client can correctly report the channel distribution data, which is convenient for the issuing manufacturer to count and analyze the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and more specifically, to a channel installation package downloading method, device, and computer-readable storage medium. Background Art

[0002] Android system installation package (apk) is an Android application installation file format. When software developers release applications to multiple channels, they need to first package the software installation package files for multiple channels, that is, write the information about the channels into the software installation package files. After the software installation package is correctly installed and run, the channel information and the collected user volume and other data can be reported to perform statistical analysis on the application data running in different channels. In order to facilitate the promotion of application software, publishers usually choose to cooperate with live broadcast platforms and place download links in live broadcast rooms to provide software installation package downloads. The live broadcast platform can configure a unique channel identifier for the live broadcast room where the download is placed for the publisher to collect data.

[0003] However, in the prior art, in order to keep the first release synchronized with the publisher, the live broadcast platform may first download the official installation package from the publisher, and then generate the channel installation package corresponding to different live broadcast rooms based on the official installation package. This method may cause customer loss and poor customer experience due to the long time it takes to generate the channel installation package. Alternatively, the live broadcast platform may first use the official installation package for users to download directly, and then provide it to users for download after the platform generates the corresponding channel installation package. This method will cause some users to download the official installation package without the channel logo, and the user data downloaded through the live broadcast room channel cannot be counted, which is not convenient for the final settlement. Summary of the invention

[0004] In order to at least overcome the above-mentioned deficiencies in the prior art, the purpose of the present application is to provide a channel installation package downloading method, device and computer-readable storage medium.

[0005] In a first aspect, an embodiment of the present application provides a channel installation package downloading method, the channel installation package downloading method comprising:

[0006] The live broadcast platform generates a channel installation package based on the official installation package and the channel identifier, and obtains first verification information based on the official installation package and the channel installation package;

[0007] The client sends a download request to the live broadcast platform, and enables asynchronous task multi-threading to download the official installation package or the channel installation package returned by the live broadcast platform. After the client completes downloading the official installation package or the channel installation package, the client returns second verification information to the live broadcast platform based on the official installation package or the channel installation package.

[0008] The live broadcast platform compares the first verification information and the second verification information, and determines whether the installation package of the client is consistent with the channel installation package according to the information comparison result; when the installation package of the client is inconsistent with the channel installation package, the channel installation package is obtained and downloaded from the live broadcast platform.

[0009] In a possible implementation, the client sends a download request to the live broadcast platform, and receives and downloads the official installation package or the channel installation package returned by the live broadcast platform, and after the client completes downloading the official installation package or the channel installation package, the step of returning second verification information to the live broadcast platform based on the official installation package or the channel installation package includes:

[0010] After the live broadcast platform has completed downloading the official installation package and has generated the channel installation package, the client sends a download request to the live broadcast platform, and the live broadcast platform directly sends the channel installation package to the client;

[0011] After the client completes downloading the channel installation package, the client returns second verification information to the live broadcast platform based on the channel installation package.

[0012] In a possible implementation, the client sends a download request to the live broadcast platform, and receives and downloads the official installation package or the channel installation package returned by the live broadcast platform, and after the client completes downloading the official installation package or the channel installation package, the step of returning second verification information to the live broadcast platform based on the official installation package or the channel installation package includes:

[0013] When the client completes downloading the official installation package on the live broadcast platform but fails to generate the channel installation package, the client sends a download request to the live broadcast platform, and the live broadcast platform sends the official installation package to the client;

[0014] After the client completes downloading the official installation package, the client returns second verification information to the live broadcast platform based on the official installation package.

[0015] In a possible implementation, the client sends a download request to the live broadcast platform, and receives and downloads the official installation package or the channel installation package returned by the live broadcast platform, and after the client completes downloading the official installation package or the channel installation package, the step of returning second verification information to the live broadcast platform based on the official installation package or the channel installation package includes:

[0016] When the client has not completed downloading the official installation package on the live broadcast platform, the client sends a download request to the live broadcast platform, and the live broadcast platform forwards the download request to the distribution manufacturer. After the client completes downloading the official installation package from the distribution manufacturer, the client returns second verification information to the live broadcast platform based on the official installation package.

[0017] In a possible implementation, the live broadcast platform generates a channel installation package based on the official installation package and the channel identifier, and obtains the first verification information based on the official installation package and the channel installation package, including:

[0018] Obtain the release link of the official installation package, and enable asynchronous task multi-threading to download the official installation package;

[0019] Configure a channel identifier for the live broadcast room that needs to deliver the installation package link, and generate a corresponding channel installation package based on the official installation package and the channel identifier;

[0020] The hash value of the channel installation package is compared with the hash value of the official installation package, and first verification information is obtained based on the comparison result, wherein the hash value is used to generate an information summary.

[0021] In a possible implementation, the step of comparing the hash value of the channel installation package with the hash value of the official installation package and obtaining first verification information based on the comparison result includes:

[0022] Divide the official installation package and the channel installation package into blocks, and calculate the hash value of each block of the official installation package and the channel installation package respectively, wherein the size of each block in the official installation package and the channel installation package is the same;

[0023] The hash value of each block in the channel installation package is compared with the hash value of the corresponding block in the channel installation package to obtain block information with different hash values, and the block information with different hash values ​​is used as the first verification information.

[0024] In a possible implementation, the live broadcast platform compares the first verification information with the second verification information, and determines whether the installation package of the client is consistent with the channel installation package according to the information comparison result. When the installation package of the client is inconsistent with the channel installation package, the step of obtaining and downloading the channel installation package from the live broadcast platform includes:

[0025] The live broadcast platform compares the first verification information with the second verification information, and determines that the client successfully installs the channel installation package when the first verification information is consistent with the second verification information;

[0026] When the first verification information is inconsistent with the second verification information, it is determined that the client has not successfully installed the channel installation package, and the blocks with inconsistent information in the client are replaced with corresponding blocks of the channel installation package in the live broadcast platform.

[0027] In a second aspect, an embodiment of the present application further provides a channel installation package downloading method, which is applied to a live broadcast platform, and the method includes:

[0028] Generate a channel installation package based on the official installation package and the channel identifier, and obtain first verification information based on the official installation package and the channel installation package;

[0029] Receive and respond to a download request sent by a client, and send the official installation package or the channel installation package to the client;

[0030] Obtain second verification information returned after the client completes downloading, perform information comparison based on the first verification information and the second verification information, and determine whether the client successfully installs the channel installation package based on the information comparison result.

[0031] In a third aspect, an embodiment of the present application further provides a channel installation package downloading device, comprising:

[0032] A generation module, configured to generate a channel installation package based on the official installation package and the channel identifier, and obtain first verification information based on the official installation package and the channel installation package;

[0033] A resource sending module, used to receive and respond to a download request sent by a client, and send the official installation package or the channel installation package to the client;

[0034] The verification module is used to obtain the second verification information returned after the client completes the download, compare the first verification information with the second verification information, and determine whether the client has successfully installed the channel installation package based on the information comparison result.

[0035] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the channel installation package downloading method described in any one of the first aspect and / or the second aspect is implemented.

[0036] Based on any of the above aspects, the embodiment of the present application provides a channel installation package downloading method, system and computer-readable storage, and the client can asynchronously download the official installation package or the channel installation package in a multi-threaded manner, thereby making full use of system resources, improving download speed, shortening user waiting time, and reducing user churn rate. On the other hand, the live broadcast platform can generate a channel installation package while the client downloads the official installation package, and finally compare and replace the first verification information and the second verification information, thereby ensuring that the client can correctly report the channel distribution data, which is convenient for the issuing manufacturer to count and analyze the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 A schematic diagram of a flow chart of a channel installation package downloading method provided in an embodiment of the present application;

[0039] Figure 2 for Figure 1 Schematic diagram of the sub-process of step S110;

[0040] Figure 3 for Figure 2 Schematic diagram of the sub-process of step S113;

[0041] Figure 4 Another flowchart of the channel installation package downloading method provided in the embodiment of the present application;

[0042] Figure 5 A structural block diagram of a channel installation package downloading device provided in an embodiment of the present application;

[0043] Figure 6 A schematic block diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] To make the purpose, technical scheme and advantages of the embodiment of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the embodiment of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0045] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0046] It should be noted that, in the absence of conflict, different features in the embodiments of the present application may be combined with each other.

[0047] Combine the following Figure 1 The flow chart shown exemplifies the channel installation package downloading method provided in the embodiment of the present application. The channel installation package downloading method provided in the embodiment of the present application can be applied to a channel installation package downloading system, which includes a client and a live broadcast platform in communication connection. The order of some steps in the channel installation package downloading method in the embodiment of the present application can be interchanged according to actual needs, or some steps can be omitted or deleted. The detailed steps of the channel installation package downloading method executed by the channel installation package downloading system are described as follows.

[0048] Step S110: The live broadcast platform generates a channel installation package based on the official installation package and the channel identifier, and obtains first verification information based on the official installation package and the channel installation package.

[0049] In this step, in order to facilitate statistics on users downloading installation packages through the live broadcast room channel, the live broadcast platform can configure a unique channel identifier for the live broadcast room where the application software is promoted.

[0050] Step S120: The client sends a download request to the live broadcast platform, and enables asynchronous task multi-threading to download the official installation package or channel installation package returned by the live broadcast platform. After the client completes downloading the official installation package or channel installation package, it returns second verification information to the live broadcast platform based on the official installation package or channel installation package.

[0051] In this step, the client can divide the download task of the official installation package or the channel installation package into multiple blocks. Each block can execute the download task asynchronously through a thread, which can make full use of system resources, increase the download speed, and enhance the user experience.

[0052] It should be noted that step S110 and step S120 can be performed synchronously or asynchronously. When step S110 and step S120 are performed synchronously, the client will first download the official installation package, and then replace the downloaded official installation package after the live broadcast platform generates the channel installation package. This setting, in the first launch scenario, can not only improve the user experience and reduce the user churn rate, but also count the user data that downloads the installation package through the live broadcast channel, which brings convenience to subsequent settlement.

[0053] Step S130: The live broadcast platform compares the first verification information and the second verification information, and determines whether the client installation package is consistent with the channel installation package according to the information comparison result. When the client installation package is inconsistent with the channel installation package, the channel installation package is obtained and downloaded from the live broadcast platform.

[0054] In this step, the first verification information and the second verification information can quickly detect whether the client's installation package is consistent with the channel installation package. When it is detected that the client's installation package is not completely consistent with the channel installation package, the location of the difference can be quickly located and replaced, thereby ensuring that the channel distribution information can be correctly reported to facilitate statistics and analysis of channel data. Specifically, the difference information caused by the channel identifier can be used as the first verification information. When the first verification information is consistent with the second verification information, it can be considered that the client has successfully downloaded the channel installation package. When the first verification information is inconsistent with the second verification information, it can be considered that the client's installation package is inconsistent with the channel installation package. The corresponding blocks of the channel installation package in the live broadcast platform can be downloaded asynchronously through multi-threading, and the channel installation package can be finally obtained.

[0055] In this embodiment, the client can asynchronously download the official installation package or the channel installation package in a multi-threaded manner, thereby making full use of system resources, improving download speed, shortening user waiting time, and reducing user churn rate. On the other hand, the live broadcast platform can generate a channel installation package while the client is downloading the official installation package, and finally compare and replace the first verification information and the second verification information, thereby ensuring that the client can correctly report the channel distribution data, which is convenient for the issuing manufacturer to count and analyze the data.

[0056] As a possible implementation of the embodiment of the present application, step S120 can be implemented by the following method.

[0057] After the client has completed downloading the official installation package on the live broadcast platform and has generated a channel installation package, it can send a download request to the live broadcast platform, and the live broadcast platform will directly send the channel installation package to the client. After the client completes downloading the channel installation package, it returns the second verification information to the live broadcast platform based on the channel installation package.

[0058] In this embodiment, the client can directly download the channel installation package through asynchronous task multi-threading, which can improve the download speed and count the user data of downloading the installation package through the live broadcast room channel, bringing convenience to subsequent settlement.

[0059] Alternatively, when the client completes downloading the official installation package on the live broadcast platform but has not generated a channel installation package, it can send a download request to the live broadcast platform, and the live broadcast platform will send the official installation package to the client. After the client completes downloading the official installation package, it returns second verification information to the live broadcast platform based on the official installation package.

[0060] In this embodiment, the client can directly download the official installation package of the live broadcast platform through asynchronous task multi-threading, saving the time of the live broadcast platform forwarding the download to the distribution manufacturer. In the first launch scenario, it can reduce the user's waiting time, improve the user experience, and reduce the user churn rate.

[0061] Alternatively, when the client has not completed downloading the official installation package on the live broadcast platform, it can send a download request to the live broadcast platform, and the live broadcast platform forwards the download request to the distribution manufacturer. After the client completes downloading the official installation package from the distribution manufacturer, it returns the second verification information to the live broadcast platform based on the official installation package.

[0062] In this embodiment, since the live broadcast platform has not yet downloaded the official installation package, the live broadcast platform can forward the download request to the distribution manufacturer, and the client downloads the official installation package from the distribution manufacturer, so that the user can experience the application software for the first time in the first release scenario, thereby reducing the user's waiting time and improving the user experience.

[0063] Please refer to Figure 2As a possible implementation of the embodiment of the present application, step S110 can be implemented by the following method.

[0064] Step S111: Obtain the release link of the official installation package, and enable asynchronous task multi-threading to download the official installation package.

[0065] In this step, the official installation package is downloaded through asynchronous multi-threaded tasks, which can fully utilize network bandwidth and system resources, improve download speed, reduce user waiting time, and ensure that other threads can continue downloading when a thread fails to download due to network instability.

[0066] Step S112: configure a channel identifier for the live broadcast room that needs to deliver the installation package link, and generate a corresponding channel installation package based on the official installation package and the channel identifier.

[0067] In this step, a unique channel identifier is configured for the live broadcast room that needs to deliver the installation package link. Based on the channel identifier, the user's download data can be collected to facilitate subsequent settlement work.

[0068] Step S113: Compare the hash value of the channel installation package with the hash value of the official installation package, and obtain first verification information based on the comparison result.

[0069] In this step, the hash value is a fixed-length value calculated by the hash algorithm from the original data, which can be used to generate information summaries to ensure the integrity and consistency of data transmission. Therefore, the difference hash value generated by the channel installation package due to the channel identification can be used as the first verification information to detect whether the client's installation package is consistent with the channel installation package, thereby ensuring that the channel distribution information is reported to the publisher for the purpose of statistics and analysis of channel data.

[0070] In this embodiment, the live broadcast platform can generate a channel installation package while the client downloads the official installation package, and finally compare and replace it with the installation package on the client through the first verification information to ensure that the client can correctly report the channel distribution data, which is convenient for the distribution manufacturer to count and analyze the data.

[0071] For further information, please refer to Figure 3 , step S113 can be implemented in the following way.

[0072] Step S1131: Divide the official installation package and the channel installation package into blocks, and calculate the hash value of each block of the official installation package and the channel installation package respectively, wherein the size of each block in the official installation package and the channel installation package is the same.

[0073] In this step, the official installation package and the channel installation package can be divided into multiple blocks, which can facilitate the live broadcast platform and / or the client to download the installation package in a multi-threaded asynchronous task manner, thereby increasing the download speed and reducing the user's waiting time. Among them, the official installation package and the channel installation package can be divided into blocks of 1024 bytes in size.

[0074] Step S1132: Compare the hash value of each block in the channel installation package with the hash value of the corresponding block in the channel installation package to obtain block information with different hash values, and use the block information with different hash values ​​as the first verification information.

[0075] In this embodiment, the first verification information may also include the overall hash value of the channel installation package. The overall hash value of the channel installation package can be used to quickly determine whether the client's installation package is completely consistent with the channel installation package. When it is determined that the client's installation package is not completely consistent with the channel installation package, the blocks with differences can be obtained through the hash values ​​of the blocks, so that the live broadcast platform can replace the blocks with different hash values ​​with corresponding blocks.

[0076] In this embodiment, by comparing the first verification information with the installation package on the client, it is possible to obtain blocks in which the installation package on the client and the channel installation package differ due to the channel identifier, and replace them with corresponding blocks in the channel installation package to ensure that the client can correctly report the channel distribution data, which is convenient for the issuing manufacturer to count and analyze the data.

[0077] As a possible implementation of the embodiment of the present application, step S130 may be implemented by the following method.

[0078] The live broadcast platform compares the first verification information and the second verification information. When the first verification information is consistent with the second verification information, it can be determined that the client's installation package is consistent with the channel installation package, that is, it is determined that the client has successfully installed the channel installation package.

[0079] When the first verification information is inconsistent with the second verification information, it is determined that the client has not successfully installed the channel installation package, and the blocks with inconsistent information in the client are replaced with the corresponding blocks of the channel installation package in the live broadcast platform. Specifically, the overall hash value of the channel installation package can be used to quickly determine whether the client installation package is completely consistent with the channel installation package. When it is determined that the client installation package is not completely consistent with the channel installation package, the hash value of the block can be used to obtain the block with the difference, so that the live broadcast platform can replace the block with the hash value difference with the corresponding block.

[0080] In this embodiment, the first verification information and the second verification information can be used to quickly detect whether the client's installation package is consistent with the channel installation package. When it is detected that the client's installation package is not completely consistent with the channel installation package, the location of the difference can be quickly located and replaced, thereby ensuring that the channel distribution information can be correctly reported to facilitate statistics and analysis of channel data.

[0081] Based on the same inventive concept, the embodiment of the present application also provides a channel installation package download method applied to a live broadcast platform, which can Figure 4 The method implementation in Figure 4 A flowchart of a method for downloading a channel installation package is illustrated, and the detailed steps of the method are described as follows.

[0082] Step S210: Generate a channel installation package based on the official installation package and the channel identifier, and obtain first verification information based on the official installation package and the channel installation package.

[0083] In this step, in order to facilitate statistics of data on users downloading installation packages through the live broadcast room channel, the live broadcast platform can configure a unique channel identifier for the live broadcast room where the application software is promoted. In addition, the first verification information can be difference information caused by the channel identifier.

[0084] Step S220: Receive and respond to the download request sent by the client, and send the official installation package or the channel installation package to the client.

[0085] In this step, when the live broadcast platform has completed the download of the official installation package and has generated a channel installation package, the channel installation package can be sent to the client for download; when the live broadcast platform has completed downloading the official installation package but has not generated a channel installation package, the official installation package can be sent to the client for download; and when the live broadcast platform has not completed downloading the official installation package, the live broadcast platform can forward the download request to the distribution manufacturer while downloading the official installation package and generating the channel installation package, so that the client can download the official installation package from the distribution manufacturer. In the above manner, the live broadcast platform can ensure that the client obtains the official installation package or the channel installation package as quickly as possible, reduce the user's waiting time, improve the user experience, and reduce the user churn rate.

[0086] Step S230: Obtain the second verification information returned after the client completes the download, perform information comparison based on the first verification information and the second verification information, and determine whether the client has successfully installed the channel installation package based on the information comparison result.

[0087] In this step, the live broadcast platform can compare and replace the second verification information returned by the client with the first verification information to ensure that the channel distribution data can be correctly reported, which is convenient for the publisher to count and analyze the data.

[0088] In the above embodiment, the live broadcast platform can not only ensure that the client obtains the official installation package or channel installation package as quickly as possible, reduce the user's waiting time, improve the user experience, and reduce the user churn rate, but also compare and replace the second verification information returned by the client with the first verification information to ensure that the client can correctly report the channel distribution data, which is convenient for the issuing manufacturer to count and analyze the data.

[0089] Based on the same inventive concept, the present application also provides a channel installation package downloading device, please refer to Figure 5 , Figure 5 A schematic diagram of the functional modules of the channel installation package downloading device provided in the embodiment of the present application. The embodiment of the present application can divide the functional modules of the channel installation package downloading device according to the method embodiment executed by the computer device, that is, the following functional modules corresponding to the channel installation package downloading device can be used to execute the above-mentioned method embodiments. Among them, the channel installation package downloading device may include a generation module, a resource sending module and a verification module. The functions of each functional module of the channel installation package downloading device are respectively described in detail below.

[0090] A generation module generates a channel installation package based on the official installation package and the channel identifier, and obtains first verification information based on the official installation package and the channel installation package.

[0091] In order to facilitate statistics of data on users downloading installation packages through the live broadcast room channel, the live broadcast platform can configure a unique channel identifier for the live broadcast room where the application software is promoted. In addition, the first verification information can be difference information caused by the channel identifier.

[0092] In this embodiment, the generation module may be used to execute the above step S110. The detailed implementation of the generation module may refer to the above detailed description of step S110.

[0093] The resource sending module is used to receive and respond to the download request sent by the client, and send the official installation package or channel installation package to the client.

[0094] When the live broadcast platform has completed the download of the official installation package and has generated a channel installation package, the channel installation package can be sent to the client for download; when the live broadcast platform has completed the download of the official installation package but has not generated a channel installation package, the official installation package can be sent to the client for download; and when the live broadcast platform has not completed the download of the official installation package, the live broadcast platform can forward the download request to the distribution manufacturer while downloading the official installation package and generating the channel installation package, so that the client can download the official installation package from the distribution manufacturer. In the above way, the live broadcast platform can ensure that the client obtains the official installation package or channel installation package as quickly as possible, reduce the user's waiting time, improve the user experience, and reduce the user churn rate.

[0095] In this embodiment, the resource sending module may be used to execute the above step S120. The detailed implementation of the resource sending module may refer to the above detailed description of step S120.

[0096] The verification module is used to obtain the second verification information returned after the client completes the download, compare the first verification information with the second verification information, and determine whether the client has successfully installed the channel installation package based on the information comparison result.

[0097] The live broadcast platform can compare and replace the second verification information returned by the client with the first verification information to ensure that the channel distribution data can be correctly reported, which is convenient for the publisher to count and analyze the data.

[0098] In this embodiment, the verification module can be used to execute the above step S130. The detailed implementation of the verification module can refer to the detailed description of the above step S130.

[0099] It should be noted that it should be understood that the division of the various modules in the above device or system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software (for example, open source software) that can be called by the processor; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by the processor, and some modules can be implemented in the form of hardware. As an example, the resource sending module can be implemented by running a separate processor, and can be stored in the memory of the above device or system in the form of program code. The function of the above resource sending module is called and executed by a processor of the above device or system. The implementation of other modules is similar to it, which will not be repeated here. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processor described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step or each module in the above technical solution can be completed by an integrated logic circuit in the processor or by executing a software program.

[0100] It is not difficult to understand that the live broadcast platform in the embodiment of the present application can be a server or other electronic device with image data processing capabilities. When the live broadcast platform is a server, the live broadcast platform can be a single physical server, or it can be a server group composed of multiple physical servers for performing different data processing functions, wherein the server group can be centralized or distributed (for example, the server can be a distributed system). In some possible implementations, if the server adopts a single physical server, different logical server components can be assigned to the physical server based on different business functions. Please refer to Figure 6 , Figure 6FIG. 4 is a schematic diagram showing the hardware structure of a server 400 for implementing the above-mentioned channel installation package downloading method provided by an embodiment of the present disclosure. Figure 6 As shown, the server 400 may include a processor 410 , a computer-readable storage medium 420 , a bus 430 , and a communication unit 440 .

[0101] In a specific implementation process, the processor 410 executes the computer-executable instructions (eg, Figure 5 The various modules in the channel installation package downloading device shown in the figure) enable the processor 410 to execute the channel installation package downloading method of the above method embodiment, wherein the processor 410, the computer-readable storage medium 420 and the communication unit 440 can be connected via the bus 430.

[0102] The specific implementation process of the processor 410 can refer to the various method embodiments executed by the above-mentioned server 400. The implementation principles and technical effects are similar, and the embodiments of the present application will not be repeated here.

[0103] The computer readable storage medium 420 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 111 is used to store programs or data.

[0104] The bus 430 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the buses in the drawings of the present application are not limited to only one bus or one type of bus.

[0105] In the interactive scenario provided in the embodiment of the present application, the communication unit 440 can be used to communicate with the host end and the audience end to realize data interaction between the server 400 and the client.

[0106] In addition, an embodiment of the present application also provides a readable storage medium, in which computer execution instructions are stored. When the processor executes the computer execution instructions, the above channel installation package downloading method is implemented.

[0107] In summary, the embodiments of the present application provide a method, system and computer-readable storage for downloading a channel installation package. When the method is applied to a client and a live broadcast platform that are in communication connection, the client can asynchronously download the official installation package or the channel installation package in a multi-threaded manner, thereby making full use of system resources, improving download speed, shortening user waiting time, and reducing user churn rate. On the other hand, the live broadcast platform can generate a channel installation package while the client is downloading the official installation package, and finally compare and replace the first verification information and the second verification information, thereby ensuring that the client can correctly report the channel distribution data, which is convenient for the issuing manufacturer to count and analyze the data.

[0108] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A channel installation package download method, It is characterized in that Applied to a client and a live broadcast platform for communication connection, the method includes: The live broadcast platform generates a channel installation package based on the official installation package and the channel identifier, and obtains first verification information based on the official installation package and the channel installation package; The client sends a download request to the live broadcast platform, and enables asynchronous task multi-threading to download the official installation package or the channel installation package returned by the live broadcast platform. After the client completes downloading the official installation package or the channel installation package, the client returns second verification information to the live broadcast platform based on the official installation package or the channel installation package. The live broadcast platform compares the first verification information and the second verification information, and determines whether the installation package of the client is consistent with the channel installation package according to the information comparison result; when the installation package of the client is inconsistent with the channel installation package, the channel installation package is obtained and downloaded from the live broadcast platform.

2. The channel installation package downloading method according to claim 1, It is characterized in that The client sends a download request to the live broadcast platform, and receives and downloads the official installation package or the channel installation package returned by the live broadcast platform. After the client completes downloading the official installation package or the channel installation package, the client returns second verification information to the live broadcast platform based on the official installation package or the channel installation package, including: After the live broadcast platform has completed downloading the official installation package and has generated the channel installation package, the client sends a download request to the live broadcast platform, and the live broadcast platform directly sends the channel installation package to the client; After the client completes downloading the channel installation package, the client returns second verification information to the live broadcast platform based on the channel installation package.

3. The channel installation package downloading method according to claim 1, It is characterized in that The client sends a download request to the live broadcast platform, and receives and downloads the official installation package or the channel installation package returned by the live broadcast platform. After the client completes downloading the official installation package or the channel installation package, the client returns second verification information to the live broadcast platform based on the official installation package or the channel installation package, including: When the client completes downloading the official installation package on the live broadcast platform but fails to generate the channel installation package, the client sends a download request to the live broadcast platform, and the live broadcast platform sends the official installation package to the client; After the client completes downloading the official installation package, the client returns second verification information to the live broadcast platform based on the official installation package.

4. The channel installation package downloading method according to claim 1, It is characterized in that The client sends a download request to the live broadcast platform, and receives and downloads the official installation package or the channel installation package returned by the live broadcast platform. After the client completes downloading the official installation package or the channel installation package, the client returns second verification information to the live broadcast platform based on the official installation package or the channel installation package, including: When the client has not completed downloading the official installation package on the live broadcast platform, the client sends a download request to the live broadcast platform, and the live broadcast platform forwards the download request to the distribution manufacturer. After the client completes downloading the official installation package from the distribution manufacturer, the client returns second verification information to the live broadcast platform based on the official installation package.

5. The channel installation package downloading method according to claim 1, It is characterized in that The live broadcast platform generates a channel installation package based on the official installation package and the channel identifier, and obtains first verification information based on the official installation package and the channel installation package, including: Obtain the release link of the official installation package, and enable asynchronous task multi-threading to download the official installation package; Configure a channel identifier for the live broadcast room that needs to deliver the installation package link, and generate a corresponding channel installation package based on the official installation package and the channel identifier; Divide the official installation package and the channel installation package into blocks, and calculate the hash value of each block of the official installation package and the channel installation package respectively, wherein the size of each block in the official installation package and the channel installation package is the same; The hash value of each block in the channel installation package is compared with the hash value of the corresponding block in the channel installation package to obtain block information with different hash values, and the block information with different hash values ​​is used as the first verification information.

6. The channel installation package downloading method according to claim 5, It is characterized in that The live broadcast platform compares the first verification information with the second verification information, and determines whether the installation package of the client is consistent with the channel installation package according to the information comparison result. When the installation package of the client is inconsistent with the channel installation package, the step of obtaining and downloading the channel installation package from the live broadcast platform includes: The live broadcast platform compares the first verification information with the second verification information, and determines that the client successfully installs the channel installation package when the first verification information is consistent with the second verification information; When the first verification information is inconsistent with the second verification information, it is determined that the client has not successfully installed the channel installation package, and the blocks with inconsistent information in the client are replaced with corresponding blocks of the channel installation package in the live broadcast platform.

7. A channel installation package downloading device, It is characterized in that Applicable to the live broadcast platform that communicates with the client, including: A generation module, configured to generate a channel installation package based on the official installation package and the channel identifier, and obtain first verification information based on the official installation package and the channel installation package; A resource sending module, configured to receive and respond to a download request sent by a client, and enable the client to use asynchronous task multithreading to download the official installation package or the channel installation package returned by the live broadcast platform, and after the client completes downloading the official installation package or the channel installation package, obtain second verification information returned by the client to the live broadcast platform based on the official installation package or the channel installation package; A verification module is used to compare information based on the first verification information and the second verification information, and determine whether the installation package of the client is consistent with the channel installation package according to the information comparison result. When the installation package of the client is inconsistent with the channel installation package, obtain and download the channel installation package from the live broadcast platform.

8. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, characterized in that when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and device for determining application acquisition channel

    CN117111962A