Live broadcast voting method and device
By sorting and returning suitable voting templates according to the number of times the voting templates in the voting template library are used in the live voting system, the problem of high cost for anchors to fill in the voting content themselves is solved and the efficiency of voting initiation is improved.
Patent Information
- Application Number
- CN202410890270.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-17
AI Technical Summary
Live broadcast room anchors need to fill in the voting content themselves when initiating voting, resulting in higher costs for initiating voting.
By receiving a request to create a vote sent by the client, several voting templates are returned to the client in descending order according to the number of times each voting template has been used in the voting template library, so that the user can determine the target voting template and initiate a vote based on the target voting template. .
It effectively reduces the content that anchors fill in when initiating voting, reduces the cost of voting initiation, and improves the efficiency of voting initiation.
Smart Images

Figure CN118660179A
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to a live voting method, device, computer equipment and storage medium. Background Art
[0002] Although voting in live broadcast scenarios is a relatively mature product form, and the audience in the live broadcast room can participate in the voting interaction with a simple click, the anchor in the live broadcast room needs to fill in the voting content by himself. After filling in the voting content, he needs to wait for approval before initiating the vote, and the cost of creating a vote is relatively high. Summary of the invention
[0003] The purpose of this application is to provide a live broadcast voting method, device, computer equipment and storage medium to solve the following technical problems: Currently, when the host of the live broadcast room initiates a vote, he needs to fill in the voting content by himself, and the cost of initiating a vote is high.
[0004] One aspect of an embodiment of the present application provides a live voting method, including: receiving a create voting request sent by a client; upon receiving the create voting request, returning a number of voting templates to the client in a voting template library in order of the number of times each voting template is used from most to least, so that a user of the client can determine a target voting template and initiate voting based on the target voting template.
[0005] Optionally, the method further includes: obtaining first voting content that has passed review, generating a first target template based on the first voting content if the first voting content is different from an existing voting template in the voting template library, and writing the first target template into the voting template library.
[0006] Optionally, the method further includes: when the first target template is used or there is a second voting content identical to the first voting content written into the voting template library, adding 1 to the number of times the first target template is used.
[0007] Optionally, the voting template in the voting template library also includes a corresponding MD5 value, and the method also includes: upon obtaining the second voting content that has passed the review, generating an MD5 value for the second voting content; obtaining a third target template from the voting template library that has the same MD5 value as the second voting content, and determining whether the voting content of the third target template is the same as the second voting content.
[0008] Optionally, upon receiving the create vote request, returning several voting templates to the client in a voting template library in order of usage count from most to least, including: sorting the voting templates in the voting template library in order of usage count from most to least; periodically obtaining several voting templates that are sorted first from the voting template library and writing them into a cache; upon receiving the create vote request, obtaining several voting templates from the cache and returning them to the client.
[0009] Optionally, the voting template also includes the partition to which it belongs. When the create vote request is received, a number of voting templates are returned to the client in the order of the number of times each voting template is used in the voting template library from most to least, including: obtaining the voting templates of each partition in the voting template library; sorting the voting templates of each partition from most to least according to the number of times they are used; periodically obtaining a number of voting templates that are sorted in front of each partition and writing them into the cache; when the create vote request is received, obtaining the target partition corresponding to the create vote request, obtaining the voting template of the corresponding partition from the cache according to the target partition, and returning it to the client.
[0010] Optionally, when the create vote request is received, several voting templates are returned to the client in order from most to least according to the number of times each voting template in the voting template library is used, including: when the create vote request is received, the live content of the current live broadcast room or the input voting keyword is obtained; several second target templates whose matching degree with the live content or the voting keyword exceeds a preset value from the voting template library; the second target templates are sorted from most to least according to the number of times they are used, and the several second target templates ranked first are returned to the client.
[0011] Optionally, after returning a plurality of voting templates to the client in the order of the number of times each voting template in the voting template library is used from most to least, the method further includes: when a user selects a voting template from the voting templates and modifies the selected voting template, obtaining a modified voting template; reviewing the modified voting template, and when the review is passed and the modified voting template is different from the existing voting templates in the voting template library, writing the modified voting template into the voting template library as a new voting template.
[0012] Optionally, returning a plurality of voting templates to the client in the order of the number of times each voting template is used in the voting template library from most to least also includes: randomly selecting a voting template from the plurality of voting templates ranked first and returning it to the client; and upon receiving a voting template switching instruction, randomly selecting a different voting template from the plurality of voting templates ranked first and returning it to the client.
[0013] One aspect of an embodiment of the present application provides a live voting device, including: a receiving module, used to receive a create voting request sent by a client; a returning module, used to, upon receiving the create voting request, return a number of voting templates to the client in the order of the number of times each voting template is used in a voting template library from most to least, so that the user of the client can determine the target voting template and initiate voting according to the target voting template.
[0014] One aspect of an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the steps of the above-mentioned live voting method when executing the computer program.
[0015] One aspect of an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned live voting method.
[0016] The live voting method, apparatus, computer device, and storage medium provided by the embodiments of the present application include the following advantages:
[0017] By receiving a create voting request sent by a client, upon receiving the create voting request, a number of voting templates are returned to the client in order from most to least times used in the voting template library, so that the user of the client can determine the target voting template and initiate voting according to the target voting template. This allows the host of the live broadcast room to effectively obtain a suitable voting template to initiate voting, effectively reducing the content to be filled in when the host initiates voting, reducing the cost of initiating voting, and improving the efficiency of initiating voting. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The environment architecture diagram of the embodiment of the present application is schematically shown;
[0019] Figure 2 The flowchart of the live broadcast voting method of the first embodiment of the present application is schematically shown;
[0020] Figure 3 for Figure 2 Flow chart of the sub-steps of step S420;
[0021] Figure 4 for Figure 2 A flowchart of another sub-step of step S420;
[0022] Figure 5 An example diagram for reading voting templates;
[0023] Figure 6 for Figure 2 A flowchart of another sub-step of step S420;
[0024] Figure 7 for Figure 2 Flowchart of newly added steps;
[0025] Figure 8 This is an example diagram for modifying the voting template;
[0026] Fig. 9 This is an example diagram of a voting template submitted for review;
[0027] Fig.10 for Figure 2 A flowchart of another added step;
[0028] Fig.11 for Figure 2 A flowchart of another sub-step of step S420;
[0029] Fig.12 This is a flowchart example of a live voting method;
[0030] Fig.13 A block diagram of a live broadcast voting device according to Embodiment 2 of the present application is schematically shown;
[0031] Fig.14 The hardware architecture diagram of a computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0033] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0034] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0035] The following is an explanation of the terms involved in this application:
[0036] MD5, the full name of which is Message-Digest Algorithm 5, is a widely used cryptographic hash function. The MD5 algorithm generates a 128-bit (16-byte) hash value for information through irreversible string transformation, which is often referred to as the "digital fingerprint" of the information.
[0037] KV storage, or Key-Value storage, is a type of NoSQL storage. Its data is organized, indexed, and stored in the form of key-value pairs. Each data item contains a key and an associated value. The key is a unique identifier used to retrieve and access a specific value; the value can be any type of data, including strings, numbers, binary data, etc.
[0038] Figure 1 The environment architecture diagram of the embodiment of the present application is schematically shown, as shown in the figure:
[0039] The client 300 is connected to the server 100 through the network 200. The client 300 can be the client of the live broadcast host. The client 300 can send a request to create a vote to the server 100. When the server 100 receives the request to create a vote, it returns several voting templates to the client 300 according to the order of the number of times each voting template is used in the voting template library from most to least. The user of the client 300 determines the target voting template according to the returned voting template and initiates voting according to the target voting template. The user of the client 300 can directly use the returned voting template or modify it based on the returned voting template.
[0040] In an exemplary embodiment, the server 100 may be a data center, such as a single house, or distributed in different geographical locations (eg, in several houses). The server 100 may provide services through one or more networks 200 .
[0041] The network 200 includes various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and / or the like. The network 200 may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and / or the like. The network 200 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and / or the like.
[0042] Client 300 may include devices such as mobile devices, tablet devices, laptop computers, smart devices (e.g., smart clothing, smart watches, smart glasses), virtual reality headsets, gaming devices, set-top boxes, digital streaming devices, robots, in-vehicle terminals, smart TVs, TV boxes, or e-book readers.
[0043] In the related art, the host of the live broadcast room needs to fill in the voting content by himself to initiate the vote, and the cost of initiating the vote is high.
[0044] The live broadcast voting method of the embodiment of the present application can reduce the content that the host of the live broadcast room fills in when initiating a vote, reduce the cost of initiating voting, and improve the efficiency of initiating voting.
[0045] The live broadcast voting scheme will be introduced through several embodiments below. For ease of understanding, the following exemplary description will be given with the server as the execution subject.
[0046] Embodiment 1
[0047] Figure 2 The flowchart of the live broadcast voting method of the first embodiment of the present application is schematically shown. As shown in the figure, it can include steps S410 to S420, which are specifically described as follows:
[0048] Step S410: receiving a request for creating a vote sent by a client.
[0049] Step S420, when a request to create a vote is received, a number of voting templates are returned to the client in the order of the number of times each voting template is used in the voting template library from most to least, so that the user of the client can determine the target voting template and initiate voting according to the target voting template.
[0050] The voting template library is used to store existing voting templates. The voting template library can pre-create several commonly used voting templates for users to use. In the case where users create voting content by themselves, with the user's permission (to ensure that there is no ownership dispute), the voting content created by the user can be added to the voting template library as a new voting template, or with the user's permission, certain adjustments or processing can be made based on the voting content created by the user to obtain a new voting template and add it to the voting template library.
[0051] In an optional embodiment, the method may further include: obtaining first voting content that has passed review, generating a first target template based on the first voting content when the first voting content is different from an existing voting template in a voting template library, and writing the first target template into the voting template library.
[0052] For example, the host in the live broadcast room can create a vote by himself, fill in the voting content, and obtain the first voting content; the host sends the first voting content to the review platform for review through the client. After the review is passed, the server obtains the reviewed first voting content, and when it is determined that the first voting content is different from the existing voting templates in the voting template library, the first voting content is adjusted or processed in format or style (such as font adjustment, color adjustment or adding shapes, etc.), and the first target template is obtained according to the adjusted or processed first voting content and written into the voting template library.
[0053] In the above optional embodiment, by obtaining the voting templates of the voting template library according to the voting content created by the user, the voting templates in the voting template library can be continuously enriched.
[0054] In an optional embodiment, the method may further include: when the first target template is used or there is a second voting content identical to the first voting content written into the voting template library, adding 1 to the number of times the first target template is used.
[0055] If there are voting templates in the voting template library, the anchor in the live broadcast room can directly read the voting template from the voting template library without creating voting content by himself. If the first target template is used, the number of times the first target template is used is increased by 1. Alternatively, the anchor in the live broadcast room can still create voting content by himself. After the second voting content created by himself is reviewed and passed and is about to be written into the voting template library, the server can compare the second voting content with the existing voting templates in the voting template library. If it is determined that the second voting content is the same as the first target template, the number of times the first target template is used is increased by 1.
[0056] In the above optional embodiment, when a template is used or has the same content written, the number of times the target template is used is increased by 1, which can facilitate the counting of the number of times the template is used.
[0057] Based on the statistics of the number of times the voting template is used, the server can sort the number of times each voting template is used in real time from most to least. When receiving a request to read a voting template, the server can directly obtain several voting templates that are ranked first from the voting template library and return them.
[0058] In an exemplary embodiment, Figure 3 As shown, step S420 may include steps S421 to S423:
[0059] Step S421, sorting the voting templates in the voting template library from most to least according to the number of times they are used.
[0060] Step S422: periodically obtain a number of voting templates that are ranked first from the voting template library and write them into the cache.
[0061] Step S423: upon receiving a request to create a vote, a number of voting templates are obtained from the cache and returned to the client.
[0062] It should be understood that the number of the top-ranked voting templates obtained in step S422 and the number of the voting templates obtained from the cache in step S423 may be the same or different. For example, in step S422, the top 10 voting templates are obtained and written into the cache, while in step S423, one voting template may be obtained from the cache and returned.
[0063] In the embodiment corresponding to steps S421 to S423, by sorting each voting template according to the number of times used from most to least, writing several voting templates in the front order into the cache at a regular interval, and obtaining the voting template from the cache and returning it according to the request, the preferred voting template can be obtained from the cache, thereby improving the efficiency of obtaining the appropriate voting template.
[0064] In an exemplary embodiment, the voting template also includes the partition to which it belongs, such as Figure 4 As shown, step S420 may include steps S421' to S424':
[0065] Step S421', obtaining the voting templates of each partition in the voting template library.
[0066] The partitions of the voting template can be set according to the actual situation, such as entertainment, games, food, education, shopping, outdoor, travel, music, dance, sports, etc. The partitions of the voting template can be configured when creating the voting content, or obtained according to the corresponding partitions of the live broadcast room.
[0067] Step S422', sort the voting templates of each partition according to the number of times used from most to least.
[0068] Step S423', regularly obtain several voting templates that are ranked first in each partition and write them into the cache.
[0069] Step S424', when a create voting request is received, a target partition corresponding to the create voting request is obtained, and a voting template of the corresponding partition is obtained from the cache according to the target partition and returned to the client.
[0070] For example, when receiving a request to create a vote from a host in a live broadcast room, if the server obtains that the target partition corresponding to the host is a game partition, the server obtains the voting template corresponding to the game partition from the cache and returns it.
[0071] Please refer to Figure 5 , which is an example diagram of reading a voting template. As shown in the figure, when the anchor in the live broadcast room reads the voting template, the server first obtains the data of each partition in batches, and then obtains the voting template according to the partition corresponding to the anchor.
[0072] In the embodiment corresponding to step S421' to step S424', by obtaining the voting templates of each partition in the voting template library, the voting templates of each partition are sorted from most to least, and the voting templates of each partition that are sorted first are written into the cache at a regular interval. The voting template of the corresponding partition is obtained from the cache according to the request corresponding to the target partition and returned. The preferred voting template can be obtained from the cache, thereby improving the efficiency of obtaining a suitable voting template; at the same time, the voting template is further subdivided according to the partition, which can improve the accuracy of obtaining the voting template and further improve the efficiency of obtaining a suitable voting template.
[0073] In an exemplary embodiment, Figure 6 As shown, step S420 may include steps S421″ to S423″:
[0074] Step S421", when a request to create a vote is received, the live broadcast content of the current live broadcast room or the input voting keyword is obtained.
[0075] When receiving a request to create a vote, the server can obtain the live content of the current live broadcast room, or can provide an input box for the host of the live broadcast room to enter voting keywords.
[0076] In step S422, a plurality of second target templates whose matching degree with the live broadcast content or the voting keyword exceeds a preset value are obtained from the voting template library.
[0077] The server can extract several keywords in advance based on the content corresponding to the voting template. After obtaining the live content or voting keywords, the server can match the live content or voting keywords with the keywords corresponding to the voting template (for example, perform similarity calculation) and obtain several voting templates whose matching degree exceeds a preset value as the second target template.
[0078] In step S423, the second target templates are sorted from most to least according to the number of times they are used, and a plurality of second target templates that are ranked first are returned to the client.
[0079] In the embodiment corresponding to step S421" to step S423", by obtaining the live broadcast content of the current live broadcast room or the input voting keywords, several second target templates whose matching degree with the live broadcast content or the voting keywords exceeds a preset value are obtained from the voting template library, and the second target templates are sorted from most to least according to the number of times they are used, and several second target templates with the highest sorting are returned. Matching voting templates can be quickly obtained according to the live broadcast content or voting keywords, thereby improving the efficiency of obtaining suitable voting templates.
[0080] In an exemplary embodiment, after step S420, as Figure 7 As shown, the live broadcast voting method may further include steps S510 to S520:
[0081] Step S510: When the user selects a voting template from the voting templates and modifies the selected voting template, the modified voting template is obtained.
[0082] Please refer to Figure 8 , which is an example diagram for modifying the voting template. As shown in the figure, the anchor can make a small modification to the voting content according to actual needs to make it more in line with the needs of the current voting.
[0083] Step S520: review the modified voting template. If the review is passed and the modified voting template is different from the existing voting templates in the voting template library, the modified voting template is written into the voting template library as a new voting template.
[0084] Please refer to Fig. 9 , which is an example of submitting a voting template for review. As shown in the figure, after the host completes the modification, click "Initiate Voting" and the voting status is changed to "Under Review". The server can send the modified voting template to the review platform for review to determine whether the review is passed. Correspondingly, after the review is passed, the voting status will be changed to "Under Review".
[0085] In the embodiment corresponding to steps S510 to S520, the voting template is modified to obtain a modified voting template. When the modified voting template is different from the existing voting template, the modified voting template is written as a new voting template. This allows the host to modify the existing voting template so that the modified voting content is more in line with the current voting needs. At the same time, the voting templates in the voting template library can be further improved and enriched.
[0086] In an exemplary embodiment, the voting template of the voting template library also includes a corresponding MD5 value, such as Fig.10 As shown, the live voting method may further include steps S610 to S620:
[0087] Step S610: When the second voting content that has passed the review is obtained, an MD5 value of the second voting content is generated.
[0088] Step S620: Acquire a third target template having the same MD5 value as the second voting content from the voting template library, and determine whether the voting content of the third target template is the same as the second voting content.
[0089] The voting content may include partition id, voting theme, voting options, etc. When determining whether the voting content of the third target template is the same as the second voting content, it may be determined whether the partition id, voting theme, voting options, etc. corresponding to the third target template and the second voting content are the same. If they are the same, it is determined that the second voting content is the same as the third target template, and the number of times the third target template is used is increased by 1. If it is determined that there is a difference between the partition id, voting theme, voting options, etc. corresponding to the third target template and the second voting content, indicating an MD5 conflict, the second voting content may be directly discarded.
[0090] In the embodiment corresponding to steps S610 to S620, by obtaining the MD5 value of the second voting content, obtaining a third target template with the same MD5 value as the second voting content from the voting template library, and determining whether the voting content of the third target template is the same as the second voting content, it is possible to clearly determine whether the second voting content created by the anchor is the same as an existing voting template in the voting template library, thereby improving the accuracy of determining whether the created voting content is the same as an existing voting template.
[0091] In an exemplary embodiment, if Fig.11 As shown, step S420 may further include steps S710 to S720:
[0092] Step S710: randomly select a voting template from the plurality of voting templates ranked first and return it to the client.
[0093] Step S720: upon receiving a voting template switching instruction, a different voting template is randomly selected from a plurality of voting templates that are ranked first and returned to the client.
[0094] For example, Figure 8 or Fig. 9 As shown, the anchor can click "Change" in the figure to input a switching instruction. When receiving the switching instruction, the server randomly obtains a voting template from the remaining voting templates that are ranked first and returns it.
[0095] In the embodiment corresponding to steps S710 to S720, by randomly selecting a voting template from several voting templates ranked first and returning it, the exposure of different voting templates can be improved, and data skew can be prevented from being caused by the increasing use of a certain voting template; and by receiving a switching instruction to switch the voting template, it can make it easier for the anchor to obtain a suitable voting template.
[0096] In actual applications, it is also possible to manually intervene in the return of voting templates. For example, a recommended item can be set for the voting template, and the recommended items corresponding to the templates that are used less frequently can be manually adjusted. When returning the voting template, the returned voting template can be comprehensively determined based on the number of uses and the recommended items. This can also solve the problem of data skew in the use of voting templates.
[0097] Please refer to Fig.12 , which is a flow chart of the live voting method. As shown in the figure, the voting content created by the anchor will be sent to the governance platform and the audit platform for review respectively. The voting content that passes the review will be written into the voting template library as a voting template; the server periodically retrieves several voting templates with high usage rate from the voting template library according to the partition and writes them into the cache; when the anchor needs to read the voting template from the voting template library, the corresponding voting template is first obtained from the cache according to the partition and returned.
[0098] The live broadcast voting method provided in the embodiment of the present application receives a create voting request sent by a client. Upon receiving the create voting request, a number of voting templates are returned to the client in order from most to least usage times of each voting template in the voting template library, so that the user of the client can determine the target voting template and initiate voting according to the target voting template. This allows the host of the live broadcast room to effectively obtain a suitable voting template to initiate voting, effectively reducing the content to be filled in by the host when initiating voting, reducing the cost of initiating voting, and improving the efficiency of initiating voting.
[0099] Embodiment 2
[0100] Fig.13The block diagram of the live broadcast voting device 800 according to the second embodiment of the present application is schematically shown. The live broadcast voting device 800 can be divided into one or more program modules, and one or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment.
[0101] like Fig.13 As shown, the live broadcast voting device 800 may include a receiving module 810 and a return template 820 .
[0102] The receiving module 810 is used to receive a request for creating a vote sent by a client;
[0103] The return module 820 is used to return a number of voting templates to the client in the order of the number of times each voting template is used in the voting template library from most to least when the creation voting request is received, so that the user of the client can determine the target voting template and initiate voting according to the target voting template.
[0104] In an exemplary embodiment, the live voting device 800 is also used to: obtain a first voting content that has passed the review, and when the first voting content is different from an existing voting template in the voting template library, generate a first target template based on the first voting content, and write the first target template into the voting template library.
[0105] In an exemplary embodiment, the live voting device 800 is further used to: when the first target template is used or there is a second voting content that is the same as the first voting content written into the voting template library, increase the number of times the first target template is used by 1.
[0106] In an exemplary embodiment, the voting template in the voting template library also includes a corresponding MD5 value, and the live voting device 800 is also used to: upon obtaining the second voting content that has passed the review, generate an MD5 value for the second voting content; obtain a third target template that is the same as the MD5 value of the second voting content from the voting template library, and determine whether the voting content of the third target template is the same as the second voting content.
[0107] In an exemplary embodiment, the return module 820 is also used to: sort the voting templates in the voting template library from most to least according to the number of times they are used; periodically obtain several voting templates that are ranked first from the voting template library and write them into the cache; and upon receiving a request to create a vote, obtain several voting templates from the cache and return them to the client.
[0108] In an exemplary embodiment, the voting template also includes the partition to which it belongs, and the return module 820 is also used to: obtain the voting templates of each partition in the voting template library; sort the voting templates of each partition from most to least according to the number of times used; periodically obtain several voting templates that are ranked first in each partition and write them into the cache; when receiving the create vote request, obtain the target partition corresponding to the create vote request, obtain the voting template of the corresponding partition from the cache according to the target partition, and return it to the client.
[0109] In an exemplary embodiment, the return module 820 is also used to: upon receiving the request to create a vote, obtain the live content of the current live broadcast room or the input voting keyword; obtain from the voting template library several second target templates whose matching degree with the live content or the voting keyword exceeds a preset value; sort the second target templates from most to least according to the number of times they are used, and return several second target templates ranked first to the client.
[0110] In an exemplary embodiment, the live voting device 800 is also used to: obtain a modified voting template when a user selects a voting template from the voting templates and modifies the selected voting template; review the modified voting template, and if the review is passed and the modified voting template is different from the existing voting templates in the voting template library, write the modified voting template into the voting template library as a new voting template.
[0111] In an exemplary embodiment, the return module 820 is further used to: randomly select a voting template from the plurality of voting templates ranked first and return it to the client; upon receiving a voting template switching instruction, randomly select a different voting template from the plurality of voting templates ranked first and return it to the client.
[0112] Embodiment 3
[0113] Fig.14 The hardware architecture diagram of a computer device 900 suitable for the live voting method according to the third embodiment of the present application is schematically shown. The computer device 900 can be a device that can automatically perform numerical calculations and / or data processing according to pre-set or stored instructions. For example, it can be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), a gateway, etc. Fig.14 As shown, the computer device 900 includes at least but is not limited to: a memory 910, a processor 920, and a network interface 930 that can communicate with each other through a system bus. Among them:
[0114] The memory 910 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 910 can be an internal storage module of the computer device 900, such as a hard disk or memory of the computer device 900. In other embodiments, the memory 910 can also be an external storage device of the computer device 900, such as a plug-in hard disk equipped on the computer device 900, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. Of course, the memory 910 can also include both the internal storage module of the computer device 900 and its external storage device. In this embodiment, the memory 910 is generally used to store the operating system and various application software installed on the computer device 900, such as the program code of the live voting method, etc. In addition, the memory 910 can also be used to temporarily store various types of data that have been output or are to be output.
[0115] In some embodiments, the processor 920 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 920 is generally used to control the overall operation of the computer device 900, such as performing control and processing related to data interaction or communication with the computer device 900. In this embodiment, the processor 920 is used to run the program code stored in the memory 910 or process data.
[0116] The network interface 930 may include a wireless network interface or a wired network interface, and the network interface 930 is generally used to establish a communication link between the computer device 900 and other computer devices. For example, the network interface 930 is used to connect the computer device 900 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 900 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0117] It should be pointed out that Fig.14 Only a computer device having components 910 - 930 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0118] In this embodiment, the live broadcast voting method stored in the memory 910 can also be divided into one or more program modules and executed by one or more processors (processor 920 in this embodiment) to complete the embodiment of the present application.
[0119] Embodiment 4
[0120] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the live broadcast voting method in the embodiment are implemented.
[0121] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store the operating system and various application software installed on the computer device, such as the program code of the live voting method in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0122] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0123] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A live voting method, characterized in that: include: Receive the create voting request sent by the client; When the create voting request is received, a number of voting templates are returned to the client in the order of the number of times each voting template is used in the voting template library from most to least, so that the user of the client can determine the target voting template and initiate voting according to the target voting template.
2. The live voting method according to claim 1, characterized in that: The method further comprises: Acquire the first voting content that has passed the review, and if the first voting content is different from the existing voting templates in the voting template library, generate a first target template according to the first voting content, and write the first target template into the voting template library.
3. The live voting method according to claim 2, characterized in that: The method further comprises: When the first target template is used or there is a second voting content identical to the first voting content written into the voting template library, the number of times the first target template is used is increased by 1.
4. The live voting method according to claim 3, characterized in that: The voting template in the voting template library also includes a corresponding MD5 value, and the method further includes: When the second voting content that has passed the review is obtained, generating an MD5 value of the second voting content; A third target template having the same MD5 value as the second voting content is obtained from the voting template library, and it is determined whether the voting content of the third target template is the same as the second voting content.
5. The live voting method according to claim 1, characterized in that: When receiving the request to create a vote, returning a plurality of voting templates to the client according to the order of the number of times each voting template in the voting template library is used from most to least, including: Sort the voting templates in the voting template library according to the number of times they are used from most to least; Regularly obtain a number of voting templates that are ranked first from the voting template library and write them into the cache; When the create voting request is received, several voting templates are obtained from the cache and returned to the client.
6. The live voting method according to claim 1, characterized in that: The voting template also includes the partition to which it belongs. When receiving the create voting request, returning a plurality of voting templates to the client according to the order of the number of times each voting template is used in the voting template library from most to least, including: Obtaining voting templates for each partition in the voting template library; Sort the voting templates of each partition from most to least according to the number of times they are used; Regularly obtain several voting templates that are ranked first in each partition and write them into the cache; When the create voting request is received, a target partition corresponding to the create voting request is obtained, and a voting template of a corresponding partition is obtained from the cache according to the target partition and returned to the client.
7. The live voting method according to claim 1, characterized in that: When receiving the request to create a vote, returning a plurality of voting templates to the client according to the order of the number of times each voting template in the voting template library is used from most to least, including: When receiving the request to create a vote, obtaining the live broadcast content of the current live broadcast room or the input voting keyword; Acquire from the voting template library a plurality of second target templates whose matching degree with the live broadcast content or the voting keyword exceeds a preset value; The second target templates are sorted from most to least according to the number of times they are used, and a plurality of the second target templates that are ranked first are returned to the client.
8. The live broadcast voting method according to any one of claims 1 to 7, characterized in that: After returning a plurality of voting templates to the client in the order of the number of times each voting template in the voting template library is used from most to least, the method further includes: When the user selects a voting template from the voting templates and modifies the selected voting template, obtaining the modified voting template; The modified voting template is reviewed, and if the review is passed and the modified voting template is different from the existing voting templates in the voting template library, the modified voting template is written into the voting template library as a new voting template.
9. The live broadcast voting method according to any one of claims 1 to 7, characterized in that: The method of returning a plurality of voting templates to the client in the order of the number of times each voting template is used in the voting template library from most to least also includes: Randomly selecting a voting template from the plurality of voting templates ranked first and returning it to the client; When a voting template switching instruction is received, a different voting template is randomly selected from the plurality of voting templates ranked first and returned to the client.
10. A live voting device, characterized in that: include: The receiving module is used to receive the create voting request sent by the client; The return module is used to return a number of voting templates to the client according to the order of the number of times each voting template is used in the voting template library from most to least when receiving the creation voting request, so that the user of the client can determine the target voting template and initiate voting according to the target voting template.
11. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it is used to implement the steps of the live voting method described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by at least one processor so that the at least one processor performs the steps of the live voting method described in any one of claims 1 to 9.
