Data Distribution Method, Apparatus, Device and Medium
By obtaining and analyzing the live pendant distribution rules collection, decoupling the display parameters and live broadcast scenarios of the live pendant, the problems of high time-consuming and low display efficiency of live pendant development are solved, and efficient development and real-time display of live pendant are achieved.
Patent Information
- Application Number
- CN202310101544.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-28
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2043-01-28
AI Technical Summary
The development of live pendants is time-consuming and has low display efficiency. The existing technology requires customized development of live pendants and display logic based on different live broadcast scenarios, resulting in increased labor and time costs.
By obtaining the set of live pendant distribution rules associated with the current live broadcast scene, the target distribution rules are analyzed to obtain the data source identification and display conditions, the live pendant parameters are determined based on the live broadcast data and sent to the live broadcast terminal, decoupling the display parameters of the live broadcast pendant and the live broadcast scene.
It reduces the workload of live pendant development, improves development efficiency, simplifies the difficulty of writing live pendant distribution rules, and improves the real-time and efficiency of live pendant display.
Smart Images

Figure CN116248908B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a data distribution method, a data distribution device, an electronic device, and a computer-readable storage medium. Background Art
[0002] Live streaming is a common business in the Internet. During the live streaming process, the live streaming widget can be used to display various live streaming data of the live streaming room account to be processed in the live streaming scene, such as the current live streaming room ranking of the anchor.
[0003] In related technologies, during the live broadcast scene, live broadcast widgets corresponding to different live broadcast participation forms can be displayed according to the different live broadcast participation forms of the live broadcast room account to be processed, so that users can view the live broadcast data of the live broadcast room account to be processed in the current live broadcast participation form.
[0004] Typically, in a live broadcast scenario, it is necessary to customize the development of different styles of live broadcast widgets and the display logic of the live broadcast widgets according to the live broadcast widgets that need to be displayed in the live broadcast scenario, which requires a lot of manpower costs. The live broadcast widget display process needs to be implemented through complex codes, which is time-consuming and results in poor real-time performance of the live broadcast widget display. Summary of the Invention
[0005] The present disclosure provides a data distribution method, apparatus, device, and medium to at least address the issues in related technologies of time-consuming development of live streaming widgets and low display efficiency of live streaming widgets. The technical solutions of the present disclosure are as follows:
[0006] According to a first aspect of an embodiment of the present disclosure, there is provided a data distribution method, comprising:
[0007] Get the live widget distribution rule set associated with the current live scene;
[0008] Parsing the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule, wherein the data source identifier is a live data identifier associated with the live participation form;
[0009] If it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, then determining the target live broadcast widget parameters according to the target live broadcast data, where the target live broadcast data is the live broadcast data corresponding to the target data source identifier;
[0010] The target live broadcast widget parameters are sent to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0011] Optionally, the method further includes:
[0012] If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, then determining an updated live broadcast widget distribution rule set, wherein the updated live broadcast widget distribution rule set does not include the target distribution rule;
[0013] Parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule;
[0014] If it is determined that the updated target live broadcast data associated with the live broadcast room account to be processed meets the updated target display condition, then determining the updated target live broadcast widget parameters according to the updated target live broadcast data, wherein the updated target live broadcast data is the live broadcast data corresponding to the updated target data source identifier;
[0015] The updated target live broadcast widget parameters are sent to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0016] Optionally, after parsing the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule, the method further includes:
[0017] Obtain the target live broadcast data associated with the live broadcast room account to be processed;
[0018] After parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule, the method further includes:
[0019] If it is determined that the target data source identifier is the same as the updated target data source identifier, the target live broadcast data is determined to be the updated target live broadcast data associated with the live broadcast room account to be processed.
[0020] Optionally, the number of the live broadcast room accounts to be processed includes multiple, and if it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, determining the target live broadcast widget parameters according to the target live broadcast data includes:
[0021] Traversing each live broadcast room account to be processed, if it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, then adding the live broadcast room account to be processed to the first type of live broadcast room set;
[0022] According to the target live broadcast data associated with each to-be-processed live broadcast room account in the first category of live broadcast room set, the target live broadcast widget parameters associated with each to-be-processed live broadcast room account in the first category of live broadcast room set are determined.
[0023] Optionally, the method further includes:
[0024] If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, the live broadcast room account to be processed is added to the second type of live broadcast room set;
[0025] Parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule;
[0026] Traversing each pending live broadcast room account in the second type of live broadcast room set, if it is determined that the updated target live broadcast data associated with the pending live broadcast room account in the second type of live broadcast room set meets the updated target display condition, then adding the pending live broadcast room account in the second type of live broadcast room set to the third type of live broadcast room set;
[0027] According to the updated target live broadcast data associated with each to-be-processed live broadcast room account in the third type of live broadcast room set, the updated target live broadcast widget parameters associated with each to-be-processed live broadcast room account in the third type of live broadcast room set are determined.
[0028] Optionally, the method further includes:
[0029] Obtain at least one of a global parameter and a target style parameter, wherein the global parameter is a parameter included in all live broadcast widgets associated with the current live broadcast scene, and the target style parameter is a parameter unique to the live broadcast widget displayed when the target display condition is met;
[0030] The determining of target live broadcast widget parameters according to the target live broadcast data includes:
[0031] At least one of the global parameters and the target style parameters, and the target live broadcast data are determined as the target live broadcast widget parameters.
[0032] Optionally, parsing the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule includes:
[0033] Determine the data source keyword in the target distribution rule according to the parsing rule of the distribution rule to obtain at least one target data source identifier;
[0034] According to the parsing rule of the distribution rule, the display condition keyword in the target distribution rule is determined to obtain the target display condition associated with the target distribution rule.
[0035] According to a second aspect of an embodiment of the present disclosure, there is provided a data distribution device, including:
[0036] An acquisition module configured to acquire a set of live widget distribution rules associated with a current live broadcast scene;
[0037] a parsing module configured to parse a target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule, wherein the data source identifier is a live data identifier associated with a live participation form;
[0038] a determination module configured to determine target live broadcast widget parameters based on the target live broadcast data if it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, wherein the target live broadcast data is the live broadcast data corresponding to the target data source identifier;
[0039] The sending module is configured to send the target live broadcast widget parameters to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0040] Optionally, the apparatus further includes an updating module configured to:
[0041] If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, then determining an updated live broadcast widget distribution rule set, wherein the updated live broadcast widget distribution rule set does not include the target distribution rule;
[0042] Parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule;
[0043] If it is determined that the updated target live broadcast data associated with the live broadcast room account to be processed meets the updated target display condition, then determining the updated target live broadcast widget parameters according to the updated target live broadcast data, wherein the updated target live broadcast data is the live broadcast data corresponding to the updated target data source identifier;
[0044] The updated target live broadcast widget parameters are sent to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0045] Optionally, the device further includes another acquisition module configured to:
[0046] Obtain the target live broadcast data associated with the live broadcast room account to be processed;
[0047] The apparatus further includes another determining module configured to:
[0048] If it is determined that the target data source identifier is the same as the updated target data source identifier, the target live broadcast data is determined to be the updated target live broadcast data associated with the live broadcast room account to be processed.
[0049] Optionally, the number of the live broadcast room accounts to be processed includes multiple, and the determination module is configured to:
[0050] Traversing each live broadcast room account to be processed, if it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, then adding the live broadcast room account to be processed to the first type of live broadcast room set;
[0051] According to the target live broadcast data associated with each to-be-processed live broadcast room account in the first category of live broadcast room set, the target live broadcast widget parameters associated with each to-be-processed live broadcast room account in the first category of live broadcast room set are determined.
[0052] Optionally, the apparatus further includes a further determining module configured to:
[0053] If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, the live broadcast room account to be processed is added to the second type of live broadcast room set;
[0054] Parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule;
[0055] Traversing each pending live broadcast room account in the second type of live broadcast room set, if it is determined that the updated target live broadcast data associated with the pending live broadcast room account in the second type of live broadcast room set meets the updated target display condition, then adding the pending live broadcast room account in the second type of live broadcast room set to the third type of live broadcast room set;
[0056] According to the updated target live broadcast data associated with each to-be-processed live broadcast room account in the third type of live broadcast room set, the updated target live broadcast widget parameters associated with each to-be-processed live broadcast room account in the third type of live broadcast room set are determined.
[0057] Optionally, the apparatus further includes another acquisition module configured to:
[0058] Obtain at least one of a global parameter and a target style parameter, wherein the global parameter is a parameter included in all live broadcast widgets associated with the current live broadcast scene, and the target style parameter is a parameter unique to the live broadcast widget displayed when the target display condition is met;
[0059] The determining of target live broadcast widget parameters according to the target live broadcast data includes:
[0060] At least one of the global parameters and the target style parameters, and the target live broadcast data are determined as the target live broadcast widget parameters.
[0061] Optionally, the parsing module is configured to:
[0062] Determine the data source keyword in the target distribution rule according to the parsing rule of the distribution rule to obtain at least one target data source identifier;
[0063] According to the parsing rule of the distribution rule, the display condition keyword in the target distribution rule is determined to obtain the target display condition associated with the target distribution rule.
[0064] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0065] processor;
[0066] a memory for storing instructions executable by the processor;
[0067] The processor is configured to execute the instructions to implement the data distribution method as described in the first aspect.
[0068] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data distribution method as described in the first aspect.
[0069] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
[0070] The data distribution method, apparatus, equipment and medium provided by the embodiments of the present disclosure, on the one hand, do not require the development of complex codes, but instead reduce the workload of developing live widgets and improve the efficiency of live widget development by abstracting the live widget display logic into live widget distribution rules; on the other hand, the display parameters in the live widget are decoupled from the live scene, and the live data corresponding to the same live participation form are marked with a data source identifier, which is convenient for reuse in the process of writing live widget distribution rules corresponding to different activities, further reducing the difficulty of writing live widget distribution rules; on the other hand, in the process of distributing live widget parameters, the distribution of live widget parameters can be achieved by parsing the distribution rules, without processing complex code logic, which can reduce the amount of data in the live widget display process and improve the efficiency and real-time performance of live widget display.
[0071] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0073] Figure 1 is a schematic architecture diagram of a data distribution system according to an exemplary embodiment;
[0074] Figure 2 is a flow chart showing a data distribution method according to an exemplary embodiment;
[0075] Figure 3 is a schematic diagram showing a live streaming widget according to an exemplary embodiment;
[0076] Figure 4 is a flow chart showing another data distribution method according to an exemplary embodiment;
[0077] Figure 5 is a block diagram of a data distribution device according to an exemplary embodiment;
[0078] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0079] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0080] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0081] Related technologies require customized development of widgets and their display logic for different live streaming scenarios, tailored to the specific characteristics of the widgets used in those scenarios. For example, a Christmas live streaming scenario requires the development of separate widgets and their display logic; a separate widget and its display logic also require the development of separate widgets and their display logic for the annual awards ceremony.
[0082] It can be seen that in the relevant technologies, the development and display process of live broadcast widgets are strongly coupled with the live broadcast scene. For different live broadcast scenes, live broadcast widgets and display logic need to be developed separately. Similar live broadcast widgets cannot be reused. The development process of live broadcast widgets for different live broadcast scenes requires manpower and time costs. Among them, when there are many forms of live broadcast participation in the live broadcast scene, different forms of live broadcast participation usually require different live broadcast widgets to be displayed after meeting different conditions. It is necessary to develop a large number of live broadcast widgets with complex display logic, which increases the complexity of the code and the operation and maintenance costs.
[0083] In view of the above problems, the exemplary embodiments of the present disclosure provide a data distribution method, the application scenarios of which include but are not limited to: for a live broadcast widget distribution scenario for a live broadcast scene, a live broadcast widget distribution rule set associated with the current live broadcast scene can be obtained; the target distribution rule in the distribution rule set is parsed to obtain at least one target data source identifier and a target display condition associated with the target distribution rule; if it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, the target live broadcast widget parameters are determined based on the target live broadcast data; the target live broadcast widget parameters are sent to the live broadcast terminal corresponding to the live broadcast room account to be processed; wherein the data source identifier is the live broadcast data identifier associated with the live broadcast participation form, and the target live broadcast data is the live broadcast data corresponding to the target data source identifier. The live broadcast widgets that need to be displayed in the live broadcast room in different states can be summarized as live broadcast widget distribution rules. When the live broadcast data in the live broadcast room meets the distribution rules, the widget parameters that need to be displayed are sent to the terminal device of the live broadcast room for display.
[0084] In order to implement the above-mentioned data distribution method, an exemplary embodiment of the present disclosure provides a data distribution system. Figure 1 FIG. 1 shows a schematic diagram of the data distribution system. Figure 1 As shown, data distribution system 100 may include server 110 and live broadcast terminal 120. Server 110 is a backend server deployed by the live broadcast service provider. Live broadcast terminal 120 is a terminal device used by live broadcast users. More specifically, the terminal device may be a smartphone, personal computer, tablet computer, etc. Server 110 and live broadcast terminal 120 may establish a connection via a network to achieve data distribution.
[0085] It should be understood that the server 110 may be a single server or a cluster formed by multiple servers, and the present disclosure does not limit the specific architecture of the server 110 .
[0086] Figure 2 FIG. 1 is a flow chart showing a data distribution method according to an exemplary embodiment. Figure 2 As shown, the data distribution method can be applied to the server, including the following steps:
[0087] Step S201, obtaining a set of live widget distribution rules associated with the current live scene;
[0088] Step S202: parsing the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule;
[0089] The data source identifier is the live broadcast data identifier associated with the live broadcast participation form;
[0090] Step S203: If it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, the target live broadcast widget parameters are determined according to the target live broadcast data;
[0091] The target live broadcast data is the live broadcast data corresponding to the target data source identifier;
[0092] Step S204: Send the target live broadcast widget parameters to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0093] To sum up, in the embodiments of the present disclosure, on the one hand, there is no need to develop complex codes. Instead, by abstracting the live broadcast widget display logic into live broadcast widget distribution rules, the workload of developing live broadcast widgets is reduced, and the efficiency of live broadcast widget development is improved; on the other hand, the display parameters in the live broadcast widget are decoupled from the live broadcast scene, and the live broadcast data corresponding to the same live broadcast participation form is marked with a data source identifier, which is convenient for reuse in the process of writing live broadcast widget distribution rules corresponding to different activities, further reducing the difficulty of writing live broadcast widget distribution rules; on the other hand, in the process of distributing live broadcast widget parameters, the distribution of live broadcast widget parameters can be achieved by parsing the distribution rules, without processing complex code logic, which can reduce the amount of data in the live broadcast widget display process and improve the efficiency and real-time performance of live broadcast widget display.
[0094] Below Figure 2 Each step is described in detail:
[0095] In step S201, the server may obtain a set of live widget distribution rules associated with the current live scene.
[0096] In the embodiment of the present disclosure, the current live broadcast scene is an ongoing live broadcast scene, and the live broadcast widget distribution rule set includes pre-written distribution rules. The distribution rules may include a data source identifier and display conditions associated with the distribution rules; the data source identifier is a live broadcast data identifier associated with the live broadcast participation form. It should be noted that when the live broadcast data corresponding to the data source identifier meets the display conditions, it can be determined that the live broadcast data corresponding to the data source identifier is displayed in the live broadcast widget.
[0097] The live broadcast participation form can be determined based on the live broadcast participation forms supported by the live broadcast scenario, and the embodiments of the present disclosure do not limit this. For example, the live broadcast participation form can include participating in the live broadcast in the form of a time-limited task, and the data source identifier is the identifier of the live broadcast data generated during the participation in the live broadcast in the form of a time-limited task; the live broadcast participation form can include participating in the live broadcast in the form of a battle, and the data source identifier is the identifier of the live broadcast data generated during the participation in the live broadcast in the form of a battle; or the live broadcast participation form can include participating in the live broadcast in the form of a list, and the data source identifier is the identifier of the live broadcast data generated during the participation in the live broadcast in the form of a list.
[0098] In an optional embodiment, the process of the server obtaining the live widget distribution rule set associated with the current live broadcast scene may include: in response to obtaining live broadcast start information, obtaining the live widget distribution rule set associated with the current live broadcast scene. After the live broadcast starts, the live widget distribution rule set associated with the current live broadcast scene can be obtained to facilitate determining the live widget parameters to be displayed for the live broadcast terminal, and sending them to the live broadcast terminal for display after the live broadcast starts.
[0099] In an optional embodiment, during the live broadcast process, the live broadcast participation form of the to-be-processed live broadcast room and the live broadcast data associated with the live broadcast participation form will change. In order to facilitate users to intuitively view the live broadcast data under different live broadcast participation forms during the live broadcast process, the server needs to update the live broadcast widget displayed on the live broadcast terminal according to the status of the to-be-processed live broadcast room; therefore, the server can be pre-configured with a live broadcast widget update cycle, and the live broadcast widget update cycle can be determined based on actual needs, which is not limited in the embodiment of the present disclosure. For example, the live broadcast widget update cycle can be 5 seconds or 10 seconds, etc. The process of the server obtaining the live broadcast widget distribution rule set associated with the current live broadcast scene can include: in the current live broadcast key update period, the server obtains the live broadcast widget distribution rule set associated with the current live broadcast scene. Among them, the to-be-processed live broadcast room is any live broadcast room that is broadcasting in the current live broadcast scene.
[0100] In step S202, the server may parse the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule.
[0101] In the embodiment of the present disclosure, the target distribution rule can be any distribution rule in the live widget distribution rule set, or a distribution rule with a high priority in the live widget distribution rule set, wherein the priority of the distribution rule is configured when writing the distribution rule.
[0102] In an optional embodiment, the distribution rules can be written according to an expression of a preset structure, and the expression of the preset structure has its corresponding parsing rule. The process of the server parsing the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and the target display condition associated with the target distribution rule can include: determining the data source keyword in the target distribution rule according to the parsing rule of the distribution rule to obtain at least one target data source identifier; determining the display condition keyword in the target distribution rule according to the parsing rule of the distribution rule to obtain the target display condition associated with the target distribution rule. Expressions with special rules can be used to write distribution rules, which facilitates rule parsing, can quickly determine the data source identifier and display condition, and improve the processing efficiency of the live widget parameters.
[0103] For example, the distribution rule can be written according to the aviator expression. If the target distribution rule is CityRank.inRank&&CycleRank.inRank&&AddCard.notusing, the data source keywords in the target distribution rule can be determined according to the parsing rule of the aviator expression, including: CityRank, CycleRank and AddCard, and the target data source identifiers include: CityRank, CycleRank and AddCard, among which CityRank is the live broadcast data identifier associated with participating in the live broadcast in the form of a city list, and CycleRank is the live broadcast data identifier associated with participating in the live broadcast in the form of a cycle list. Live broadcast data identifier, AddCard is the live broadcast data identifier associated with participating in the live broadcast in the form of a bonus card; at the same time, the display condition keywords in the target distribution rule can be determined, CityRank.inRank, CycleRank.inRank, AddCard.notusing and &&, to obtain the target display condition, among which CityRank.inRank indicates that the live broadcast room is in the city list, CycleRank.inRank indicates that the live broadcast room is in the cycle list, AddCard.notusing indicates that the live broadcast room does not use the bonus card, && indicates logical AND, then the target display condition is: the live broadcast room is in the city list, and also in the cycle list, and the bonus card is not used.
[0104] In an optional embodiment, the distribution rules can be written based on a non-compiled programming language. The process of parsing the target distribution rules in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule may include: parsing the target distribution rules based on the language rules of the non-compiled programming language to obtain at least one target data source identifier and a target display condition associated with the target distribution rule.
[0105] In step S203, if the server determines that the target live broadcast data associated with the live broadcast room account to be processed meets the target display conditions, the target live broadcast widget parameters are determined according to the target live broadcast data.
[0106] In the disclosed embodiment, the target live broadcast data is the live broadcast data corresponding to the target data source identifier. The live broadcast data corresponding to the target data source identifier can be determined based on the live broadcast data generated by the live broadcast participation form associated with the target data source identifier, and the disclosed embodiment is not limited to this. The target live broadcast data associated with the live broadcast room account to be processed represents: the live broadcast data corresponding to the target data source identifier in the live broadcast data of the live broadcast room account to be processed.
[0107] For example, if the target data source identifier includes a live broadcast data identifier associated with participating in a live broadcast in the form of a city list, the types of live broadcast data generated by participating in a live broadcast in the form of a city list may include: city name, live broadcast room ranking, score difference, and countdown; then the target live broadcast data associated with the live broadcast room account to be processed includes, among the live broadcast data associated with the live broadcast room account to be processed, the live broadcast data generated during the participation in the live broadcast in the form of a city list, such as: city name ("City A Division"); live broadcast room ranking ("100+"); score difference ("9999 points away from the previous place"); countdown ("23:59:00"), etc.
[0108] If the target data source identifier includes a live broadcast data identifier associated with participating in live broadcasts in the form of a periodic list, the types of live broadcast data that can be generated by participating in live broadcasts in the form of a periodic list may include: reward copy, live broadcast room ranking and score gap, etc.; then the target live broadcast data associated with the live broadcast room account to be processed include, in the live broadcast data associated with the live broadcast room account to be processed, the live broadcast data generated during the participation in the live broadcast in the form of a periodic list, such as: reward copy ("The first place at 23:00 will receive a red envelope of 10,000 yuan"); live broadcast room ranking ("2"); score gap ("9999 points away from the first place"), etc.
[0109] If the target data source identifier includes a live broadcast data identifier associated with participating in the live broadcast in the form of a limited-time task, the types of live broadcast data that can be generated by participating in the live broadcast in the form of a limited-time task may include: score difference; countdown, etc.; then the target live broadcast data associated with the live broadcast room account to be processed includes, in the live broadcast data associated with the live broadcast room account to be processed, the live broadcast data generated during the participation in the live broadcast in the form of a limited-time task, such as: score difference ("9999 points left to open the red envelope"); countdown ("23:59"), etc.
[0110] If the target data source identifier includes a live broadcast data identifier associated with participating in the live broadcast using a bonus card, the types of live broadcast data that can be generated by participating in the live broadcast using a bonus card may include: bonus card multiples; countdown, etc.; then the target live broadcast data associated with the live broadcast room account to be processed includes, in the live broadcast data associated with the live broadcast room account to be processed, the live broadcast data generated during the process of participating in the live broadcast using a bonus card, for example: bonus card multiples ("1.2 times"); countdown ("00:30").
[0111] In an optional embodiment, the process by which the server determines whether the target live broadcast data associated with the live broadcast room account to be processed meets the target display conditions may include: judging whether the target live broadcast data associated with the live broadcast room account to be processed meets the display requirements in the target display conditions; if so, determining that the target live broadcast data associated with the live broadcast room account to be processed meets the target display conditions, and determining the target live broadcast widget parameters based on the target live broadcast data.
[0112] For example, if the target distribution rule is CityRank.inRank&&CycleRank.inRank&&AddCard.notusing, the target display condition is: the live broadcast room is in the city list and the cycle list, and the bonus card is not used.
[0113] Assume that, among the live broadcast data of the live broadcast room B1 to be processed, the live broadcast data corresponding to participating in the live broadcast in the form of a city list includes: city name ("B City Competition Zone"); live broadcast room ranking ("66"); score difference ("8799 points away from the previous one"); countdown ("22:52:00"), etc.; among the live broadcast data of the live broadcast room B1 to be processed, the live broadcast data corresponding to participating in the live broadcast in the form of a periodic list includes: reward copy ("The first place at 23:00 will receive a red envelope of 10,000 yuan"); live broadcast room ranking ("2"); score difference ("7899 points away from the first place"), etc.; among the live broadcast data of the live broadcast room B1 to be processed, the live broadcast data corresponding to participating in the live broadcast using a bonus card is empty.
[0114] Regarding the target display conditions, for the live broadcast data corresponding to the participation in the live broadcast in the form of a city list, the live broadcast room ranking can be used to determine whether the pending live broadcast room B1 is in the city list. Assuming that the display requirement in the target display condition is that the live broadcast rooms ranked within 100 can be displayed in the city list, since the live broadcast room ranking of the pending live broadcast room B1 is 66, it can be determined that the pending live broadcast room B1 is in the city list; for the live broadcast data corresponding to the participation in the live broadcast in the form of a periodic list, the live broadcast room ranking can be used to determine whether the pending live broadcast room B1 is in the periodic list. Assuming that the display requirement in the target display condition is that the live broadcast rooms ranked within 10 can be displayed in the periodic list, since the live broadcast room ranking of the pending live broadcast room B1 is 2, it can be determined that the pending live broadcast room B1 is in the periodic list; in the live broadcast data of the pending live broadcast room B1, the live broadcast data corresponding to the live broadcast participation form using the bonus card is empty, then it can be determined that the pending live broadcast room B1 did not use the bonus card during the live broadcast; then it can be determined that the target live broadcast data associated with the pending live broadcast room B1 meets the target display conditions.
[0115] In an optional embodiment, the process of the server determining the target live broadcast widget parameters based on the target live broadcast data may include: determining the target live broadcast data as the target live broadcast widget parameters, so that the live broadcast terminal can display the target live broadcast data, allowing the user to conveniently determine the live broadcast data after participating in the live broadcast participation form.
[0116] In an optional embodiment, in order to further enhance the richness of the content displayed in the live broadcast widget, the server may also obtain at least one of the global parameters and target style parameters, wherein the global parameters are parameters contained in all live broadcast widgets associated with the current live broadcast scene, wherein the target style parameters are parameters unique to the live broadcast widget displayed when the target display conditions are met; then the process of the server determining the target live broadcast widget parameters based on the target live broadcast data may include: determining at least one of the global parameters and target style parameters, and the target live broadcast data as target live broadcast widget parameters. It should be noted that all live broadcast widgets associated with the current live broadcast scene represent all live broadcast widgets that can be displayed in the current live broadcast scene. More information can be displayed in the live broadcast widget, so that users can intuitively obtain richer live broadcast information related to the live broadcast scene and the form of live broadcast participation.
[0117] It should be noted that in the embodiment of the present disclosure, the global parameters and the target style parameters are predetermined, and the process of obtaining the global parameters may include: in response to obtaining the live broadcast start information, obtaining the global parameters in the live broadcast widget configuration information of the current live broadcast scene.
[0118] Among them, the process of obtaining target style parameters may include: when it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display conditions, obtaining the style parameters corresponding to the target distribution rules in the live broadcast key configuration information to obtain the target style parameters.
[0119] For example, assuming the current live broadcast scene is activity A live broadcast scene, Figure 3 A schematic diagram of a live broadcast widget that can be displayed in a live broadcast scene is shown, including: style parameters 301, target live broadcast data 302 associated with a city list, target live broadcast data 303 associated with a time-limited task, and global parameters 304.
[0120] In step S204, the server sends the target live broadcast widget parameters to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0121] In the embodiment of the present disclosure, the target live broadcast widget parameters are parameters that need to be displayed in the live broadcast widget.
[0122] In an optional embodiment, the process of the server sending the target live broadcast widget parameters to the live broadcast terminal corresponding to the live broadcast room account to be processed may include: the server assembles the target live broadcast widget parameters into a widget signaling, and sends the widget signaling to the live broadcast terminal of the live broadcast room account to be processed, so that the live broadcast terminal constructs and displays the live broadcast widget in the live broadcast interface according to the widget signaling.
[0123] In an optional embodiment, if it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, then an updated live broadcast widget distribution rule set is determined; the updated target distribution rule in the updated live broadcast widget distribution rule set is parsed to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule; if it is determined that the updated target live broadcast data associated with the live broadcast room account to be processed meets the updated target display condition, then the updated target live broadcast widget parameters are determined according to the updated target live broadcast data; the updated target live broadcast widget parameters are sent to the live broadcast terminal corresponding to the live broadcast room account to be processed, wherein the updated live broadcast widget distribution rule set does not include the target distribution rule, and the updated target live broadcast data is the live broadcast data corresponding to the updated target data source identifier; the updated target distribution rule is a distribution rule with a high priority or any distribution rule in the updated live broadcast widget distribution rule set; the updated target live broadcast data is the live broadcast data corresponding to the updated target data source identifier. After the live broadcast room account to be processed does not meet the target display conditions, a new distribution rule can be reselected. When it is determined that the live broadcast data of the live broadcast room account to be processed meets the display conditions of the new distribution rule, the live broadcast data corresponding to the data source identifier in the new distribution rule will be determined as the live broadcast widget parameter, thereby improving the reliability of determining the live broadcast widget that needs to be displayed based on the live broadcast widget distribution rule set.
[0124] It can be understood that the specific implementation principles of each step in the process of determining the updated target live broadcast widget parameters using the updated live broadcast widget distribution rule set are similar to the specific implementation principles of each step in the process of determining the target live broadcast widget parameters using the live broadcast widget distribution rule set, and the present disclosed embodiment will not elaborate on this.
[0125] It should be noted that in the embodiment of the present disclosure, if it is determined that the updated target live broadcast data associated with the account of the live broadcast room to be processed meets the updated target display conditions, the live broadcast widget distribution rule set is updated again. When the live broadcast parameters that need to be displayed in the live broadcast room to be processed cannot be obtained using the updated live broadcast widget distribution rule set, the live broadcast widget distribution rule set is continued to be updated, and the above process is repeated until each distribution rule in the live broadcast widget distribution rule set is traversed to determine the live broadcast parameters that need to be displayed in the live broadcast room to be processed, wherein each updated live broadcast widget distribution rule set does not contain a live broadcast widget distribution rule that has been used.
[0126] In an optional embodiment, different data sources in the embodiment of the present disclosure can be maintained by different data source servers. After the server parses the target distribution rule in the live broadcast widget distribution rule set and obtains at least one target data source identifier and the target display condition associated with the target distribution rule, it can also obtain the target live broadcast data associated with the live broadcast room account to be processed; wherein, the process of obtaining the target live broadcast data associated with the live broadcast room account to be processed may include: sending a live broadcast data acquisition request to the target data source server associated with the target data source identifier, wherein the live broadcast data acquisition request may include the live broadcast room account to be processed; further, the server can receive the target live broadcast data associated with the live broadcast room account to be processed returned by the target data source server.
[0127] Furthermore, when using the updated live widget distribution rule set to determine the live widget parameters corresponding to the pending live room account, after parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and the updated target display condition associated with the updated target distribution rule, if the server determines that the target data source identifier is the same as the updated target data source identifier, the target live data is determined to be the updated target live data associated with the pending live room account. This eliminates the need to repeatedly obtain live data from the same data source, reducing server performance waste. By eliminating the interaction process between the server and the data source server, the efficiency of determining live widget parameters can also be further improved.
[0128] In an optional embodiment, in a live broadcast scenario, the number of pending live broadcast accounts includes multiple, for example, 10,000. In order to improve data distribution efficiency, the live broadcast parameters of each pending live broadcast account can be determined and distributed simultaneously. If the server determines that the target live broadcast data associated with the pending live broadcast account meets the target display conditions, the process of determining the target live broadcast widget parameters based on the target live broadcast data can include: traversing each pending live broadcast account, and if it is determined that the target live broadcast data associated with the pending live broadcast account meets the target display conditions, adding the pending live broadcast account to the first type of live broadcast room set; and determining the target live broadcast widget parameters associated with each pending live broadcast account in the first type of live broadcast room set based on the target live broadcast data associated with each pending live broadcast account in the first type of live broadcast room set. The live broadcast widget data of multiple pending live broadcast accounts can be determined simultaneously, reducing the time difference in determining the live broadcast widget parameters for each pending live broadcast account when multiple live broadcast rooms participate in the live broadcast, improving the time consistency of the live broadcast widget displayed by the live broadcast terminal, and improving the user experience.
[0129] In an optional embodiment, if it is determined that the target live broadcast data associated with the to-be-processed live broadcast room account does not meet the target display condition, the to-be-processed live broadcast room account is added to the second category live broadcast room set; the updated target distribution rule in the updated live broadcast widget distribution rule set is parsed to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule; each to-be-processed live broadcast room account in the second category live broadcast room set is traversed, and if it is determined that the updated target live broadcast data associated with the to-be-processed live broadcast room account in the second category live broadcast room set meets the updated target display condition, the to-be-processed live broadcast room account in the second category live broadcast room set is added to the third category live broadcast room set; based on the updated target live broadcast data associated with each to-be-processed live broadcast room account in the third category live broadcast room set, the updated target live broadcast widget parameters associated with each to-be-processed live broadcast room account in the third category live broadcast room set are determined. When the live broadcast data of the pending live broadcast room does not meet the target display conditions, the pending live broadcast room accounts whose corresponding live broadcast widget parameters have not been determined can be formed into a new live broadcast room set, and the new distribution rules can be used to determine the live broadcast room set in the new live broadcast set for which the live broadcast widget parameters can be determined. For each pending live broadcast room in the live broadcast room set for which the live broadcast widget parameters can be determined, the live broadcast data corresponding to the data source identifier in the new distribution rules can be determined as the live broadcast widget parameters. This can improve the reliability of the live broadcast widgets that need to be displayed for each pending live broadcast room account based on the live broadcast widget distribution rule set when multiple pending live broadcast room accounts participate in the live broadcast.
[0130] It should be noted that, in the embodiment of the present disclosure, if it is determined that the updated target live broadcast data associated with the second live broadcast room meets the updated target display conditions, the live broadcast room account to be processed will continue to be added to the fourth live broadcast room set, and the live broadcast widget distribution rule set will be updated again. When the live broadcast widget distribution rule set after the update cannot obtain the live broadcast parameters that need to be displayed for the live broadcast room account to be processed in the fourth live broadcast room set, the live broadcast widget distribution rule set will continue to be updated, and the above process will be repeated until each distribution rule in the live broadcast widget distribution rule set is traversed to determine the live broadcast parameters that need to be displayed for each live broadcast room account to be processed; wherein, each updated live broadcast widget distribution rule set does not contain a live broadcast widget distribution rule that has been used.
[0131] Figure 4 is a flow chart showing another data distribution method according to an exemplary embodiment. Figure 4 As shown, the data distribution method includes:
[0132] Step S401, obtaining a set of live widget distribution rules associated with the current live scene;
[0133] Step S402: parsing the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule;
[0134] Step S403, determining whether the target live broadcast data associated with the live broadcast room account to be processed meets the target display conditions;
[0135] Step S404: If it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, the target live broadcast widget parameters are determined according to the target live broadcast data;
[0136] Step S405: Send the target live broadcast widget parameters to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0137] Step S406: If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, then determine an updated live broadcast widget distribution rule set and an updated target distribution rule in the updated live broadcast widget distribution rule set;
[0138] Step S407, determine the updated live broadcast widget distribution rule set as the live broadcast widget distribution rule set, determine the updated target distribution rule as the target distribution rule, and repeat the above steps S402 to S407 until the target live broadcast widget parameters corresponding to the live broadcast room account to be processed are obtained, and the target live broadcast widget parameters are sent to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0139] Figure 5 FIG. 1 is a block diagram of a data distribution device according to an exemplary embodiment. Figure 5 , the data distribution device 500 includes:
[0140] The acquisition module 501 is configured to acquire a set of live broadcast widget distribution rules associated with the current live broadcast scene;
[0141] The parsing module 502 is configured to parse the target distribution rule in the live broadcast widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule, wherein the data source identifier is a live broadcast data identifier associated with the live broadcast participation form;
[0142] The determination module 503 is configured to determine target live broadcast widget parameters based on the target live broadcast data if it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, where the target live broadcast data is the live broadcast data corresponding to the target data source identifier;
[0143] The sending module 504 is configured to send the target live broadcast widget parameters to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0144] Optionally, the apparatus further includes an updating module 505 configured to:
[0145] If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, then an updated live broadcast widget distribution rule set is determined, and the updated live broadcast widget distribution rule set does not include the target distribution rule;
[0146] Parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule;
[0147] If it is determined that the updated target live broadcast data associated with the live broadcast room account to be processed meets the updated target display condition, then the updated target live broadcast widget parameters are determined according to the updated target live broadcast data, and the updated target live broadcast data is the live broadcast data corresponding to the updated target data source identifier;
[0148] Send the updated target live broadcast widget parameters to the live broadcast terminal corresponding to the live broadcast room account to be processed.
[0149] Optionally, the apparatus further includes another acquisition module 506 configured to:
[0150] Get the target live broadcast data associated with the live broadcast room account to be processed;
[0151] The apparatus further includes another determining module 507 configured to:
[0152] If it is determined that the target data source identifier is the same as the updated target data source identifier, the target live broadcast data is determined to be the updated target live broadcast data associated with the live broadcast room account to be processed.
[0153] Optionally, the number of live broadcast room accounts to be processed includes multiple, and the determination module 503 is configured to:
[0154] Traverse each live broadcast room account to be processed. If it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display conditions, then add the live broadcast room account to be processed to the first type of live broadcast room set;
[0155] According to the target live broadcast data associated with each to-be-processed live broadcast room account in the first category of live broadcast room set, the target live broadcast widget parameters associated with each to-be-processed live broadcast room account in the first category of live broadcast room set are determined.
[0156] Optionally, the apparatus further includes a further determining module 508 configured to:
[0157] If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display conditions, the live broadcast room account to be processed is added to the second type of live broadcast room set;
[0158] Parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule;
[0159] Traverse each pending live broadcast room account in the second type of live broadcast room set, and if it is determined that the updated target live broadcast data associated with the pending live broadcast room account in the second type of live broadcast room set meets the updated target display condition, then add the pending live broadcast room account in the second type of live broadcast room set to the third type of live broadcast room set;
[0160] According to the updated target live broadcast data associated with each pending live broadcast account in the third category of live broadcast room set, the updated target live broadcast widget parameters associated with each pending live broadcast account in the third category of live broadcast room set are determined.
[0161] Optionally, the apparatus further includes another obtaining module 509 configured to:
[0162] Obtain at least one of global parameters and target style parameters. Global parameters are parameters contained in all live widgets associated with the current live scene. Target style parameters are parameters unique to the live widget displayed when the target display condition is met.
[0163] Determine the target live streaming widget parameters based on the target live streaming data, including:
[0164] At least one of the global parameters and the target style parameters, and the target live broadcast data are determined as target live broadcast widget parameters.
[0165] Optionally, the parsing module 502 is configured to:
[0166] Determine the data source keyword in the target distribution rule according to the parsing rule of the distribution rule to obtain at least one target data source identifier;
[0167] According to the parsing rule of the distribution rule, the display condition keyword in the target distribution rule is determined to obtain the target display condition associated with the target distribution rule.
[0168] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0169] The exemplary embodiment of the present disclosure also provides an electronic device, which may be a server. Figure 6The electronic device is described. It should be understood that the following reference Figure 6 The electronic device will be described. It should be understood that Figure 6 The electronic device 600 shown is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0170] like Figure 6 As shown, electronic device 600 is implemented as a general-purpose computing device. Components of electronic device 600 may include, but are not limited to, at least one processing unit 610, at least one storage unit 620, and a bus 630 connecting various system components (including storage unit 620 and processing unit 610).
[0171] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 610 can perform the following steps: Figure 2 or Figure 4 The method steps shown, etc.
[0172] The storage unit 620 may include a volatile storage unit, such as a random access memory unit (RAM) 621 and / or a cache memory unit 622 , and may further include a read-only memory unit (ROM) 623 .
[0173] The storage unit 620 may also include a program / utility 624 having a set (at least one) of program modules 625, such program modules 625 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0174] The bus 630 may include a data bus, an address bus, and a control bus.
[0175] The electronic device 600 can also communicate with one or more external devices 700 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), and such communication can be performed via an input / output (I / O) interface 640. The electronic device 600 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 680. As shown, the network adapter 680 communicates with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0176] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0177] It will be appreciated by those skilled in the art that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented as the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as a "circuit", "module" or "system". Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to encompass any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and implementation are intended to be exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.
[0178] In addition, the present disclosure also provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the data distribution method provided in the above embodiment.
[0179] In addition, the present disclosure also provides a computer program product, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the data distribution method provided in the above embodiments.
[0180] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.
Claims
1. A data distribution method, characterized in that: include: Acquire a live widget distribution rule set associated with the current live scene, wherein the live widget distribution rule set includes pre-written distribution rules, and the distribution rules include a data source identifier and a display condition associated with the distribution rule; Parsing the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule, wherein the data source identifier is a live data identifier associated with a live broadcast participation form; If it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, then determining the target live broadcast widget parameters according to the target live broadcast data, wherein the target live broadcast data is the live broadcast data corresponding to the target data source identifier; wherein the number of the live broadcast room accounts to be processed includes multiple, and if it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, then determining the target live broadcast widget parameters according to the target live broadcast data, including: traversing each live broadcast room account to be processed, and if it is determined that the target live broadcast data associated with the live broadcast room account to be processed meets the target display condition, then adding the live broadcast room account to be processed to the first type of live broadcast room set; determining the target live broadcast widget parameters associated with each live broadcast room account to be processed in the first type of live broadcast room set according to the target live broadcast data associated with each live broadcast room account to be processed in the first type of live broadcast room set; The target live broadcast widget parameters are sent to the live broadcast terminal corresponding to the live broadcast room account to be processed, and the target live broadcast widget parameters are parameters that need to be displayed in the live broadcast widget.
2. The data distribution method according to claim 1, wherein: The method further comprises: If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, then determining an updated live broadcast widget distribution rule set, wherein the updated live broadcast widget distribution rule set does not include the target distribution rule; Parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule; If it is determined that the updated target live broadcast data associated with the to-be-processed live broadcast room account meets the updated target display condition, then determining updated target live broadcast widget parameters according to the updated target live broadcast data, wherein the updated target live broadcast data is the live broadcast data corresponding to the updated target data source identifier; The updated target live broadcast widget parameters are sent to the live broadcast terminal corresponding to the live broadcast room account to be processed.
3. The data distribution method according to claim 2, wherein: After parsing the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule, the method further includes: Obtain the target live broadcast data associated with the live broadcast room account to be processed; After parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule, the method further includes: If it is determined that the target data source identifier is the same as the updated target data source identifier, the target live broadcast data is determined to be the updated target live broadcast data associated with the live broadcast room account to be processed.
4. The data distribution method according to claim 1, wherein: The method further comprises: If it is determined that the target live broadcast data associated with the live broadcast room account to be processed does not meet the target display condition, the live broadcast room account to be processed is added to the second type of live broadcast room set; Parsing the updated target distribution rule in the updated live widget distribution rule set to obtain at least one updated target data source identifier and an updated target display condition associated with the updated target distribution rule; Traversing each pending live broadcast room account in the second type of live broadcast room set, if it is determined that the updated target live broadcast data associated with the pending live broadcast room account in the second type of live broadcast room set meets the updated target display condition, then adding the pending live broadcast room account in the second type of live broadcast room set to the third type of live broadcast room set; According to the updated target live broadcast data associated with each to-be-processed live broadcast room account in the third type of live broadcast room set, the updated target live broadcast widget parameters associated with each to-be-processed live broadcast room account in the third type of live broadcast room set are determined.
5. The data distribution method according to claim 1, wherein: The method further comprises: Obtain at least one of a global parameter and a target style parameter, wherein the global parameter is a parameter included in all live broadcast widgets associated with the current live broadcast scene, and the target style parameter is a parameter unique to the live broadcast widget displayed when the target display condition is met; The determining of target live broadcast widget parameters according to the target live broadcast data includes: At least one of the global parameters and the target style parameters, and the target live broadcast data are determined as the target live broadcast widget parameters.
6. The data distribution method according to claim 1, wherein: The parsing of the target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule includes: Determine the data source keyword in the target distribution rule according to the parsing rule of the distribution rule to obtain at least one target data source identifier; According to the parsing rule of the distribution rule, the display condition keyword in the target distribution rule is determined to obtain the target display condition associated with the target distribution rule.
7. A data distribution device, characterized in that: include: An acquisition module is configured to acquire a live widget distribution rule set associated with a current live scene, wherein the live widget distribution rule set includes pre-written distribution rules, and the distribution rules include a data source identifier and a display condition associated with the distribution rule; a parsing module configured to parse a target distribution rule in the live widget distribution rule set to obtain at least one target data source identifier and a target display condition associated with the target distribution rule, wherein the data source identifier is a live data identifier associated with a live participation form; The determination module is configured to determine target live widget parameters according to the target live data if it is determined that the target live data associated with the live room account to be processed meets the target display condition, wherein the target live data is live data corresponding to the target data source identifier; wherein the number of the live room accounts to be processed includes multiple, and if it is determined that the target live data associated with the live room account to be processed meets the target display condition, determining the target live widget parameters according to the target live data includes: traversing each live room account to be processed, and if it is determined that the target live data associated with the live room account to be processed meets the target display condition, adding the live room account to be processed to the first type of live room set; determining the target live widget parameters associated with each live room account to be processed in the first type of live room set according to the target live data associated with each live room account to be processed in the first type of live room set; The sending module is configured to send the target live broadcast widget parameters to the live broadcast terminal corresponding to the live broadcast room account to be processed, and the target live broadcast widget parameters are parameters that need to be displayed in the live broadcast widget.
8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data distribution method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data distribution method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Live broadcast room template loading method and device, electronic equipment and readable storage medium
CN111338722A