Virtual resource sending method and apparatus, electronic device, and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
- Filing Date
- 2022-10-10
- Publication Date
- 2026-08-07
AI Technical Summary
[0004]本公开提供一种虚拟资源发送方法、装置、电子设备、存储介质和计算机程序产品,以至少解决相关技术中存在部分用户端在直播过程中出现卡顿、进程崩溃的问题
[0046]本公开的方案,通过针对直播间对应的用户账户,获取用户账户的用户端信息,用户端信息包括用户账户所在客户端的版本信息、用户账户信息、客户端所在终端的设备性能信息中至少一种,然后针对直播间关联的互动虚拟资源,从互动虚拟资源对应的多组资源数据中确定出与用户端信息匹配的一组资源数据,作为目标资源数据,同一互动虚拟资源对应的不同资源数据对应互动虚拟资源的不同动态展示效果,进而将互动虚拟资源对应的目标资源数据提供给客户端,目标资源数据用于在客户端的直播界面中以对应于目标资源数据的动态展示效果展示互动虚拟资源。如此,可以根据获取到的用户账户的用户端信息,匹配下发不同的互动虚拟资源的资源数据,能够针对同一互动虚拟资源,在不同终端设备上适应性展示对应的动态效果,避免了播放复杂互动虚拟资源引起的卡顿、进程崩溃等问题,提升了直播效率。
Smart Images

Figure CN115643434B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Internet technology, and in particular to a method, apparatus, electronic device, storage medium, and computer program product for sending virtual resources. Background Technology
[0002] Currently, when interactive virtual resources are displayed during a live stream, such as when live stream gift effects are played, the interactive virtual resource playback effect will be displayed on all viewers' and streamer's devices in the live stream room.
[0003] With the development of live streaming demand, the special effects of interactive virtual resources are constantly improving. The display of interactive virtual resources also places higher and higher demands on the hardware devices of users, resulting in a large number of problems such as lag and process crashes on some users' devices during the live streaming process, which has affected the live streaming activities. Summary of the Invention
[0004] This disclosure provides a method, apparatus, electronic device, storage medium, and computer program product for sending virtual resources, to at least solve the problem of some user terminals experiencing lag and process crashes during live streaming in related technologies. The technical solution of this disclosure is as follows:
[0005] According to a first aspect of the present disclosure, a method for sending virtual resources is provided, comprising:
[0006] For the user account corresponding to the live broadcast room, obtain the user client information of the user account; the user client information includes at least one of the following: version information of the client where the user account is located, user account information, and device performance information of the terminal where the client is located;
[0007] For the interactive virtual resources associated with the live streaming room, a set of resource data that matches the user terminal information is determined from multiple sets of resource data corresponding to the interactive virtual resources, and is used as the target resource data; wherein, different resource data corresponding to the same interactive virtual resource correspond to different dynamic display effects of the interactive virtual resource;
[0008] The target resource data corresponding to the interactive virtual resource is provided to the client; the target resource data is used to display the interactive virtual resource in the client's live streaming interface with a dynamic display effect corresponding to the target resource data.
[0009] In one possible implementation, determining a set of resource data matching the user terminal information from multiple sets of resource data corresponding to the interactive virtual resource, as the target resource data, includes:
[0010] Obtain multiple pre-configured matching rules; each of the multiple matching rules corresponds to a different priority.
[0011] From the plurality of matching rules, determine the target matching rule with the highest priority that matches the user terminal information;
[0012] According to the target matching rules, the target resource data is determined from multiple sets of resource data corresponding to the interactive virtual resource.
[0013] In one possible implementation, the matching rules include custom rules and general rules, with the custom rules having a higher priority than the general rules. The step of determining the target matching rule with the highest priority that matches the user information from the plurality of matching rules includes:
[0014] The user terminal information is matched with the custom rules, and the target matching rule is obtained based on the matched custom rules.
[0015] If the custom rule is not matched, the general rule will be used as the target matching rule.
[0016] In one possible implementation, the custom rule includes a first custom rule based on a specified set of user accounts. The matching of the user information with the custom rule, and the determination of the target matching rule based on the matched custom rule, includes:
[0017] If the user account information is an account in the specified user account set, the first custom rule is used as the target matching rule.
[0018] In one possible implementation, the custom rule further includes a second custom rule based on preset judgment conditions, wherein the first custom rule has a higher priority than the second custom rule, and the step of matching the user terminal information with the custom rule to obtain the target matching rule based on the matched custom rule includes:
[0019] From a plurality of preset judgment conditions, a target judgment condition is determined that matches at least one of the version information of the client where the user account is located and the device performance information of the terminal where the client is located. The second custom rule corresponding to the target judgment condition is used as the target matching rule.
[0020] In one possible implementation, the method further includes:
[0021] In response to a resource update operation for multiple sets of resource data corresponding to the interactive virtual resource, the newly added resource data is obtained;
[0022] Generate new resource link information corresponding to the newly added resource data, configure update matching rules corresponding to the new resource link information, and save the update matching rules.
[0023] In one possible implementation, the method further includes:
[0024] In response to a rule adjustment operation, rule adjustment information for the matching rule to be adjusted is obtained; the rule adjustment information includes at least one of the following: adjustment information for the configuration conditions in the rule and adjustment information for the resource data corresponding to the rule.
[0025] The matching rules to be adjusted are updated according to the rule adjustment information.
[0026] In one possible implementation, providing the target resource data corresponding to the interactive virtual resource to the client includes:
[0027] The target link information corresponding to the target resource data is sent to the client; the target link information is used to obtain the target resource data corresponding to the interactive virtual resource.
[0028] In one possible implementation, sending the target link information corresponding to the target resource data to the client includes:
[0029] The target interactive virtual resource is determined from the multiple interactive virtual resources associated with the live broadcast room; the target interactive virtual resource is selected based on the playback frequency of each interactive virtual resource.
[0030] Send the target link information corresponding to the target interactive virtual resource to the client.
[0031] In one possible implementation, prior to the step of providing the target resource data corresponding to the interactive virtual resource to the client, the method further includes:
[0032] For each interactive virtual resource, obtain the original resource data corresponding to the interactive virtual resource, and at least one downgraded resource data corresponding to the interactive virtual resource;
[0033] The original resource data and each of the downgraded resource data are used as multiple sets of resource data corresponding to the interactive virtual resource, and the multiple sets of resource data are saved.
[0034] The downgraded resource data is obtained by processing the original resource data through at least one of the following methods: reducing resolution, reducing resource display time, and reducing visual elements of resource display.
[0035] According to a second aspect of the present disclosure, a virtual resource sending apparatus is provided, comprising:
[0036] The user-end information acquisition unit is configured to acquire user-end information of the user account corresponding to the live broadcast room; the user-end information includes at least one of the following: version information of the client where the user account is located, user account information, and device performance information of the terminal where the client is located.
[0037] The target resource data determination unit is configured to perform the following actions for the interactive virtual resources associated with the live streaming room: determine a set of resource data that matches the user terminal information from multiple sets of resource data corresponding to the interactive virtual resources, and use it as the target resource data; wherein, different resource data corresponding to the same interactive virtual resource correspond to different dynamic display effects of the interactive virtual resource.
[0038] The target resource data providing unit is configured to provide the target resource data corresponding to the interactive virtual resource to the client; the target resource data is used to display the interactive virtual resource in the live broadcast interface of the client with a dynamic display effect corresponding to the target resource data.
[0039] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0040] processor;
[0041] Memory used to store the processor's executable instructions;
[0042] The processor is configured to execute the instructions to implement the virtual resource sending method as described in any of the preceding claims.
[0043] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the virtual resource sending method as described in any of the preceding claims.
[0044] According to a fifth aspect of the present disclosure, a computer program product is provided, the computer program product including instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the virtual resource sending method as described in any of the preceding claims.
[0045] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:
[0046] The disclosed solution obtains user client information for the user account corresponding to the live streaming room. This user client information includes at least one of the following: client version information, user account information, and device performance information of the terminal where the client is located. Then, for the interactive virtual resources associated with the live streaming room, a set of resource data matching the user client information is determined from multiple sets of resource data corresponding to the interactive virtual resources. This set serves as the target resource data. Different resource data corresponding to the same interactive virtual resource correspond to different dynamic display effects of the interactive virtual resource. The target resource data is then provided to the client, and used to display the interactive virtual resource in the client's live streaming interface with the dynamic display effect corresponding to the target resource data. In this way, resource data for different interactive virtual resources can be matched and distributed based on the obtained user account's user client information. This allows for adaptive display of the corresponding dynamic effects for the same interactive virtual resource on different terminal devices, avoiding problems such as stuttering and process crashes caused by playing complex interactive virtual resources, thus improving live streaming efficiency.
[0047] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0048] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0049] Figure 1 This is an application environment diagram illustrating a virtual resource sending method according to an exemplary embodiment.
[0050] Figure 2 This is a flowchart illustrating a virtual resource sending method according to an exemplary embodiment.
[0051] Figure 3 This is a flowchart illustrating a target resource data determination step according to an exemplary embodiment.
[0052] Figure 4 This is a schematic diagram illustrating a matching rule configuration according to an exemplary embodiment.
[0053] Figure 5 This is a flowchart illustrating another method for sending virtual resources according to an exemplary embodiment.
[0054] Figure 6 This is a block diagram illustrating a virtual resource sending apparatus according to an exemplary embodiment.
[0055] Figure 7This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0056] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0057] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this disclosure.
[0058] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0059] The virtual resource sending method provided in this disclosure can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on the cloud or other network servers. When a user account enters the live streaming room, server 104 can obtain user-end information based on the user account of terminal 102. Then, for the interactive virtual resources associated with the live streaming room, it can determine a set of resource data matching the user-end information from multiple sets of resource data corresponding to the interactive virtual resources, using this as the target resource data. Server 104 can then provide the target resource data corresponding to the interactive virtual resources to terminal 102 where the client is located, so that the interactive virtual resources can be displayed in the client's live streaming interface with a dynamic display effect corresponding to the target resource data. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster composed of multiple servers.
[0060] Figure 2 This is a flowchart illustrating a virtual resource sending method according to an exemplary embodiment, such as... Figure 2As shown, this method can be used in a server and includes the following steps.
[0061] In step S210, for the user account corresponding to the live broadcast room, the user terminal information of the user account is obtained;
[0062] As an example, the user accounts corresponding to a live streaming room can include the streamer's user account and the viewer's user account.
[0063] The user-side information may include at least one of the following: the version information of the client where the user account is located, the user account information, and the device performance information of the terminal where the client is located. For example, the client version information may represent the application version type and application version number corresponding to the client. The user account information may be user ID information or user type information, which may represent whether the user is a broadcaster or a viewer. The device performance information may include CPU model, memory size, current CPU usage, current memory usage, operating system version, etc.
[0064] In practical applications, for the user account corresponding to the live broadcast room, the client terminal corresponding to the user account can request the distribution interface of interactive virtual resources from the server. The server can obtain the user account's client information by receiving the distribution interface request information, so as to further match the appropriate interactive virtual resource corresponding resource data based on the client information.
[0065] In one example, when a broadcaster or viewer enters the live streaming room, the terminal where the live streaming client is located can send a download interface request to the live streaming server. This download interface request may carry the user terminal information of the broadcaster or viewer account. For example, it may include user ID information, user device information (such as CPU model, memory size, operating system version), user application type (such as main application or simplified application), application version number, etc., and may also include other relevant user terminal information. No specific restrictions are imposed in this embodiment.
[0066] In step S220, for the interactive virtual resources associated with the live streaming room, a set of resource data that matches the user terminal information is determined from multiple sets of resource data corresponding to the interactive virtual resources, and is used as the target resource data;
[0067] Among them, different resource data corresponding to the same interactive virtual resource can correspond to different dynamic display effects of the interactive virtual resource. That is, the same interactive virtual resource can correspond to original resource data and degraded resource data with different degrees of degradation, such as complete material resource package and degraded material resource package.
[0068] As an example, interactive virtual resources can be dynamic display effects triggered by user interaction during live streaming. For instance, when gifts are given or tasks are completed, a magic table effect can appear on the live streaming interface of the host and all viewers. As the needs of live streaming develop, magic table effects are becoming more and more complex (such as longer effect duration, more dazzling effects, and more interactive elements).
[0069] After obtaining the user's information, the user's information is matched based on multiple pre-configured matching rules. For interactive virtual resources associated with the live broadcast room, a set of resource data that matches the user's information can be determined from multiple sets of resource data corresponding to the interactive virtual resources. This set of resource data is then used as the target resource data. Thus, for different user accounts, appropriate interactive virtual resource data can be matched according to their user's information.
[0070] In one example, multiple pre-configured matching rules can each have different priorities. By identifying the target matching rule that matches the user information and has the highest priority from among the multiple matching rules, since different matching rules can correspond to different resource data for any interactive virtual resource, the target resource data can be determined from multiple sets of resource data corresponding to the interactive virtual resource based on the target matching rule.
[0071] In another example, for any interactive virtual resource, its original resource data can be a complete material resource package, such as having complete special effects playback time, comprehensive special effects playback effects, and all special effects interactive elements. Based on the complete material resource package, by lowering the resolution of the resource files or making certain trade-offs for certain advanced capabilities, the overall size of the material resource package can be reduced, resulting in degraded resource data of different degrees. For example, a degraded material resource package has a shortened special effects playback time, a lower resolution, or lacks special magic table effects such as face recognition capabilities. In other words, degraded resource data is a degraded display of the overall special effects playback effect of the interactive virtual resource.
[0072] In step S230, the target resource data corresponding to the interactive virtual resource is provided to the client; the target resource data is used to display the interactive virtual resource in the client's live broadcast interface with a dynamic display effect corresponding to the target resource data.
[0073] In practice, the server can provide the target resource data corresponding to the interactive virtual resource to the client. For example, it can send the target link information corresponding to the target resource data to the client. Then, the client can obtain the target resource data corresponding to the interactive virtual resource based on the target link information, and display the interactive virtual resource in the client's live broadcast interface with a dynamic display effect corresponding to the target resource data.
[0074] In one example, to enable those skilled in the art to better understand the above steps, the following example illustrates an embodiment of the present disclosure, but it should be understood that the embodiments of the present disclosure are not limited thereto.
[0075] When a user launches the live streaming application, they can request the configuration interface for interactive virtual resources. The server can then send out a query list for these interactive virtual resources, such as a map file containing effectiveKey->magicfaceId. This map file can be used to query the corresponding gift magic face effect based on the identifier information. Specifically, for gift-type magic face effects, effectiveKey is giftId, which can be used to identify the magic face effect ID corresponding to all gift IDs. For non-gift-type magic face effects, effectiveKey is a unique string, and the existence of a corresponding gift magic face effect magicFaceId can be determined by using the unique identifier effectiveKey.
[0076] When a user account enters the live stream, the client can request the interface for distributing interactive virtual resources upon startup. The frequency of requesting the interface can be controlled by a switch. For example, if the user is constantly entering and leaving the live stream, the client can request the interface no more than once per minute. Furthermore, based on the user client information obtained from different user accounts, different dynamic display effects of resource data can be distributed for the same interactive virtual resource. For instance, based on the information uploaded by different users when requesting the interface (i.e., user client information), multiple pre-configured matching rules can be used to match different resource download links for the same magicfaceId, based on the user terminal device model, CPU, application version, memory, and other upload information, so as to download magicface effect resource packages with different playback effects.
[0077] The client can download the target resource data corresponding to the interactive virtual resource based on the resource download link. For example, the target resource data can include all the static files required for the Magic Face effect to play, so that it can be loaded into memory when the Magic Face effect plays. Then, when the user's interactive behavior triggers the dynamic display effect during the live broadcast, such as by sending a gift, a long connection signal can be sent to the host and all viewers in the live broadcast room. This signal can carry the magicfaceId of the gift Magic Face effect to be displayed. Then, the clients corresponding to the host and all viewers in the live broadcast room can obtain the resource package for playback based on the magicfaceId of the gift Magic Face effect in the received long connection signal. By looking up the map interface based on the gift ID (i.e., effectiveKey), the client can find the magicfaceId of the Magic Face effect corresponding to the gift ID. The client can then determine whether the resource package of the resource download link corresponding to the magicFaceId exists locally. If it does not exist, the resource package needs to be downloaded.
[0078] Compared to traditional methods that only distribute single resource packages of interactive virtual resources, which can lead to stuttering and process crashes on some user terminals with weaker hardware capabilities when playing complex interactive virtual resources due to high memory and CPU consumption, the technical solution in this embodiment addresses the issue of some terminal devices being unable to support high-quality special effects playback by distributing resource data with different dynamic display effects to different user terminal devices. This allows the Magic Table effects to be played at a downgraded level on terminal devices with weaker hardware capabilities without causing process crashes, and also reduces the bandwidth required for resource downloads to some extent, saving on data costs.
[0079] In the aforementioned method for sending virtual resources, user account information is obtained for the user account corresponding to the live stream. Then, for the interactive virtual resources associated with the live stream, a set of resource data matching the user account information is determined from multiple sets of resource data corresponding to the interactive virtual resources. This set is then used as the target resource data, and the target resource data corresponding to the interactive virtual resources is provided to the client. In this way, resource data for different interactive virtual resources can be matched and sent based on the obtained user account information. This allows for the adaptive display of corresponding dynamic effects for the same interactive virtual resource on different terminal devices, avoiding problems such as stuttering and process crashes caused by playing complex interactive virtual resources, thus improving live streaming efficiency.
[0080] In one exemplary embodiment, such as Figure 3 As shown, from multiple sets of resource data corresponding to interactive virtual resources, a set of resource data matching the user's information is determined as the target resource data, including:
[0081] In step S310, multiple pre-configured matching rules are obtained;
[0082] Among them, multiple matching rules can each have different priorities. For example, matching rules can include custom rules and general rules, with custom rules having higher priority than general rules.
[0083] In practical applications, multiple matching rules can be pre-configured for the distribution of resource data for interactive virtual resources. This allows for the matching of different distributed resource data for the same interactive virtual resource based on the user-end information uploaded when different users request the interface, thereby adaptively displaying the corresponding dynamic effects on different terminal devices.
[0084] In step S320, the target matching rule with the highest priority that matches the user information is determined from multiple matching rules;
[0085] In step S330, target resource data is determined from multiple sets of resource data corresponding to the interactive virtual resource according to the target matching rules.
[0086] Specifically, such as Figure 4 As shown, multiple matching rules can be pre-configured based on a rule list. By determining whether a matching rule in the rule list is matched, the corresponding gift magic table effect resource package (i.e., the target resource data corresponding to the interactive virtual resource) can be sent when a match is found. The matching rules in this rule list can be divided into custom rules containing whitelist rules and custom condition rules, and default rules (i.e., general rules). A matching rule can contain one or more rule conditions (such as...). Figure 4 In the custom conditional rules (Rules 1 and 2), each matching rule can be evaluated sequentially according to priority, and the evaluation results of each matching rule can be obtained. This allows the determination of the matching rule that hits the condition (i.e., the target matching rule), and the corresponding resource package (i.e., the target resource data) can be issued. Figure 4 The default resource package, resource package 2, and resource package 3 correspond to different matching rules.
[0087] In one example, by pre-configuring multiple matching rules, the material distribution configuration is standardized. This enables near real-time (based on the distribution interface design, there is a 3-5 minute delay due to caching caused by the large number of requests) delivery of different dynamic effects magic watch material resource packages to users on different terminal devices according to the rule conditions of different matching rules. Based on the combination of whitelist rules, custom condition rules, and default rules, the newly launched gift magic watch effect material resource packages can be adjusted for different models and the resource distribution can be downgraded, which is convenient for maintenance.
[0088] The technical solution of this embodiment obtains multiple pre-configured matching rules, then determines the target matching rule with the highest priority that matches the user terminal information from the multiple matching rules, and then determines the target resource data from multiple sets of resource data corresponding to the interactive virtual resource according to the target matching rule. It can deliver appropriate resource data to users of different terminal devices for the same interactive virtual resource based on the matching rule settings, which is flexible in configuration and easy to maintain.
[0089] In one exemplary embodiment, the matching rules may include custom rules and general rules, and the priority of custom rules is higher than that of general rules. Determining the target matching rule with the highest priority that matches the user information from multiple matching rules includes: matching the user information with the custom rules, obtaining the target matching rule according to the matched custom rules; and using the general rules as the target matching rule when no custom rule is matched.
[0090] As an example, custom rules can include whitelist rules and custom conditional rules, while general rules can be default rules, and the priority relationship can be whitelist rules > custom conditional rules > default rules.
[0091] In specific implementations, such as Figure 4 As shown, whitelist rules can be matched first based on user information according to priority. If the first matching whitelist set is found, the resource package result corresponding to that whitelist set is returned. If the whitelist rules are not satisfied, custom condition rules can be matched based on user information according to the rule order in the custom condition rules. For example, matching can be performed in a top-down order, with each matching rule connected by OR logic and multiple matching conditions within each matching rule connected by AND logic. If neither the whitelist rules nor the custom condition rules are satisfied, the resource package result corresponding to the default rule can be returned. For example, by using the default rule, a complete resource package can be sent by default for requests that do not match the whitelist rules and do not match all custom condition rules.
[0092] The technical solution of this embodiment matches user-end information with custom rules, obtains the target matching rule based on the matched custom rules, and then uses the general rule as the target matching rule when no custom rule is matched. This can match the target matching rule based on priority relationship, thereby improving the efficiency of configuration distribution.
[0093] In one exemplary embodiment, the custom rule may include a first custom rule based on a specified set of user accounts, matching user information with the custom rule, and obtaining a target matching rule based on the matched custom rule, including: if the user account information is an account in the specified set of user accounts, the first custom rule is used as the target matching rule.
[0094] Custom rules can include a first custom rule based on a specified set of user accounts, such as a whitelist rule.
[0095] In one example, such as Figure 4 As shown, for whitelist rules, based on user account information such as userId, it can sequentially determine whether each whitelist set contains the user account's userId. If the user account's userId is detected to exist in a certain whitelist set, the resource package result corresponding to that whitelist set can be returned.
[0096] For example, through whitelist rules, the corresponding material resource package can be directly issued to the user account corresponding to userId in the whitelist based on the conditions of the whitelist set. It can be used for testing or to meet the needs of specific broadcasters. For example, when it is determined that userId = A, resource package 1 can be issued, and when userId = B, resource package 2 can be issued, so that each material resource package can be used for testing.
[0097] The technical solution of this embodiment, by using the first custom rule as the target matching rule if the user account information is an account in a specified set of user accounts, can perform resource distribution matching based on the first custom rule of a specified set of user accounts.
[0098] In an exemplary embodiment, the custom rule may further include a second custom rule based on preset judgment conditions, wherein the priority of the first custom rule is higher than that of the second custom rule, and the user terminal information is matched with the custom rule. Based on the matched custom rule, a target matching rule is obtained, including: determining a target judgment condition from multiple preset judgment conditions that matches at least one of the version information of the client where the user account is located and the device performance information of the terminal where the client is located, and using the second custom rule corresponding to the target judgment condition as the target matching rule.
[0099] Custom rules can also include second custom rules based on preset judgment conditions, such as custom condition rules, etc. Figure 4 As shown, the fields supported in each rule (such as userId, memory information, device model, CPU model, etc.) can be extended, and the operators supported by each field can be predefined (such as userId supporting set operations, == operations, != operations; memory information supporting comparison operations; CPU model supporting set operations, etc., to determine whether it exists in a certain list).
[0100] In one example, such as Figure 4 As shown, for each matching rule in the custom conditional rules, the judgment can be made based on the version information of the client where the user account is located, the user account information, and the device performance information of the terminal where the client is located, such as userId, CPU information, memory information, etc. It can be determined whether several conditions of each matching rule are met. When several conditions corresponding to any matching rule are met at the same time, the matching rule is hit (i.e., the target matching rule), and the resource package result corresponding to the hit matching rule can be returned.
[0101] For example, through custom conditional rules, configuration can be based on the application version, such as allowing certain face-following magic table effects to only support specific application versions; it can also be based on the CPU list, such as allowing different mobile terminals to support full magic table effect playback or downgraded magic table effect playback due to differences in processing power; it can also be based on memory, such as determining the memory size of the terminal device and sending downgraded material resource packages to user accounts with less than 2GB of memory, thereby enabling downgraded playback of special functions or complex magic table effects based on low-configuration models.
[0102] The technical solution of this embodiment determines at least one target judgment condition from multiple preset judgment conditions that matches the version information of the client where the user account is located and the device performance information of the terminal where the client is located. The second custom rule corresponding to the target judgment condition is used as the target matching rule. Resource distribution matching can be performed using the second custom rule based on the preset judgment conditions, which is flexible in configuration.
[0103] In an exemplary embodiment, the method may further include the following steps: in response to a resource update operation for multiple sets of resource data corresponding to the interactive virtual resource, acquiring the newly added resource data; generating new resource link information corresponding to the newly added resource data, configuring update matching rules corresponding to the new resource link information, and saving the update matching rules.
[0104] In one example, when creating an upload resource package, one to N resource packages can be uploaded. The created resource packages (i.e., newly added resource data) can be saved and edited. When each resource package is successfully uploaded, a corresponding resource download link URL (i.e., link information) can also be generated.
[0105] The technical solution of this embodiment obtains the newly added resource data in response to the resource update operation of multiple sets of resource data corresponding to the interactive virtual resources, generates new resource link information corresponding to the newly added resource data, configures the update matching rules corresponding to the new resource link information, and saves the update matching rules, which can be flexibly configured and is easy to maintain.
[0106] In an exemplary embodiment, the method may further include the following steps: in response to a rule adjustment operation, obtaining rule adjustment information corresponding to the matching rule to be adjusted; and updating the matching rule to be adjusted based on the rule adjustment information.
[0107] The rule adjustment information may include at least one of the following: adjustment information of the configuration conditions in the rule and adjustment information of the resource data corresponding to the rule.
[0108] In one example, such as Figure 4As shown, you can edit each matching rule, adjust the configuration conditions in any matching rule, and adjust the resource package corresponding to any matching rule.
[0109] The technical solution of this embodiment obtains the rule adjustment information corresponding to the matching rule to be adjusted in response to the rule adjustment operation, and then updates the matching rule to be adjusted according to the rule adjustment information, which can be flexibly configured and is easy to maintain.
[0110] In one exemplary embodiment, providing target resource data corresponding to interactive virtual resources to a client includes: sending target link information corresponding to the target resource data to the client; the target link information is used to obtain the target resource data corresponding to the interactive virtual resources.
[0111] In practical applications, by using multiple pre-configured matching rules, different resource download links (i.e. target link information) can be matched for the same interactive virtual resource based on user information. Then, the target link information can be sent to the client so that the client can obtain the target resource data corresponding to the interactive virtual resource according to the target link information, such as downloading magic watch effect resource packages with different playback effects.
[0112] The technical solution of this embodiment, by sending the target link information corresponding to the target resource data to the client, enables different terminal devices to obtain different resource data of interactive virtual resources by sending the link information.
[0113] In one exemplary embodiment, sending the target link information corresponding to the target resource data to the client includes: determining the target interactive virtual resource from multiple interactive virtual resources associated with the live broadcast room, wherein the target interactive virtual resource is selected based on the playback frequency of each interactive virtual resource; and sending the target link information corresponding to the target interactive virtual resource to the client.
[0114] In one example, due to limitations such as peak periods, it is not necessary to distribute all Magic Table effects to all users. Instead, Magic Table effects with the top N playback counts (e.g., N=200) can be distributed (i.e., target interactive virtual resources selected based on the playback frequency of each interactive virtual resource) to send the target link information corresponding to the target interactive virtual resource to the client.
[0115] The technical solution of this embodiment determines the target interactive virtual resource from multiple interactive virtual resources associated with the live broadcast room, and then sends the target link information corresponding to the target interactive virtual resource to the client. This can determine the number of interactive virtual resources to be distributed based on preset selection conditions, thereby reducing the bandwidth required for resource download.
[0116] In one exemplary embodiment, before providing the target resource data corresponding to the interactive virtual resource to the client, the method includes: for each interactive virtual resource, obtaining the original resource data corresponding to the interactive virtual resource and at least one degraded resource data corresponding to the interactive virtual resource; using the original resource data and each degraded resource data as multiple sets of resource data corresponding to the interactive virtual resource, and saving the multiple sets of resource data.
[0117] Among them, downgraded resource data can be obtained by reducing the resolution of the original resource data, reducing the resource display time, or reducing the visual elements of the resource display.
[0118] In practice, when submitting and uploading magic table effect materials, one or more resource packages (i.e., multiple sets of resource data corresponding to interactive virtual resources) can be uploaded for a complex magic table effect. Alternatively, the resolution of resource files in the complete material resource package (i.e., the original resource data) can be reduced, or certain advanced capabilities can be selected and sacrificed, thereby reducing the overall size of the material resource package and configuring a downgraded material resource package (i.e., each downgraded resource data) for low-configuration models.
[0119] For example, a complete media resource package can be distributed to broadcasters and high-configuration mobile devices with higher memory, CPU performance, and user APP versions; while a downgraded low-resolution media resource package can be distributed to non-broadcasters and low-configuration mobile devices. This package may be inferior in terms of playback time and resolution, or may not support the face recognition capability of special magic table effects. This is a downgrade to the overall playback experience to avoid situations where playback is impossible.
[0120] The technical solution of this embodiment obtains the original resource data corresponding to each interactive virtual resource, as well as at least one downgraded resource data corresponding to each interactive virtual resource. Then, the original resource data and each downgraded resource data are used as multiple sets of resource data corresponding to the interactive virtual resource, and multiple sets of resource data are saved. This provides data support for matching appropriate interactive virtual resource data to different user terminal information.
[0121] Figure 5 This is a flowchart illustrating another virtual resource sending method according to an exemplary embodiment, such as... Figure 5 As shown, this method is used in computer devices such as servers and includes the following steps.
[0122] In step S510, for each interactive virtual resource, the original resource data corresponding to the interactive virtual resource and at least one downgraded resource data corresponding to the interactive virtual resource are obtained. In step S520, the original resource data and each downgraded resource data are used as multiple sets of resource data corresponding to the interactive virtual resource, and these multiple sets of resource data are saved. In step S530, for the user account corresponding to the live stream room, the user account's client information is obtained; the client information includes at least one of the following: the version information of the client where the user account is located, the user account information, and the device performance information of the terminal where the client is located. In step S540, for the interactive virtual resources associated with the live stream room, multiple pre-configured matching rules are obtained; the matching rules include custom rules and general rules, with custom rules having a higher priority than general rules. In step S550, matching is performed based on the client information and the custom rules, and the target matching rule is obtained based on the matched custom rules. In step S560, if no custom rule is matched, the general rule is used as the target matching rule. In step S570, the target resource data is determined from the multiple sets of resource data corresponding to the interactive virtual resource according to the target matching rule. In step S580, the target link information corresponding to the target resource data is sent to the client; the target link information is used to obtain the target resource data corresponding to the interactive virtual resource. It should be noted that the specific limitations of the above steps can be found in the specific limitations of a virtual resource sending method described above, and will not be repeated here.
[0123] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0124] It is understood that the same / similar parts between the various embodiments of the methods described above in this specification can be referred to each other. Each embodiment focuses on the differences from other embodiments, and relevant parts can be referred to the description of other method embodiments.
[0125] Based on the same inventive concept, this disclosure also provides a virtual resource sending apparatus for implementing the virtual resource sending method described above.
[0126] Figure 6 This is a block diagram illustrating a virtual resource sending device according to an exemplary embodiment. (Refer to...) Figure 6 The device includes:
[0127] The user-end information acquisition unit 601 is configured to acquire user-end information of the user account corresponding to the live broadcast room; the user-end information includes at least one of the following: version information of the client where the user account is located, user account information, and device performance information of the terminal where the client is located.
[0128] The target resource data determination unit 602 is configured to perform the following actions for the interactive virtual resources associated with the live streaming room: determine a set of resource data that matches the user terminal information from multiple sets of resource data corresponding to the interactive virtual resources, and use it as the target resource data; wherein, different resource data corresponding to the same interactive virtual resource correspond to different dynamic display effects of the interactive virtual resource.
[0129] The target resource data providing unit 603 is configured to provide the target resource data corresponding to the interactive virtual resource to the client; the target resource data is used to display the interactive virtual resource in the live broadcast interface of the client with a dynamic display effect corresponding to the target resource data.
[0130] In one possible implementation, the target resource data determination unit 602 is specifically configured to perform the following: obtain multiple pre-configured matching rules; each of the multiple matching rules has a different priority; determine the target matching rule with the highest priority that matches the user information from the multiple matching rules; and determine the target resource data from multiple sets of resource data corresponding to the interactive virtual resource according to the target matching rule.
[0131] In one possible implementation, the matching rules include custom rules and general rules, and the custom rules have a higher priority than the general rules. The target resource data determination unit 602 is specifically configured to perform matching based on the user terminal information and the custom rules, and obtain the target matching rule according to the matched custom rules; if no custom rule is matched, the general rules are used as the target matching rule.
[0132] In one possible implementation, the custom rule includes a first custom rule based on a specified set of user accounts. The target resource data determination unit 602 is specifically configured to execute the first custom rule as the target matching rule if the user account information is an account in the specified set of user accounts.
[0133] In one possible implementation, the custom rule further includes a second custom rule based on preset judgment conditions, wherein the priority of the first custom rule is higher than the priority of the second custom rule, and the target resource data determination unit 602 is specifically configured to execute a target judgment condition that matches at least one of the version information of the client where the user account is located and the device performance information of the terminal where the client is located from a plurality of preset judgment conditions, and use the second custom rule corresponding to the target judgment condition as the target matching rule.
[0134] In one possible implementation, the virtual resource sending device further includes:
[0135] The resource data update unit is specifically configured to perform a resource update operation in response to multiple sets of resource data corresponding to the interactive virtual resource, and to obtain the newly added resource data;
[0136] The matching rule update unit is specifically configured to generate new resource link information corresponding to the newly added resource data, configure update matching rules corresponding to the new resource link information, and save the update matching rules.
[0137] In one possible implementation, the virtual resource sending device further includes:
[0138] The adjustment information acquisition unit is specifically configured to perform a rule adjustment operation in response to obtain rule adjustment information for the matching rule to be adjusted; the rule adjustment information includes at least one of the following: adjustment information of the configuration conditions in the rule and adjustment information of the resource data corresponding to the rule.
[0139] The rule adjustment unit is specifically configured to update the matching rule to be adjusted according to the rule adjustment information.
[0140] In one possible implementation, the target resource data providing unit 603 is specifically configured to send target link information corresponding to the target resource data to the client; the target link information is used to obtain the target resource data corresponding to the interactive virtual resource.
[0141] In one possible implementation, the target resource data providing unit 603 is specifically configured to determine a target interactive virtual resource from a plurality of interactive virtual resources associated with the live streaming room; the target interactive virtual resource is selected based on the playback frequency of each interactive virtual resource; and the target link information corresponding to the target interactive virtual resource is sent to the client.
[0142] In one possible implementation, the virtual resource sending device further includes:
[0143] The different resource data acquisition units are specifically configured to perform the following tasks for each interactive virtual resource: acquire the original resource data corresponding to the interactive virtual resource, and at least one degraded resource data corresponding to the interactive virtual resource.
[0144] The unit for obtaining multiple sets of resource data is specifically configured to perform the following: taking the original resource data and each of the downgraded resource data as multiple sets of resource data corresponding to the interactive virtual resource, and saving the multiple sets of resource data.
[0145] The downgraded resource data is obtained by processing the original resource data through at least one of the following methods: reducing resolution, reducing resource display time, and reducing visual elements of resource display.
[0146] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0147] Each module in the aforementioned virtual resource sending device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0148] Figure 7 This is a block diagram illustrating an electronic device 700 for implementing a virtual resource sending method according to an exemplary embodiment. For example, the electronic device 700 can be a server. (Refer to...) Figure 7 The electronic device 700 includes a processing component 720, which further includes one or more processors, and memory resources represented by memory 722 for storing instructions, such as application programs, that can be executed by the processing component 720. The application programs stored in memory 722 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 720 is configured to execute instructions to perform the methods described above.
[0149] Electronic device 700 may further include: a power supply component 724 configured to perform power management of electronic device 700, a wired or wireless network interface 726 configured to connect electronic device 700 to a network, and an input / output (I / O) interface 728. Electronic device 700 may operate on an operating system stored in memory 722, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or similar.
[0150] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 722 including instructions, which can be executed by a processor of an electronic device 700 to perform the above-described method. The storage medium may be a computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0151] In an exemplary embodiment, a computer program product is also provided, the computer program product including instructions that can be executed by a processor of an electronic device 700 to perform the above-described method.
[0152] It should be noted that the above-mentioned apparatus, electronic equipment, computer-readable storage medium, computer program product, etc., may also include other implementation methods according to the description of the method embodiments. For specific implementation methods, please refer to the description of the relevant method embodiments, which will not be elaborated here.
[0153] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0154] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for sending virtual resources, characterized in that, The method includes: For the user account corresponding to the live broadcast room, obtain the user client information of the user account; the user client information includes the version information of the client where the user account is located, the user account information, and the device performance information of the terminal where the client is located; For the interactive virtual resources associated with the live stream, multiple pre-configured matching rules are obtained. From these multiple matching rules, the target matching rule with the highest priority that matches the user information is determined. Based on the target matching rule, target resource data is determined from multiple sets of resource data pre-generated for the interactive virtual resources. Different resource data corresponding to the same interactive virtual resource correspond to different dynamic display effects of the interactive virtual resource. The multiple matching rules each have different priorities, and different matching rules correspond to different resource data. The target resource data corresponding to the interactive virtual resource is provided to the client; the target resource data is used to display the interactive virtual resource in the client's live streaming interface with a dynamic display effect corresponding to the target resource data.
2. The method according to claim 1, characterized in that, The client version information represents the application version type and application version number corresponding to the client.
3. The method according to claim 1, characterized in that, The matching rules include custom rules and general rules, with the custom rules having a higher priority than the general rules. The step of determining the target matching rule with the highest priority that matches the user information from the plurality of matching rules includes: The user terminal information is matched with the custom rules, and the target matching rule is obtained based on the matched custom rules. If the custom rule is not matched, the general rule will be used as the target matching rule.
4. The method according to claim 3, characterized in that, The custom rules include a first custom rule based on a specified set of user accounts. The matching of the user information with the custom rules, and the determination of the target matching rule based on the matched custom rules, includes: If the user account information is an account in the specified user account set, the first custom rule is used as the target matching rule.
5. The method according to claim 4, characterized in that, The custom rule further includes a second custom rule based on preset judgment conditions. The first custom rule has a higher priority than the second custom rule. The process of matching the user terminal information with the custom rule and obtaining the target matching rule based on the matched custom rule includes: From a plurality of preset judgment conditions, a target judgment condition is determined that matches at least one of the version information of the client where the user account is located and the device performance information of the terminal where the client is located. The second custom rule corresponding to the target judgment condition is used as the target matching rule.
6. The method according to claim 1, characterized in that, The method further includes: In response to a resource update operation for multiple sets of resource data corresponding to the interactive virtual resource, the newly added resource data is obtained; Generate new resource link information corresponding to the newly added resource data, configure update matching rules corresponding to the new resource link information, and save the update matching rules.
7. The method according to claim 1, characterized in that, The method further includes: In response to a rule adjustment operation, rule adjustment information for the matching rule to be adjusted is obtained; the rule adjustment information includes at least one of the following: adjustment information for the configuration conditions in the rule and adjustment information for the resource data corresponding to the rule. The matching rules to be adjusted are updated according to the rule adjustment information.
8. The method according to claim 1, characterized in that, Providing the target resource data corresponding to the interactive virtual resource to the client includes: The target link information corresponding to the target resource data is sent to the client; the target link information is used to obtain the target resource data corresponding to the interactive virtual resource.
9. The method according to claim 8, characterized in that, Sending the target link information corresponding to the target resource data to the client includes: The target interactive virtual resource is determined from the multiple interactive virtual resources associated with the live broadcast room; the target interactive virtual resource is selected based on the playback frequency of each interactive virtual resource. Send the target link information corresponding to the target interactive virtual resource to the client.
10. The method according to any one of claims 1 to 9, characterized in that, Before the step of providing the target resource data corresponding to the interactive virtual resource to the client, the method further includes: For each interactive virtual resource, obtain the original resource data corresponding to the interactive virtual resource, and at least one downgraded resource data corresponding to the interactive virtual resource; The original resource data and each of the downgraded resource data are used as multiple sets of resource data corresponding to the interactive virtual resource, and the multiple sets of resource data are saved. The downgraded resource data is obtained by processing the original resource data through at least one of the following methods: reducing resolution, reducing resource display time, and reducing visual elements of resource display.
11. A virtual resource sending device, characterized in that, The device includes: The user-side information acquisition unit is configured to acquire user-side information of the user account corresponding to the live broadcast room; the user-side information includes the version information of the client where the user account is located, user account information, and device performance information of the terminal where the client is located. The target resource data determination unit is configured to perform the following actions for interactive virtual resources associated with the live stream: acquire multiple pre-configured matching rules; determine the target matching rule with the highest priority that matches the user information from the multiple matching rules; and determine target resource data from multiple sets of resource data pre-generated for the interactive virtual resources according to the target matching rule. Different resource data corresponding to the same interactive virtual resource correspond to different dynamic display effects of the interactive virtual resource. The multiple matching rules each have different priorities, and different matching rules correspond to different resource data. The target resource data providing unit is configured to provide the target resource data corresponding to the interactive virtual resource to the client; the target resource data is used to display the interactive virtual resource in the live broadcast interface of the client with a dynamic display effect corresponding to the target resource data.
12. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the virtual resource sending method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the virtual resource sending method as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Animation playing method and device, terminal equipment and server
CN110493456A
Special effect generation method, device and system, equipment and storage medium
CN111290751A
Target attribute configuration information determination method, computer equipment and storage medium
CN112817563A