Information processing method, device, electronic device and storage medium
By obtaining message queue collection, aggregating and merging interactive messages in online live broadcast, the problem of special effects queueing in live broadcast rooms is solved, and the live broadcast screen and audience interaction experience is improved.
Patent Information
- Application Number
- CN202310014079.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2043-01-05
AI Technical Summary
In online live broadcasts, when there are a large number of live broadcast rooms for connecting to the network, the client special effects are queued in large quantities, resulting in the live broadcast room displaying special effects for a long time, affecting the live broadcast screen.
By obtaining the message queue collection, the interactive messages in each message queue are aggregated to obtain the merged messages, and the merged messages are sent to each interactive end.
A large amount of queued interactive messages are consumed in a short time, and the time for interaction to be controlled to improve the interactive experience.
Smart Images

Figure CN116132376B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to an information processing method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of the live broadcast industry, more and more Internet platforms have begun to provide live broadcast services, allowing people to watch or broadcast live broadcasts anytime and anywhere. During the live broadcast process, anchors can establish a live broadcast session connection to conduct real-time audio and video interaction, so that viewers in each live broadcast room can watch the live broadcast content of several anchors at the same time.
[0003] At present, when there are a large number of live broadcast rooms connected to the microphone, multiple live broadcast rooms often send gifts at the same time, resulting in a large number of client special effects queuing, and the live broadcast room continues to display special effects for a long time, affecting the live broadcast picture. Summary of the invention
[0004] The present disclosure provides an information processing method, device, electronic device and storage medium. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an information processing method, including:
[0006] Obtain a message queue set; the message queue set includes at least two message queues, each of the at least two message queues corresponds to each interactive terminal in the current interactive scene; each message queue includes at least one interactive message;
[0007] Performing message aggregation processing on the interactive messages in each message queue to obtain each aggregated message queue; each aggregated message queue includes messages to be merged;
[0008] Merge the messages to be merged in each message queue to obtain a merged message;
[0009] Send the merged message to each interactive end.
[0010] In some possible embodiments, before obtaining the message queue set, the method further includes:
[0011] Obtaining an initial interaction message of the current interaction scene; the initial interaction message includes a target interaction terminal identifier and an interaction resource identifier; the initial interaction message indicates that a first interaction corresponding to the interaction resource identifier is implemented on the target interaction terminal corresponding to the target interaction terminal identifier, and a second interaction corresponding to the interaction resource identifier is implemented on the interaction terminals other than the target interaction terminal in the current interaction scene;
[0012] Add an initial interaction message to the message queue corresponding to the target interaction end identifier.
[0013] In some possible embodiments, message aggregation processing is performed on the interactive messages in each message queue to obtain each aggregated message queue, including:
[0014] Determine the total interactive implementation time of each message queue based on the number of interactive messages in each message queue and the implementation time of the interactive messages on the interactive end;
[0015] If there is at least one message queue in the message queue set whose total interaction implementation duration is greater than or equal to the preset duration, message aggregation processing is performed on the interactive messages in each message queue to obtain each aggregated message queue.
[0016] In some possible embodiments, message aggregation processing is performed on the interactive messages in each message queue to obtain each aggregated message queue, including:
[0017] Acquire multiple resource quantity identification pairs; each resource quantity identification pair includes a resource quantity and an aggregated resource identification corresponding to the resource quantity; the aggregated resource identification includes a first resource identification corresponding to the first live broadcast room and a second resource identification corresponding to the second live broadcast room;
[0018] Based on the number of interactive messages in each message queue, determining a first target resource identifier corresponding to each message queue from a plurality of resource quantity identifier pairs;
[0019] Based on the first target resource identifier corresponding to each message queue, a message to be merged of each message queue is generated; the message to be merged of each message queue indicates to implement the first enhanced interaction corresponding to the first target resource identifier on the interactive end corresponding to each message queue;
[0020] Based on the messages to be merged in each message queue, each message queue after aggregation is obtained.
[0021] In some possible embodiments, based on the number of interactive messages in each message queue, determining the first target resource identifier corresponding to each message queue from a plurality of resource quantity identifier pairs includes:
[0022] For each message queue:
[0023] Based on the number of interactive messages in each message queue, a first target resource quantity is determined from multiple resource quantities corresponding to multiple resource quantity identifiers; a matching degree value between the first target resource quantity and the number of interactive messages in each message queue is greater than or equal to a first preset value;
[0024] The first target resource identifier is determined according to the aggregated resource identifier corresponding to the first target resource quantity.
[0025] In some possible embodiments, based on the to-be-merged messages of each message queue, each message queue after aggregation is obtained, including:
[0026] Based on the number of first target resources corresponding to each message queue, at the end of each message queue, delete the interactive messages whose number matches the number of first target resources;
[0027] The messages to be merged in each message queue are added to the head of each message queue to obtain each message queue after aggregation.
[0028] In some possible embodiments, the merged message includes a first to-be-implemented aggregate resource identifier and a second to-be-implemented aggregate resource identifier of each interactive terminal in the current interactive scene;
[0029] The messages to be merged in each message queue are merged to obtain a merged message, including:
[0030] For each interactive end: add up the first target resource quantities corresponding to the message queues in the message queue set except the message queue corresponding to the interactive end to obtain the second quasi-target resource quantity; based on the second quasi-target resource quantity, determine the second target resource identifier corresponding to each message queue from multiple resource quantity identifier pairs; use the second target resource identifier as the second aggregate resource identifier to be implemented of the interactive end; use the first target resource identifier as the first aggregate resource identifier to be implemented of the interactive end.
[0031] In some possible embodiments, based on the second quasi-target resource quantity, determining the second target resource identifier corresponding to each message queue from a plurality of resource quantity identifier pairs includes:
[0032] For each message queue: based on the second quasi-target resource quantity, determine the second target resource quantity from multiple resource quantities corresponding to multiple resource quantity identifiers; the matching degree value between the second target resource quantity and the second quasi-target resource quantity is greater than or equal to a second preset value; determine the second target resource identifier based on the aggregated resource identifier corresponding to the second target resource quantity.
[0033] In some possible embodiments, sending the merged message to each interactive end includes:
[0034] Get the timestamp of the message currently allowed to be sent;
[0035] If the current timestamp is greater than or equal to the timestamp of the message currently allowed to be sent, the merged message will be sent to each interactive terminal;
[0036] Based on the implementation duration of the interactive message on the interactive end, update the currently allowed message sending timestamp.
[0037] In some possible embodiments, sending the merged message to each interactive end includes:
[0038] The merged message is sent to any interactive terminal in the current interactive scene; after receiving the merged message, any interactive terminal synchronizes the merged message to other interactive terminals except any interactive terminal in the current interactive scene.
[0039] According to a second aspect of an embodiment of the present disclosure, there is provided an information processing device, including:
[0040] The acquisition module is configured to execute acquisition of a message queue set; the message queue set includes at least two message queues, each of the at least two message queues corresponds to each interactive terminal in the current interactive scene; each message queue includes at least one interactive message;
[0041] The first processing module is configured to perform message aggregation processing on the interactive messages in each message queue to obtain each aggregated message queue; each aggregated message queue includes messages to be merged;
[0042] The second processing module is configured to perform merging processing on the messages to be merged in each message queue to obtain a merged message;
[0043] The sending module is configured to execute sending of the merged message to each interactive terminal.
[0044] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0045] processor;
[0046] a memory for storing processor-executable instructions;
[0047] Among them, the processor is configured to execute instructions to implement the information processing method of the first aspect of the embodiment of the present disclosure.
[0048] According to the fourth 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 can execute the information processing method of the first aspect of the embodiment of the present disclosure.
[0049] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0050] By obtaining a message queue set; the message queue set includes at least two message queues, each of the at least two message queues corresponds to each interactive terminal in the current interactive scene; each message queue includes at least one interactive message; the interactive messages in each message queue are aggregated to obtain each aggregated message queue; each aggregated message queue includes messages to be merged; the messages to be merged in each message queue are merged to obtain a merged message; and the merged message is sent to each interactive terminal. In this way, the server can consume a large number of queued interactive messages in a short time, control the time for the interactive terminal to implement interaction, and thus improve the interactive experience.
[0051] 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 present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The 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 improper limitations on the present disclosure.
[0053] Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment;
[0054] Figure 2 is a flow chart of an information processing method according to an exemplary embodiment;
[0055] Figure 3 is a schematic diagram showing an interactive message storage area according to an exemplary embodiment;
[0056] Figure 4 is a flow chart showing a method of adding an initial interactive message according to an exemplary embodiment;
[0057] Figure 5 is a flowchart showing a method of obtaining each message queue after aggregation according to an exemplary embodiment;
[0058] Figure 6 is a flowchart showing a method of obtaining each message queue after aggregation according to an exemplary embodiment;
[0059] Figure 7 is a schematic diagram showing a plurality of resource quantity identification pairs according to an exemplary embodiment;
[0060] Figure 8 is a schematic diagram showing an interactive message storage area according to an exemplary embodiment;
[0061] Fig. 9is a flow chart showing a method of obtaining a merged message according to an exemplary embodiment;
[0062] Fig.10 is a flow chart showing a method of sending a merge message to each interactive terminal according to an exemplary embodiment;
[0063] Fig.11 is a block diagram of an information processing device according to an exemplary embodiment;
[0064] Fig.12 It is a block diagram of an electronic device for information processing according to an exemplary embodiment. DETAILED DESCRIPTION
[0065] 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 in conjunction with the accompanying drawings.
[0066] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar first objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged 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 devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0067] It should be noted that the user information involved in this disclosure (including but not limited to user device information, user personal information, etc.) is all information authorized by the user or fully authorized by all parties.
[0068] See also Figure 1 , Figure 1 is a schematic diagram of an application environment of an information processing method according to an exemplary embodiment. Figure 1 As shown, the application environment may include a server 01 and at least one client 02, and each client 02 is in an interactive scene; the server 01 and each client 02 may be connected via a wired network or a wireless network.
[0069] Among them, the server 01 obtains a message queue set; the message queue set includes at least two message queues, and each message queue in at least two message queues corresponds one-to-one to each interactive end in the current interactive scene; each message queue includes at least one interactive message; here, the interactive end is the client 02; the server 01 performs message aggregation processing on the interactive messages in each message queue to obtain each aggregated message queue; each aggregated message queue includes messages to be merged; secondly, the server 01 merges the messages to be merged in each message queue to obtain a merged message; then, the merged message is sent to each client 02.
[0070] In some possible embodiments, the server 01 may be a server that provides background services for the application in the client 02. Specifically, the service provided by the server 01 may be an information processing service. The server 01 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0071] In some possible embodiments, the client 02 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. Client software such as an application (Application, referred to as App) providing a human-computer interaction function may be installed in the client 02. The application may be an independent application or a subprogram in the application. For example, the application may be a news application, a live broadcast application, or a video application.
[0072] It should be understood that Figure 1 The application environment shown is only an example. In actual applications, the information processing method of the embodiment of the present disclosure may be executed independently by the client or the server, or the information processing method of the embodiment of the present disclosure may be executed in cooperation between the client and the server. The embodiment of the present disclosure does not limit the specific application environment.
[0073] Figure 2 is a flowchart of an information processing method according to an exemplary embodiment. Figure 2 As shown, the information processing method can be applied to the server, including the following steps:
[0074] In step S201, a message queue set is obtained; the message queue set includes at least two message queues, each of the at least two message queues corresponds one-to-one to each interactive terminal in the current interactive scene; each message queue includes at least one interactive message.
[0075] In the disclosed embodiment, the current interactive scene may refer to a scene where two or more anchors are live-broadcasting together, and the interactive end refers to the client corresponding to each live broadcast room. In the live-broadcasting scene, the audience of each live broadcast room can send gifts to the live broadcast room by operating the interactive resource controls such as the gift controls displayed on the screen of the live broadcast room, which will generate an interactive message of sending gifts; that is, the interactive message is generated based on the interactive operation of the interactive end.
[0076] In the disclosed embodiment, when each microphone connection is established, the server creates an interactive message storage area for the current interactive scene, and the interactive message storage area is specifically used to store the interactive messages of each interactive terminal in the microphone connection scene. That is, when there are multiple microphone connections, a corresponding interactive message storage area is created for each microphone connection scene to avoid the situation where the interactive messages in different interactive scenes are crossed and confused.
[0077] Take an interactive message storage area as an example. Figure 3 As shown, the interactive message storage area includes a message queue for each interactive terminal in the current interactive scene. For example, there are three interactive terminals in the current interactive scene, that is, three live broadcast rooms are currently connected. Accordingly, the interactive message storage area includes three message queues, namely message queue 1 of interactive terminal 1, message queue 2 of interactive terminal 2, and message queue 3 of interactive terminal 3; wherein each message queue stores interactive messages generated by the interactive operations of the respective interactive terminals. For example, message queue 1 stores four interactive messages, and the four interactive messages may be generated by a gift-giving operation triggered by the audience in the live broadcast room corresponding to interactive terminal 1.
[0078] In some possible embodiments, the server may obtain the above-mentioned interactive message by subscribing to and consuming messages in a message middleware (such as Kafka). Accordingly, before obtaining the message queue set in step S201, the information processing method of the embodiment of the present disclosure may also include the following steps: Figure 4 The following steps are shown:
[0079] In step S401, an initial interaction message of the current interaction scene is obtained; the initial interaction message includes a target interaction terminal identifier and an interaction resource identifier.
[0080] Specifically, the initial interactive message comes from the audience client corresponding to any interactive terminal in the current interactive scene, and the initial interactive message can be generated based on the interactive operation of the audience client on any interactive terminal. The initial interactive message carries the target interactive terminal identifier and the interactive resource identifier corresponding to the interactive operation. The target interactive terminal identifier is an identifier that represents the unique identity of the target interactive terminal; for example, when any interactive terminal displays the live broadcast room screen, the audience can perform a gift-giving operation in the live broadcast room through the audience client, generating an initial interactive message carrying the interactive terminal identifier and the gift resource identifier.
[0081] At present, in order to enhance the interactive atmosphere of live broadcast, when the audience sends gifts to any of the live broadcast rooms, the gift special effects will not only be played in the live broadcast room of the host to whom they send gifts, but also in other live broadcast rooms participating in the live broadcast. That is, the gift special effects are divided into two links. According to the audience's gift request, the server not only displays the special effects of its own live broadcast room in the receiving room, but also plays the special effects of other live broadcast rooms in other live broadcast rooms.
[0082] Therefore, the above-mentioned initial interaction message, on the one hand, instructs the server to implement the first interaction corresponding to its interactive resource identifier on the target interactive terminal corresponding to the target interactive terminal identifier it carries, such as displaying the special effects of the own live broadcast room in the gift receiving live broadcast room; on the other hand, it also instructs the server to implement the second interaction corresponding to the interactive resource identifier on other interactive terminals in the current interactive scene, such as playing other live broadcast room special effects in other live broadcast rooms.
[0083] In step S403, an initial interactive message is added to a message queue corresponding to the target interactive terminal identifier.
[0084] Specifically, the message middleware stores the initial interaction message triggered by the audience client. The server can consume the initial interaction message from the message middleware, and then add the initial interaction message to the message queue corresponding to the target interaction terminal identifier carried in the initial interaction message.
[0085] At present, when there are a large number of interactive terminals in the current interactive scene, there will be a situation where the audience clients corresponding to multiple interactive terminals interact at the same time, resulting in a large number of interactive messages queuing on the client waiting to be implemented. In the related technology, the server limits the flow of interactive messages based on the count of the time window. When the count in the time window reaches the threshold, the newly arrived interactive messages in this time window are directly discarded. If the threshold is not reached, the interactive message is sent to the corresponding client, and the client implements the interactive message. However, this flow limiting method will cause some interactive messages to be discarded, resulting in the interaction not actually being implemented, which greatly affects the audience's interactive experience.
[0086] Through the above-mentioned embodiments, the server of the present application does not discard any initial interactive message, and adds the initial interactive message to the message queue corresponding to each interactive terminal, instead of directly sending the interactive message in the traditional way, to avoid a large number of interactive messages queuing on the client. The server adds the initial interactive message to the message queue corresponding to each interactive terminal, so as to facilitate the subsequent centralized processing of the messages of each interactive terminal, and prepare for the subsequent message aggregation processing. In this way, it can ensure that each interactive message is implemented at the corresponding interactive terminal, which can greatly enhance the audience's interactive experience.
[0087] In step S203, message aggregation processing is performed on the interactive messages in each message queue to obtain each aggregated message queue; each aggregated message queue includes messages to be merged.
[0088] In the disclosed embodiment, the server can directly aggregate the interactive messages in each message queue, or can pre-set aggregation conditions, and only when the aggregation conditions are met, the interactive messages in each message queue are aggregated. When the aggregation conditions are not met, it is characterized that the current performance and resources of the server are sufficient to process the interactive messages in each message queue in turn, without the need to adopt the message aggregation method.
[0089] Among them, the aggregation conditions can be set according to the number of interactive messages in each message queue or the total interactive implementation time of each message queue; the total interactive implementation time is calculated based on the number of interactive messages and the implementation time of the interactive messages at the interactive end.
[0090] Accordingly, in some possible embodiments, the above-mentioned message aggregation processing is performed on the interactive messages in each message queue to obtain each aggregated message queue, which may include the following: Figure 5 The following steps are shown:
[0091] In step S501, the total interactive implementation time of each message queue is determined according to the number of interactive messages in each message queue and the implementation time of the interactive messages at the interactive end.
[0092] The implementation time of the interactive message at the interactive end may include the sum of the first time t1 for implementing the first interaction at the target interactive end and the second time t2 for implementing the second interaction at other interactive ends, or when the first interaction and the second interaction can be implemented at the same time, the implementation time of the interactive message at the interactive end may be the larger time of the first time t1 and the second time t2. The implementation time of the interactive message at the interactive end may be a fixed value, which is stored at the server.
[0093] Specifically, the server determines the number of interactive messages in each message queue, and then multiplies the number of interactive messages in each message queue by the implementation time of the interactive messages on the interactive end to obtain the total interactive implementation time of each message queue.
[0094] In step S503, if there is at least one message queue in the message queue set whose total interaction implementation time is greater than or equal to the preset time, message aggregation processing is performed on the interactive messages in each message queue to obtain each aggregated message queue.
[0095] Specifically, after determining the total interaction implementation time of each message queue, the server compares the total interaction implementation time of each message queue with the preset time in turn. The preset time represents the maximum interaction implementation time that the server can tolerate. For example, the preset time may be 30s. If there is at least one message queue whose total interaction implementation time is greater than or equal to the preset time, the interactive messages in the message queues are aggregated to obtain each aggregated message queue.
[0096] In other embodiments, if the server determines that the number of interactive messages in at least one message queue is greater than or equal to a preset number, the server aggregates the interactive messages in the message queues to obtain each aggregated message queue, where the preset number may be 10, 15, 20, etc.
[0097] In the above embodiment, the server sets aggregation conditions and timely performs message aggregation processing on the interactive messages in each message queue when the aggregation conditions are met. In this way, the number of messages waiting in line for processing can be reduced, alleviating the processing pressure on the server.
[0098] In some possible embodiments, the interactive messages in each message queue are aggregated to obtain each aggregated message queue, which may include: Figure 6 The following steps are shown:
[0099] In step S601, a plurality of resource quantity identification pairs are obtained; each resource quantity identification pair includes a resource quantity and an aggregated resource identification corresponding to the resource quantity.
[0100] The number of resources indicates the number of aggregations k, that is, there are k interactive messages to be aggregated. The aggregated resource identifier corresponding to the number of resources includes a first resource identifier corresponding to the first live broadcast room and a second resource identifier corresponding to the second live broadcast room. The first resource identifier indicates that the k interactive messages are aggregated and played in the first live broadcast room (i.e., the own live broadcast room). The second resource identifier indicates that the k interactive messages are aggregated and played in the second live broadcast room (i.e., his live broadcast room).
[0101] like Figure 7 Several possible resource quantities are shown in Figure 1, as well as the first resource identifier and the second resource identifier corresponding to each resource quantity. For example, there are two gift-giving messages to be aggregated. Originally, the gift special effect displayed in the live broadcast room for each gift-giving message is a plane flying over at a time. When the two gift-giving messages are aggregated, the resource quantity is 2, and the corresponding first resource identifier is n2. According to the first resource identifier n2, the aggregate special effect of two planes flying over at a time can be displayed in the live broadcast room.
[0102] In step S603, based on the number of interactive messages in each message queue, a first target resource identifier corresponding to each message queue is determined from a plurality of resource quantity identifier pairs.
[0103] In this step, for each message queue, the first target resource identifier corresponding to each message queue is determined from multiple resource quantity identifier pairs according to the number of interactive messages in its queue; when the multiple resource quantities corresponding to the multiple resource quantity identifier pairs cover all natural numbers from 1 to N, the resource quantity that is the same as the number of interactive messages in the message queue can be directly determined from the multiple resource quantities.
[0104] Considering that the multiple resource quantities corresponding to the multiple resource quantity identifier pairs cannot cover all natural numbers from 1 to N, in a specific embodiment, the above-mentioned determining the first target resource identifier corresponding to each message queue from the multiple resource quantity identifier pairs based on the number of interactive messages in each message queue may include:
[0105] For each message queue: based on the number of interactive messages in each message queue, determine the first target resource quantity from the multiple resource quantities corresponding to the multiple resource quantity identifiers; the matching degree value between the first target resource quantity and the number of interactive messages in each message queue is greater than or equal to a first preset value; determine the first target resource identifier based on the aggregated resource identifier corresponding to the first target resource quantity.
[0106] Among them, the first preset value can be adjusted dynamically. Specifically, the initial first preset value can be set to 1, that is, a resource quantity equal to the number of interactive messages in the message queue is determined from multiple resource quantities as the first target resource quantity; when it does not exist, the initial first preset value can be gradually lowered until a resource quantity that matches the number of interactive messages in the message queue is found and it is used as the first target resource quantity.
[0107] In actual applications, the first target resource quantity can be interpreted as the maximum value of multiple resource quantities that is less than or equal to the number of interactive messages in the message queue, or the first target resource quantity can be interpreted as the minimum value of multiple resource quantities that is greater than or equal to the number of interactive messages in the message queue.
[0108] Then, the server uses the first resource identifier in the target aggregate resource identifier corresponding to the first target resource quantity as the first target resource identifier.
[0109] In step S605, based on the first target resource identifier corresponding to each message queue, the message to be merged of each message queue is generated.
[0110] The messages to be merged in each message queue indicate that the first enhanced interaction corresponding to the first target resource identifier is implemented on the interactive end corresponding to each message queue.
[0111] For example, Figure 3 The message queue 1 shown has 4 interactive messages, from Figure 7 The first target resource quantity corresponding to message queue 1 is determined to be 4 among the multiple resource quantity identifiers shown, and the first resource identifier n4 corresponding to resource quantity 4 is used as the first target resource identifier; a message to be merged is generated based on the first target resource identifier n4, and then the aggregate special effect of five planes flying over can be displayed in the corresponding self-live broadcast room according to the message to be merged. Compared with the traditional self-live broadcast room responding to each interactive message in turn to display the special effect of one plane flying over, this method can not only solve the problem of a large number of interactive messages queuing, but also enhance the special effect atmosphere of the live broadcast room and increase the fun of audience interaction.
[0112] In step S607, each message queue after aggregation is obtained based on the messages to be merged in each message queue.
[0113] In this step, for each message queue, the aggregated message obtained after aggregating k interactive messages is the message to be merged; the message to be merged is put into the message queue, and the k interactive messages are deleted at the same time.
[0114] In a specific embodiment, the above-mentioned process of obtaining each message queue after aggregation based on the messages to be merged in each message queue may include: based on the number of first target resources corresponding to each message queue, deleting the interactive messages whose number matches the number of first target resources at the tail of each message queue; adding the messages to be merged in each message queue to the head of each message queue to obtain each message queue after aggregation.
[0115] Combination Figure 3 and Figure 8 The above embodiments are described as follows. Figure 3 The message queue 1 shown in FIG. 1 has a first target resource number of 4. Based on the corresponding first target resource identifier n4, a corresponding message 1 to be merged is generated. Four interactive messages, namely, interactive messages 1 to 4, are deleted from the tail of the message queue 1. At the same time, the message to be merged is added to the head of the message queue 1. Figure 8 The aggregated message queue 1 shown in ; for example, Figure 3 The message queue 2 shown in FIG. 1 has a first target resource quantity of 2. Based on the corresponding first target resource identifier n2, the corresponding message 2 to be merged is generated. Two interactive messages, namely, interactive messages 6 and 7, are deleted from the tail of the message queue 2. At the same time, the message 2 to be merged is added to the head of the message queue 1. Figure 8 The aggregated message queue 2 shown in FIG. Figure 3 After the message queue 3 shown in the figure is aggregated in the same way, we can get Figure 8The aggregated message queue 3 shown in FIG. 3 will not be described again here.
[0116] In the above embodiment, the server aggregates the interactive messages in each message queue. By aggregating the interactive messages, a large number of queued interactive messages can be consumed in a short time, thereby avoiding the interactive messages from being discarded. The display time of the interactive resources in the live broadcast room of the interactive end can be controlled, and the server provides different aggregate resource identifiers for different resource quantities, i.e., aggregate quantities. The audience can trigger rich aggregate special effects, thereby stimulating the audience's enthusiasm for interaction and enhancing the audience's interactive experience.
[0117] In step S205, the messages to be merged in each message queue are merged to obtain a merged message.
[0118] In the disclosed embodiment, after determining the messages to be merged in each message queue, the server merges the messages to be merged in each message queue to obtain a merged message. In the previous step, the server aggregates the interactive messages in each message queue, the main purpose of which is to aggregate the first interaction of each interactive terminal from the live broadcast room, and in step S205, by merging the messages to be merged in each message queue, the main purpose is to merge the second interaction to be implemented from the live broadcast room.
[0119] The merge message includes the first aggregate resource identifier to be implemented and the second aggregate resource identifier to be implemented of each interactive terminal in the current interactive scene. That is, the merge processing process is mainly the process of determining the first aggregate resource identifier to be implemented and the second aggregate resource identifier to be implemented of each interactive terminal.
[0120] Accordingly, in some possible embodiments, the above-mentioned merging of the to-be-merged messages in each message queue to obtain a merged message may include: Fig. 9 The following steps are shown:
[0121] In step S901, for each interactive terminal, the first target resource quantities corresponding to the message queues in the message queue set except the message queue corresponding to the interactive terminal are added together to obtain the second quasi-target resource quantity.
[0122] For example, in the above example, the three interactive terminals have their corresponding aggregated message queues as follows: Figure 8As shown. Take the process of determining the first to-be-implemented aggregate resource identifier and the second to-be-implemented aggregate resource identifier of interactive terminal 1 as an example for explanation, and the other interactive terminals can refer to the determination process of interactive terminal 1. Add the first target resource quantities corresponding to the message queues other than message queue 1, namely message queue 2 and message queue 3, to obtain the second quasi-target resource quantity of message queue 1; among which, the first target resource quantity corresponding to message queue 2 is 2, and the first target resource quantity corresponding to message queue 3 is 2, then the second quasi-target resource quantity of message queue 1 is 2+2, that is, 4; similarly, the second quasi-target resource quantity of message queue 2 is 4+2, that is, 6; the second quasi-target resource quantity of message queue 3 is 4+2, that is, 6.
[0123] In step S903, based on the second quasi-target resource quantity, a second target resource identifier corresponding to each message queue is determined from a plurality of resource quantity identifier pairs.
[0124] This step may refer to the above step S603.
[0125] In a specific embodiment, S903 may include: for each message queue: based on the second quasi-target resource quantity, determining the second target resource quantity from multiple resource quantities corresponding to multiple resource quantity identifiers; the matching degree value between the second target resource quantity and the second quasi-target resource quantity is greater than or equal to a second preset value; determining the second target resource identifier based on the aggregated resource identifier corresponding to the second target resource quantity.
[0126] Among them, the second preset value can be adjusted dynamically. Specifically, the initial second preset value can be set to 1, that is, a resource quantity equal to the second quasi-target resource quantity is determined from multiple resource quantities as the second target resource quantity; when it does not exist, the initial second preset value can be gradually lowered until a resource quantity matching the second quasi-target resource quantity is found and it is used as the second target resource quantity.
[0127] In practical applications, the second target resource quantity can be interpreted as the maximum value of multiple resource quantities that is less than or equal to the second quasi-target resource quantity, or the second target resource quantity can be interpreted as the minimum value of multiple resource quantities that is greater than or equal to the second quasi-target resource quantity.
[0128] For example, for the above-mentioned message queue 1, the second quasi-target resource quantity of message queue 1 is 4, and there is a resource quantity with a value of 4 among multiple resource quantities, then the resource quantity 4 is directly used as the second target resource quantity; assuming that the second quasi-target resource quantity of message queue 1 is 3, 2 or 4 can be used as the second target resource quantity.
[0129] Then, the server uses the second resource identifier in the target aggregate resource identifier corresponding to the second target resource quantity as the second target resource identifier. For example, the second target resource quantity of interactive terminal 1 is 4, and the corresponding second target resource identifier is m4; the second target resource quantity of interactive terminal 2 is 6, and the corresponding second target resource identifier is m6; the second target resource quantity of interactive terminal 3 is 6, and the corresponding second target resource identifier is m6.
[0130] In step S905, the second target resource identifier is used as the second aggregation resource identifier to be implemented at the interactive end.
[0131] In step S907, the first target resource identifier is used as the first aggregation resource identifier to be implemented at the interactive end.
[0132] In the above steps S905 to S907, the server uses the first target resource identifier corresponding to each interactive terminal obtained after aggregation as the first aggregated resource identifier to be implemented of the interactive terminal, and uses the second target resource identifier corresponding to each interactive terminal obtained after merging as the second aggregated resource identifier to be implemented of the interactive terminal.
[0133] Subsequently, each interactive terminal may implement the corresponding first aggregate resource according to its corresponding first identifier of the aggregate resource to be implemented, and implement the corresponding second aggregate resource according to its corresponding second identifier of the aggregate resource to be implemented.
[0134] In the above example, after merging the information to be merged in message queues 1 to 3, the resulting merged message includes the first aggregate resource identifier n4 to be implemented and the second aggregate resource identifier m4 to be implemented corresponding to interactive terminal 1, the first aggregate resource identifier n2 to be implemented and the second aggregate resource identifier m6 to be implemented corresponding to interactive terminal 2, and the first aggregate resource identifier n2 to be implemented and the second aggregate resource identifier m6 to be implemented corresponding to interactive terminal 3.
[0135] In the above embodiment, the server merges the messages to be merged in each message queue, and on the basis of aggregating the first interaction, merges the second interactions caused by other interactive terminals to be implemented by the interactive terminal, and implements the second enhanced interaction at one time, which can avoid the interactive terminal from implementing too many second interactions in succession, thereby affecting the live broadcast picture of the interactive terminal's live broadcast room; taking the interactive terminal 1 above as an example, the interactive terminal 1 finally displays the aggregate special effect corresponding to n4 once in the corresponding live broadcast room, and also displays the aggregate special effect corresponding to m4 once. Compared with the traditional method in which the interactive terminal 1 needs to respond to each interactive message, resulting in the need to display special effects 8 times in succession, the present disclosure can not only ensure that each interaction is effectively implemented, and the interactive resources will not be interrupted, but also can greatly shorten the display time of the client's interactive resources to avoid affecting the live broadcast room picture.
[0136] In step S207, the merged message is sent to each interactive terminal.
[0137] In the disclosed embodiment, the server can directly send the merge message to each interactive terminal in the current interactive scene. After receiving the merge message, each interactive terminal can determine the first aggregate resource identifier to be implemented and the second aggregate resource identifier to be implemented that correspond to each of them according to their respective interactive terminal identifiers, and then find the aggregate resource special effects corresponding to the first aggregate resource identifier to be implemented and the second aggregate resource identifier to be implemented from the aggregate resource special effects library, and display them in the corresponding live broadcast screen.
[0138] In some possible embodiments, the server may also send the merged message to any interactive terminal in the current interactive scene; then, after receiving the merged message, any interactive terminal synchronizes the merged message to other interactive terminals in the current interactive scene based on the RTC communication link established between the interactive terminals.
[0139] Among them, the RTC (Real-Time Communication) communication link is a real-time data exchange network path established between each interactive terminal when the interactive terminal establishes a microphone connection. It is used to synchronize data and status between each anchor in real time during the microphone connection, providing each anchor with the ability to interact and communicate in real time. In this way, considering that there is a certain delay when the server sends the merged message to each interactive terminal separately, resulting in each interactive terminal not being able to receive the merged message in time, this can improve the real-time performance of the interactive terminal receiving the interactive message.
[0140] In some possible embodiments, the server periodically executes the above steps S201 to S207 and their optional embodiments according to a preset time interval. In one cycle, when executing the above step S207 and sending the merged message to each interactive terminal, the following may also be included: Fig.10 The following steps are shown:
[0141] In step S1001, the timestamp of the message currently allowed to be sent is obtained.
[0142] In step S1003, if the current timestamp is greater than or equal to the current timestamp allowed for sending messages, the combined message is sent to each interactive terminal.
[0143] Specifically, before sending the merged message to each interactive terminal, the server obtains the current allowed message sending timestamp and the current timestamp, and then determines whether the current timestamp is greater than or equal to the current allowed message sending timestamp. If the current timestamp is greater than or equal to the current allowed message sending timestamp, the merged message is sent to each interactive terminal; otherwise, until the current timestamp is equal to the current allowed message sending timestamp, the merged message is sent to each interactive terminal.
[0144] In step S1005, based on the implementation time of the interactive message at the interactive end, the timestamp of the currently allowed message to be sent is updated.
[0145] In this step, after the server sends the merged message to each interactive terminal, it updates the current timestamp of the message that is allowed to be sent. Specifically, it adds the implementation time △t of the interactive message at the interactive terminal to the current timestamp t, that is, t+△t, and uses t+△t as the updated timestamp of the message that is allowed to be sent. Among them, the implementation time of the interactive message at the interactive terminal refers to the explanation above and will not be repeated here.
[0146] In the above embodiment, the server updates the timestamp of the currently allowed message in each cycle to control the time of sending the merged message in the next cycle, so that when the merged message is sent in the next cycle, the interaction of the current cycle has been completed, avoiding the situation where the interaction is interrupted.
[0147] In summary, an information processing method provided by an embodiment of the present application, the server adds the initial interactive message to the message queue corresponding to each interactive terminal, obtains the message queue, aggregates and merges the interactive messages in the message queue, and sends the merged message to each interactive terminal. In this way, a large number of queued interactive messages can be consumed in a short time, avoiding the interactive messages from being discarded, and controlling the display time of the interactive resources of the interactive terminal to enhance the audience's interactive experience.
[0148] Fig.11 is a block diagram of an information processing device according to an exemplary embodiment. Fig.11 , the device comprises:
[0149] The acquisition module 1101 is configured to execute acquisition of a message queue set; the message queue set includes at least two message queues, each message queue in the at least two message queues corresponds to each interactive terminal in the current interactive scene; each message queue includes at least one interactive message;
[0150] The first processing module 1102 is configured to perform message aggregation processing on the interactive messages in each message queue to obtain each aggregated message queue; each aggregated message queue includes messages to be merged;
[0151] The second processing module 1103 is configured to perform merging processing on the messages to be merged in each message queue to obtain a merged message;
[0152] The sending module 1104 is configured to send the merged message to each interactive terminal.
[0153] In some possible embodiments, the acquisition module 1101 is also configured to execute the acquisition of the initial interaction message of the current interaction scene; the initial interaction message includes a target interaction terminal identifier and an interaction resource identifier; the initial interaction message indicates that a first interaction corresponding to the interaction resource identifier is implemented on the target interaction terminal corresponding to the target interaction terminal identifier, and a second interaction corresponding to the interaction resource identifier is implemented on the interaction terminals other than the target interaction terminal in the current interaction scene; and the initial interaction message is added to the message queue corresponding to the target interaction terminal identifier.
[0154] In some possible embodiments, the first processing module 1102 is also configured to determine the total interactive implementation time of each message queue based on the number of interactive messages in each message queue and the implementation time of the interactive messages at the interactive end; if there is at least one message queue in the message queue set whose total interactive implementation time is greater than or equal to the preset time, then the interactive messages in each message queue are aggregated to obtain each aggregated message queue.
[0155] In some possible embodiments, the first processing module 1102 is also configured to execute the acquisition of multiple resource quantity identification pairs; each resource quantity identification pair includes a resource quantity and an aggregated resource identification corresponding to the resource quantity; the aggregated resource identification includes a first resource identification corresponding to the first live broadcast room and a second resource identification corresponding to the second live broadcast room; based on the number of interactive messages in each message queue, determine the first target resource identification corresponding to each message queue from the multiple resource quantity identification pairs; based on the first target resource identification corresponding to each message queue, generate the messages to be merged for each message queue; the messages to be merged for each message queue indicate that the first enhanced interaction corresponding to the first target resource identification is implemented on the interactive end corresponding to each message queue; based on the messages to be merged for each message queue, obtain each message queue after aggregation.
[0156] In some possible embodiments, the first processing module 1102 is further configured to execute for each message queue: based on the number of interactive messages in each message queue, determining a first target resource quantity from multiple resource quantities corresponding to multiple resource quantity identifiers; the matching degree value between the first target resource quantity and the number of interactive messages in each message queue is greater than or equal to a first preset value; and determining the first target resource identifier based on the aggregated resource identifier corresponding to the first target resource quantity.
[0157] In some possible embodiments, the second processing module 1103 is further configured to execute, based on the first target resource quantity corresponding to each message queue, deleting the interactive messages whose quantity matches the first target resource quantity at the end of each message queue; adding the messages to be merged of each message queue to the head of each message queue to obtain each message queue after aggregation.
[0158] In some possible embodiments, the merged message includes the first to-be-implemented aggregate resource identifier and the second to-be-implemented aggregate resource identifier of each interactive terminal in the current interactive scene; the second processing module 1103 is also configured to execute for each interactive terminal: adding the first target resource quantities corresponding to the message queues in the message queue set except the message queues corresponding to the interactive terminal to obtain the second quasi-target resource quantity; based on the second quasi-target resource quantity, determining the second target resource identifier corresponding to each message queue from multiple resource quantity identifier pairs; using the second target resource identifier as the second to-be-implemented aggregate resource identifier of the interactive terminal; using the first target resource identifier as the first to-be-implemented aggregate resource identifier of the interactive terminal.
[0159] In some possible embodiments, the second processing module 1103 is also configured to execute for each message queue: based on the second quasi-target resource quantity, determine the second target resource quantity from multiple resource quantities corresponding to multiple resource quantity identifiers; the matching degree value between the second target resource quantity and the second quasi-target resource quantity is greater than or equal to a second preset value; and determine the second target resource identifier based on the aggregated resource identifier corresponding to the second target resource quantity.
[0160] In some possible embodiments, the sending module 1104 is also configured to execute the acquisition of the current timestamp of the message allowed to be sent; if the current timestamp is greater than or equal to the current timestamp of the message allowed to be sent, the merged message will be sent to each interactive terminal; based on the implementation duration of the interactive message at the interactive terminal, the current timestamp of the message allowed to be sent is updated.
[0161] In some possible embodiments, the sending module 1104 is also configured to execute sending the merged message to any interactive terminal in the current interactive scene; after receiving the merged message, any interactive terminal synchronizes the merged message to other interactive terminals in the current interactive scene except any interactive terminal.
[0162] Regarding the device 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.
[0163] Fig.12 is a block diagram of an electronic device for information processing according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.12As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, an information processing method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0164] Those skilled in the art will understand that Fig.12 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0165] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the information processing method in the embodiment of the present disclosure.
[0166] In an exemplary embodiment, a computer-readable storage medium is also provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the information processing method in the embodiment of the present disclosure.
[0167] In an exemplary embodiment, a computer program product containing instructions is also provided. The computer program product includes a computer program. The computer program is stored in a readable storage medium. At least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the computer device executes the information processing method of the embodiment of the present disclosure.
[0168] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0169] Those skilled in the art will readily appreciate other embodiments of the present disclosure 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 that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0170] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An information processing method, characterized in that: include: Acquire a message queue set; the message queue set includes at least two message queues, each of the at least two message queues corresponds to each interactive terminal in the current interactive scene; each message queue includes at least one interactive message; each interactive terminal is a terminal on the side of the live broadcast initiator of the live broadcast room; Acquire multiple resource quantity identification pairs; each resource quantity identification pair includes a resource quantity and an aggregate resource identification corresponding to the resource quantity; the aggregate resource identification includes a first resource identification corresponding to a first live broadcast room and a second resource identification corresponding to a second live broadcast room; the first live broadcast room is a live broadcast room corresponding to each message queue; the second live broadcast room is a live broadcast room other than the first live broadcast room; Based on the number of interactive messages in each message queue, determining a first target resource identifier corresponding to each message queue from the plurality of resource quantity identifier pairs; Based on the first target resource identifier corresponding to each message queue, a message to be merged of each message queue is generated; the message to be merged of each message queue indicates to implement a first enhanced interaction corresponding to the first target resource identifier on the interactive end corresponding to each message queue; Based on the messages to be merged in each message queue, obtaining each aggregated message queue; Merging the second interactions caused by other interactive terminals to be implemented by each interactive terminal; Merging the messages to be merged in each message queue to obtain a merged message; The messages to be merged include messages of second interactions caused by other interactive terminals to be implemented by the interactive terminals corresponding to each message queue; The merged message is sent to each interactive terminal.
2. The information processing method according to claim 1, characterized in that: Before obtaining the message queue set, the method further includes: Acquire an initial interaction message of the current interaction scene; the initial interaction message includes a target interaction terminal identifier and an interaction resource identifier; the initial interaction message indicates that a first interaction corresponding to the interaction resource identifier is implemented for a target interaction terminal corresponding to the target interaction terminal identifier, and a second interaction corresponding to the interaction resource identifier is implemented for interaction terminals other than the target interaction terminal in the current interaction scene; The initial interactive message is added to the message queue corresponding to the target interactive terminal identifier.
3. The information processing method according to claim 1, characterized in that: The method further comprises: Determine the total interactive implementation duration of each message queue according to the number of interactive messages in each message queue and the implementation duration of the interactive messages on the interactive end; If there is at least one message queue in the message queue set whose total interaction implementation time is greater than or equal to the preset time, message aggregation processing is performed on the interactive messages in each message queue to obtain each aggregated message queue.
4. The information processing method according to claim 1, characterized in that: The determining, based on the number of interactive messages in each message queue, from the plurality of resource quantity identifier pairs, the first target resource identifier corresponding to each message queue comprises: For each of the message queues: Based on the number of interactive messages in each message queue, a first target resource quantity is determined from the multiple resource quantities corresponding to the multiple resource quantity identifiers; the matching degree value between the first target resource quantity and the number of interactive messages in each message queue is greater than or equal to a first preset value; A first target resource identifier is determined according to the aggregated resource identifier corresponding to the first target resource quantity.
5. The information processing method according to claim 1, characterized in that: The obtaining each message queue after aggregation based on the messages to be merged in each message queue includes: Based on the number of first target resources corresponding to each message queue, at the end of each message queue, delete the interactive messages whose number matches the number of the first target resources; The messages to be merged in each message queue are added to the head of each message queue to obtain each aggregated message queue.
6. The information processing method according to claim 1, characterized in that: The merging of the to-be-merged messages in each message queue to obtain a merged message includes: For each interactive terminal: add the first target resource quantities corresponding to the message queues in the message queue set except the message queue corresponding to the interactive terminal to obtain the second quasi-target resource quantity; based on the second quasi-target resource quantity, determine the second target resource identifier corresponding to each message queue from the multiple resource quantity identifier pairs; use the second target resource identifier as the second to-be-implemented aggregate resource identifier of the interactive terminal; use the first target resource identifier as the first to-be-implemented aggregate resource identifier of the interactive terminal.
7. The information processing method according to claim 6, characterized in that: The determining, based on the second quasi-target resource quantity, from the plurality of resource quantity identifier pairs, the second target resource identifier corresponding to each message queue comprises: For each message queue: based on the second quasi-target resource quantity, determine the second target resource quantity from the multiple resource quantities corresponding to the multiple resource quantity identifiers; the matching degree value between the second target resource quantity and the second quasi-target resource quantity is greater than or equal to a second preset value; determine the second target resource identifier based on the aggregated resource identifier corresponding to the second target resource quantity.
8. The information processing method according to claim 1, characterized in that: The sending the merged message to each interactive terminal includes: Get the timestamp of the message currently allowed to be sent; If the current timestamp is greater than or equal to the current timestamp of the message allowed to be sent, the combined message is sent to each interactive terminal; Based on the implementation time of the interactive message at the interactive end, the currently allowed message sending timestamp is updated.
9. The information processing method according to any one of claims 1 to 8, characterized in that: The sending the merged message to each interactive terminal includes: The merged message is sent to any interactive terminal in the current interactive scene; after receiving the merged message, any interactive terminal synchronizes the merged message to other interactive terminals in the current interactive scene except the any interactive terminal.
10. An information processing device, characterized in that: include: The acquisition module is configured to execute acquisition of a message queue set; the message queue set includes at least two message queues, each of the at least two message queues corresponds to each interactive terminal in the current interactive scene; each message queue includes at least one interactive message; each interactive terminal is a terminal on the side of the live broadcast initiator of the live broadcast room; The first processing module is configured to execute acquisition of multiple resource quantity identification pairs; each resource quantity identification pair includes a resource quantity and an aggregate resource identification corresponding to the resource quantity; the aggregate resource identification includes a first resource identification corresponding to a first live broadcast room and a second resource identification corresponding to a second live broadcast room; the first live broadcast room is a live broadcast room corresponding to each message queue; the second live broadcast room is a live broadcast room other than the first live broadcast room; based on the number of interactive messages in each message queue, determine the first target resource identification corresponding to each message queue from the multiple resource quantity identification pairs; Based on the first target resource identifier corresponding to each message queue, a message to be merged of each message queue is generated; the message to be merged of each message queue indicates to implement a first enhanced interaction corresponding to the first target resource identifier on the interactive end corresponding to each message queue; Based on the messages to be merged in each message queue, obtaining each aggregated message queue; The second processing module is configured to perform merging processing on the messages to be merged in each message queue to obtain a merged message; The messages to be merged include messages of second interactions caused by other interactive terminals to be implemented by the interactive terminals corresponding to each message queue; The second processing module is further configured to merge the second interactions caused by other interactive terminals to be implemented by each interactive terminal; The sending module is configured to send the merged message to each interactive terminal.
11. 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 information processing method according to any one of claims 1 to 9.
12. 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 information processing method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Information processing method and device, server and storage medium
CN109788306A