Method, device, equipment, medium and product for processing task for live room
By adding component loading tasks to a queue in the live stream and controlling their execution based on swipe interaction detection, the problem of resource waste and increased display time caused by component loading in the live stream interface is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-12-17
- Publication Date
- 2026-06-19
AI Technical Summary
In the live streaming interface, when users swipe to switch between live streaming rooms, the loading process of components leads to a waste of computing resources and an increase in the first screen display time, which affects the user experience.
After a user enters the target live stream room, the component loading task is added to the task execution queue, and the execution of the loading task is controlled based on the detection of swipe interaction to reduce unnecessary component loading.
By reducing unnecessary component loading, the waste of computing resources is reduced, the first screen display time is shortened, and the user experience is improved.
Smart Images

Figure CN122240248A_ABST
Abstract
Description
Technical Field
[0001] The embodiments disclosed herein generally relate to the field of live streaming application technology, and specifically to methods, apparatus, devices, media, and products for processing tasks for live streaming rooms. Background Technology
[0002] Currently, live streaming technology is developing rapidly. Live streaming is indispensable in e-commerce, education, entertainment, and other fields. The development of live streaming platforms needs to consider the user experience during viewing and interaction; therefore, improving interactivity in live streaming scenarios has become a key research focus for many developers. Developers are committed to continuously enhancing the user experience by improving the efficiency of live streaming interaction.
[0003] With the continuous development of live streaming scenarios, improving the user's interactive experience within the live streaming interface has become particularly important, with enhancing interaction efficiency being a primary development direction. A smooth viewing and switching experience is crucial for users, not only improving the effectiveness of entertainment or learning but also significantly enhancing the overall user experience. Summary of the Invention
[0004] Embodiments of this disclosure provide a method, apparatus, device, medium, and product for processing tasks for a live streaming room.
[0005] According to a first aspect of this disclosure, a method for processing tasks for a live streaming room is provided. The method includes, in response to entering a target live streaming room, obtaining loading tasks for a set of components related to the target live streaming room, and further includes adding the loading tasks for the set of components to a task execution queue for the target live streaming room. The method also includes controlling the execution of the loading tasks in the task execution queue based on detection of swiping interactions within the target live streaming room.
[0006] According to a second aspect of this disclosure, an apparatus for processing tasks for a live streaming room is provided. The apparatus includes a task acquisition module configured to acquire, in response to entering a target live streaming room, a set of loading tasks related to the target live streaming room; a task addition module configured to add loading tasks for the set of components to a task execution queue for the target live streaming room; and a task execution control module configured to control the execution of the loading tasks in the task execution queue based on the detection of sliding interactions within the target live streaming room.
[0007] In a third aspect of this disclosure, an electronic device is provided, including at least one processor; and a storage device for storing at least one program, which, when executed by the at least one processor, causes the at least one processor to implement the method according to the first aspect of this disclosure.
[0008] In a fourth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the method according to a first aspect of this disclosure.
[0009] In a fifth aspect of this disclosure, a computer program product is provided. This computer program product includes a computer program that, when executed by a processor, implements the method according to a first aspect of this disclosure.
[0010] It should be understood that the content described in this section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0011] The above and other objects, features and advantages of this disclosure will become more apparent from the accompanying drawings, in which like reference numerals generally denote like parts.
[0012] Figure 1 The illustration shows a schematic diagram of an example environment in which some embodiments of the present disclosure may be implemented;
[0013] Figure 2 The illustration shows a schematic diagram of an example method for processing tasks for a live streaming room according to some embodiments of the present disclosure;
[0014] Figure 3 The illustration shows an example process of loading a set of components according to some embodiments of the present disclosure;
[0015] Figure 4 The illustration shows an example process of loading multiple sets of components according to some embodiments of the present disclosure;
[0016] Figure 5 The illustration shows a schematic diagram of an example of a live stream being watched according to some embodiments of the present disclosure;
[0017] Figure 6 The illustration shows a schematic diagram of an example of page swiping interaction according to some embodiments of the present disclosure;
[0018] Figure 7 The illustration shows a schematic diagram of an example of page swiping interaction according to some embodiments of the present disclosure;
[0019] Figure 8 The illustration shows a schematic diagram of an example of page swiping interaction stopping according to some embodiments of the present disclosure;
[0020] Figure 9The illustration shows a schematic block diagram of an apparatus for processing tasks for a live streaming room according to some embodiments of the present disclosure;
[0021] Figure 10 A schematic block diagram of an example device suitable for implementing various embodiments of the present disclosure is illustrated.
[0022] In the various figures, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed Implementation
[0023] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0024] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0025] For example, upon receiving a user's proactive request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0026] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0027] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0029] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0030] Typically, when watching live video on a terminal device, users enter the first scene and swipe to switch between live rooms within that scene. For each live room, component tasks are loaded sequentially in batches. Once a batch of tasks is loaded, it cannot be canceled. Furthermore, certain components within a live room, such as the top three rows of components, rely on network API responses for display. If the user is already swiping to the next live room, rendering will still occur, wasting significant computing resources. Additionally, the component loading process and the initial screen display tasks compete for resources, increasing the initial screen display time and resulting in a poor user experience.
[0031] To address this, embodiments of this disclosure propose a method for processing tasks related to a live streaming room. In this method, after a user enters a target live streaming room, the computing device can first acquire loading tasks for a set of components related to the target live streaming room. Then, the computing device can add these loading tasks to a task execution queue for the target live streaming room. Furthermore, the computing device controls the execution of the loading tasks in the task execution queue based on the detection of swipe interactions within the target live streaming room. This method, by placing loading tasks in a queue and determining whether to execute them based on swipe interaction detection, reduces component loading in swipe scenarios, thereby reducing unnecessary overhead, shortening the initial screen display duration, providing performance improvements, and enhancing the user experience.
[0032] The embodiments of this disclosure will now be described in further detail with reference to the accompanying drawings. Figure 1 The illustration shows an example environment in which the devices and / or methods of embodiments of this disclosure may be implemented. In environment 100, computing device 102 can control the display of a live streaming room and the loading of components within the live streaming room.
[0033] Examples of computing device 102 include, but are not limited to, personal computers, server computers, handheld or laptop devices, mobile devices (such as mobile phones, personal digital assistants (PDAs), media players, etc.), multiprocessor systems, consumer electronics, minicomputers, mainframe computers, and distributed computing environments that include any of the above systems or devices.
[0034] like Figure 1As described, when a user wants to watch content in a live stream, the user can enter the first scene 104 through computing device 102. The first scene 104 can be an in-stream scene, specifically referring to the scene where the user enters the live stream after triggering the live stream entry. In this scene, the user can switch between different live streams by swiping; the live streams swiped to are those already entered. The video stream of the current live stream can be displayed in real-time, as can interactive information such as real-time comments and gift interactions. Additionally, the user can enter the first scene through a second scene (e.g., an out-of-stream scene). The second scene refers to the situation where the user can see live stream information push notifications within the application, but has not yet entered the live stream; it only presents a preview of the live stream, requiring the user to click on the preview information or specific controls to enter the live stream.
[0035] After entering the first scene 104 in the computing device 102, a target live streaming room 106 can be displayed. Then, when displaying the target live streaming room 106, the computing device 102 needs to obtain the component loading tasks of the target live streaming room 106. For example, a component loading task 110 for a group of components 108 in the target live streaming room 106. Here, a component is a presentation unit of a functional body, which includes user interface elements and functions.
[0036] In some embodiments, the target live streaming room 106 includes multiple sets of components, where one set of components 108 is one of the multiple sets of components. The multiple sets of components have different loading priorities. For example, if a set of components 108 has the highest priority, the loading task for that set of components is executed first; if a set of components 108 has the lowest priority, the loading task for that set of components is executed last. Therefore, the loading order of the components can be determined according to their different loading priorities. In some embodiments, one set of components 108 is all the components to be loaded in the target live streaming room. The above examples are merely for describing this disclosure and are not intended to limit this disclosure. Any suitable method can be used to load the components.
[0037] When it is determined that a set of components 108 needs to be loaded, the computing device 102 does not directly execute the loading task 110 for that set of components 108, but instead adds the loading task 110 to the task execution queue 112 for the target live room 106. Additionally, if the target live room has multiple sets of components, these sets can be added to the task execution queue 112 sequentially according to loading priority. In one example, the task execution queue 112 can be a first-in, first-out queue. Therefore, loading tasks added to the task execution queue 112 first are executed first, and loading tasks added later are executed only after the previous loading tasks have been completed.
[0038] After adding loading task 110 to task execution queue 112, computing device 102 needs to perform sliding interaction detection 114 for the target live stream room to further determine whether it is currently in a sliding scene in the first scene. This sliding interaction detection 114 can be implemented using a built-in sliding detection method in computing device 102. Then, the execution of loading task 112 in task execution queue 112 is controlled based on the detection result of sliding interaction detection 114.
[0039] In some embodiments, if the user is in an interactive state, the component's loading task 110 waits in the task execution queue 112. If the user is in a swipe-to-end interactive state, it is necessary to further determine whether the live stream has changed, for example, whether the current live stream is still the previously entered target live stream. If the live stream has changed, the loading task 110 for the target live stream 108 can be cleared from the task execution queue. If the live stream has not changed, the loading task 110 in the task execution queue 112 can be retrieved and executed.
[0040] This method solves the problem of loading component functions during user scrolling. By placing loading tasks in a queue and determining whether to execute them based on the detection of scrolling interactions, the loading of components in scrolling scenarios is reduced, thereby reducing unnecessary overhead. It also reduces the duration of the first screen display, providing performance improvements and enhancing the user experience.
[0041] The above combination Figure 1 The following is a schematic diagram illustrating an example environment in which some embodiments of this disclosure may be implemented, in conjunction with... Figure 2 A schematic diagram illustrating an example method for processing tasks for a live streaming room according to some embodiments of the present disclosure. Figure 2 The method in can be derived from Figure 1 The computing device 102 or any suitable computing device in the system shall execute the test.
[0042] like Figure 2 As shown, in example method 200, at box 202, in response to entering the target live stream 106, computing device 102 acquires a loading task 110 of a set of components 108 related to the target live stream 106. In the first scenario 104, the live stream can be swiped to switch, and the live stream swiped to is the one that has already been entered. Therefore, in the first scenario, the video stream and live stream information of the live stream displayed on the display interface of computing device 102 are pulled from the live stream in real time. For ease of description, this target live stream can also be referred to as the first live stream.
[0043] In some embodiments, a user can enter the target live stream room 106 of the first scene 104 by clicking on the preview information corresponding to the target live stream room in the second scene displayed on the interface of the computing device 102. For example, the preview status of the target live stream room is displayed in the second scene. Alternatively, the user can also enter the live stream room 106 of the first scene 104 by clicking on some controls presented on the display interface of the computing device 102. The above examples are only used to describe this disclosure and are not intended to specifically limit this disclosure. Those skilled in the art can enter the live stream room in any suitable manner.
[0044] After entering the target live room 106 of the first live streaming scenario, the computing device 102 obtains a loading task 110 for a set of components 108 for the target live room 106. By executing the loading task of this set of components, some information of the live room can be loaded into the live room, such as some information related to the live room that needs to be displayed, such as the comment information in the live room.
[0045] In some instances, components in the target live stream 106 are divided into multiple groups based on their importance, with each group having a priority level. Different priorities determine the loading order of components within that group. For example, if the components for the target live stream are divided into three groups, each group can be called a component layer, such as the Duringload component layer, the Normal component layer, and other component layers. The Duringload component layer displays the most important live stream information, such as avatar information, and therefore can be assigned the highest priority; the Normal component layer displays relatively important live stream information, such as the live stream's position in the layout, and therefore can be assigned a medium priority; the other component layers can be used to display less important live stream information, and therefore can be assigned the lowest priority. The priority determines the loading order of components within that group. Additionally, during the swipe-to-swipe transition to the live stream in the first scene, the media stream of the swipe-to-swipe live stream is already being fetched.
[0046] Then, at box 204, computing device 102 adds a loading task for a set of components to the task execution queue for the target live stream. To avoid executing loading tasks in a sliding scene, the loading tasks to be executed can be added to the task execution queue 112 for the target live stream 106 first. Among them, the loading task 110 for a set of components of the target live stream can enter the queue to wait for loading according to a predetermined priority order, or it can directly enter the task execution queue to wait for loading.
[0047] In some embodiments, when the target live streaming room 106 has multiple sets of components, the execution of their loading tasks is also sequential. Therefore, the loading tasks for a set of components in the target live streaming room can be placed into the task execution queue according to their priority. For example, the loading tasks of the highest priority set of components are first placed into the task execution queue 112, then the loading tasks of the medium priority set of components are placed into the task execution queue 112, and finally the loading tasks of the lowest priority set of components are placed into the task execution queue 112.
[0048] Finally, at box 206, computing device 102 controls the execution of loading tasks in the task execution queue based on the detection of sliding interactions targeting the target live stream. For loading tasks in the task execution queue, it is also necessary to further detect whether there are sliding interactions targeting the live stream in the first scene. The execution of the loading task is determined based on the presence or absence of sliding interactions.
[0049] In some embodiments, during the execution of loading tasks in the task execution queue, computing device 102 determines whether there is a swipe operation interaction for the target live stream. At this time, computing device 102 further determines whether the user intends to watch the content of the live stream or is currently browsing and may not necessarily be watching the content. If computing device 102 determines that there is a swipe operation interaction for the target live stream 106, it indicates that the user is performing a swipe operation. Therefore, the user does not necessarily need to stay in the live stream, and to reduce unnecessary information loading, computing device 102 can keep the loading task in the task execution queue to pause its execution. If computing device 102 determines that there is no swipe operation interaction for the target live stream, it indicates that the user is not swiping the live stream but may want to view its content, requiring further loading of the live stream information. Therefore, computing device 102 retrieves a loading task from the task execution queue. Then, computing device 102 executes the loading task to load the set of components into the target live stream 106. Additionally, computing device 102 also obtains data that can be applied to the set of components by loading the live stream information. Then, the information related to the group of components in the live room information is loaded into the group of components for display on the user interface of the computing device, for example, the interface of the target live room in the application running on the computing device 102.
[0050] In some embodiments, upon detecting a swipe interaction, if the swipe interaction subsequently stops, it indicates that the user wants to enter the live stream room. For ease of description, the live stream room to be entered after the swipe interaction can also be referred to as the second live stream room. At this time, the computing device 102 can further determine whether the second live stream room is the target live stream room. For example, the computing device 102 can obtain the identifier of the live stream room after the swipe interaction stops and match it with the previously stored identifier of the target live stream room. The identifier of the live stream room can be represented by any suitable information used to distinguish different live stream rooms. For example, a live stream room can be identified by its live stream room number and badge. The above examples are merely for describing this disclosure and are not intended to specifically limit this disclosure. Any suitable information can be used to identify the live stream room.
[0051] If computing device 102 determines that the second live stream is not the target live stream, it indicates that the user has entered a new live stream after the swipe interaction. For example, the live stream identifiers of the two live streams are inconsistent or different. At this time, the user no longer views the information of the target live stream 108, so there is no need to execute the loading task of the component corresponding to the target live stream 108. At this time, computing device 102 cancels the loading task 110 in the task execution queue 112. It can be seen that through the above operation, unnecessary component loading tasks can be reduced, the waste of computing and communication resources can be reduced, resource utilization can be improved, resource competition with media streams can be avoided, and the user experience can be improved.
[0052] If computing device 102 determines that the second live stream is the target live stream 106, it can retrieve a loading task 110 from the task execution queue 112 for the target live stream 106. For example, by comparing the identifiers of the two live streams, computing device 102 can determine that they are the same live stream, indicating that the user has not swiped to another live stream but wants to continue watching in the target live stream 106. At this time, computing device 102 can continue to execute loading task 110 to load a set of components into the target live stream 106. Additionally, computing device 102 can also retrieve live stream information for the target live stream while executing the component loading task. For example, some statistical information, comments, gift information, etc. related to the live stream. Then, computing device 102 applies the information associated with the set of components from the live stream information to the set of components.
[0053] In some embodiments, this group of components is one of multiple groups of components for a target live streaming room; for ease of description, this group of components may also be referred to as the first group of components. The multiple groups of components for the live streaming room have different loading priorities. The loading task for this group of components may also be referred to as the first loading task.
[0054] In some embodiments, computing device 102 may also acquire a second loading task for a second group of components among multiple groups of components, where the loading priority of the second group of components is lower than that of the first group of components. Then, computing device 102 also adds the second loading task for the second group of components to a task execution queue. Computing device 102 further determines whether there is a sliding interaction for the target live stream. If a sliding interaction still exists, the second loading task is kept in the task execution queue to pause its execution. When the sliding interaction stops, similar to the above procedure for the first group of components, the determination of whether to execute the second loading task for the second group of components is based on whether they are still in the same live stream. If they are not in the same live stream, the loading task for the second group of components is no longer executed. If they are in the same live stream, the loading task for that second group of components is acquired from the task execution queue, and the second group of components is loaded into the target live stream 106.
[0055] In some embodiments, if multiple sets of components or all components are loaded for the target live stream, the content of some predetermined components may not be displayed on the live stream interface at different times, but rather simultaneously. For example, the computing device 102 may first determine a set of predetermined components, and only after each component in the set of predetermined components has obtained the corresponding information will they be uniformly displayed on the live stream interface. This set of predetermined components may come from one set of components in multiple sets of components, or from components in multiple different sets of components. Only after the components from multiple different sets have been loaded will the set of predetermined components be uniformly displayed. At this time, the computing device 102 also obtains the live stream data corresponding to a set of predetermined components that are to be displayed simultaneously in the multiple sets of components, and then displays the set of predetermined components and their corresponding data in the target live stream.
[0056] This method places loading tasks into a queue and determines whether to execute them based on the detection of swipe interactions. This reduces component loading in swipe scenarios, thereby reducing unnecessary overhead, shortening the duration of the first screen display, providing performance improvements, and enhancing the user experience.
[0057] The above combination Figure 2 A schematic diagram is described below illustrating an example method for processing tasks targeting a live streaming room, according to some disclosed embodiments. The following is in conjunction with... Figure 3 A schematic diagram illustrating an example process of loading multiple sets of components according to some embodiments of the present disclosure. Figure 3 Example processes can be derived from Figure 1 The computing device 102 shown or any suitable device may be used for execution.
[0058] Example 300 describes the loading process for a set of components. At box 302, clicking "Enter Room" or entering the room when swiping stops causes the user to enter a live stream room. Then, at box 304, computing device 102 stores the loading tasks for the set of components in a main queue for queuing and executing component loading. At box 330, computing device 102 stores the loading tasks in the main queue. In one example, when there are multiple sets of components for the live stream room, this set of components is one of them. In another example, there is only one set of components for the live stream room, for example, this set of components includes all the components of the live stream room. Then, at box 306, computing device 102 determines whether it is a swiping scene. If it is a swiping scene 314, it waits at box 316.
[0059] If the scenario is determined to be non-sliding, at box 308, computing device 102 loads components in the next run loop. Then, at box 310, the first screen interface returns, and the computing device obtains the live stream information and begins the task of displaying the content on the screen. At this point, the task can be stored in the main queue for execution. At box 328, computing device 102 stores the task in the main queue. Next, at box 312, computing device 102 determines whether it is a sliding scenario. If it is a sliding scenario, a waiting operation is performed at box 318. If it is not a sliding scenario, at box 332, the loading task is retrieved from the task execution queue in the next run loop, and components are loaded in the order they were executed. If at box 320, computing device 102 determines that the sliding has stopped, then at box 322 it continues to determine whether to enter the next live stream. If the result is yes, it indicates that a different live stream has been entered, and at box 324, the items stored in the main queue, such as the loading task, are cancelled. If the determination is negative, the registered items in the main queue are executed sequentially at box 326.
[0060] The above combination Figure 3 A schematic diagram illustrating an example process of loading a set of components according to some embodiments of the present disclosure is provided below. Figure 4 A schematic diagram illustrating an example process of loading multiple sets of components according to some embodiments of the present disclosure. Figure 4 Example processes can be derived from Figure 1 The computing device 102 shown or any suitable device may be used for execution.
[0061] like Figure 4 Example 400 illustrates the process of loading multiple groups of components, each group representing a component layer. For instance, in this example, components for a live streaming room could be assigned to the Duringload component layer, the Normal component layer, and other component layers. Example 400 is merely for illustrating this disclosure; the components for a live streaming room can be divided into any suitable number of layers. The loading process is similar to... Figure 4The example described is similar. At box 402, clicking "Enter Room" or entering the room when the swipe stops causes the user to enter a live streaming room. Then, at box 404, computing device 102 stores the loading task for the Duringload component in the main queue for queuing and executing component loading. At box 446, computing device 102 stores the loading task in the main queue. Then, at box 406, computing device 102 determines whether it is a swipe scene. If it is a swipe scene 428, it waits at box 430.
[0062] If the scenario is determined to be non-sliding, at box 408, computing device 102 loads the Duringload component layer in the next run loop. Then, at box 410, the loading tasks for the Normal component layer are added to the main queue for execution, and at box 448, computing device 102 adds the loading tasks to the main queue. Then, at box 412, computing device 102 determines whether it is a sliding scenario. If it is a sliding scenario 428, it waits at box 432, keeping the loading tasks in the queue. If the scenario is determined to be non-sliding, at box 414, computing device 102 loads the Normal component layer in the next run loop. Then, at box 416, the loading tasks for other component layers are added to the main queue for execution, and at box 450, the loading tasks are added to the main queue. Then, at box 418, computing device 102 determines whether it is a sliding scenario. If it is a sliding scene (428), then wait at box 434, while continuing to queue the loading task in the task execution queue. If it is determined to be a non-sliding scene, at box 420, computing device 102 loads other component layers in the next run loop.
[0063] Then, at box 422, the first screen interface returns, and computing device 102 obtains the live room information and begins the on-screen display task. At this point, the task can be stored in the main queue for execution. Next, at box 424, computing device 102 continues to determine whether it is a sliding scene. If it is a sliding scene, a waiting operation is performed at box 436. If it is not a sliding scene, at box 426, in the next running loop, the Duringload component layer loading, Normal component layer loading, other component layer loading, and on-screen display task are executed sequentially, according to the first-in-first-out order in the queue. If at box 438, computing device 102 determines that the sliding has stopped, it continues to determine at box 440 whether to enter the next live room. If the result is yes, it indicates that a different live room has been entered, and the main queue stored items, such as loading tasks, are canceled at box 442. If the result is no, the stored items in the main queue are executed sequentially at box 444.
[0064] The following is combined with Figures 5-8 An example describing the loading of a live stream room. First... Figure 5 The illustration shows an example of a live stream being viewed according to some embodiments of the present disclosure. In example 500, an interface 502 displays a live stream for a streamer, including multiple components such as a user comment section 504, a subscription component 508, a comment component 510, a gift component 512, a forwarding component 514, and a streamer information display component 516, as well as a video stream 506 of the live stream being viewed by the user. Some of the multiple components are operable components, such as the subscription component 508, the comment component 510, the gift component 512, and the forwarding component 214. For example, these components in example 500 may be located in the Duringload component layer, the Normalload component layer, or other component layers, respectively.
[0065] For this display interface 500, the changes to the interface after the user performs a swipe operation are further described below. Figure 6 The illustration shows an example of a page swiping interaction according to some embodiments of the present disclosure. Example 600 is a continuation of Example 500. For example, on interface 602, the user adds a swiping operation 606 to switch live streams. While in the swiping scenario, the comment section, subscription component, comment component, gift component, and share component already on the screen follow the swiping. At this time, when the next live stream begins to appear on the swiping interface, the loading of the video stream 604 for that live stream begins. At this time, information related to the live stream, such as components about the broadcaster, is not loaded. Therefore, the user can quickly watch the video stream of the next live stream. At this time, the computing device stores the relevant live stream components of the target window in the main queue for loading. Figure 7 Further illustrations are provided of examples of page swiping interactions according to some embodiments of the present disclosure. Example 700 is a continuation of Example 600, in which a new live stream room is displayed under the control of user swiping operation 106. Since the swiping has not stopped, only information about the live stream video stream 604 is displayed. Because it is in a swiping scenario, the components for the live stream room are still in the task execution queue, and the component loading task has not been executed.
[0066] The following is combined with Figure 8 A schematic diagram illustrating an example of stopping a swipe interaction according to some embodiments of the present disclosure is provided. Example 800 is a continuation of Example 700. In Example 800, after the user stops swiping, interface 802 displays a live stream host information component 804, a live stream online user component 806, a live stream audience component 808, a subscription component 812, a comment component 814, a gift component 816, a forwarding component 810, and a live video stream 604, etc.
[0067] In Example 800, after determining that the sliding state is in a stopped state, the component loading tasks stored in the main queue are loaded, thereby loading components such as the broadcaster information component 804, the live room online user component 806, the live room audience component 808, the subscription component 812, the comment component 814, the gift component 816, and the forwarding component 810 onto the live room interface. Additionally, some pre-defined components can be displayed on the screen all at once after loading, for example, loading and displaying all the components above the live room.
[0068] Figure 9 The illustration shows a schematic block diagram of an apparatus for processing tasks for a live streaming room, according to some embodiments of the present disclosure. Figure 9 As shown, the device 900 includes a component loading task acquisition module 902, configured to acquire a set of component loading tasks related to the target live streaming room in response to entering the target live streaming room; a task addition module 904, configured to add the loading tasks for the set of components to the task execution queue for the target live streaming room; and a task execution control module 906, configured to control the execution of the loading tasks in the task execution queue based on the detection of the sliding interaction for the target live streaming room.
[0069] In some embodiments, the task execution control module 906 includes: a sliding interaction determination module, configured to determine whether there is a sliding interaction for the target live room; and a maintenance module, configured to maintain the loading task in the task execution queue to suspend the execution of the loading task in response to determining that there is a sliding interaction for the target live room.
[0070] In some embodiments, the task execution control module 906 further includes: a first loading task acquisition module, configured to acquire a loading task from the task execution queue in response to determining that there is no sliding interaction for the target live room; and a first component loading module, configured to execute the loading task to load a set of components into the target live room.
[0071] In some embodiments, where the target live room is a first live room, the device 900 further includes: a live room entry module configured to enter a second live room in response to the swiping interaction stopping; a live room determination module configured to determine whether the second live room is the target live room; and a loading task cancellation module configured to cancel the loading task in the task execution queue in response to the second live room not being the target live room.
[0072] In some embodiments, the apparatus 900 further includes: a second loading task acquisition module, configured to acquire a loading task from a task execution queue in response to the second live room being the target live room; and a second component loading module, configured to execute the loading task to load a set of components into the target live room.
[0073] In some embodiments, the device 900 further includes: a live room information acquisition module configured to acquire live room information for a target live room; and a data application module configured to apply data information related to the live room to a set of components based on the live room information.
[0074] In some embodiments, a set of components is the first set of components among multiple sets of components for a target live streaming room, and the multiple sets of components have different loading priorities.
[0075] In some embodiments, the loading task is a first loading task, and the apparatus 900 further includes: a second task acquisition module configured to acquire a second loading task for a second group of components among a plurality of groups of components, wherein the loading priority of the second group of components is lower than that of the first group of components; a second task addition module configured to add the second loading task for the second group of components to a task execution queue; and a second maintenance module configured to maintain the second loading task in the task execution queue to suspend the execution of the second loading task in response to determining that there is a sliding interaction for the target live room.
[0076] In some embodiments, the apparatus 900 further includes: an execution module configured to sequentially execute loading tasks for multiple sets of components; a display determination module configured to determine a predetermined set of components to be displayed simultaneously among the multiple sets of components and their corresponding data; and a display module configured to display a predetermined set of components and their corresponding data in a live broadcast room.
[0077] In some embodiments, the apparatus 900 further includes a media stream acquisition module, configured to acquire a media stream corresponding to the target live stream based on the identifier of the target live stream.
[0078] Figure 10 A schematic block diagram of an example device 1000 that can be used to implement embodiments of the present disclosure is shown. Figure 1 The computing device 102 can be implemented using device 1000. As shown, device 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to computer program instructions stored in read-only memory (ROM) 1002 or loaded from storage unit 1008 into random access memory (RAM) 1003. The RAM 1003 can also store various programs and data required for the operation of device 1000. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via bus 1004. Input / output (I / O) interface 1005 is also connected to bus 1004.
[0079] Multiple components in device 1000 are connected to I / O interface 1005, including: input unit 1006, such as keyboard, mouse, etc.; output unit 1007, such as various types of monitors, speakers, etc.; storage page 1008, such as disk, optical disk, etc.; and communication unit 1009, such as network card, modem, wireless transceiver, etc. Communication unit 1009 allows device 1000 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0080] The various processes and procedures described above, such as methods 200 and processes 300 to 400, can be executed by processing unit 1001. For example, in some embodiments, methods 200 and processes 300 to 400 can be implemented as computer software programs tangibly contained in a machine-readable medium, such as storage unit 1008. In some embodiments, part or all of the computer program can be loaded and / or installed on device 1000 via ROM 1002 and / or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by CPU 1001, one or more actions of the example methods 200 and processes 300 to 400 described above can be performed.
[0081] This disclosure can be a method, apparatus, system, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of this disclosure.
[0082] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0083] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0084] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute 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 a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0085] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0086] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0087] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0088] 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 the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive 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, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0089] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical applications, or technical improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for processing tasks targeting a live streaming room, comprising: In response to entering the target live streaming room, a loading task is obtained for a set of components related to the target live streaming room; Add the loading task for the set of components to the task execution queue for the target live room; as well as Based on the detection of sliding interactions in the target live stream, the execution of the loading task in the task execution queue is controlled.
2. The method according to claim 1, wherein controlling the execution of the loaded task in the task execution queue comprises: Determine whether the sliding interaction exists for the target live stream room; In response to determining that the sliding interaction exists for the target live room, the loading task is kept in the task execution queue to suspend the execution of the loading task.
3. The method according to claim 2, wherein controlling the execution of the loaded task in the task execution queue further comprises: In response to determining that there is no sliding interaction for the target live stream, the loading task is retrieved from the task execution queue; as well as Execute the loading task to load the set of components into the target live streaming room.
4. The method according to claim 2, wherein the target live streaming room is a first live streaming room, and the method further includes: In response to the swiping interaction stopping, enter the second live broadcast room; Determine whether the second live streaming room is the target live streaming room; as well as In response to the fact that the second live streaming room is not the target live streaming room, the loading task in the task execution queue is cancelled.
5. The method according to claim 4, further comprising: In response that the second live streaming room is the target live streaming room, the loading task is retrieved from the task execution queue; as well as Execute the loading task to load the set of components into the target live streaming room.
6. The method according to claim 5, further comprising: Obtain the live stream information for the target live stream; Based on the live stream information, data related to the live stream is applied to the set of components.
7. The method according to claim 2, wherein the set of components is the first set of components among multiple sets of components for the target live streaming room, and the multiple sets of components have different loading priorities.
8. The method of claim 7, wherein the loading task is a first loading task, and the method further comprises: Obtain a second loading task for the second group of components among the multiple groups of components, wherein the loading priority of the second group of components is lower than that of the first group of components; Add the second loading task for the second group of components to the task execution queue; as well as In response to determining that the sliding interaction exists for the target live room, the second loading task is kept in the task execution queue to suspend the execution of the second loading task.
9. The method according to claim 7, further comprising: Execute the loading tasks for the multiple groups of components sequentially; Determine a set of predetermined components to be displayed simultaneously from among the multiple sets of components, and their corresponding data; as well as The set of predetermined components and their corresponding data are displayed in the live broadcast room.
10. The method according to claim 1, further comprising: Based on the identifier of the target live stream, obtain the media stream corresponding to the target live stream.
11. An apparatus for processing tasks targeting a live streaming room, comprising: The loading task acquisition module is configured to acquire a set of loading tasks related to the target live streaming room in response to entering the target live streaming room; The task adding module is configured to add the loading task for the set of components to the task execution queue for the target live room; as well as The task execution control module is configured to control the execution of the loaded tasks in the task execution queue based on the detection of sliding interactions in the target live streaming room.
12. An electronic device, comprising: At least one processor; as well as A storage device for storing at least one program, which, when executed by the at least one processor, causes the at least one processor to implement the method according to any one of claims 1-10.
13. A computer-readable storage medium having a computer program stored thereon, the computer program implementing the method according to any one of claims 1-10 when executed by a processor.
14. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-10.