Component triggering methods, devices, equipment, and storage media for live streaming
By automatically triggering live streaming room components upon receiving live streaming messages, the problem of poor real-time performance and interactive effects in existing technologies has been solved. This has enabled real-time and diverse component triggering, thereby improving the user interaction experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-10
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, the triggering real-time performance and interactive effects of live streaming room functional components are poor. Especially in competitive sports live streaming, manual operation to send triggering commands leads to insufficient real-time performance and the component triggering mode is limited.
By receiving live messages from the target live room, determining the corresponding components based on the live event, and automatically triggering the components within the live room page to implement special effects or resource transfer functions, the triggering timing and content of the components are dynamically adjusted based on user interaction.
It improves the real-time nature and diversity of component triggering, enhances user interaction and feedback in the live broadcast room, and improves the live broadcast interactive experience.
Smart Images

Figure CN115767198B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Internet technology, and in particular to a component triggering method, apparatus, device, and storage medium for live streaming. Background Technology
[0002] In the application scenario of live sports event broadcasting, users can enter the live broadcast room through a live broadcast application client running on their terminal device to watch the live video of the competition. To meet the interactive needs of users during the viewing process, the live broadcast application client also includes various functional components for enabling interaction in the live broadcast room. By triggering these functional components, corresponding interactive activities and tasks can be implemented.
[0003] However, in existing technologies, the functional components within a live streaming page are usually triggered manually from the server-side backend, resulting in poor real-time component triggering and poor interactive effects. Summary of the Invention
[0004] This disclosure provides a component triggering method, apparatus, device, and storage medium for live streaming, to overcome the problems of poor real-time component triggering and poor interactive effects in existing functional components.
[0005] In a first aspect, embodiments of this disclosure provide a component triggering method for live streaming, including:
[0006] Receive a live message from a target live room, the live message representing a live event occurring in the live video played in the live room; determine a corresponding target component based on the live message from the target live room, and trigger the target component within the live room page of the target live room, the target component being used to implement a first interactive function for the target live event occurring in the live video played in the target live room.
[0007] Secondly, embodiments of this disclosure provide a live streaming room page display device, comprising:
[0008] A receiving module is used to receive live messages from a target live streaming room, wherein the live messages represent live events occurring in the live video played in the live streaming room; a display module is used to determine a corresponding target component based on the live messages from the target live streaming room, and to trigger the target component within the live streaming room page of the target live streaming room, wherein the target component is used to implement a first interactive function for the target live events occurring in the live video played in the target live streaming room.
[0009] Thirdly, embodiments of this disclosure provide an electronic device, including:
[0010] A processor, and a memory communicatively connected to the processor;
[0011] The memory stores computer-executed instructions;
[0012] The processor executes computer execution instructions stored in the memory to implement the component triggering method for live streaming as described in the first aspect and various possible designs of the first aspect.
[0013] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the component triggering method for live streaming as described in the first aspect and various possible designs of the first aspect.
[0014] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the component triggering method for live streaming as described in the first aspect and various possible designs of the first aspect.
[0015] This embodiment provides a component triggering method, apparatus, device, and storage medium for live streaming. It receives live streaming messages from a target live streaming room, where the messages represent live events occurring in the live video played within the room. Based on these messages, it determines corresponding target components and triggers them within the target live streaming room's page. These target components implement a first interactive function in response to the target live streaming events occurring in the live video played within the target live streaming room. Since live events in sports events constantly change as the competition progresses, this embodiment determines corresponding target components based on live streaming messages representing these events and displays them. This enables dynamic triggering of components used for interactive functions within the live streaming room page, thereby increasing the diversity and real-time nature of component triggering modes and enhancing the interactive effect between users within the live streaming room. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is an application scenario diagram of the component triggering method for live streaming provided in the embodiments of this disclosure;
[0018] Figure 2 A flowchart illustrating the component triggering method for live streaming provided in this embodiment of the disclosure. Figure 1;
[0019] Figure 3 for Figure 2 The flowchart of the specific implementation method of step S102 in the embodiment shown is as follows;
[0020] Figure 4 This is a schematic diagram illustrating the structure of an event identifier in a live stream message, provided in an embodiment of this disclosure.
[0021] Figure 5 This is a schematic diagram illustrating a process for triggering special effects according to an embodiment of the present disclosure;
[0022] Figure 6 This is a schematic diagram illustrating a process for triggering a resource transfer function, provided in an embodiment of the present disclosure.
[0023] Figure 7 A flowchart illustrating the component triggering method for live streaming provided in this embodiment of the disclosure. Figure 2 ;
[0024] Figure 8 This is a schematic diagram illustrating a process for determining and triggering a target component, as provided in an embodiment of the present disclosure.
[0025] Figure 9 for Figure 7 The flowchart of the specific implementation method of step S207 in the embodiment shown is as follows;
[0026] Figure 10 A schematic diagram illustrating the process of determining a target visual effect provided in an embodiment of this disclosure;
[0027] Figure 11 A structural block diagram of a component triggering device for live streaming provided in an embodiment of this disclosure;
[0028] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0029] Figure 13 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0031] The application scenarios of the embodiments of this disclosure are explained below:
[0032] Figure 1 This diagram illustrates an application scenario of the component triggering method for live streaming provided in this embodiment of the disclosure. The component triggering method for live streaming provided in this embodiment can be applied to application scenarios such as live sports events. Figure 1 As shown in the embodiments of this disclosure, the method can be applied to a terminal device. The terminal device runs a client of a live streaming application. The terminal device communicates with a server running a live streaming service. The server sends live streaming data to the terminal device, which then receives the live streaming data and plays it on the client page, enabling live video streaming of competitive events such as football matches, basketball matches, and e-sports matches. The live streaming application client includes components for user interaction (invisible before triggering). Once triggered, these components can perform specific activities or visual effects, such as a "fireworks display" visual effect or a task to send "virtual points."
[0033] Furthermore, the component triggering method for live streaming provided in this embodiment can also be applied to other competitive, adversarial, or other live streaming scenarios, such as streamer battles (PK). The specific implementation can be adjusted based on the specific application scenario, and will not be elaborated upon here.
[0034] In existing technologies, the triggering of the aforementioned components is typically achieved through manual operation on the server-side backend. This involves manually operating the live streaming server to send trigger commands to the client on the terminal device. Upon receiving the command, the client responds to trigger the target component corresponding to that command. However, in applications such as live sports broadcasts, various random events, such as goals and fouls, can occur at any time during the broadcast. Manually sending trigger commands suffers from poor real-time performance. Furthermore, as the number of components and the complexity of the triggering logic increase, not only does real-time performance further deteriorate, but it also leads to component triggering errors, limits the diversity of component triggering modes, and ultimately affects the interactive experience between users in the live stream.
[0035] This disclosure provides a component triggering method for live streaming to solve the above-mentioned problems.
[0036] refer to Figure 2 , Figure 2 A flowchart illustrating the component triggering method for live streaming provided in this embodiment of the disclosure. Figure 1 The method of this embodiment can be applied to terminal devices. This component triggering method for live streaming includes:
[0037] Step S101: Receive the live broadcast message from the target live broadcast room. The live broadcast message represents the live broadcast event that occurred in the live broadcast video played in the live broadcast room.
[0038] For example, the execution subject of the method provided in this embodiment can be a terminal device, such as a smartphone, see reference. Figure 1 The illustration shows an application scenario where a client for a live streaming application runs on a terminal device. After entering a target live stream room through the client, the terminal device's screen displays the live stream room page, which then shows the live video. Specifically, in the context of sports event live streaming, the live messages are match messages, the live events are match events, and the live stream type corresponds to the match event. The live video is, for example, a match video, such as a football match video or a basketball match video.
[0039] Furthermore, while playing the live video through the live streaming page, the terminal device receives live messages sent by the server (server-side). In the application scenario of sports live streaming, the live message represents information about the live events occurring in the live video. In the application scenario of sports live streaming, the live event is a match event, specifically referring to a specific event that occurs during the match based on the rules of the match, such as the start of the match, a goal, a foul, halftime, etc. In one possible implementation, the live message includes an event identifier, which indicates the corresponding live event.
[0040] Furthermore, exemplarily, the live stream message can be included in the live stream data (video stream) used to implement live video streaming. After the terminal device receives the live stream data sent by the server, it parses the live stream data to obtain information representing the live events occurring in the live video, i.e., the live stream message. Further, this live stream message is generated on the server side (server-side) based on the content of the live video. Specifically, the live stream message can be obtained by the server processing one or more video frames in the live video using methods such as image recognition; the specific implementation method will not be elaborated further. Therefore, the live events represented by the live stream message are almost synchronous with the content of the live video. Due to the high real-time nature of the live stream message, the real-time performance of subsequent target components triggered based on the live stream message is effectively improved.
[0041] Step S102: Based on the live broadcast message of the target live broadcast room, determine the corresponding target component. The target component is used to implement the first interactive function for the target live broadcast event that occurs in the live broadcast video played in the target live broadcast room.
[0042] For example, after obtaining the live stream message of the target live stream room, the corresponding target component is determined based on the live stream event indicated by the live stream message. For example, the live stream event and the target component have a preset mapping relationship; for instance, when the live stream event is "match started," it corresponds to target component A; when the live stream event is "match ended," it corresponds to target component B. In one possible implementation, the live stream message includes an event identifier representing the live stream event, such as... Figure 3 As shown, the specific implementation of step S102 includes:
[0043] Step S1021: Obtain the event identifiers in the live messages of the target live room in real time.
[0044] Step S1022: Determine the corresponding target component based on the event identifier.
[0045] Understandably, different live streaming types correspond to different live streaming events. Taking sports live streaming as an example, the live streaming type corresponds to the competition event. For instance, in a basketball game, there is a live streaming event for "End of the First Quarter," while in a football game, there is no such event. Therefore, the live streaming message representing a live streaming event corresponds to the live video currently being played in the target live streaming room. In one possible implementation, the event identifier includes a first field and a second field, where the first field indicates the live streaming type corresponding to the live video; the second field represents the live streaming event based on the live streaming type. Figure 4 This is a schematic diagram illustrating the structure of an event identifier in a live stream message, as provided in an embodiment of this disclosure. Figure 4 As shown, an exemplary live stream message includes an event identifier [type_01, event_03], where "type_01" is the first field, indicating that the live stream type is "football match"; and "event_03" is the second field, indicating that the live event in the "football match" is "handball foul". The first and second fields are separated by a preset symbol ",". The above implementation of the event identifier is merely exemplary and can be configured as needed in specific applications. In this embodiment, configuring the event identifier through the first and second fields allows the event identifier to accurately indicate live events in different live stream types, thereby improving the accuracy of the determined target component and the rationality of the applicable scenario when determining the target component based on the event identifier in the live stream message.
[0046] Step S103: Trigger the target component within the live stream page of the target live stream room.
[0047] Furthermore, after identifying the target component, one possible implementation is to directly trigger the target component to execute its corresponding functional logic, i.e., the first interactive function. This first interactive function includes either a special effects function or a resource transfer function. The special effects function displays visual effects on the live stream page; the resource transfer function transfers virtual resources to the target user. The special effects function and the resource transfer function are described in detail below.
[0048] For example, special effects refer to special effect images displayed within the live stream page, such as "fireworks" special effect images, "cheerleader cheering" special effect images, etc. Optionally, visual effects are dynamic images generated based on multi-frame images. Further, for example, the live stream page includes a first area for displaying the live video and a second area for displaying persistent functional components, such as a "channel chat" component, a "team data" component, etc., which will not be described in detail here. For example, special effects can be displayed in either the first area or the second area of the live stream page. Figure 5 This is a schematic diagram illustrating a process for triggering a special effect function provided in an embodiment of this disclosure, such as... Figure 5 As shown, based on the content of the live video broadcast in the target live room, when a "goal event" occurs (the terminal device receives the target live message Info_1 corresponding to the goal event), the terminal device triggers the target component to display a "fireworks" visual effect in the second area of the live room page. This achieves automatic triggering of the target component based on the live message. Of course, it is understood that in other possible embodiments, the "fireworks" visual effect can also be displayed in the first area of the live room page, which will not be elaborated further.
[0049] For example, when the first interactive function includes a resource transfer function, in response to a trigger operation on the target component, the corresponding first interactive function is executed, including: in response to a trigger operation on the target component by the target user, transferring virtual resources to the target user. Figure 6 This is a schematic diagram illustrating a process for triggering a resource transfer function according to an embodiment of this disclosure, such as... Figure 6 As shown, based on the content of the live video broadcast in the target live room, when a "goal event" occurs (the terminal device receives the target live message Info_2 corresponding to the goal event), the terminal device triggers the target component to execute the resource transfer function, transferring virtual resources within the user account corresponding to the terminal device, such as increasing the target number of virtual points. More specifically, as... Figure 6As shown, after the target component is triggered, the icon or sticker corresponding to the resource transfer function is first displayed on the live stream page. This could be a sticker with specific text or image, along with explanatory text informing the target user of the terminal device about the specific amount of virtual resources transferred, such as "Gain 100 points." Simultaneously, virtual resources are transferred from the user's account on the terminal device, for example, by adding 100 points, thus completing the resource transfer process. The specific implementation of displaying the icon or sticker corresponding to the resource transfer function on the live stream page can be customized as needed; examples are not provided here.
[0050] In this embodiment, a live message is received from the target live room, representing a live event occurring in the live video played within the live room. Based on the live message, a corresponding target component is determined and triggered within the target live room page. The target component is used to implement a first interactive function for the target live event occurring in the live video played within the target live room. Since live events change continuously as the competition progresses in a sports event livestream scenario, this embodiment determines the corresponding target component based on the live message representing the live event and displays the target component. This achieves dynamic triggering of components used for interactive functions within the live room page, thereby increasing the diversity and real-time nature of component triggering modes and enhancing the interactive effect between users within the live room.
[0051] refer to Figure 7 , Figure 7 A flowchart illustrating the component triggering method for live streaming provided in this embodiment of the disclosure. Figure 2 This embodiment is in Figure 2 Based on the illustrated embodiment, step S102 is further refined. This component triggering method for live streaming is applied to the application scenario of sports event live streaming. In this sports event live streaming application scenario, the live stream message is the match message, the live stream event is the match event, and the live stream type corresponds to the match event. The method provided in this embodiment includes:
[0052] Step S201: Receive the match message from the target live stream room. The match message represents the match events that occurred in the live video played in the live stream room.
[0053] Step S202: Receive the live room message of the target live room. The live room message is used to represent the number of times the second interactive function is triggered in the target live room.
[0054] Step S203: Based on the live stream messages of the target live stream, determine the timing for triggering the target component within the live stream page of the target live stream.
[0055] The specific implementation of receiving the match message in step S101 is as follows: Figure 2 The embodiments shown have been described in detail and will not be repeated here.
[0056] Furthermore, while receiving match messages, the system also receives live stream messages from the target live stream room. In one possible implementation, the live stream messages, similar to match messages, can be included in the live stream data and sent by the server (server-side) to the terminal device (client-side). In another possible implementation, the live stream messages can be sent independently of the live stream data. That is, the server sends the live stream messages to the terminal device according to a specific strategy, such as at fixed intervals, allowing the terminal device to receive the live stream messages and perform subsequent steps based on them.
[0057] Furthermore, the live stream information represents the number of times a second interactive function is triggered within the target live stream room where the live video is playing. This second interactive function is an interactive function triggered by users within the live stream room, other than the first interactive function, such as "like," "follow," or "support the selected team." The second interactive function is implemented by corresponding interactive components. The number of times the second interactive function is triggered represents the number of times users within the target live stream room trigger these interactive components to perform the "like" or "support the selected team" functions. Specifically, whenever a user within the target live stream room sends a trigger command for the second interactive function via their terminal device, the server records the trigger command, thereby counting the total number of triggers for the second interactive function within the target live stream room and generating a live stream message. Then, based on the live stream message, i.e., the number of times the second interactive function is triggered, the terminal device determines the triggering timing of the target component within the target live stream room page. More specifically, for example, the target component is triggered when the number of "likes" (the second interactive function) triggers reaches 30,000; or, the target component is triggered when the number of "support" triggers reaches 100,000.
[0058] In this embodiment, the triggering time of the target component is determined by the live broadcast room messages, so that the triggering time of the target component can be dynamically determined by the interaction of users in the target live broadcast room, thereby improving the interactive feedback in the live broadcast room and enhancing the interactive effect.
[0059] Step S204: Determine the corresponding target component based on the match messages and live stream messages of the target live stream.
[0060] For example, further, based on the obtained live room messages, the corresponding target components are determined by combining the competition messages and the live room messages. Specifically, for example, firstly, the corresponding competition event is determined according to the event identifier in the competition message, then the corresponding component category is determined according to the competition event, and then, according to the live room messages, the target component corresponding to the live room messages is selected from the component categories corresponding to the competition events. Figure 8 This is a schematic diagram illustrating a process for determining and triggering a target component according to an embodiment of this disclosure. The following is in conjunction with... Figure 8 The above process will be described in detail, such as Figure 8 As shown, exemplarily, firstly, according to the match message Info_1, the match event is: the start of the second half of a football match. Based on this match event, the corresponding component category is determined to be: visual effect component set C representing "cheerleaders cheering". Exemplarily, in addition, the terminal device also includes visual effect component set B representing "fireworks", and so on. Further, visual effect component set C includes 10 visual effect components, from C1 to C10. Exemplarily, when visual effect component C1 is triggered, it displays the visual effect of "one cheerleader cheering"; when visual effect component C2 is triggered, it displays the visual effect of "two cheerleaders cheering"; the effects of visual effect components C3 to C10 after being triggered follow the same pattern, and will not be elaborated further.
[0061] Subsequently, based on the live stream message Info_2, for example, the number of times the "like for the match" function (the second interactive function) has been triggered is count_1 = 20,000. Based on this count_1, the corresponding target component is determined to be visual effect component C2 in the aforementioned visual effect component set C. After triggering this target component, the visual effect of "two cheerleaders cheering" is displayed. This achieves the goal of determining the target component based on both the live stream message and the live stream message, thus enabling a more complex and elaborate visual effect as the number of times users "like" the match in the target live stream increases.
[0062] In this embodiment, by combining the competition messages and live stream messages of the target live stream, the corresponding target component is determined. The specific implementation content of the target component is dynamically determined by the interaction of users in the target live stream, thereby improving the interactive feedback in the live stream and enhancing the interactive effect.
[0063] Step S205: Display the target component and receive the trigger command for the target component. The target component is used to implement the special effects function for the target competition event that occurs in the live video played in the target live room. The special effects function is used to display visual effects on the live room page.
[0064] Step S206: Obtain the first cumulative count, which is the cumulative number of trigger commands received for the target component during the display phase of the target component.
[0065] Step S207: Determine the corresponding target visual effect based on the first cumulative count.
[0066] Step S208: Display the target visual effect on the live streaming page and determine the state of the target component. If the target component is in the display stage, return to step S205; otherwise, end the loop.
[0067] Exemplarily, further, the difference from Figure 2 In the illustrated embodiment, after determining the target component, the target component is automatically triggered and the corresponding first interactive function is executed. In this embodiment, after determining the target component, it is first displayed on the live broadcast page of the terminal device. After the terminal device receives a user's trigger operation on the target component, it triggers the target component and executes the corresponding first interactive function. Specifically, the target component is used to implement special effects or resource transfer functions for the live video. The specific implementation methods of the special effects and resource transfer functions are described in [details omitted]. Figure 2 The corresponding parts in the illustrated embodiments have been described and will not be repeated here.
[0068] In this embodiment, for cases where the target component is used to implement special effects, such as "fireworks effects" or "cheerleader cheering effects," the terminal device calculates the cumulative number of all trigger commands received during the display phase of the target component after receiving a trigger command input by the user each time. This is the first cumulative count. The display phase is the time period from when the target component appears on the live stream page to when it disappears. The display phase corresponds to a fixed display duration. More specifically, for example, after the target component meets the triggering conditions, it appears on the live stream page and lasts for 10 seconds. During these 10 seconds, the user can trigger the corresponding first interactive function by operating the target component. After 10 seconds, the target component disappears, and the terminal device no longer receives trigger commands for the target component. The period from when the target component appears to when it disappears is the display phase.
[0069] Furthermore, as the terminal device continuously receives trigger commands, the first accumulated count continuously increases. Accordingly, based on the first accumulated count, the corresponding target visual effect is determined, thereby realizing that the visual effect of the target visual effect changes continuously as the target component is continuously triggered by the user.
[0070] like Figure 9 As shown, in one possible implementation, step S207 is specifically implemented as follows:
[0071] Step S2071: Obtain a preset visual effects library, wherein the visual effects library includes at least two ordered candidate visual effects, and the visual hue of each candidate visual effect changes continuously with the effect library index of each candidate visual effect.
[0072] Step S2072: Determine the target effect library index based on the first cumulative count and the total number of candidate visual effects in the visual effects library. The target effect library index is the remainder when the first cumulative count is divided by the total number.
[0073] Step S2073: Based on the target effect library index, determine the corresponding target visual effect from the visual effect library.
[0074] For example, a visual effects library is a database used to store visual effects of target types, such as a database of 100 "fireworks effects" in different colors. The visual effects library stores multiple candidate visual effects, each corresponding to a library index for location. The candidate visual effects in consecutive indexes are arranged in order of visual hue. Visual hue refers to the relative brightness of an image, which is represented as color in a color image. Therefore, the visual hues corresponding to the candidate visual effects in consecutive indexes constitute a continuously changing color spectrum.
[0075] More specifically, taking "fireworks effect" as an example, the visual effects library stores alternative visual effects of the type "fireworks effect". The color of "fireworks" in its effect texture changes continuously, that is, the RGB value changes continuously. Visually, for example, the "fireworks" change continuously between red, yellow, blue and the transition colors between the above colors.
[0076] Furthermore, based on the first accumulated count, the result is divided by the total number of candidate visual effects in the visual effects library, and the remainder is used as the target visual effects library index to represent the target visual effects. Figure 10 This is a schematic diagram illustrating a process for determining a target visual effect, as provided in an embodiment of the present disclosure. Figure 10As shown, for example, the total number of candidate visual effects in the visual effects library is 100 (the effects library index is #1 to #100). When the first cumulative count = 1, the remainder when the first cumulative count is divided by the total number is 1, that is, the target effects library index = #1. In other words, the first candidate visual effect in the visual effects library is taken as the target visual effect, and the RGB value corresponding to the target visual effect is (50, 50, 50). When the first cumulative count = 2, the remainder when the first cumulative count is divided by the total number is 2, that is, the target effects library index = #2. In other words, the second candidate visual effect in the visual effects library is taken as the target visual effect, and the RGB value corresponding to the target visual effect is (51, 51, 51). Similarly, when the first accumulated count = 100, the remainder when the first accumulated count is divided by the total number is 0. At this point, the target effect library index is taken as the total number, and the target effect library index = #100. That is, the 100th candidate visual effect in the visual effect library is taken as the target visual effect, and the RGB value corresponding to this target visual effect is (149, 149, 149). When the first accumulated count = 101, the remainder when the first accumulated count is divided by the total number is 1. At this point, the system returns to the beginning of the visual effect library, and the target effect library index is taken as #1. That is, the 1st candidate visual effect in the visual effect library is taken as the target visual effect, and the RGB value corresponding to this target visual effect is (50, 50, 50). The above process is repeated.
[0077] In this embodiment, by acquiring a library of visual effects with continuously changing color tones and polling based on a first cumulative number of times, the target visual effects with continuously changing color tones are determined sequentially. This enables the visual effects corresponding to the target components to exhibit continuous color changes as the user continuously triggers the target components. On the one hand, this increases the visual appeal; on the other hand, the continuous color changes can serve as a prompt for the number of times the user inputs the operation commands, thereby improving the interactive feedback during the component triggering process and enhancing the interactive effect.
[0078] Alternatively, in another possible implementation, step S207 may be specifically implemented as follows:
[0079] Step S2074: Send the first cumulative count to the server and obtain the second cumulative count from the server. The second cumulative count is the cumulative number of trigger commands for the target component entered by users in the target live room within the second duration.
[0080] Step S2075: Determine the corresponding target visual effect based on the second cumulative count.
[0081] For example, in another implementation, after obtaining the first cumulative count, the first cumulative count is sent to the server. The server obtains the second cumulative count by counting the total number of triggers of the target component by each user in the target live stream. The server then returns the second cumulative count to the terminal device. The terminal device determines the corresponding target visual effect based on this second cumulative count. Thus, the specific implementation of the target visual effect is determined based on the first cumulative count contributed by all users in the live stream, achieving, for example, a dynamic change effect where the more clicks, the darker or warmer the color of the "fireworks" in the fireworks effect texture. This improves the interactive feedback between users in the live stream and enhances the interactive effect.
[0082] Optionally, in step S2075, the specific implementation method of the target visual effect is determined based on the second cumulative number of times. This can be referred to in steps S2071-S2073, where the specific implementation method of the target visual effect is determined based on the first cumulative number of times. The two implementation methods can be the same, and will not be repeated here.
[0083] Corresponding to the component triggering method for live streaming in the above embodiment, Figure 11 This is a structural block diagram of a component triggering device for live streaming provided in an embodiment of this disclosure. For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. (Refer to...) Figure 11 The component triggering device 3 for live streaming includes:
[0084] The receiving module 31 is used to receive live messages from the target live room. The live messages represent the live events that occur in the live video played in the live room.
[0085] Display module 32 is used to determine the corresponding target component based on the live broadcast message of the target live broadcast room, and trigger the target component in the live broadcast room page of the target live broadcast room. The target component is used to implement the first interactive function for the target live broadcast event that occurs in the live broadcast video played in the target live broadcast room.
[0086] In one embodiment of this disclosure, when the display module 32 determines the corresponding target component based on the live broadcast message of the target live broadcast room, it is specifically used to: obtain the event identifier in the live broadcast message of the target live broadcast room in real time, the event identifier including a first field and a second field, wherein the first field represents the live broadcast type corresponding to the live broadcast video; the second field represents the live broadcast event based on the live broadcast type; and determine the corresponding target component based on the event identifier.
[0087] In one embodiment of this disclosure, the receiving module 31 is further configured to: receive a live room message of the target live room, wherein the live room message is used to represent the number of times the second interactive function is triggered in the target live room;
[0088] When determining the corresponding target component based on the live stream message of the target live stream room, the display module 32 is specifically used to: determine the corresponding target component based on the live stream message and the live stream room message of the target live stream room.
[0089] In one embodiment of this disclosure, the display module 32 is further configured to: determine the triggering timing of the target component within the live stream page of the target live stream based on the live stream message of the target live stream.
[0090] In one embodiment of this disclosure, when the display module 32 triggers the target component within the live streaming room page of the target live streaming room, it is specifically used to: in response to the triggering operation on the target component, execute the corresponding first interactive function; wherein, the first interactive function includes a special effects function or a resource transfer function, the special effects function is used to display visual effects on the live streaming room page; the resource transfer function is used to transfer virtual resources to the target user.
[0091] In one embodiment of this disclosure, when the first interactive function includes a special effects function, the display module 32, in response to a trigger operation for the target component, executes the corresponding first interactive function, specifically for: obtaining a first cumulative number of times, the first cumulative number of times being the cumulative number of times a trigger instruction for the target component is received during the display phase of the target component; determining the corresponding target visual effect based on the first cumulative number of times, and displaying the target visual effect on the live broadcast page.
[0092] In one embodiment of this disclosure, when the display module 32 determines the corresponding target visual effect based on the first accumulated count, it is specifically configured to: obtain a preset visual effect library, wherein the visual effect library includes at least two ordered candidate visual effects, and the visual hue of each candidate visual effect changes continuously with the effect library index of each candidate visual effect; determine the target effect library index based on the first accumulated count and the total number of candidate visual effects in the visual effect library, wherein the target effect library index is the remainder when the first accumulated count is divided by the total number; and determine the corresponding target visual effect from the visual effect library based on the target effect library index.
[0093] In one embodiment of this disclosure, when the display module 32 determines the corresponding target visual effect based on the first cumulative count, it is specifically configured to: send the first cumulative count to the server and obtain the second cumulative count fed back by the server, wherein the second cumulative count is the cumulative number of trigger commands for the target component entered by the user in the target live room within the second duration; and determine the corresponding target visual effect based on the second cumulative count.
[0094] The receiving module 31 and the display module 32 are connected in sequence. The component triggering device 3 for live streaming provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.
[0095] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as... Figure 12 As shown, the electronic device 4 includes:
[0096] Processor 41, and memory 42 communicatively connected to processor 41;
[0097] Memory 42 stores instructions executed by the computer;
[0098] The processor 41 executes computer execution instructions stored in the memory 42 to achieve, for example, Figures 2-10 The component triggering method for live streaming in the illustrated embodiment.
[0099] Optionally, the processor 41 and the memory 42 are connected via a bus 43.
[0100] For relevant instructions, please refer to the corresponding text. Figures 2-10 The relevant descriptions and effects of the steps in the corresponding embodiments are understood, and will not be elaborated on here.
[0101] refer to Figure 13 The diagram illustrates a structural schematic of an electronic device 900 suitable for implementing embodiments of the present disclosure. The electronic device 900 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 13 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0102] like Figure 13As shown, the electronic device 900 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the electronic device 900. The processing unit 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0103] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows electronic device 900 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 13 An electronic device 900 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0104] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by a processing device 901, it performs the functions defined in the methods of embodiments of this disclosure.
[0105] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0106] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0107] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
[0108] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0109] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0110] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0111] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0112] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0113] In a first aspect, according to one or more embodiments of this disclosure, a component triggering method for live streaming is provided, comprising:
[0114] Receive a live message from a target live room, the live message representing a live event occurring in the live video played in the live room; determine a corresponding target component based on the live message from the target live room, and trigger the target component within the live room page of the target live room, the target component being used to implement a first interactive function for the target live event occurring in the live video played in the target live room.
[0115] According to one or more embodiments of this disclosure, determining a corresponding target component based on the live stream message of the target live stream room includes: acquiring an event identifier in the live stream message of the target live stream room in real time, the event identifier including a first field and a second field, wherein the first field represents the live stream type corresponding to the live stream video; the second field characterizes a live stream event based on the live stream type; and determining the corresponding target component based on the event identifier.
[0116] According to one or more embodiments of this disclosure, the method further includes: receiving a live room message from the target live room, the live room message being used to characterize the number of times the second interactive function is triggered within the target live room; and determining a corresponding target component based on the live room message from the target live room, including: determining the corresponding target component based on the live room message and the live room message from the target live room.
[0117] According to one or more embodiments of this disclosure, the method further includes: determining the triggering timing of the target component within the live stream page of the target live stream based on the live stream message of the target live stream.
[0118] According to one or more embodiments of this disclosure, triggering the target component within the live stream page of the target live stream room includes: in response to a triggering operation on the target component, executing a corresponding first interactive function; wherein the first interactive function includes a special effects function or a resource transfer function, the special effects function being used to display visual effects on the live stream page; and the resource transfer function being used to transfer virtual resources to the target user.
[0119] According to one or more embodiments of this disclosure, when the first interactive function includes a special effects function, the step of executing the corresponding first interactive function in response to a trigger operation on the target component includes: obtaining a first cumulative number of times, wherein the first cumulative number of times is the cumulative number of times a trigger instruction for the target component is received during the display phase of the target component; determining a corresponding target visual effect based on the first cumulative number of times, and displaying the target visual effect on the live streaming page.
[0120] According to one or more embodiments of this disclosure, determining a corresponding target visual effect based on the first accumulated number of times includes: acquiring a preset visual effect library, wherein the visual effect library includes at least two ordered candidate visual effects, and the visual hue of each candidate visual effect changes continuously with the effect library index of each candidate visual effect; determining a target effect library index based on the first accumulated number of times and the total number of candidate visual effects in the visual effect library, wherein the target effect library index is the remainder when the first accumulated number of times is divided by the total number of times; and determining a corresponding target visual effect from the visual effect library based on the target effect library index.
[0121] According to one or more embodiments of this disclosure, determining the corresponding target visual effect based on the first accumulated count includes: sending the first accumulated count to the server and obtaining a second accumulated count fed back by the server, wherein the second accumulated count is the accumulated count of trigger commands for the target component input by users in the target live broadcast room within a second duration; and determining the corresponding target visual effect based on the second accumulated count.
[0122] Secondly, according to one or more embodiments of this disclosure, a component triggering device for live sports broadcasting is provided, comprising:
[0123] The receiving module is used to receive live messages from the target live room, wherein the live messages represent live events that occur in the live video played in the live room;
[0124] The display module is used to determine the corresponding target component based on the live broadcast message of the target live broadcast room, and to trigger the target component within the live broadcast room page of the target live broadcast room. The target component is used to implement the first interactive function for the target live broadcast event that occurs in the live broadcast video played in the target live broadcast room.
[0125] According to one or more embodiments of this disclosure, when the display module determines the corresponding target component based on the live stream message of the target live stream room, it is specifically configured to: obtain an event identifier in the live stream message of the target live stream room in real time, the event identifier including a first field and a second field, wherein the first field represents the live stream type corresponding to the live stream video; the second field characterizes a live stream event based on the live stream type; and determine the corresponding target component based on the event identifier.
[0126] According to one or more embodiments of this disclosure, the receiving module is further configured to: receive live room messages of the target live room, the live room messages being used to characterize the number of times the second interactive function is triggered within the target live room; when the display module determines the corresponding target component based on the live room messages of the target live room, it is specifically configured to: determine the corresponding target component based on the live room messages and the live room messages of the target live room.
[0127] According to one or more embodiments of this disclosure, the display module is further configured to: determine the triggering timing of the target component within the live stream page of the target live stream room based on the live stream message of the target live stream room.
[0128] According to one or more embodiments of this disclosure, when the display module triggers the target component within the live stream page of the target live stream room, it is specifically configured to: in response to a triggering operation on the target component, execute a corresponding first interactive function; wherein, the first interactive function includes a special effects function or a resource transfer function, the special effects function being used to display visual effects on the live stream page; the resource transfer function being used to transfer virtual resources to the target user.
[0129] According to one or more embodiments of this disclosure, when the first interactive function includes a special effects function, the display module, in response to a trigger operation for the target component, executes the corresponding first interactive function, specifically for: obtaining a first cumulative number of times, wherein the first cumulative number of times is the cumulative number of times a trigger instruction for the target component is received during the display phase of the target component; determining the corresponding target visual effect based on the first cumulative number of times, and displaying the target visual effect on the live streaming page.
[0130] According to one or more embodiments of this disclosure, when the display module determines the corresponding target visual effect based on the first accumulated number of times, it is specifically configured to: obtain a preset visual effect library, wherein the visual effect library includes at least two ordered candidate visual effects, and the visual hue of each candidate visual effect changes continuously with the effect library index of each candidate visual effect; determine a target effect library index based on the first accumulated number of times and the total number of candidate visual effects in the visual effect library, wherein the target effect library index is the remainder when the first accumulated number of times is divided by the total number of times; and determine the corresponding target visual effect from the visual effect library based on the target effect library index.
[0131] According to one or more embodiments of this disclosure, when the display module determines the corresponding target visual effect based on the first accumulated number of times, it is specifically configured to: send the first accumulated number of times to the server and obtain a second accumulated number of times fed back by the server, wherein the second accumulated number of times is the accumulated number of trigger commands for the target component input by the user in the target live room within a second duration; and determine the corresponding target visual effect based on the second accumulated number of times.
[0132] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, including: a processor, and a memory communicatively connected to the processor;
[0133] The memory stores computer-executed instructions;
[0134] The processor executes computer execution instructions stored in the memory to implement the component triggering method for live streaming as described in the first aspect and various possible designs of the first aspect.
[0135] Fourthly, according to one or more embodiments of this disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, which, when executed by a processor, implement the component triggering method for live streaming as described in the first aspect and various possible designs of the first aspect.
[0136] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the component triggering method for live streaming as described in the first aspect and various possible designs of the first aspect.
[0137] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0138] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0139] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for triggering components for live streaming, the method comprising: The application is applied to a terminal device, comprising: receiving a live message of a target live room sent by a server, the live message representing a live event occurring in a live video played in the live room, the live message being determined based on a video picture of the live video; determining a corresponding target component according to the live message of the target live room, and triggering the target component to be displayed on a live room page of the target live room, the target component being used to realize a first interaction function for the target live event occurring in the live video played in the target live room; The method further comprises: in response to a triggering operation of a user on the target component, obtaining a first cumulative number, the first cumulative number being a cumulative number of triggering instructions of the user on the target component received in a display stage of the target component; obtaining a preset visual effect library, wherein the visual effect library comprises at least two ordered candidate visual effects, and the visual tone of each candidate visual effect changes continuously with the index of the effect library of each candidate visual effect; determining a target index of the effect library according to the first cumulative number and the total number of candidate visual effects in the visual effect library, the target index of the effect library being the remainder of the first cumulative number divided by the total number; determining a corresponding target visual effect from the visual effect library based on the target index of the effect library; displaying the target visual effect on the live room page, so that a visual effect with continuously changing color is presented in the process of continuously triggering the target component.
2. The method of claim 1, wherein, According to the live message of the target live room, determining a corresponding target component comprises: real-time obtaining an event identifier in the live message of the target live room, the event identifier comprising a first field and a second field, wherein the first field represents a live type corresponding to the live video; and the second field represents a live event based on the live type; determining a corresponding target component according to the event identifier.
3. The method of claim 1, wherein, The method further comprises: receiving a live room message of the target live room, the live room message being used to represent a number of times of triggering a second interaction function in the target live room; According to the live message of the target live room, determining a corresponding target component comprises: determining a corresponding target component according to the live message and the live room message of the target live room.
4. The method of claim 2, wherein, The method further comprises: determining a timing of displaying the target component on the live room page of the target live room according to the live room message of the target live room.
5. The method of claim 1, wherein, The method further comprises: sending the first cumulative number to a server, and obtaining a second cumulative number fed back by the server, the second cumulative number being a cumulative number of triggering instructions of the target component input by a user in the target live room within a second time length; determining a corresponding target visual effect according to the second cumulative number.
6. A component triggering apparatus for live broadcast, characterized by, The application is applied to a terminal device, comprising: a receiving module, configured to receive a live message of a target live room sent by a server, the live message representing a live event occurring in a live video played in the live room, the live message being determined based on a video picture of the live video; The display module is configured to determine a corresponding target component according to the live message of the target live room, and trigger the target component to be displayed on a live room page of the target live room, so as to realize a first interaction function for a target live event occurring in a live video played in the target live room. The display module is further configured to: In response to a trigger operation of a user on the target component, a first cumulative number of times is obtained, the first cumulative number of times being a cumulative number of times of trigger instructions of the user on the target component received in a display stage of the target component; a preset visual effect library is obtained, wherein the visual effect library includes at least two ordered candidate visual effects, and a visual color tone of each candidate visual effect continuously changes with an effect library index of each candidate visual effect; a target effect library index is determined according to the first cumulative number of times and a total number of candidate visual effects in the visual effect library, the target effect library index being a remainder of the first cumulative number of times divided by the total number; a corresponding target visual effect is determined from the visual effect library based on the target effect library index; and the target visual effect is displayed on the live room page, so that a visual effect with continuously changing color is presented in a process of continuously triggering the target component.
7. An electronic device, comprising: The method comprises: a processor, and a memory connected to the processor in communication; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the component triggering method for live streaming according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the component triggering method for live streaming according to any one of claims 1 to 5 is implemented.
9. A computer program product, characterised in that, The computer program is executed by the processor to implement the component triggering method for live streaming according to any one of claims 1 to 5.
Citation Information
Patent Citations
Live broadcast match interaction method, electronic equipment, storage medium and system
CN110505521A
Live broadcast service control method and device, computer readable medium and electronic equipment
CN111147887A
Audio interaction method and device in live streaming, computer equipment and storage medium
CN113453030A
Video playing method, terminal, device, electronic equipment, medium and program product
CN115022701A
Virtual item receiving method and device, electronic equipment and storage medium
CN115253308A