Data processing method, device and equipment, readable storage medium and program product
By generating interactive message sequences and automatically displaying them in the live streaming interface, the problem of low efficiency in live streaming performance testing is solved, achieving highly efficient automated testing.
Patent Information
- Application Number
- CN202411090647.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2026-02-10
AI Technical Summary
In existing technologies, live streaming performance testing relies on manual simulation of audience interaction, resulting in low testing efficiency.
By responding to live streaming test requests, generating a sequence of interactive messages based on live streaming interaction data, and automatically displaying the interactive messages on the live streaming interface, the system simulates the real interaction process and improves testing efficiency.
It automates and enhances the realism of live streaming performance testing, eliminating manual operation and significantly improving testing efficiency.
Smart Images

Figure CN121509640A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to data processing methods, data processing apparatus, computer equipment, computer-readable storage media, and computer program products. Background Technology
[0002] With the rapid development of mobile internet, live streaming has become a very popular form of entertainment, satisfying the growing interactive needs of netizens. Live streaming typically involves a large amount of video encoding, real-time data transmission, and audience interaction. These factors can lead to problems such as high memory usage, stuttering, and device overheating. Therefore, conducting live streaming performance testing is crucial to optimize the live streaming experience in a targeted manner.
[0003] Currently, live streaming performance testing is conducted through manual intervention, such as having testers simulate audience interactions and send test messages to the live stream. However, this method relies on manual operation by testers and requires sending a large number of test messages to simulate as many interactions as possible, resulting in low efficiency for live streaming performance testing. Therefore, improving the efficiency of live streaming performance testing is an urgent problem to be solved. Summary of the Invention
[0004] This application provides a data processing method, apparatus, device, readable storage medium, and program product that can improve the efficiency of live streaming performance testing.
[0005] On one hand, embodiments of this application provide a data processing method, the method comprising:
[0006] In response to the live streaming test request from the first terminal device for the first live stream, the live streaming interaction data is determined based on the live streaming identifier of the second live stream carried in the live streaming test request; the live streaming interaction data is used to indicate the interaction status of the participants in the second live stream on the live streaming interface of the second live stream.
[0007] An interactive message sequence is generated based on the live interactive data. The interactive message sequence includes at least one interactive message. Each interactive message includes the sender of the interactive message and the display time. There is a correspondence between the sender and the participants in the second live stream. The interactive message sequence is used to reproduce the interaction of the participants in the second live stream in the live stream interface of the first live stream.
[0008] After the first terminal device starts the first live broadcast, each interactive message is sent to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message on the live broadcast interface of the first live broadcast.
[0009] On the other hand, embodiments of this application provide a data processing apparatus, which includes:
[0010] The determining unit is configured to respond to a live streaming test request from a first terminal device for a first live stream, and determine live streaming interaction data based on the live stream identifier of the second live stream carried in the live streaming test request; the live streaming interaction data includes the interaction data of the participants in the second live stream;
[0011] The processing unit is used to generate an interactive message sequence based on the live interactive data; the interactive message sequence includes at least one interactive message, each interactive message includes the sender of the interactive message and the display time, and there is a correspondence between the sender and the participants in the second live broadcast;
[0012] The sending unit is used to send each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence after the first terminal device starts the first live broadcast, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast.
[0013] In one implementation, when the processing unit generates an interactive message sequence based on live interactive data, it specifically performs the following:
[0014] Extract initial messages of various message types from live stream interaction data;
[0015] Generate an interactive message sequence corresponding to the target message type based on the initial message of the target message type; the target message type can be any one of multiple message types, and each interactive message in the interactive message sequence also includes a message type.
[0016] In one possible implementation, when the processing unit generates the interactive message sequence corresponding to the target message type based on the initial message of the target message type, it specifically performs the following:
[0017] Determine the occurrence time of each initial message from multiple initial messages of the target message type;
[0018] The occurrence time of the target initial message is converted to obtain the display time; the target initial message is any one of multiple initial messages of the target message type;
[0019] Adjust the occurrence time in the target initial message to the display time to obtain the interactive message corresponding to the target initial message;
[0020] Based on the interactive messages corresponding to the multiple initial messages of the target message type, determine the sequence of interactive messages corresponding to the target message type.
[0021] In one possible implementation, when the sending unit sends each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast, it is specifically used for:
[0022] Identify the matching interactive message whose display time matches the current timestamp from among multiple interactive messages included in the interactive message sequence;
[0023] Add the account information of the sender included in the matching interaction message to the matching interaction message to obtain the target interaction message;
[0024] Send a target interactive message to the first terminal device so that the first terminal device displays the target interactive message on the live broadcast interface of the first live broadcast.
[0025] In one possible implementation, the processing unit is also used for:
[0026] Acquire raw interactive data of various message types corresponding to the second live broadcast on the second terminal device; the raw interactive data corresponding to each message type includes multiple messages to be processed;
[0027] Extract the participants included in each message to be processed from the raw interaction data of various message types;
[0028] The number of participating objects is determined based on the participating objects included in each pending message, and a sending object is assigned to each pending message based on the number of participating objects;
[0029] Add the sent object that has been assigned to each pending message to each pending message to obtain the initial message corresponding to each pending message;
[0030] The second live stream interactive data is generated based on the initial message corresponding to each pending message.
[0031] In one possible implementation, the processing unit, when allocating an issuing object for each message to be processed based on the number of participating objects, specifically uses:
[0032] Get the collection of emitted objects to be used for allocation;
[0033] If the number of sending objects in the sending object set is greater than or equal to the number of participating objects, then the sending object corresponding to the participating object included in each message to be processed is determined from the sending object set; each sending object corresponds to one participating object.
[0034] If the number of sending objects in the sending object set is less than the number of participating objects, then a sending object corresponding to each participating object in the message to be processed is randomly assigned from the sending object set; each assigned sending object corresponds to one or more participating objects.
[0035] In one possible implementation, the processing unit is also used for:
[0036] Obtain statistical result change data of the second live broadcast on the second terminal device; the statistical result change data includes statistical results of multiple time points recorded in the second live broadcast;
[0037] Based on the changes in the statistical results, generate multiple initial messages corresponding to the statistical results, and add these multiple initial messages to the live interaction data.
[0038] In one possible implementation, the processing unit is also used for:
[0039] A statistical message sequence is generated based on multiple initial messages corresponding to the statistical results in the live interactive data. The statistical message sequence includes multiple statistical messages, each of which includes the display time of the statistical message and the corresponding statistical result. The display time of each statistical message is obtained by converting the time node in the initial message corresponding to the statistical message.
[0040] After the first terminal device starts the first live broadcast, each statistical message is sent to the first terminal device according to the display time of each statistical message in the statistical message sequence, so that the first terminal device can adjust the statistical results in the live broadcast interface of the first live broadcast based on the received statistical messages.
[0041] In one possible implementation, the processing unit is also used for:
[0042] In response to a live streaming configuration request from a first terminal device for a first live stream, a list of live streaming identifiers associated with a live streaming account logged in on the first terminal device is determined; the list of live streaming identifiers includes at least one candidate live streaming identifier.
[0043] Send the live broadcast identifier list to the first terminal device;
[0044] The system receives a live streaming test request from a first terminal device for a first live stream; the live streaming test request carries a live streaming identifier for a second live stream, which is selected from at least one candidate live streaming identifier included in the live streaming identifier list.
[0045] Accordingly, embodiments of this application provide a computer device, which includes:
[0046] A processor is a tool for implementing computer programs.
[0047] A computer-readable storage medium storing a computer program adapted to be loaded by a processor and executed by the above-described data processing method.
[0048] Accordingly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when read and executed by a processor of a computer device, causes the computer device to perform the aforementioned data processing method.
[0049] Accordingly, this application provides a computer program product comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the data processing method described above.
[0050] In response to a live streaming test request from a first terminal device for a first live stream, this embodiment determines live streaming interaction data based on the live stream identifier of the second live stream carried in the test request, and generates an interaction message sequence based on the live streaming interaction data to simulate the real interaction process of each participant in the second live stream. Furthermore, after the first terminal device starts the first live stream, each interaction message can be sent to the first terminal device according to its display time and the sending recipient assigned to each message. This ensures that each interaction message is sent by the sending recipient at the display time and displayed on the live stream interface of the first live stream, thereby improving the realism and accuracy of the live stream performance test. The above method, by obtaining real live streaming interaction data to generate an interaction message sequence and automatically sending the interaction messages, achieves the reproduction of historical interaction behavior of the second live stream in the first live stream (i.e., simulating the live stream popularity of a historical live stream) to facilitate live stream performance testing. This avoids the need for testers to simulate audience interaction behavior and send test messages to the live stream, thus greatly improving the efficiency of live stream performance testing. Attached Figure Description
[0051] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0052] Figure 1 This is a schematic diagram of the architecture of a data processing system provided in an embodiment of this application;
[0053] Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0054] Figure 3 This is a flowchart illustrating another data processing method provided in an embodiment of this application;
[0055] Figure 4A This is a schematic diagram of a live streaming configuration interface provided in an embodiment of this application;
[0056] Figure 4B This is a schematic diagram of a live streaming interface provided in an embodiment of this application;
[0057] Figure 4C This is an architecture diagram of a live streaming popularity simulation provided in an embodiment of this application;
[0058] Figure 4D This is a schematic diagram of a live streaming popularity simulation provided in an embodiment of this application;
[0059] Figure 5 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;
[0060] Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0061] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0062] This application involves data related to live streaming (such as live streaming interaction data, raw interaction data), data related to the subject (such as the subject's account information), etc. When the above embodiments of this application are applied to specific products or technologies, the collection, use and processing of data should comply with the requirements of relevant laws and regulations. Before collecting data, the information processing rules should be informed and the subject's individual consent should be obtained. Data should be processed in strict accordance with the requirements of laws and regulations and personal information processing rules, and technical measures should be taken to ensure the security of relevant data.
[0063] The data processing system provided in the embodiments of this application will now be described in conjunction with the accompanying drawings. The data processing system is suitable for implementing the data processing method provided in the embodiments of this application.
[0064] Please see Figure 1This figure is a schematic diagram of the architecture of a data processing system provided in an embodiment of this application. The data processing system may specifically include a server 101 and multiple terminal devices 102. The server 101 and the multiple terminal devices 102 are connected via a network, such as a local area network (LAN), a wide area network (WAN), or the mobile internet.
[0065] Server 101 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. In this embodiment, server 101 may refer to the backend server of a live streaming simulation platform.
[0066] Terminal device 102 may also be referred to as a terminal, user equipment (UE), access terminal, user unit, mobile device, user terminal, wireless communication device, user agent, or user device. Terminal device can be a smart home appliance, a handheld device with wireless communication capabilities (e.g., a smartphone or tablet), a computing device (e.g., a personal computer (PC)), an in-vehicle terminal, a smart voice interaction device, a wearable device, or other smart devices, but is not limited to these. In the embodiments of this application, terminal device 102 can refer to a terminal device for live streaming (e.g., a mobile phone used by a broadcaster) or a terminal device participating in the live stream (e.g., a mobile phone used by a viewer).
[0067] In one possible implementation, terminal device 102 may include at least a first terminal device and a second terminal device. The first terminal device is the one that initiates the first live stream for performance testing, and the second terminal device is the one that initiates the second live stream (which can be considered a historical live stream preceding the first). Therefore, the first terminal device can choose to reproduce various interactions from the second live stream within the first live stream to perform live stream performance testing (e.g., testing whether functions like likes and comments occur abnormally, or testing whether the memory usage and heat generation of the first terminal device occur abnormally during the live stream, so as to optimize live stream performance in a targeted manner). It should be noted that the first terminal device and the second terminal device can refer to different terminal devices or the same terminal device; this will not be elaborated further here. In one possible implementation, server 101 can respond to the live stream test request from the first terminal device for the first live stream and determine the live stream interaction data based on the live stream identifier of the second live stream carried in the live stream test request (e.g., the live stream identifier of a historical live stream, which could be, for example, the live stream ID corresponding to that live stream).
[0068] Then, server 101 can generate an interactive message sequence based on the live interactive data. The interactive message sequence includes at least one interactive message. Each interactive message includes the sending object of the interactive message (the sending object refers to the object that sends the interactive message to in the first live stream, such as a test account) and the display time. There is a corresponding relationship between the sending object and the participating object in the second live stream. That is, the sending object can refer to the test object corresponding to the participating object. For example, the test object can be a test account.
[0069] Then, after the first terminal device starts the first live broadcast, the server 101 can send each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device can display each interactive message in the live broadcast interface of the first live broadcast. In other words, each interactive message will be displayed in the live broadcast interface of the first live broadcast at the time corresponding to the display time.
[0070] The above method enables the automated reproduction of historical interactive behaviors in new live streams, facilitating live stream performance testing without relying on manual operation by testers, thereby improving the efficiency of live stream performance testing.
[0071] It is understood that the system architecture diagrams described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. For example, the data processing method provided in the embodiments of this application can be executed not only by server 101, but also by other servers or server clusters that are different from server 101 and can communicate with terminal device 102 and / or server 101. Those skilled in the art will understand that... Figure 1 The number of terminal devices and servers shown is merely illustrative. Any number of terminal devices and servers can be configured according to business needs. Furthermore, as system architecture evolves and new business scenarios emerge, the technical solutions provided in this application are also applicable to similar technical problems. In subsequent embodiments, "server" will refer to server 101 and "terminal device" will refer to terminal device 102; further details will not be repeated in subsequent embodiments.
[0072] The data processing method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0073] This application provides a data processing method that can be executed by a computer device, such as a computer device that can be... Figure 1 Server 101 in the data processing system shown. (As...) Figure 2 As shown, the data processing method may include, but is not limited to, the following steps S201-S203:
[0074] S201. In response to the live streaming test request from the first terminal device for the first live stream, determine the live streaming interaction data based on the live streaming identifier of the second live stream carried in the live streaming test request.
[0075] In this embodiment, the live streaming test request refers to the request used to start the first live stream for live streaming performance testing. The live streaming performance test requires the server to send interactive messages to the first terminal device after the first terminal device starts the first live stream, so as to evaluate and verify various performance indicators of the live streaming system (such as whether the functions of liking and commenting in the live stream are abnormal, or whether the memory usage and heat generation of the first terminal device are abnormal during the first live stream), so as to carry out targeted live streaming performance optimization, solve various problems that may occur during the live stream, and ensure the stability and reliability of the live stream in actual operation.
[0076] In this embodiment, the live stream identifier of the second live stream (the second live stream refers to a historical live stream preceding the first live stream) is a unique identifier for the second live stream, such as the identity document (ID) of the second live stream. The computer device can determine the live interaction data corresponding to the second live stream based on the live stream identifier carried in the live stream test request. The second live stream includes one or more participants, which can refer to the accounts used by users watching the second live stream.
[0077] In one possible implementation, the live stream interaction data includes interaction data of participants in the second live stream. For example, this data may include information related to participants' likes, comments, follows, shares, and active entry (user-initiated entry refers to users actively entering the first live stream rather than being invited). The live stream interaction data indicates the interaction status of participants in the second live stream's interface. This interaction status can refer to the participants' historical interaction behaviors, such as likes, comments, follows, shares, and active entry.
[0078] In one possible implementation, the live streaming device (such as a second terminal device) can generate raw interactive data based on the interactive data of the participants in the second live stream after the second live stream ends. The live streaming device then sends the live stream identifier corresponding to the second live stream and the raw interactive data to the computer device. The computer device can then generate live interactive data based on the raw interactive data and associate and store the live stream identifier corresponding to the second live stream and the live interactive data. This will not be elaborated further here.
[0079] S202. Generate an interactive message sequence based on the live interactive data; the interactive message sequence includes at least one interactive message, and each interactive message includes the recipient of the interactive message and the display time.
[0080] In this embodiment, a computer device can generate an interactive message sequence based on live interactive data. This sequence reproduces the interaction between participants in the second live stream on the live stream interface of the first live stream. The interactive message sequence includes at least one interactive message generated based on the live interactive data. Each message includes the sender of the message (i.e., the object sending the message to the first live stream, such as a test account) and a display time (indicating the time the message is displayed on the live stream interface of the first live stream, such as a specific millisecond after the start of the first live stream). The interactive messages in the sequence can be arranged in ascending order of display time to simulate the actual interaction process of participants in the second live stream.
[0081] In this embodiment, there is a correspondence between the sending object and the participating object in the second live stream. That is, the interactive messages generated by the participating object in the second live stream need to be sent to the first live stream by the sending object corresponding to that participating object. For example, the sending object can refer to a test account assigned to a participating object in the second live stream (such as a historical interactive account).
[0082] S203. After the first terminal device starts the first live broadcast, each interactive message is sent to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast.
[0083] In this embodiment, after the first terminal device starts the first live stream, the computer device begins simulating historical interactive behaviors. Specifically, the computer device can send each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence. That is, the computer device will send the interactive message to the first terminal device at the time corresponding to the display time of the interactive message. Then, the first terminal device can display the interactive message in the live stream interface of the first live stream at the time corresponding to the display time of the interactive message. Through the above method, the historical interactive behaviors of the second live stream can be reproduced in the first live stream without the need for testers to simulate the interactive behaviors of the audience and send test messages to the live stream, thereby improving the efficiency of live stream performance testing.
[0084] In this embodiment, after the computer device sends each interactive message to the first terminal device at the time corresponding to the display time, it will display each interactive message on the live streaming interface of the first live stream. For example, interactive messages may include multiple message types. For an interactive message of type "like" (denoted as a "like interactive message"), after the computer device sends the "like interactive message" to the first terminal device at the display time, it will display the "like interactive message" on the live streaming interface of the first live stream. For example, it may display the following: "Test account A liked the streamer," where test account A refers to the account name of the sender (e.g., the test account used to send this "like interactive message"). For an interactive message of type "follow" (denoted as a "follow interactive message"), it may display the following on the live streaming interface of the first live stream: "Test account A followed the streamer." For an interactive message of type "bullet screen" (denoted as a "bullet screen interactive message"), it may display the following on the live streaming interface of the first live stream: "Test account A: AutoTest T1," where AutoTest indicates that test account A sent a bullet screen, and T1 refers to the display time of the bullet screen.
[0085] Based on the above embodiments, the beneficial effects of this application are as follows: In response to a live streaming test request from a first terminal device for a first live stream, this application determines live streaming interaction data based on the live stream identifier of the second live stream carried in the live streaming test request, and generates an interaction message sequence based on the live streaming interaction data to simulate the real interaction process of each participant in the second live stream. Furthermore, after the first terminal device starts the first live stream, each interaction message can be sent to the first terminal device according to the display time of each interaction message in the interaction message sequence and the sending object assigned to each interaction message. This allows each interaction message to be sent by the sending object at the display time and displayed on the live stream interface of the first live stream, thereby improving the realism and accuracy of the live stream performance test. The above method, by obtaining real live streaming interaction data to generate an interaction message sequence and automatically sending interaction messages, realizes the reproduction of historical interaction behavior of the second live stream in the first live stream (i.e., simulating the live stream popularity of a historical live stream) to facilitate live stream performance testing, avoiding the need for testers to simulate audience interaction behavior and send test messages to the live stream, thereby greatly improving the efficiency of live stream performance testing.
[0086] This application provides another data processing method, which can be executed by a computer device, such as a computer device that can be... Figure 1 Server 101 in the data processing system shown. (As...) Figure 3 As shown, the data processing method may include, but is not limited to, the following steps S301-S306:
[0087] S301. In response to the live streaming test request from the first terminal device for the first live stream, determine the live streaming interaction data based on the live streaming identifier of the second live stream carried in the live streaming test request.
[0088] In one possible implementation, prior to step S301 above, the computer device may also perform the following steps (1)-(3):
[0089] (1) In response to the live streaming configuration request of the first terminal device for the first live stream, determine a list of live streaming identifiers of historical live streams associated with the live streaming account logged in on the first terminal device; the list of live streaming identifiers includes at least one candidate live streaming identifier.
[0090] In this embodiment of the application, the live broadcast configuration request refers to the request used to configure the first live broadcast, such as configuring which historical live broadcast's corresponding live broadcast interaction data should be used for the first live broadcast.
[0091] In one possible implementation, the list of live stream identifiers associated with the live stream account logged in on the first terminal device can refer to a list of live stream identifiers for all previous live streams conducted by the live stream account. For example, after a live stream by a live stream account concludes, the computer device can generate live stream interaction data corresponding to that live stream and store the generated live stream interaction data, live stream identifiers, and live stream account together.
[0092] (2) Send the live broadcast identifier list to the first terminal device.
[0093] (3) Receive a live test request from the first terminal device for the first live broadcast; the live test request carries a live broadcast identifier for the second live broadcast, which is selected from at least one candidate live broadcast identifier included in the live broadcast identifier list.
[0094] In steps (1)-(3) above, when the first terminal device sends a live streaming configuration request for the first live stream to the computer device, the computer device responds to the live streaming configuration request, obtains a list of live streaming identifiers of historical live streams associated with the live streaming account logged in on the first terminal device (the list of live streaming identifiers may include one or more live streaming identifiers), and returns the list of live streaming identifiers to the first terminal device. The first terminal device can select which live streaming identifier it needs from the list of live streaming identifiers. After the first terminal device selects a live streaming identifier, for example, it selects the live streaming identifier of the second live stream, then the first terminal device will generate a live streaming test request carrying the live streaming identifier of the second live stream and send the generated live streaming test request to the computer device.
[0095] Through the above steps (1)-(3), testers can select appropriate historical live streams for live streaming performance testing according to their testing needs, thereby more accurately simulating and reproducing the live streaming popularity and improving the personalized configuration capability of live streaming performance testing.
[0096] The following steps, S302-S303, will detail the method for generating interactive message sequences based on live interactive data:
[0097] S302. Extract initial messages of various message types from live interactive data.
[0098] In this embodiment, the computer device can extract initial messages of various message types from live interactive data, such as initial messages of likes, bullet comments, follows, shares, and active entry. Here, initial messages refer to the raw messages extracted from the live interactive data that have not yet undergone the first data processing. Therefore, the computer device needs to perform first data processing on the initial messages to obtain the corresponding interactive messages. The first data processing can be found in the relevant description in subsequent step S303.
[0099] S303. Generate an interactive message sequence corresponding to the target message type based on the initial message of the target message type; the target message type can be any one of multiple message types, and each interactive message in the interactive message sequence also includes a message type.
[0100] In this embodiment of the application, taking any one of multiple message types (denoted as the target message type) as an example, the computer device can perform a first data processing on the initial message of the target message type (the first data processing specifically refers to converting the occurrence time in the initial message) to obtain the interactive message corresponding to the initial message, and then construct an interactive message sequence based on the obtained one or more interactive messages. Based on the above method, the computer device can generate a corresponding interactive message sequence for each message type.
[0101] In one possible implementation, the step S303 above, which generates the interactive message sequence corresponding to the target message type based on the initial message of the target message type, can be achieved through the following steps (1)-(4):
[0102] (1) Determine the occurrence time of each initial message from multiple initial messages of the target message type.
[0103] In this embodiment of the application, each initial message includes at least: the recipient of the initial message and the time when the initial message occurs. The time of occurrence refers to the time when the initial message appears in the second live broadcast.
[0104] For example, a like interaction message is an initial like message before the first data processing. The occurrence time of the initial like message refers to the timestamp corresponding to this like in the second live broadcast (specifically, it can be a millisecond-level timestamp).
[0105] (2) The occurrence time of the target initial message is converted to obtain the display time; the target initial message is any one of multiple initial messages of the target message type.
[0106] (3) Adjust the occurrence time in the target initial message to the display time to obtain the interactive message corresponding to the target initial message.
[0107] In steps (2)-(3) above, the computer device converts the occurrence time in the initial message to obtain the display time corresponding to the occurrence time, and then adjusts the occurrence time in the target initial message to the display time (the display time is used to indicate at which time node after the first live broadcast starts to display the interactive message, such as at which millisecond after the first live broadcast starts to display the interactive message), thereby obtaining the interactive message corresponding to the target initial message. The above process is also the process of the first data processing. Through the above method, it is convenient to perform timestamp (e.g., millisecond-level timestamp) cyclic detection in subsequent steps S304-S306, which will not be elaborated here.
[0108] For example, taking the initial target message as an example, the computer device can obtain the start timestamp corresponding to the start of the first live stream, and then subtract the start timestamp from the occurrence time of the initial target message (that is, the timestamp corresponding to when the initial target message appears in the second live stream) to obtain a time interval, which is the display time in this application. For example, if the occurrence time is a millisecond-level timestamp 1716725970000, representing the specific time as 12:01:00:00 on January 1, 2024, and the start timestamp corresponding to the start of the first live stream is a millisecond-level timestamp 1716725910000, representing the specific time as 12:00:00:00 on January 1, 2024, subtracting the start timestamp from the occurrence time of the initial target message yields the display time, which is 60000, indicating that the interactive message will be displayed 60000 milliseconds (i.e., 1 minute) after the start of the live stream.
[0109] (4) Determine the sequence of interactive messages corresponding to the target message type based on the interactive messages corresponding to the multiple initial messages of the target message type.
[0110] In this embodiment, the computer device can sort multiple interactive messages of a target message type according to the order of their occurrence times from smallest to largest, thereby obtaining an interactive message sequence corresponding to the target message type. The computer device can perform the above processing on multiple initial messages corresponding to each message type to obtain an interactive message sequence for each message type, which will not be elaborated further here.
[0111] The following will describe in detail the method of sending each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence through steps S304-S306:
[0112] S304. Determine the matching interactive message whose display time matches the current timestamp from among the multiple interactive messages included in the interactive message sequence.
[0113] In this embodiment of the application, the computer device can perform timestamp cycle detection. The current timestamp refers to the timestamp that is currently being processed. When there is an interactive message whose display time matches the current timestamp among the multiple interactive messages included in the interactive message sequence, the interactive message whose display time matches the current timestamp is determined as the matching interactive message. The matching interactive message is the interactive message that needs to be sent at the current moment.
[0114] For example, taking millisecond-level timestamp loop detection as an example, after starting the first live stream, the computer device first loops to the current timestamp (which is now the 1st millisecond), and then checks whether there is an interactive message with a display time of the 1st millisecond among the multiple interactive messages included in the interactive message sequence. If so, the interactive message with a display time of the 1st millisecond is identified as a matching interactive message, and the steps indicated by S305-S306 are executed on the identified matching interactive message, that is, the account information of the matching interactive message is completed and then sent to the first terminal device, so as to be displayed on the live stream interface of the first live stream. Then, the computer device loops to the next current timestamp (which is now the 2nd millisecond), and then checks whether there is an interactive message with a display time of the 2nd millisecond among the multiple interactive messages included in the interactive message sequence. If so, the interactive message with a display time of the 2nd millisecond is identified as a matching interactive message, and the steps indicated by S305-S306 are executed on the identified matching interactive message, and so on, which will not be elaborated here. When all the interactive messages included in the interactive message sequence have been processed, the millisecond-level timestamp loop detection stops.
[0115] S305. Add the account information of the sending object included in the matching interaction message to the matching interaction message to obtain the target interaction message.
[0116] In this embodiment, there is a correspondence between the sending object and the participating object in the second live stream. That is, the interactive messages generated by the participating object in the second live stream need to be sent to the first live stream by the sending object corresponding to that participating object. For example, the sending object can refer to a test account assigned to a participating object in the second live stream (such as a historical interactive account).
[0117] In this embodiment, the sender included in the matching interaction message refers to a unique identifier in the live streaming simulation platform, such as a User Identification Number (UIN). This results in incomplete information in the matching interaction message. If the interaction information needs to be displayed in the live streaming interface, the account information of the sender needs to be displayed, such as the account name of the sender corresponding to the interaction message. Therefore, the computer device can obtain the account information of the sender included in the matching interaction message and add the account information to the matching interaction message, thus obtaining the complete interaction information that needs to be sent.
[0118] In one possible implementation, the account information may include one or more of the following: account name, live stream level (indicating the user's level or status in the live stream, such as a regular viewer or VIP member), and bullet screen skin (indicating the bullet screen style or theme the user owns). Adding multiple types of account information improves the realism of the live stream performance test.
[0119] S306. Send the target interaction message to the first terminal device so that the first terminal device displays the target interaction message in the live broadcast interface of the first live broadcast.
[0120] In this embodiment, the computer device can send a target interactive message to the first terminal device, thereby displaying the target interactive message in the live broadcast interface of the first live broadcast. This enables the reproduction of the historical interactive behavior of the second live broadcast (i.e., a historical live broadcast) in the first live broadcast, avoiding the need for testers to simulate the interactive behavior of the audience and send test messages to the live broadcast room, thus greatly improving the efficiency of live broadcast performance testing.
[0121] In one possible implementation, steps S304-S306 above can be implemented by a computer device through a message sending engine. Specifically, the message sending engine mainly includes three processing stages: time point matching, message assembly, and message sending. These three processing stages will be described in detail below:
[0122] 1. Time-Point Matching: The message sending engine simultaneously performs millisecond-level timestamp cyclic checks on the data in the interactive message sequences corresponding to multiple message types. If a matching interactive message exists whose display time matches the current timestamp, the identified matching interactive message (or multiple matching interactive messages may be identified at the current timestamp, therefore, this could also be a sequence of matching interactive messages) is immediately submitted asynchronously to the next processing stage (which can be seen as submission to the task pool). This does not block the current millisecond-level timestamp cyclic check, thus achieving real-time matching and real-time task submission. For the specific implementation process of time-point matching, please refer to the relevant description in step S304.
[0123] 2. Message assembly: The message sending engine loads the sending object (such as a test account in the test account pool), and then adds the account information of the sending object to the matching interaction message, thereby completing the information in the matching interaction message, obtaining the target interaction message, and asynchronously submitting the target interaction message to the next processing stage for asynchronous message sending (which can be regarded as submitting to the sending pool).
[0124] 3. Message Sending: The message sending engine constructs a thread pool (e.g., a separate thread pool is constructed for each interactive message sequence corresponding to each message type, or a thread pool is constructed together for interactive message sequences corresponding to multiple message types). The thread pool is used to receive the target interactive messages submitted during the message processing stage. No further data processing is required on the target interactive messages. Instead, the target interactive messages are directly pushed to the backend server of the live streaming simulation platform through the Instant Messaging (IM) service and then displayed on the live streaming interface of the first live stream.
[0125] The following will explain how the live interaction data for the second live stream is generated:
[0126] In one possible implementation, the computer device can generate live interactive data for the second live broadcast, and one implementation can be as follows: (1)-(5):
[0127] (1) Obtain the original interactive data of various message types corresponding to the second live broadcast on the second terminal device; the original interactive data corresponding to each message type includes multiple messages to be processed.
[0128] In this embodiment, the second terminal device initiates a second live stream, and after the second live stream ends, it obtains raw interactive data of various message types corresponding to the second live stream on the second terminal device and sends it to the computer device. Each message type's raw interactive data includes multiple pending messages, which are messages that have not undergone second data processing. The computer device can perform second data processing on these pending messages (specifically, second data processing involves assigning a sending object to each pending message and adding the assigned sending object to each pending message) to obtain the initial message corresponding to the pending message.
[0129] In one possible implementation, before the first initiator (such as a broadcaster or tester) starts the second live stream using the second terminal device, they can choose whether to enable the live stream data recording function. If the first initiator chooses to enable the live stream data recording function, then after the second live stream ends, the second terminal device can automatically upload the recorded data (such as the original interactive data corresponding to the second live stream) obtained from the live stream data recording to the computer device. The computer device then further processes the recorded data to obtain the live stream interactive data of the second live stream. Uploading to the computer device can refer to uploading to the live stream simulation platform.
[0130] Based on this, a second initiator (such as a tester, who may be the same as or different from the first initiator) can, after obtaining authorization from the first initiator to use the live interactive data, reproduce the interaction in the first live stream using the live interactive data from the second live stream, in order to conduct live stream performance testing. Specifically, the second initiator can send a live stream test request for the first live stream to the computer device through the first terminal device. The computer device determines the live interactive data based on the live stream identifier of the second live stream carried in the live stream test request, and generates an interactive message sequence based on the live interactive data. Then, after the second initiator starts the first live stream through the first terminal device, it sends each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence, which will not be elaborated here.
[0131] It should be noted that before generating an interactive message sequence based on the live interactive data, the computer device can first determine whether the second initiator has the permission to use the live interactive data (this permission is granted by the first initiator). If the second initiator has the permission to use the live interactive data, then the step of generating an interactive message sequence based on the live interactive data will be executed. This ensures that the live interactive data can be used legally and compliantly, and guarantees the security of user data.
[0132] (2) Obtain the participants included in each message to be processed from the raw interaction data of multiple message types.
[0133] (3) Determine the number of participants based on the participants included in each pending message, and assign a sending object to each pending message based on the number of participants.
[0134] In steps (2)-(3) above, the computer device obtains the participating objects included in each message to be processed from the original interactive data of various message types, and then determines the number of participating objects based on the participating objects included in each message to be processed. The number of participating objects here refers to the total number of different participating objects.
[0135] Since the participants in different pending messages may be the same (for example, if the same participant likes and follows at different times, then the participants in the corresponding generated like and follow interaction messages are the same), the computer device needs to determine the number of participants, that is, determine the total number of historical users who have participated in the live interaction, and then assign a sending object to each pending message according to the number of participants.
[0136] In one possible implementation, for step (3), which assigns an issuing object to each message to be processed based on the number of participating objects, one implementation can be as follows: steps (i)-(iii):
[0137] (i) Obtain the set of emit objects to be used for allocation.
[0138] In this embodiment of the application, the sending object set refers to the set of sending objects (such as test accounts) that the computer device can obtain for sending interactive messages.
[0139] (ii) If the number of sending objects in the sending object set is greater than or equal to the number of participating objects, then the sending object corresponding to the participating object included in each message to be processed is determined from the sending object set; each sending object corresponds to one participating object.
[0140] In this embodiment of the application, when the number of sending objects included in the sending object set is greater than or equal to the number of participating objects (that is, the number of sending objects is sufficient), the computer device will assign different sending objects to different participating objects, that is, each sending object will correspond to one participating object.
[0141] For example, when there are enough sending objects (such as the sending object set including test account A, test account B, test account C, test account D and test account E), and the participating objects include user a, user b, user c and user d, then the sending objects assigned to the above 4 participating objects can be test account A, test account B, test account C and test account D respectively.
[0142] (iii) If the number of sending objects in the sending object set is less than the number of participating objects, then a sending object corresponding to each participating object in the message to be processed is randomly assigned from the sending object set; each assigned sending object corresponds to one or more participating objects.
[0143] In this embodiment of the application, when the number of sending objects included in the sending object set is less than the number of participating objects (that is, the number of sending objects is insufficient), the computer device will randomly assign corresponding sending objects to different participating objects. Then, each sent object that has been assigned may correspond to one participating object or multiple participating objects.
[0144] For example, when the number of sent objects is insufficient (e.g., the set of sent objects includes test account A, test account B, and test account C), and the participating objects include user a, user b, user c, and user d, then the sent objects assigned to the above four participating objects can be test account A, test account B, test account A, and test account C, respectively.
[0145] Step (ii) above can be seen as a one-to-one matching object allocation method, so that different participating objects correspond to different sending objects. This can more accurately restore the real interaction in the historical live broadcast and improve the authenticity and accuracy of the live broadcast performance test. Step (iii) above can be seen as a random object allocation method. This can ensure that the test requirements for allocating sending objects are met when the number of sending objects is insufficient, and realize the reuse of object resources, reducing the resource overhead of sending objects.
[0146] (4) Add the sent object that has been assigned to each pending message to each pending message to obtain the initial message corresponding to each pending message.
[0147] (5) Generate live interactive data for the second live stream based on the initial message corresponding to each message to be processed.
[0148] In steps (4)-(5) above, the computer device adds the pre-assigned sending object to each pending message, thus obtaining the initial message corresponding to each pending message. Then, the computer device generates live interactive data for the second live broadcast based on the initial message corresponding to each pending message. The live interactive data may include initial messages of various message types, which will not be elaborated here.
[0149] In one possible implementation, the computer device may also perform the following steps (1)-(2):
[0150] (1) Obtain the statistical results change data of the second live broadcast on the second terminal device; the statistical results change data includes the statistical results of multiple time points recorded in the second live broadcast.
[0151] In this embodiment, the statistical results refer to the live streaming characteristics recorded at various time points during the second live stream. For example, the statistical results could refer to the live stream's popularity value or the current total number of viewers. These statistical results can also be reproduced in the first live stream.
[0152] In one possible implementation, multiple time points can refer to each timestamp (such as millisecond-level timestamp) after the second live stream begins. For example, the statistical results of multiple time points recorded in the second live stream can refer to the popularity value of the live stream recorded every 1 millisecond after the second live stream begins.
[0153] In one possible implementation, multiple time points can also refer to the timestamps (such as millisecond-level timestamps) when the statistical results change after the second live stream starts. For example, the statistical results of multiple time points recorded in the second live stream can refer to: after the second live stream starts, recording at which millisecond the live stream's popularity value changed, and recording the live stream's popularity value after the change.
[0154] (2) Generate multiple initial messages corresponding to the statistical results based on the statistical results change data, and add the multiple initial messages corresponding to the statistical results to the live interactive data.
[0155] In this embodiment, the computer device generates multiple initial messages corresponding to the statistical results based on the statistical result change data, and adds the multiple initial messages corresponding to the statistical results to the live interactive data. In this way, the statistical result change data will be pushed to the first live broadcast in the form of message push, thereby simulating the change of statistical results of the second live broadcast in the first live broadcast.
[0156] Based on this, the computer device can also perform the following steps (1)-(2):
[0157] (1) Generate a statistical message sequence based on multiple initial messages corresponding to the statistical results in the live interactive data; the statistical message sequence includes multiple statistical messages, each of which includes the display time of the statistical message and the corresponding statistical results.
[0158] In this embodiment, the display time of each statistical message is obtained by converting the time node in the initial message corresponding to the statistical message. Specifically, the computer device can obtain multiple initial messages corresponding to the statistical results from the live interactive data, then convert the occurrence time in each initial message corresponding to the statistical results to obtain the display time, and adjust the occurrence time in each initial message corresponding to the statistical results to the display time, thus obtaining the statistical message. Please refer to the relevant description of step S303 in the foregoing embodiment for the above process, which will not be repeated here.
[0159] (2) After the first terminal device starts the first live broadcast, each statistical message is sent to the first terminal device according to the display time of each statistical message in the statistical message sequence, so that the first terminal device can adjust the statistical results in the live broadcast interface of the first live broadcast according to the received statistical messages.
[0160] In this embodiment, after the first terminal device starts the first live stream, the computer device begins simulating the changes in statistical results. Specifically, the computer device can send each statistical message to the first terminal device according to the display time of each statistical message in the statistical message sequence. That is, the computer device will send the statistical message to the first terminal device at the moment corresponding to the display time of the statistical message. Then, the first terminal device can adjust the current statistical result (such as the current popularity value of the live stream) to the received statistical result (such as the received popularity value of the live stream) at the moment corresponding to the display time of the statistical message. Through the above method, the changes in the statistical results of the second live stream are reproduced in the first live stream, ensuring the authenticity of the live stream performance test.
[0161] The following example illustrates how to reproduce a live streaming scenario. The main process is as follows:
[0162] 1. The second terminal device uses a front-end version that includes a data logging mechanism, enables the live data logging function, and then performs live data logging after starting the second live stream.
[0163] 2. When the live stream ends, the second terminal device automatically saves the original interactive data obtained from the live stream data recording and prompts that the live stream data recording was successful. The live stream data recording process does not affect the normal operation of the live stream service.
[0164] 3. The second terminal device uploads the original interactive data (e.g., a .zip compressed file) to the live streaming simulation platform, and the live streaming simulation platform generates the live streaming interactive data corresponding to the second live stream based on the original interactive data.
[0165] 4. When the first terminal device (which can be the same or different from the second terminal device) needs to perform live streaming performance testing, a first live stream (i.e., a new live stream) is created, and then a second live stream to be simulated is determined. Subsequently, the live streaming simulation platform generates an interactive message sequence based on the live streaming interaction data of the second live stream determined by the first terminal device. After the new live stream starts, the live streaming simulation platform will send each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message in the live stream interface of the first live stream.
[0166] like Figure 4A As shown, Figure 4AThis is a schematic diagram of a live streaming configuration interface provided in an embodiment of this application. The live streaming configuration interface allows configuration of elements such as images, cover images (e.g., the first and second lines of the cover image), streamer name, streamer introduction, and live streaming title. In addition, the live streaming configuration interface also includes controls for selecting live interactive data (e.g., ...). Figure 4A The control indicated in section 41 allows the broadcaster to select the live stream identifier corresponding to the live stream to be simulated using the control for selecting live interactive data. For example, selecting to simulate the second live stream (e.g., selecting the live stream identifier of the second live stream, live1699607197162). Afterward, the broadcaster can start the live stream using the control (e.g., ...). Figure 4A The first live stream will begin using the control indicated by 42.
[0167] 5. When you enter the live stream through your terminal device, the live stream interface will display various types of interactive messages, such as likes, bullet comments, following, sharing, and active participation.
[0168] like Figure 4B As shown, Figure 4B This is a schematic diagram of a live streaming interface provided in an embodiment of this application. For example, the live streaming interface can include interactive messages of various message types. For instance, a follow interaction message could be: "Test account A followed the streamer," where Test account A refers to the account name of the recipient of this follow interaction message. A bullet screen interaction message could be: "Test account B: AutoTest T1," where Test account B refers to the account name of the recipient of this bullet screen interaction message, AutoTest indicates that Test account B sent a bullet screen, and T1 refers to the display time of the bullet screen. It should be noted that each bullet screen interaction message does not need to display specific content, but rather displays specific characters (such as the AutoTest characters). This can reduce the data storage volume when recording live streaming data, but does not affect the effectiveness of the live streaming performance test (i.e., the live streaming performance test only focuses on when the user sends a bullet screen, not on the specific content of the bullet screen sent by the user). A like interaction message could be: "Test account A liked the streamer," where Test account A refers to the account name of the recipient of this like interaction message. The live streaming interface can also include statistical results, such as the real-time updated popularity value of the live stream, for example, the current popularity value of the live stream is 718,000.
[0169] The following example illustrates the method of recording live stream data. The main process is as follows:
[0170] 1. Enable live data recording function on the second terminal device: At this time, the trace parameter in the front-end code will be set to: trace=True, which means that all historical interactive behaviors (such as likes, bullet comments, following, sharing, active entry, etc.) and statistical results (such as the popularity value of the live stream) in the second live stream will be recorded.
[0171] 2. Second terminal device records live data: After starting the second live broadcast, an asynchronous link can be opened for each message type to record the original interactive data of this message type.
[0172] For example, the format of the recorded raw interaction data can be as shown in Table 1:
[0173] Table 1
[0174]
[0175]
[0176] Each message type includes multiple pending messages of that message type in the original interaction data. Taking the "like" message type as an example, each pending message for that message type may include the occurrence time (e.g., a millisecond-level timestamp 1711525974783), object A (representing the participating object), and message content. The message content includes "Type 5," indicating that the message type of the "like" message is type 5. The message content may also include the number of likes, such as 2. Similarly, taking the "bullet screen" message type as an example, each pending message for that message type may include the occurrence time (e.g., a millisecond-level timestamp 1711525974784), object A (representing the participating object), and message content. The message content includes "Type 6," indicating that the message type of the bullet screen message is type 6. "AutoTest" in the message content is a specific character. In this embodiment, instead of recording the specific content of the sent bullet screen, a specific character or string (such as the character "AutoTest") can be used instead. Taking the follow message type as an example, in addition to the occurrence time, object A (representing the participating object) and message content, the pending message corresponding to each follow message type can also include object B, which represents the object identifier of the follow object (such as the follower's anchor).
[0177] In Table 1, the pending messages of the popularity message type can refer to the statistical results in this application embodiment. The second terminal device can record the change data of the statistical results of the second live broadcast, that is, record at which millisecond after the second live broadcast started, the popularity value of the live broadcast changed, and record the popularity value of the live broadcast after the change. For example, at the millisecond timestamp of 1711525974789, the popularity value of the live broadcast changed, and the popularity value of 10000 indicates that the popularity value of the live broadcast after the change is 10,000.
[0178] After messages of various message types enter the corresponding asynchronous links, they will each enter a message queue of a set length (e.g., a set length of 1000). At the same time, the consumer of the message queue will write the messages to be processed to a file until each message queue is empty. Then, a message box will pop up indicating that the live data recording has ended. Clicking "Export" will generate 6 compressed files (the compressed file name can be: Live Identifier + .zip). Then, save them. The contents of the compressed files are the recording data of the second live stream (that is, the original interaction data in the embodiment of this application).
[0179] The following example illustrates the method for generating live interactive data. The main process is as follows:
[0180] The live streaming simulation platform obtains the raw interaction data (i.e., the trace data, such as the 6 compressed files mentioned above) from the second live stream, decompresses and saves it, resulting in 6 message type files. The analysis process can include total volume analysis and instantaneous volume analysis.
[0181] 1. Total volume analysis: Analyze the pending messages in the files of the 6 message types one by one to obtain the number of participants (e.g., the total number of users participating in the second live broadcast), and then assign a sending object to each pending message according to the number of participants (e.g., the test account corresponding to each participant).
[0182] It should be noted that the specific implementation method of total volume analysis can be found in the description of the steps in the foregoing embodiment to determine the number of participating objects based on the participating objects included in each pending message, and to allocate sending objects to each pending message based on the number of participating objects. It will not be repeated here.
[0183] 2. Instantaneous Quantity Analysis: Create dictionary data for 6 message types, parse the files for each of the 6 message types, and pass in their respective message bodies. This will form a list of message types with millisecond-level timestamps as coordinates. Taking the "like" message type as an example, the format of the message type list can be shown in Table 2 below:
[0184] Table 2
[0185] Message ID Millisecond timestamp Message content Like message 1 1711525974783 Number of likes: 2 Like message 2 1711525974786 Number of likes: 1 ... ... ...
[0186] By analyzing instantaneous data, the number of messages to be processed for each message type at various points in time can be obtained. It should be noted that the formats for bullet screen messages, follow messages, share messages, voluntary entry messages, and like messages are similar, and will not be elaborated upon here.
[0187] The live streaming simulation platform combines the results of total volume analysis and instantaneous volume analysis to generate live streaming interaction data for the second live stream. This data is then used to simulate live streaming popularity (i.e., to reproduce the historical interaction behavior of the second live stream in a new live stream).
[0188] The above-mentioned generation of live interaction data for the second live stream by combining the results of total volume analysis and instantaneous volume analysis can specifically refer to adding the sending object of each pending message obtained from the total volume analysis to each pending message obtained from the instantaneous volume analysis. For specific implementation methods, please refer to the relevant descriptions of the aforementioned method embodiments, which will not be repeated here. It is worth noting that in the popularity message type, no sending object will be added because the statistical messages generated based on the statistical result change data (such as the live stream popularity value corresponding to each time node) are directly pushed to the first live stream by the live stream simulation platform, rather than by the sending object (such as the test account).
[0189] In one possible implementation, the live streaming simulation platform can also analyze and obtain test auxiliary information corresponding to the second live stream during the total analysis phase. Test auxiliary information may include, for example, the total number of messages (such as the total number of messages of all message types), the total number of messages of each type (such as the total number of messages corresponding to each message type), the peak time of the maximum message volume (such as the timestamp of the message with the highest frequency of occurrence and the total number of messages corresponding to that timestamp), and the peak time of the maximum message type (such as the timestamp of the message with the highest frequency of occurrence of the same message type and the total number of messages of that message type corresponding to that timestamp), etc.
[0190] The live streaming simulation platform can add test assistance information to the live streaming interaction data of the second live stream. This allows testers to view the corresponding test assistance information when simulating the second live stream, which helps provide macro-level reference data for live streaming performance testing. It also helps testers understand the multi-dimensional live streaming characteristics during the second live stream, thereby guiding the optimization of live streaming performance.
[0191] For example, the format of test support information can be shown in Table 3 below:
[0192] Table 3
[0193]
[0194] Among them, message type 11:38 in the total number of messages of type 11 means that there are a total of 38 messages of type 11. 2023-05-12_09:51:03:7 in the peak time of the maximum message volume means that there are a total of 7 messages corresponding to the timestamp 2023-05-12_09:51:03. 2023-05-12_09:53:43_Message type 5:7 in the peak time of the maximum message type means that there are a total of 7 messages corresponding to the fifth message type at the timestamp 2023-05-12_09:53:43.
[0195] like Figure 4C As shown, Figure 4C This is an architecture diagram of a live streaming popularity simulation provided in an embodiment of this application. During the live stream, live streaming data can be recorded (including bullet screen recording, like recording, popularity value recording, etc.). The recorded data obtained from the live streaming data recording can be analyzed (including message type analysis, total volume analysis, instantaneous volume analysis, etc.) to obtain live streaming interaction data for live streaming popularity simulation. The live streaming interaction data can be used to simulate likes, bullet screens, follows, shares, active entry, popularity value, etc.
[0196] The live stream popularity simulation is implemented based on a message sending engine, which includes a user management module and a packet sending frequency management module. The user management module manages the participants in the second live stream and assigns recipients to each interactive message. The packet sending frequency management module sends interactive messages, specifically sending each interactive message to the first terminal device according to its display time in the message sequence. Interactive messages are pushed to the new live stream via Software as a Service (SaaS). SaaS is a cloud-hosted application that customers can use by paying a subscription fee. SaaS will utilize Instant Messaging (IM) services. When interactive messages are pushed to the new live stream, they will be displayed as bullet comments on the live stream interface. These bullet comments can include: regular bullet comments, like bullet comments, follow bullet comments, share bullet comments, active entry bullet comments, and prize-claiming bullet comments.
[0197] The following example illustrates the process of simulating live stream popularity: Figure 4D As shown, Figure 4D This is a flowchart illustrating a live stream popularity simulation provided in an embodiment of this application. The main process can be shown in steps 401-407 and 411-417 as follows:
[0198] 401. Enable live stream data tracking.
[0199] Users can enable the live stream data tracking function before the second live stream (the second live stream refers to a historical live stream before the first live stream) starts.
[0200] 402. Live Stream Data Tracking.
[0201] After the second live stream is started, the terminal device automatically records the live stream data. Specifically, live stream data recording refers to the second terminal device recording the raw interactive data of various message types during the second live stream.
[0202] 403. Start the second live stream.
[0203] 404. Online live broadcast begins.
[0204] On the live streaming platform, the online live stream corresponding to the second live stream starts, and after the second live stream ends, the trace data of the second live stream is generated.
[0205] 405. Upload the data to leave a trace.
[0206] The terminal device uploads the trace data from the second live stream to the live streaming simulation platform.
[0207] 406. Conduct trace data analysis.
[0208] The live streaming simulation platform analyzes the data left behind, including total volume and instantaneous volume analysis of message types such as likes, bullet comments, follows, shares, and active entries, as well as analysis and recording of the live stream's popularity value.
[0209] 407. Generate live interactive data for the second live stream.
[0210] The live streaming simulation platform generates live streaming interaction data for the second live stream based on the results of the trace data analysis. For the specific implementation methods of steps 401-407, please refer to the relevant descriptions in the various method embodiments of this application; they will not be repeated here.
[0211] Steps 401-407 above introduced the live stream interaction data. The following steps, 411-417, will describe the process of simulating live stream popularity:
[0212] 411. Watch the simulated live broadcast.
[0213] Users watch a simulated live stream on their terminal devices, which is the first live stream used for live streaming performance testing.
[0214] 412. Start the first live broadcast.
[0215] 413. Simulate online live broadcast.
[0216] On the live streaming platform, when the first live stream starts, the first live stream will simulate the second live stream, that is, the historical interactive behavior of the second live stream will be reproduced in the first live stream.
[0217] 414. Generate an interactive message sequence based on the live interactive data.
[0218] The live streaming simulation platform generates interactive message sequences of multiple message types (such as likes, bullet comments, follows, shares, and active entry) based on live streaming interaction data.
[0219] 415. Determine the recipient of each interactive message.
[0220] The recipient could be, for example, a test account assigned to each interactive message.
[0221] 416. Poll each interactive message sequence and push interactive messages through the message sending engine.
[0222] The specific implementation process of pushing interactive messages through the message sending engine can be found in the previous embodiment, which describes the steps of sending each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence.
[0223] 417. Display interactive messages.
[0224] Each interactive message will be displayed on the live streaming interface of the first live stream. For the specific implementation of steps 411-417, please refer to the relevant descriptions in the various method embodiments of this application; they will not be repeated here.
[0225] The live streaming popularity simulation method provided in this application realizes automated simulation of live streaming popularity without human intervention and has a high degree of simulation accuracy (up to 96%). When applied to live streaming performance testing scenarios, this method enables the reproduction of historical interactive behaviors in new live streams (i.e., live streaming popularity simulation of a historical live stream) to facilitate live streaming performance testing, thereby greatly improving the efficiency of live streaming performance testing and reducing the manual cost of live streaming performance testing.
[0226] The methods of the embodiments of this application have been described in detail above. In order to facilitate better implementation of the methods of the embodiments of this application, the apparatus of the embodiments of this application is provided below.
[0227] Please see Figure 5 This figure is a schematic diagram of the structure of a data processing device provided in an embodiment of this application. This data processing device can be installed in the computer equipment provided in the embodiment of this application, and the computer equipment can be as described above. Figure 1 Server 101 in the data processing system shown. Figure 5The data processing device shown can be a computer program running on a computer device, which can be used to execute... Figure 2 or Figure 3 Some or all of the steps in the method embodiments shown. Please refer to [link / reference]. Figure 5 The data processing apparatus may include the following units:
[0228] The determining unit 501 is used to respond to a live test request from the first terminal device for the first live stream, and determine live interaction data based on the live stream identifier of the second live stream carried in the live test request; the live interaction data is used to indicate the interaction status of the participants in the second live stream in the live stream interface of the second live stream.
[0229] The processing unit 502 is used to generate an interactive message sequence based on the live interactive data. The interactive message sequence includes at least one interactive message, and each interactive message includes the sender of the interactive message and the display time. There is a correspondence between the sender and the participants in the second live stream. The interactive message sequence is used to reproduce the interaction of the participants in the second live stream in the live stream interface of the first live stream.
[0230] The sending unit 503 is used to send each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence after the first terminal device starts the first live broadcast, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast.
[0231] In one possible implementation, when processing unit 502 generates an interactive message sequence based on live interactive data, it specifically performs the following:
[0232] Extract initial messages of various message types from live stream interaction data;
[0233] Generate an interactive message sequence corresponding to the target message type based on the initial message of the target message type; the target message type can be any one of multiple message types, and each interactive message in the interactive message sequence also includes a message type.
[0234] In one possible implementation, when processing unit 502 generates an interactive message sequence corresponding to the target message type based on the initial message of the target message type, it specifically performs the following:
[0235] Determine the occurrence time of each initial message from multiple initial messages of the target message type;
[0236] The occurrence time of the target initial message is converted to obtain the display time; the target initial message is any one of multiple initial messages of the target message type;
[0237] Adjust the occurrence time in the target initial message to the display time to obtain the interactive message corresponding to the target initial message;
[0238] Based on the interactive messages corresponding to the multiple initial messages of the target message type, determine the sequence of interactive messages corresponding to the target message type.
[0239] In one possible implementation, when sending each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast, the sending unit 503 is specifically used for:
[0240] Identify the matching interactive message whose display time matches the current timestamp from among multiple interactive messages included in the interactive message sequence;
[0241] Add the account information of the sender included in the matching interaction message to the matching interaction message to obtain the target interaction message;
[0242] Send a target interactive message to the first terminal device so that the first terminal device displays the target interactive message on the live broadcast interface of the first live broadcast.
[0243] In one possible implementation, the processing unit 502 is further configured to:
[0244] Acquire raw interactive data of various message types corresponding to the second live broadcast on the second terminal device; the raw interactive data corresponding to each message type includes multiple messages to be processed;
[0245] Extract the participants included in each message to be processed from the raw interaction data of various message types;
[0246] The number of participating objects is determined based on the participating objects included in each pending message, and a sending object is assigned to each pending message based on the number of participating objects;
[0247] Add the sent object that has been assigned to each pending message to each pending message to obtain the initial message corresponding to each pending message;
[0248] The second live stream interactive data is generated based on the initial message corresponding to each pending message.
[0249] In one possible implementation, when processing unit 502 allocates an issuing object for each message to be processed based on the number of participating objects, it specifically performs the following:
[0250] Get the collection of emitted objects to be used for allocation;
[0251] If the number of sending objects in the sending object set is greater than or equal to the number of participating objects, then the sending object corresponding to the participating object included in each message to be processed is determined from the sending object set; each sending object corresponds to one participating object.
[0252] If the number of sending objects in the sending object set is less than the number of participating objects, then a sending object corresponding to each participating object in the message to be processed is randomly assigned from the sending object set; each assigned sending object corresponds to one or more participating objects.
[0253] In one possible implementation, the processing unit 502 is further configured to:
[0254] Obtain statistical result change data of the second live broadcast on the second terminal device; the statistical result change data includes statistical results of multiple time points recorded in the second live broadcast;
[0255] Based on the changes in the statistical results, generate multiple initial messages corresponding to the statistical results, and add these multiple initial messages to the live interaction data.
[0256] In one possible implementation, the processing unit 502 is further configured to:
[0257] A statistical message sequence is generated based on multiple initial messages corresponding to the statistical results in the live interactive data. The statistical message sequence includes multiple statistical messages, each of which includes the display time of the statistical message and the corresponding statistical result. The display time of each statistical message is obtained by converting the time node in the initial message corresponding to the statistical message.
[0258] After the first terminal device starts the first live broadcast, each statistical message is sent to the first terminal device according to the display time of each statistical message in the statistical message sequence, so that the first terminal device can adjust the statistical results in the live broadcast interface of the first live broadcast based on the received statistical messages.
[0259] In one possible implementation, the processing unit 502 is further configured to:
[0260] In response to a live streaming configuration request from a first terminal device for a first live stream, a list of live streaming identifiers associated with a live streaming account logged in on the first terminal device is determined; the list of live streaming identifiers includes at least one candidate live streaming identifier.
[0261] Send the live broadcast identifier list to the first terminal device;
[0262] The system receives a live streaming test request from a first terminal device for a first live stream; the live streaming test request carries a live streaming identifier for a second live stream, which is selected from at least one candidate live streaming identifier included in the live streaming identifier list.
[0263] It should be noted that the functions of each unit of the data processing device in the embodiments of this application can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the method embodiments of this application, which will not be repeated here.
[0264] According to another embodiment of this application, Figure 5 The data processing apparatus shown can be constructed by combining each unit individually or entirely into one or more other units, or one or more of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above-mentioned units are based on logical function division. In practical applications, the function of one unit can be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the data processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0265] According to another embodiment of this application, the following can be achieved by running on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), a device capable of performing operations such as... Figure 2 or Figure 3 Computer programs for the steps involved in some or all of the methods shown, to construct, for example... Figure 5 The data processing apparatus shown herein, and the data processing method for implementing the embodiments of this application, are described. A computer program may be recorded on, for example, a computer-readable storage medium, loaded onto the aforementioned computing device via the computer-readable storage medium, and executed therein.
[0266] Based on the above methods and apparatus embodiments, this application provides a computer device. Please refer to... Figure 6 This figure is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 6 The computer device shown includes at least a processor 601, an input interface 602, an output interface 603, and a computer-readable storage medium 604. The processor 601, input interface 602, output interface 603, and computer-readable storage medium 604 can be connected via a bus or other means.
[0267] Computer-readable storage medium 604 can be stored in the memory of a computer device. Computer-readable storage medium 604 is used to store computer programs, including program instructions. Processor 601 is used to execute the computer program stored in computer-readable storage medium 604. Processor 601 (or CPU (Central Processing Unit)) is the computing and control core of the computer device; it is suitable for implementing computer programs, specifically for loading and executing computer programs to achieve the above-mentioned functions. Figure 2 or Figure 3 The method flow is shown.
[0268] This application also provides a computer-readable storage medium (Memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both built-in storage media in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space for storing the operating system of the computer device. Furthermore, the storage space also stores computer programs suitable for loading and execution by a processor. It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer-readable storage medium located remotely from the aforementioned processor.
[0269] The computer equipment can be the above. Figure 1 The data processing system shown includes a server 101 (e.g., a backend server for a live streaming simulation platform). In a specific implementation, a processor 601 can load and execute a computer program stored in a computer-readable storage medium 604 to implement the corresponding steps of the data processing methods in the various method embodiments of this application. Specifically, the computer program in the computer-readable storage medium 604 is loaded by the processor 601 and executed with the following steps:
[0270] In response to the live streaming test request from the first terminal device for the first live stream, the live streaming interaction data is determined based on the live streaming identifier of the second live stream carried in the live streaming test request; the live streaming interaction data is used to indicate the interaction status of the participants in the second live stream on the live streaming interface of the second live stream.
[0271] An interactive message sequence is generated based on the live interactive data. The interactive message sequence includes at least one interactive message. Each interactive message includes the sender of the interactive message and the display time. There is a correspondence between the sender and the participants in the second live stream. The interactive message sequence is used to reproduce the interaction of the participants in the second live stream in the live stream interface of the first live stream.
[0272] After the first terminal device starts the first live broadcast, each interactive message is sent to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast.
[0273] In one possible implementation, when the processor 601 is used to generate an interactive message sequence based on the live interactive data, it specifically performs the following:
[0274] Extract initial messages of various message types from live stream interaction data;
[0275] Generate an interactive message sequence corresponding to the target message type based on the initial message of the target message type; the target message type can be any one of multiple message types, and each interactive message in the interactive message sequence also includes a message type.
[0276] In one possible implementation, when the processor 601 generates the interaction message sequence corresponding to the target message type based on the initial message of the target message type, it specifically performs the following:
[0277] Determine the occurrence time of each initial message from multiple initial messages of the target message type;
[0278] The occurrence time of the target initial message is converted to obtain the display time; the target initial message is any one of multiple initial messages of the target message type;
[0279] Adjust the occurrence time in the target initial message to the display time to obtain the interactive message corresponding to the target initial message;
[0280] Based on the interactive messages corresponding to the multiple initial messages of the target message type, determine the sequence of interactive messages corresponding to the target message type.
[0281] In one possible implementation, when the processor 601 sends each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast, it specifically performs the following:
[0282] Identify the matching interactive message whose display time matches the current timestamp from among multiple interactive messages included in the interactive message sequence;
[0283] Add the account information of the sender included in the matching interaction message to the matching interaction message to obtain the target interaction message;
[0284] Send a target interactive message to the first terminal device so that the first terminal device displays the target interactive message on the live broadcast interface of the first live broadcast.
[0285] In one possible implementation, processor 601 is also used for:
[0286] Acquire raw interactive data of various message types corresponding to the second live broadcast on the second terminal device; the raw interactive data corresponding to each message type includes multiple messages to be processed;
[0287] Extract the participants included in each message to be processed from the raw interaction data of various message types;
[0288] The number of participating objects is determined based on the participating objects included in each pending message, and a sending object is assigned to each pending message based on the number of participating objects;
[0289] Add the sent object that has been assigned to each pending message to each pending message to obtain the initial message corresponding to each pending message;
[0290] The second live stream interactive data is generated based on the initial message corresponding to each pending message.
[0291] In one possible implementation, the processor 601, when allocating an issuing object for each pending message based on the number of participating objects, specifically performs the following:
[0292] Get the collection of emitted objects to be used for allocation;
[0293] If the number of sending objects in the sending object set is greater than or equal to the number of participating objects, then the sending object corresponding to the participating object included in each message to be processed is determined from the sending object set; each sending object corresponds to one participating object.
[0294] If the number of sending objects in the sending object set is less than the number of participating objects, then a sending object corresponding to each participating object in the message to be processed is randomly assigned from the sending object set; each assigned sending object corresponds to one or more participating objects.
[0295] In one possible implementation, processor 601 is also used for:
[0296] Obtain statistical result change data of the second live broadcast on the second terminal device; the statistical result change data includes statistical results of multiple time points recorded in the second live broadcast;
[0297] Based on the changes in the statistical results, generate multiple initial messages corresponding to the statistical results, and add these multiple initial messages to the live interaction data.
[0298] In one possible implementation, processor 601 is also used for:
[0299] A statistical message sequence is generated based on multiple initial messages corresponding to the statistical results in the live interactive data. The statistical message sequence includes multiple statistical messages, each of which includes the display time of the statistical message and the corresponding statistical result. The display time of each statistical message is obtained by converting the time node in the initial message corresponding to the statistical message.
[0300] After the first terminal device starts the first live broadcast, each statistical message is sent to the first terminal device according to the display time of each statistical message in the statistical message sequence, so that the first terminal device can adjust the statistical results in the live broadcast interface of the first live broadcast based on the received statistical messages.
[0301] In one possible implementation, processor 601 is also used for:
[0302] In response to a live streaming configuration request from a first terminal device for a first live stream, a list of live streaming identifiers associated with a live streaming account logged in on the first terminal device is determined; the list of live streaming identifiers includes at least one candidate live streaming identifier.
[0303] Send the live broadcast identifier list to the first terminal device;
[0304] The system receives a live streaming test request from a first terminal device for a first live stream; the live streaming test request carries a live streaming identifier for a second live stream, which is selected from at least one candidate live streaming identifier included in the live streaming identifier list.
[0305] In specific implementations, the processor 601, input interface 602, output interface 603, and computer-readable storage medium 604 described in the embodiments of this application can execute the embodiments of this application. Figure 2 or Figure 3 The implementation methods described in the relevant embodiments of the provided method can also be used to execute the embodiments of this application. Figure 6 The implementation methods described in the relevant embodiments of the provided device will not be repeated here.
[0306] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatus, systems, and computer devices can be implemented in other ways. The embodiments described above are merely illustrative, and the division of units is only a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0307] This application also provides a computer program product, which includes program instructions stored in a computer-readable storage medium. A processor of a computer device reads the program instructions from the computer-readable storage medium and executes the program instructions, causing the computer device to perform the aforementioned data processing method, which will not be described in detail here.
[0308] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0309] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more program instructions. When the program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The program instructions can be stored in or transmitted through a computer-readable storage medium. The program instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0310] It should be noted that, in the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0311] It should be noted that the terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature specified with "first" or "second" may explicitly or implicitly include at least one of those features.
[0312] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data processing method, characterized in that, The method includes: In response to a live streaming test request from a first terminal device for a first live stream, live streaming interaction data is determined based on the live stream identifier of the second live stream carried in the live streaming test request; the live streaming interaction data is used to indicate the interaction status of the participants in the second live stream in the live stream interface of the second live stream. An interactive message sequence is generated based on the live interactive data; the interactive message sequence includes at least one interactive message, each interactive message includes the sender of the interactive message and the display time, the sender has a corresponding relationship with the participants in the second live stream, and the interactive message sequence is used to reproduce the interaction of the participants in the second live stream in the live stream interface of the first live stream; After the first terminal device starts the first live broadcast, each interactive message is sent to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast.
2. The method as described in claim 1, characterized in that, The step of generating an interactive message sequence based on the live interactive data includes: Extract initial messages of various message types from the live interactive data; An interactive message sequence corresponding to the target message type is generated based on the initial message of the target message type; the target message type is any one of the multiple message types, and each interactive message in the interactive message sequence also includes a message type.
3. The method as described in claim 2, characterized in that, The step of generating the interactive message sequence corresponding to the target message type based on the initial message of the target message type includes: Determine the occurrence time of each initial message from multiple initial messages of the target message type; The occurrence time of the target initial message is converted to obtain the display time; the target initial message is any one of multiple initial messages of the target message type; Adjust the occurrence time in the target initial message to the display time to obtain the interactive message corresponding to the target initial message; Based on the interactive messages corresponding to the multiple initial messages of the target message type, determine the interactive message sequence corresponding to the target message type.
4. The method as described in claim 1, characterized in that, Sending each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast, includes: From the multiple interactive messages included in the interactive message sequence, determine the matching interactive message whose display time matches the current timestamp; Add the account information of the sending object included in the matching interaction message to the matching interaction message to obtain the target interaction message; The target interaction message is sent to the first terminal device so that the first terminal device displays the target interaction message in the live broadcast interface of the first live broadcast.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: The raw interactive data of various message types corresponding to the second live broadcast on the second terminal device is obtained; the raw interactive data corresponding to each message type includes multiple messages to be processed. Obtain the participating objects included in each message to be processed from the raw interaction data of the various message types; The number of participating objects is determined based on the participating objects included in each pending message, and a sending object is assigned to each pending message based on the number of participating objects; Add the sent object that has been assigned to each pending message to each pending message to each pending message to obtain the initial message corresponding to each pending message; The second live stream interactive data is generated based on the initial message corresponding to each message to be processed.
6. The method as described in claim 5, characterized in that, The step of allocating a sending object for each pending message based on the number of participating objects includes: Get the collection of emitted objects to be used for allocation; If the number of sending objects included in the sending object set is greater than or equal to the number of participating objects, then the sending object corresponding to the participating object included in each message to be processed is determined from the sending object set; each sending object corresponds to one participating object. If the number of sending objects in the sending object set is less than the number of participating objects, then a sending object corresponding to a participating object included in each message to be processed is randomly assigned from the sending object set; each assigned sending object corresponds to one or more participating objects.
7. The method as described in claim 5, characterized in that, The method further includes: Obtain statistical result change data of the second live broadcast on the second terminal device; the statistical result change data includes statistical results of multiple time points recorded in the second live broadcast; Based on the changes in the statistical results, generate multiple initial messages corresponding to the statistical results, and add the multiple initial messages corresponding to the statistical results to the live interaction data.
8. The method as described in claim 7, characterized in that, The method further includes: A statistical message sequence is generated based on multiple initial messages corresponding to the statistical results in the live interactive data; the statistical message sequence includes multiple statistical messages, each of which includes the display time of the statistical message and the corresponding statistical result; the display time of each statistical message is obtained by converting the time node in the initial message corresponding to the statistical message; After the first terminal device starts the first live broadcast, each statistical message is sent to the first terminal device according to the display time of each statistical message in the statistical message sequence, so that the first terminal device adjusts the statistical results in the live broadcast interface of the first live broadcast according to the received statistical messages.
9. The method according to any one of claims 1-4, characterized in that, The method further includes: In response to a live streaming configuration request from a first terminal device for a first live stream, a list of live streaming identifiers associated with a live streaming account logged in on the first terminal device is determined; the list of live streaming identifiers includes at least one candidate live streaming identifier. Send the live broadcast identifier list to the first terminal device; The system receives a live streaming test request from the first terminal device for the first live stream; the live streaming test request carries a live streaming identifier for a second live stream, which is selected from at least one candidate live streaming identifier included in the live streaming identifier list.
10. A data processing apparatus, characterized in that, The device includes: The determining unit is configured to respond to a live test request from a first terminal device for a first live stream, and determine live interaction data based on the live stream identifier of a second live stream carried in the live test request; the live interaction data is used to indicate the interaction status of the participants in the second live stream in the live stream interface of the second live stream. The processing unit is configured to generate an interactive message sequence based on the live interactive data; the interactive message sequence includes at least one interactive message, each interactive message includes the sending object and display time of the interactive message, the sending object has a corresponding relationship with the participating object in the second live stream, and the interactive message sequence is configured to reproduce the interaction of the participating object in the second live stream in the live stream interface of the first live stream; The sending unit is configured to send each interactive message to the first terminal device according to the display time of each interactive message in the interactive message sequence after the first terminal device starts the first live broadcast, so that the first terminal device displays each interactive message in the live broadcast interface of the first live broadcast.
11. A computer device, characterized in that, The computer device includes: A processor is a tool for implementing computer programs. A computer-readable storage medium storing a computer program adapted to be loaded by the processor and executed as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and executed as described in any one of claims 1-9.
13. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the data processing method as described in any one of claims 1-9.