Resource loading method, device, storage medium and electronic device

By obtaining real-time statistical data of online live broadcasts and dynamically adjusting the resource loading order, the time-consuming loading of prop-type functions in the live broadcast industry is solved, efficient and flexible resource loading is achieved, and user experience and network adaptability are improved.

CN116193204BActive Publication Date: 2024-12-17SHANGHAI HODE INFORMATION TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202211604153.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2024-12-17
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

In the live broadcast industry, prop function resources are time-consuming to load and require a lot of memory and network support. The user experience is limited by the environment and network, and lacks an efficient, flexible and intelligent loading mode.

Method used

By obtaining real-time statistics of live broadcasts on the web, including user preferences, usage frequency and habits in the prop list, dynamically adjust the resource loading order, put resource identifiers into the resource queue, prioritize prop resources with higher user possibility, and downgrade resources Load as image when the network environment is poor.

Benefits of technology

It realizes efficient and smooth resource loading, improves user experience, reduces network and memory consumption, and adapts to different network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116193204B_ABST
    Figure CN116193204B_ABST
Patent Text Reader

Abstract

The present disclosure provides a resource loading method, device, computer program product, non-transitory computer-readable storage medium and electronic device. The method includes: obtaining real-time statistical data of the current live broadcast, the real-time statistical data includes a prop list under at least one statistical indicator, and the at least one statistical indicator includes at least one of the current user's prop usage preference, the prop usage frequency of the current live broadcast room, the prop usage preference of the live broadcast platform and the current user's prop usage habits; putting the resource identifier corresponding to the prop in the prop list into the resource queue, so as to load the resource corresponding to the prop in the prop list. The embodiment of the present disclosure can load resources efficiently, flexibly and intelligently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to the field of computer technology, and more specifically to a resource loading method, device, computer program product, non-transitory computer-readable storage medium, and electronic device. Background Art

[0002] This section is intended to introduce some aspects of the art, which may be related to various aspects of the present disclosure described below and / or claimed. It is believed that this section helps to provide background information to facilitate a better understanding of various aspects of the present disclosure. Therefore, it should be understood that these statements should be understood from this perspective, rather than as an admission of the prior art.

[0003] With the vigorous development of the live broadcast industry, the requirements for user experience and reward animation effects in the live broadcast room are getting higher and higher. The props functions and material resources used for rewards are becoming more and more complex and diverse. The resource loading of props functions is not only time-consuming, but also requires a lot of memory and network support. Since the loading effect of the client is deeply restricted by the environment, network, and scene. Therefore, how to design an efficient, flexible and intelligent loading mode is an urgent need for current business.

[0004] Therefore, it is necessary to propose a resource loading solution to alleviate or solve at least one of the above technical problems. Summary of the invention

[0005] The purpose of the present disclosure is to provide a resource loading method, device, computer program product, non-transitory computer-readable storage medium and electronic device to load resources efficiently, flexibly and intelligently.

[0006] According to a first aspect of the present disclosure, a resource loading method is provided for loading resources corresponding to props in a live network broadcast, the method comprising:

[0007] Real-time statistical data of the current online live broadcast is obtained, wherein the real-time statistical data includes a props list under at least one statistical indicator, wherein the at least one statistical indicator includes at least one of the current user's prop usage preference, the frequency of prop usage in the current live broadcast room, the prop usage preference of the online live broadcast platform, and the current user's prop usage habits; resource identifiers corresponding to the props in the props list are placed in a resource queue so as to load resources corresponding to the props in the props list.

[0008] According to a second aspect of the present disclosure, there is provided a resource loading device for loading resources corresponding to props in a live network broadcast, the device comprising: a data acquisition module for acquiring real-time statistical data of the current live network broadcast, the real-time statistical data comprising a props list under at least one statistical indicator, the at least one statistical indicator comprising at least one of the current user's prop usage preference, the frequency of prop usage in the current live broadcast room, the prop usage preference of the live network broadcast platform and the current user's prop usage habits; a loading module for placing resource identifiers corresponding to the props in the prop list into a resource queue so as to load the resources corresponding to the props in the prop list.

[0009] According to a third aspect of the present disclosure, a computer program product is provided, comprising program code instructions. When the program product is executed by a computer, the program code instructions enable the computer to execute the method according to the first aspect of the present disclosure.

[0010] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method according to the first aspect of the present disclosure.

[0011] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor, a memory that electronically communicates with the processor; and instructions, the instructions being stored in the memory and executable by the processor to enable the electronic device to perform the method according to the first aspect of the present disclosure.

[0012] In various embodiments provided in the present disclosure, resources are loaded according to real-time statistical data related to props in live broadcasts, and the resource loading method can be dynamically adjusted to load resources efficiently and smoothly, which is conducive to improving the user experience.

[0013] It should be understood that the content described in this section is not intended to identify key or essential features of the claimed invention, nor is it intended to be used alone to determine the scope of the claimed invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0015] Figure 1A system architecture diagram of an embodiment of a resource loading method according to the present disclosure is shown;

[0016] Figure 2 A flow chart of an embodiment of a resource loading method according to the present disclosure is shown;

[0017] Figure 3 A flowchart showing a specific example of a resource loading method according to the present disclosure is shown;

[0018] Figure 4 An exemplary block diagram of a resource loading device according to an embodiment of the present disclosure is shown;

[0019] Figure 5 A schematic diagram of an example electronic device 500 is shown that may be used to implement embodiments of the present disclosure.

[0020] Specific implementation method

[0021] The present disclosure will be described more fully below with reference to the accompanying drawings. However, the present disclosure may be embodied in a variety of alternative forms and should not be construed as being limited to the embodiments described herein. Therefore, although the present disclosure is susceptible to various modifications and alternative forms, its specific embodiments are shown by way of example in the accompanying drawings and will be described in detail herein. However, it should be understood that this approach is not intended to limit the present disclosure to the specific form disclosed, but rather, the present disclosure covers all modifications, equivalents, and alternatives that fall within the spirit and scope of the present disclosure as defined by the claims.

[0022] It should be understood that although various elements can be described herein with terms such as first, second, etc., these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element can be referred to as a second element, and similarly, a second element can be referred to as a first element without departing from the teaching of the present disclosure.

[0023] Some examples are described herein in conjunction with block diagrams and / or flow charts, wherein each box represents a circuit element, module, or portion of code that includes one or more executable instructions for implementing a specified logical function. It should also be noted that in other implementations, the functions described in the box may not occur in the order described. For example, depending on the functions involved, two boxes shown in succession may actually be executed substantially simultaneously, or the boxes may sometimes be executed in reverse order.

[0024] The phrases "according to an embodiment..." or "in an embodiment..." mentioned herein mean that a specific feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one implementation of the present disclosure. The phrases "according to an embodiment..." or "in an embodiment..." that appear in different places herein do not necessarily refer to the same embodiment, nor are they necessarily separate or alternative embodiments that are mutually exclusive with other embodiments.

[0025] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the resource loading method, apparatus, terminal device, and storage medium of the present disclosure can be applied.

[0026] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0027] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as voice interaction applications, video conferencing applications, short video social applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0028] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with microphones and speakers, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) players, portable computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.

[0029] The server 105 may be a server that provides various services. For example, the server 105 is a background server that processes resource loading requests sent by the terminal devices 101 , 102 , and 103 .

[0030] In some cases, the resource loading method provided in the present disclosure may be executed by the terminal devices 101 , 102 , 103 , and accordingly, the resource loading apparatus may also be disposed in the terminal devices 101 , 102 , 103 . In this case, the system architecture 100 may not include the server 105 .

[0031] In some cases, the resource loading method provided by the present disclosure may be jointly executed by the terminal devices 101, 102, 103 and the server 105, and accordingly, the resource loading apparatus may also be respectively disposed in the terminal devices 101, 102, 103 and the server 105.

[0032] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0033] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0034] Figure 2 A flow chart of an embodiment of a resource loading method according to the present disclosure is shown. The method in this embodiment can be Figure 1 implemented by the terminal device in Figure 1 The terminal device and the server in the embodiment are implemented together. As can be understood, the resource loading step needs to be implemented by the terminal device.

[0035] The resource loading method 200 in this embodiment is used to load resources corresponding to props in live broadcasting.

[0036] In this embodiment, live streaming may refer to a method of information dissemination in which an independent signal acquisition device (audio + video) is set up on site and imported into a director's terminal (director's device or platform), and then uploaded to a server via the Internet, and published to a terminal device for people to watch.

[0037] In this embodiment, props (also referred to as gifts or prop gifts) may refer to virtual objects such as virtual items, virtual expressions or animation effects used by viewers in live streaming to express their specific emotions towards the host.

[0038] In this embodiment, the resources corresponding to the props may refer to static data necessary to achieve the display effect of the props, such as pictures or animations.

[0039] In this embodiment, resource loading may refer to a process in which a terminal device loads resources into the local device so as to enable subsequent rapid invocation.

[0040] Exemplarily, resources may be loaded when a user enters a live broadcast room of a live broadcast on the Internet. In this case, when a user exits a first live broadcast room and enters a second live broadcast room, the resources loaded when the user enters the first live broadcast room may not be cleared.

[0041] In this embodiment, by loading the resources corresponding to the props, a dynamic effect preview of the props can be provided when the user opens the prop use interface, or a dynamic effect of the props can be provided when the user uses the props.

[0042] like Figure 2 As shown, the resource loading method 200 may include the following steps:

[0043] Step 210, obtain real-time statistical data of the current live broadcast, the real-time statistical data includes a prop list under at least one statistical indicator, the at least one statistical indicator includes at least one of the current user's prop usage preference, the prop usage frequency of the current live broadcast room, the prop usage preference of the live broadcast platform and the current user's prop usage habits.

[0044] In this embodiment, real-time statistical data is data that is updated in real time and is related to props. Real-time statistical data may include a prop list under a specific statistical indicator. The statistical indicators in this embodiment may be the current user's prop usage preference, the prop usage frequency of the current live broadcast room, the prop usage preference of the network live broadcast platform, or the current user's prop usage habits.

[0045] The current user's prop usage preference may be the current user's recent (e.g., within the past 14 days) prop usage preference, which can be obtained by collecting statistics on the current user's recent prop usage data. The frequency of prop usage in the current live broadcast room may be the frequency of each prop being used in the current live broadcast room, which can be obtained by collecting statistics on the prop usage data of the current live broadcast room. The prop usage preference of the live broadcast platform may be the overall prop usage preference of all users on the live broadcast platform, which can be obtained by collecting statistics on the prop usage data of all users on the live broadcast platform. The current user's prop usage habits may be the current user's historical prop usage habits, which can be obtained by collecting statistics on all the current user's past prop usage data.

[0046] In this embodiment, the prop list includes multiple props and the ranking between multiple props. The props included in the prop list under different statistical indicators may be the same or different. The number of props included in the prop list under different statistical indicators may be the same or different. Exemplarily, the prop list under the current user's prop usage preference is, for example: prop No. 1, prop No. 2, and prop No. 3. The prop list under the prop usage frequency of the current live broadcast room is, for example: prop No. 1, prop No. 2, and prop No. 4. The prop list under the prop usage preference of the online live broadcast platform is, for example: prop No. 1, prop No. 3, prop No. 4, and prop No. 5. The prop list under the current user's prop usage habits is, for example: prop No. 2, prop No. 1, and prop No. 3.

[0047] The props list under a specific statistical indicator can be updated in real time. For example, five minutes into the broadcast, the props list under the prop usage frequency of the current live broadcast room is prop 1, prop 2, and prop 4. Ten minutes into the broadcast, the props list under the prop usage frequency of the current live broadcast room is prop 2, prop 4, and prop 1.

[0048] In this embodiment, the terminal device can implement the acquisition of real-time statistical data of the current live broadcast. Optionally, the terminal device can acquire real-time statistical data by receiving the real-time broadcast of the server. The terminal device can monitor the real-time broadcast of the server in real time or at a fixed time interval (e.g., 5 minutes) through an API (Application Program Interface).

[0049] By using real-time broadcasting to transmit real-time statistical data, the network consumption and memory consumption of terminal devices can be reduced, which is also conducive to alleviating the processing pressure of the server.

[0050] Step 220, putting the resource identifiers corresponding to the props in the prop list into the resource queue, so as to load the resources corresponding to the props in the prop list.

[0051] In this embodiment, the resource corresponding to the prop has a unique resource identifier. In an optional embodiment, the MD5 message digest algorithm (MD5 Message-Digest Algorithm) can be used to encrypt the information of a resource, generate a corresponding MD5 value, and use the MD5 value as the resource identifier of the resource.

[0052] In this embodiment, the resource queue stores relevant data of multiple resources. The relevant data of each resource includes the resource identifier and download address of the resource. The loading queue obtains the resource data one by one according to the order of the multiple resource identifiers in the resource queue and the corresponding download addresses to complete the loading of multiple resources.

[0053] In this embodiment, the resource identifiers corresponding to the props in the prop list can be put into the resource queue to complete resource loading. Exemplarily, the order of the corresponding resource identifiers in the resource queue can be determined according to the order of the props in the list.

[0054] In this embodiment, resources are loaded according to real-time statistical data related to props in the live broadcast, and the resource loading method can be dynamically adjusted to load resources efficiently and smoothly, which is conducive to improving the user experience.

[0055] In an optional embodiment, the real-time statistical data may include a list of items under at least two statistical indicators. In this case, step 220 may further include: first, obtaining a priority order between at least two statistical indicators. Second, according to the priority order, the resource identifiers corresponding to the list of items under each of the at least two statistical indicators are sequentially placed into a resource queue.

[0056] For example, the real-time statistical data may include a prop list under the prop usage preference of the live broadcast platform (for example: prop No. 1, prop No. 3, prop No. 4, and prop No. 5) and a prop list under the prop usage habits of the current user (for example: prop No. 2, prop No. 1, and prop No. 3). Among them, the priority of the prop usage preference of the live broadcast platform is higher than the priority of the prop usage habits of the current user. Accordingly, in step 220, the resource identifier corresponding to the prop list under the prop usage preference of the live broadcast platform (for example: prop No. 1 resource, prop No. 3 resource, prop No. 4 resource, and prop No. 5 resource) may be first placed in the resource queue, and then the resource identifier corresponding to the prop list under the prop usage habits of the current user (for example: prop No. 2 resource, prop No. 1 resource, and prop No. 3 resource) may be placed in the resource queue.

[0057] In an optional embodiment, the priority order of each statistical indicator can be set in advance according to the possibility of the props in the prop list under each statistical indicator being used by the user.

[0058] By loading resources according to the priority order between different statistical indicators, it can be ensured that props that are more likely to be used by users are loaded first, which is conducive to improving the response speed of prop use and thus improving user experience.

[0059] In an optional embodiment, resource identifiers that already exist in the resource queue are no longer added repeatedly, that is: when the resource identifier corresponding to the item in the prop list does not exist in the resource queue, the resource identifier corresponding to the item in the prop list is added to the resource queue; when the resource identifier corresponding to the item in the prop list already exists in the resource queue, the resource queue remains unchanged.

[0060] For example, in the above example, if the resource identifiers corresponding to the prop list under the prop usage preferences of the online live broadcast platform (for example: prop resource No. 1, prop resource No. 3, prop resource No. 4 and prop resource No. 5) have been placed in the resource queue, when processing the resource identifiers corresponding to the prop list under the current user's prop usage habits (for example: prop resource No. 2, prop resource No. 1 and prop resource No. 3), the duplicate resource identifiers (i.e., prop resource No. 1 and prop resource No. 3) may no longer be placed in the resource queue.

[0061] The above method can prevent repeated loading of resources and help reduce unnecessary network and memory consumption.

[0062] The live broadcast popularity of the live broadcast on the network will affect the prop selection of the user. In an optional embodiment, the live broadcast popularity of the current live broadcast on the network can be obtained first, and then the priority order between at least two statistical indicators is determined according to the live broadcast popularity of the current live broadcast on the network.

[0063] For example, at least two statistical indicators may include the current user's prop usage preference and the prop usage frequency of the current live broadcast room. When the live broadcast popularity of the current live broadcast room is high (i.e., the live broadcast popularity is higher than a preset popularity threshold), the prop usage frequency of the current live broadcast room is more likely to affect the user's choice of props than the prop usage preference of the current user, so the priority of the prop usage frequency of the current live broadcast room can be set to be higher than the priority of the prop usage preference of the current user. When the live broadcast popularity of the current live broadcast room is low (i.e., the live broadcast popularity is lower than a preset popularity threshold), the prop usage preference of the current user is more likely to affect the user's choice of props than the prop usage frequency of the current live broadcast room, so the priority of the prop usage frequency of the current live broadcast room can be set to be lower than the priority of the prop usage preference of the current user.

[0064] In this embodiment, the live broadcast popularity can be an index formed by combining factors such as the number of viewers of the online live broadcast, the amount of barrage, the number of members, the amount of gifts, etc.

[0065] In an optional embodiment, when the live broadcast popularity is higher than a preset popularity threshold (for example, 5000), the priority order of each statistical indicator is: frequency of prop usage in the current live broadcast room > prop usage preference of the current user > prop usage habits of the current user > prop usage preference of the online live broadcast platform.

[0066] In an optional embodiment, when the live broadcast popularity is lower than a preset popularity threshold (for example, 5000), the priority order of each statistical indicator is: current user's prop usage preference > prop usage frequency in the current live broadcast room > current user's prop usage habits > online live broadcast platform's prop usage preference.

[0067] In an optional embodiment, the resources of the props can be divided into different types, such as mp4 type, svga type, NFT type and smart picture type, etc. Correspondingly, the resource queue includes multiple queues corresponding to different resource types, such as mp4 type resource queue, svga type resource queue, NFT type resource queue and smart picture type resource queue, etc. At this time, the resource identifier corresponding to the prop in the prop list can be put into the queue corresponding to the resource type of the resource identifier to improve the processing speed.

[0068] In an optional embodiment, the resource corresponding to the prop may be an animation resource, and the real-time statistical data may also include the current network environment. When the current network environment is not good, the resource may be downgraded and converted into a corresponding image for loading and display. At this time, the resource loading process may include: when the current network environment is a good network environment, the animation resource is loaded; when the current network environment is a poor network environment, the image extracted from the animation resource is loaded.

[0069] The above-mentioned better network environment, for example, is a network speed greater than a preset network speed threshold, or a network connection type of a network type higher than 2G. The above-mentioned worse network environment, for example, is a network speed less than a preset network speed threshold, or a network connection type of a network type of 2G or lower.

[0070] As can be understood, the current network environment can be detected by the terminal device itself.

[0071] Exemplarily, one picture may be extracted from the animation resource, or multiple pictures may be extracted from the animation resource, and then a picture with the highest image quality may be selected from the multiple pictures.

[0072] By downgrading resources from animations to images, it is possible to ensure users' basic prop usage experience when the network environment is poor, which is conducive to enhancing the adaptability of resource loading solutions to the network environment.

[0073] In an optional embodiment, the loading of resources can be implemented based on a loading queue, and the loading queue is used to load the corresponding resources according to the order of resource identifiers in the resource queue. At this time, after step 220, the method can also include the following steps: determining whether the resource queue has changed. In the case that the resource queue has changed, the order of the resources to be loaded in the loading queue is adjusted according to the order of the resource identifiers in the resource queue; in the case that the resource queue has not changed, the loading queue is kept unchanged.

[0074] Exemplarily, a global variable may be introduced to indicate whether the resource queue has changed. Further, by checking the value of the global variable (eg, 1 indicates no change, 0 indicates change), it may be determined whether to change the order of the resources to be loaded in the loading queue.

[0075] There may be various specific situations in which the resource queue does not change, for example, the real-time statistical data does not change, or although the implementation statistical data changes, it does not affect the order of the resource identifiers in the resource queue.

[0076] Figure 3 FIG. 1 shows a flowchart of a specific example of a resource loading method according to the present disclosure. Figure 3 As shown, the terminal device obtains the real-time statistical data of the live broadcast room by receiving the real-time broadcast of the server. Among them, the live broadcast popularity of the room, the user's prop usage habits and the frequency of prop usage in the live broadcast room are monitored in real time, and the platform prop usage preferences and user prop usage preferences are pulled every 5 minutes.

[0077] The terminal device determines the priority order of various statistical indicators based on the live broadcast popularity of the room, specifically: when the live broadcast popularity is higher than 5000, the frequency of prop usage in the current live broadcast room > the current user's prop usage preference > the current user's prop usage habits > the prop usage preference of the online live broadcast platform; when the live broadcast popularity is lower than 5000, the current user's prop usage preference > the frequency of prop usage in the current live broadcast room > the current user's prop usage habits > the prop usage preference of the online live broadcast platform.

[0078] The terminal device decomposes the animation resources into types according to the relevant configuration of the animation resources, and puts the resource identifiers corresponding to the props in the prop list under each statistical indicator into the corresponding type of resource queue (including mp4 type resource queue, svga type resource queue, NFT type resource queue and smart picture type resource queue) according to the priority order of each statistical indicator.

[0079] In the existing resource loading mode, the order in which resources are loaded is completely determined by the order in which the server returns the resources (usually corresponding to the order of the props in the prop panel of the software interface). If the prop that the user wants to use is located at the back of the panel, it is easy for the resource of the prop to not be loaded in time, resulting in the user being unable to preview the animation effect of the prop, affecting the user's experience.

[0080] In this embodiment, a dynamic resource loading mode is adopted to load resources according to real-time statistical data related to props in live broadcasts. The loading order can be dynamically adjusted to ensure that resources corresponding to props that are more likely to be used by users are loaded first.

[0081] For example, suppose that the order of resource identifiers in the resource queue at the current time is "prop resource No. 1", "prop resource No. 2", "prop resource No. 3", "prop resource No. 4" and "prop resource No. 5". At the next time, according to the implementation statistical data, it is determined that the loading order of "prop resource No. 4" is promoted to before "prop resource No. 2". At this time, the order of resource identifiers in the resource queue can be updated to "prop resource No. 1", "prop resource No. 4", "prop resource No. 2", "prop resource No. 3" and "prop resource No. 5".

[0082] If the current network environment is poor, the terminal device downgrades the resource loading mode from animation mode to frame mode, and only loads the pictures corresponding to each resource.

[0083] Figure 4 FIG. 1 shows an exemplary block diagram of a resource loading device according to an embodiment of the present disclosure. Figure 4 As shown, the resource loading device 400 includes: a data acquisition module 410, which is used to obtain real-time statistical data of the current live broadcast, and the real-time statistical data includes a prop list under at least one statistical indicator, and the at least one statistical indicator includes at least one of the current user's prop usage preference, the frequency of prop usage in the current live broadcast room, the prop usage preference of the live broadcast platform, and the current user's prop usage habits; a loading module 420, which is used to put the resource identifier corresponding to the prop in the above prop list into a resource queue, so as to load the resources corresponding to the prop in the above prop list.

[0084] It should be understood that Figure 4 The various modules of the apparatus 400 shown in FIG. Figure 2 The steps in the method 200 described above correspond to each other. Therefore, the operations, features and advantages described above for the method 200 are also applicable to the apparatus 400 and the modules included therein. For the sake of brevity, some operations, features and advantages are not described in detail here.

[0085] In an optional embodiment, the real-time statistical data includes a list of items under at least two statistical indicators. The loading module 420 is further used to: obtain a priority order between the at least two statistical indicators; and put the resource identifiers corresponding to the list of items under each of the at least two statistical indicators into the resource queue in turn according to the priority order.

[0086] In an optional embodiment, the loading module 420 is further used to: obtain the live broadcast popularity of the current online live broadcast; and determine the priority order between the above at least two statistical indicators according to the above live broadcast popularity of the current online live broadcast.

[0087] In an optional embodiment, the at least two statistical indicators include the current user's prop usage preference and the prop usage frequency of the current live broadcast room. The loading module 420 is also used to: when the live broadcast heat is higher than a preset heat threshold, determine that the priority of the prop usage frequency of the current live broadcast room is higher than the priority of the prop usage preference of the current user; when the live broadcast heat is lower than the preset heat threshold, determine that the priority of the prop usage frequency of the current live broadcast room is lower than the priority of the prop usage preference of the current user.

[0088] In an optional embodiment, the resource queue includes multiple queues corresponding to different resource types; the loading module 420 is further used to: put the resource identifier corresponding to the prop in the prop list into the queue corresponding to the resource type of the resource identifier.

[0089] In an optional embodiment, the data acquisition module 410 is further used to acquire the above-mentioned real-time statistical data by receiving real-time broadcast from the server.

[0090] In an optional embodiment, the resource is an animation resource, and the real-time statistical data also includes the current network environment. The loading module 420 is also used to: load the animation resource when the current network environment is a good network environment; and load the image extracted from the animation resource when the current network environment is a poor network environment.

[0091] In an optional embodiment, the loading module 420 is also used to: if the resource identifier corresponding to the prop in the above-mentioned prop list does not exist in the above-mentioned resource queue, add the resource identifier corresponding to the prop in the above-mentioned prop list to the above-mentioned resource queue; if the resource identifier corresponding to the prop in the above-mentioned prop list already exists in the above-mentioned resource queue, keep the above-mentioned resource queue unchanged.

[0092] In an optional embodiment, the loading of the above resources is implemented based on a loading queue, and the above loading queue is used to load the corresponding resources according to the order of resource identifiers in the above resource queue. The loading module 420 is also used to: determine whether the above resource queue has changed; if the above resource queue has changed, adjust the order of resources to be loaded in the above loading queue according to the order of resource identifiers in the above resource queue; if the above resource queue has not changed, keep the above loading queue unchanged.

[0093] Figure 5 Schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure is shown. Figure 5, a structural block diagram of an electronic device 500 that can serve as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein. Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504. Multiple components in the device 500 are connected to the I / O interface 505, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0094] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the resource loading method. For example, in some embodiments, the resource loading method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the resource loading method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the resource loading method in any other appropriate manner (e.g., by means of firmware).

[0095] The various illustrative logics, logic blocks, modules, circuits, and algorithmic processes described in conjunction with the aspects disclosed herein may be implemented as electronic hardware, computer software, or a combination of both. The interchangeability of hardware and software has been generally described in terms of functionality and illustrated in the various illustrative components, blocks, modules, circuits, and processes described above. Whether such functionality is implemented in hardware or software depends on the specific application and design constraints on the overall system.

[0096] The hardware and data processing apparatus for implementing the various illustrative logics, logic blocks, modules and circuits described in conjunction with the aspects disclosed herein can be implemented or executed with a general purpose single-chip or multi-chip processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor can be a microprocessor or any conventional processor, controller, microcontroller or state machine. The processor can also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. In some aspects, specific processes and methods can be performed by circuits specific to a given function.

[0097] In one or more aspects, the functions described may be implemented in hardware, digital electronic circuitry, computer software, firmware (including the structures disclosed in this specification and their equivalents), or any combination thereof. Aspects of the subject matter described in this specification may also be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, encoded on computer storage media for execution by a data processing apparatus or to control the operation of the data processing apparatus.

[0098] If implemented in software, the function can be stored or transferred to a computer-readable medium as one or more instructions or codes. The process of the method or algorithm disclosed herein can be implemented in a software module executable by a processor, and the software module can reside on a computer-readable medium. Computer-readable media include computer storage media and communication media, and the communication media include any medium capable of transmitting a computer program from one place to another. The storage medium can be any available medium accessible by a computer. As an example and not limitation, this computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or any other medium that can be used to store the required program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. The disk (Disk) and disk (disc) used herein include high-density optical disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein the disk (Disk) usually copies data magnetically, and the disk (disc) copies data optically with lasers. The above combination should also be included in the scope of computer-readable media. Additionally, the operations of a method or algorithm may be implemented as one or any combination or set of codes and instructions on a machine-readable medium and a computer-readable medium, which may be incorporated into a computer program product.

[0099] Each embodiment in the present disclosure is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, equipment embodiment, computer-readable storage medium embodiment, and computer program product embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A resource loading method for loading resources corresponding to props in a live network broadcast. include: Acquire real-time statistical data of the current online live broadcast, the real-time statistical data includes a prop list under at least two statistical indicators, the at least two statistical indicators include at least two of the current user's prop usage preference, the prop usage frequency of the current live broadcast room, the prop usage preference of the online live broadcast platform, and the current user's prop usage habits; the current user's prop usage preference is the current user's recent prop usage preference, which is obtained by counting the current user's recent prop usage data; the prop usage frequency of the current live broadcast room is the frequency of each prop being used in the current live broadcast room, which is obtained by counting the prop usage data of the current live broadcast room; the prop usage preference of the online live broadcast platform is the overall prop usage preference of all users on the online live broadcast platform, which is obtained by counting the prop usage data of all users on the online live broadcast platform; the current user's prop usage habits are the current user's past prop usage habits, which are obtained by counting all the current user's past prop usage data; Put the resource identifiers corresponding to the props in the prop list into the resource queue, so as to load the resources corresponding to the props in the prop list; The step of placing the resource identifiers corresponding to the items in the item list into a resource queue comprises: obtaining a priority order between the at least two statistical indicators; placing the resource identifiers corresponding to the item list under each statistical indicator of the at least two statistical indicators into the resource queue in turn according to the priority order; The obtaining of the priority order between the at least two statistical indicators comprises: obtaining the real-time live broadcast popularity of the current live broadcast on the network; and determining the priority order between the at least two statistical indicators according to the real-time live broadcast popularity of the current live broadcast on the network.

2. The method according to claim 1, in, The at least two statistical indicators include the current user's prop usage preference and the prop usage frequency in the current live broadcast room; as well as Determining the priority order between the at least two statistical indicators according to the live broadcast popularity includes: When the live broadcast popularity is higher than a preset popularity threshold, determining that the priority of the prop usage frequency of the current live broadcast room is higher than the priority of the prop usage preference of the current user; When the live broadcast popularity is lower than a preset popularity threshold, it is determined that the priority of the prop usage frequency of the current live broadcast room is lower than the priority of the prop usage preference of the current user.

3. The method according to claim 1, in, The resource queue includes a plurality of queues corresponding to different resource types; and The step of placing resource identifiers corresponding to the items in the item list into a resource queue includes: The resource identifiers corresponding to the props in the prop list are placed in a queue corresponding to the resource type of the resource identifier.

4. The method according to claim 1, in, The real-time statistical data of the current live broadcast is obtained, including: The real-time statistical data is obtained by receiving the real-time broadcast from the server.

5. The method according to claim 1, in, The resource is an animation resource, and the real-time statistical data also includes the current network environment; as well as The loading of resources corresponding to the props in the prop list includes: When the current network environment is a good network environment, loading the animation resource; When the current network environment is a poor network environment, the pictures extracted from the animation resources are loaded.

6. The method according to claim 1, in, Put the resource identifiers corresponding to the props in the prop list into the resource queue, including: If the resource identifier corresponding to the item in the item list does not exist in the resource queue, add the resource identifier corresponding to the item in the item list to the resource queue; In the case where the resource identifier corresponding to the item in the item list already exists in the resource queue, the resource queue is kept unchanged.

7. The method according to claim 6, in, The loading of the resources is implemented based on a loading queue, and the loading queue is used to load corresponding resources according to the order of resource identifiers in the resource queue; as well as After placing the resource identifiers corresponding to the props in the prop list into a resource queue, the method further includes: Determine whether the resource queue changes; When the resource queue changes, adjusting the order of resources to be loaded in the loading queue according to the order of resource identifiers in the resource queue; When the resource queue does not change, the loading queue is kept unchanged.

8. A resource loading device for loading resources corresponding to props in a live network broadcast, the device include: A data acquisition module is used to obtain real-time statistical data of the current online live broadcast, wherein the real-time statistical data includes a prop list under at least two statistical indicators, wherein the at least two statistical indicators include at least two of the current user's prop usage preference, the prop usage frequency of the current live broadcast room, the prop usage preference of the online live broadcast platform, and the prop usage habits of the current user; the current user's prop usage preference is the current user's recent prop usage preference, which is obtained by counting the current user's recent prop usage data; the prop usage frequency of the current live broadcast room is the frequency of each prop being used in the current live broadcast room, which is obtained by counting the prop usage data of the current live broadcast room; the prop usage preference of the online live broadcast platform is the overall prop usage preference of all users on the online live broadcast platform, which is obtained by counting the prop usage data of all users on the online live broadcast platform; the current user's prop usage habits are the current user's past prop usage habits, which are obtained by counting all the current user's past prop usage data; A loading module, used to put resource identifiers corresponding to the props in the prop list into a resource queue, so as to load the resources corresponding to the props in the prop list; The loading module is also used to: obtain the priority order between the at least two statistical indicators; and put the resource identifiers corresponding to the prop list under each statistical indicator of the at least two statistical indicators into the resource queue in turn according to the priority order; The at least two statistical indicators include the current user's prop usage preference and the prop usage frequency in the current live broadcast room; the loading module is also used to: obtain the real-time live broadcast popularity of the current live broadcast; and determine the priority order between the at least two statistical indicators based on the real-time live broadcast popularity of the current live broadcast.

9. A computer program product, comprising program code instructions, which, when the program product is executed by a computer, cause the computer to execute the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

11. An electronic device, include: processor, a memory in electronic communication with the processor; as well as Instructions, which are stored in the memory and can be executed by the processor to enable the electronic device to perform the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Video live broadcast method, device and equipment and storage medium

    CN110418149A

  • Picture loading method and device, electronic device and readable storage medium

    CN110609718A

  • Virtual gift list generation method and device and virtual gift recommendation method and device

    CN111866595A

  • Gift display method and system in network live broadcast

    CN112399192A

  • Live streaming gift playing system, method, device and server

    CN112770128A