State identifier processing method, device and equipment of live broadcasting room and medium
By sending a detection request to the server during the status switching of the live broadcast room to obtain information and adjust the status identifier, the problem of status identifier display in the prior art is solved, and the penetration rate and user experience of the live broadcast room are improved.
Patent Information
- Application Number
- CN202310637793.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
The existing live broadcast room status identification processing method relies on user manual refresh, resulting in the status identification display status that does not match the real status, affecting the live broadcast penetration rate.
When the live broadcast room is switched from the off-cast state to the on-cast state, a live request is sent to the server to obtain the live broadcast room information, and the display status of the status mark is adjusted based on the information.
By adjusting the status mark in time, the problem of mismatch between the status mark and the real status is avoided, and the live broadcast penetration rate and user experience are improved.
Smart Images

Figure CN119071518A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of live broadcast technology, and in particular to a method, device, equipment and medium for processing status identification of a live broadcast room. Background Art
[0002] In the existing solution, the processing method of the status identification of the live broadcast room relies on manual refresh by the viewing users. Since there is a time difference between the start time of the live broadcast room and the manual refresh time of the viewing users, the display status of the status identification of the live broadcast room cannot be updated in time, and it is easy for the display status of the status identification of the live broadcast room to not match the actual status of the live broadcast room, further affecting the live broadcast penetration rate. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, device, equipment and medium for processing status identification of a live broadcast room.
[0004] In a first aspect, the present disclosure provides a method for processing a status identification of a live broadcast room, the method comprising:
[0005] When it is determined that the target live broadcast room is switched from the off-broadcast state to the on-broadcast state, a live broadcast request is sent to the server, so that the server returns the live broadcast room information of the target live broadcast room based on the live broadcast request;
[0006] Based on the live broadcast room information of the target live broadcast room, the display state of the status indicator of the target live broadcast room is adjusted to the broadcast display state.
[0007] In a second aspect, the present disclosure provides a state identification processing device for a live broadcast room, the device comprising:
[0008] A sending module, configured to send a live broadcast request to a server when it is determined that a target live broadcast room is switched from an off-broadcast state to an on-broadcast state, so that the server returns live broadcast room information of the target live broadcast room based on the live broadcast request;
[0009] The adjustment module is used to adjust the display state of the status identifier of the target live broadcast room to the broadcast display state based on the live broadcast room information of the target live broadcast room.
[0010] In a third aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the above method.
[0011] In a fourth aspect, the present disclosure provides a device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
[0012] In a fifth aspect, the present disclosure provides a computer program product, wherein the computer program product comprises a computer program / instructions, and the computer program / instructions implement the above method when executed by a processor.
[0013] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has at least the following advantages:
[0014] The disclosed embodiment provides a method, device, equipment and medium for processing the status identification of a live broadcast room, the method comprising: when determining that a target live broadcast room is switched from an off-broadcast state to an on-broadcast state, sending a live detection request to a server, so that the server returns the live broadcast room information of the target live broadcast room based on the live detection request; based on the live broadcast room information of the target live broadcast room, adjusting the display state of the status identification of the target live broadcast room to an on-broadcast display state. Thus, when the client perceives that the target live broadcast room is switched from an off-broadcast state to an on-broadcast state, the display state of the status identification of the target live broadcast room is adjusted in time by sending a live detection request to the server. Therefore, there will be no problem that the live broadcast room that has actually been broadcasted but its status identification is an off-broadcast display state, that is, there will be no problem that the display state of the status identification of the live broadcast room does not match the actual state of the live broadcast room, which facilitates the viewing user to enter the target live broadcast room to watch the live broadcast based on the status identification of the on-broadcast display state, and ultimately improves the live broadcast penetration rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0017] Figure 1 A schematic diagram of the architecture of a status identification processing system for a live broadcast room provided in an embodiment of the present disclosure;
[0018] Figure 2 A flowchart of a method for processing status identification of a live broadcast room provided by an embodiment of the present disclosure;
[0019] Figure 3 A logical diagram of another method for processing status identification of a live broadcast room provided by an embodiment of the present disclosure;
[0020] Figure 4 A logical diagram of a subscription relationship generation process provided by an embodiment of the present disclosure;
[0021] Figure 5 A schematic diagram of the structure of a state identification processing device for a live broadcast room provided in an embodiment of the present disclosure;
[0022] Figure 6 A schematic diagram of the structure of a status identification processing device for a live broadcast room provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0025] With the rapid development of Internet technology, live broadcast systems with live broadcast room functions have been widely used. The status indicator of the live broadcast room is an important entrance to watch the broadcast. Whether the display status of the status indicator of the live broadcast room can be updated in time is a key factor affecting the live broadcast penetration rate.
[0026] In the related art, the processing method of the status identification of the live broadcast room relies on manual refresh by the viewing user, which easily leads to the problem that the display status of the status identification of the live broadcast room does not match the actual status of the live broadcast room. In one scenario, the display status of the status identification of the live broadcast room is the off display status, but the actual status of the live broadcast room is the on state, resulting in the problem that the display status of the status identification of the live broadcast room does not match the actual status of the live broadcast room, making it impossible for the viewing user to perceive in time that the live broadcast room has started broadcasting, which in turn causes the user to not enter the live broadcast room to watch the live broadcast by triggering the status identification, thereby reducing the penetration rate of the live broadcast room.
[0027] In other scenarios, the status indicator of the live broadcast room shows that the broadcast is on. The viewing user wants to enter the live broadcast room by triggering the status indicator of the live broadcast room, but after entering the live broadcast room, he finds that the real status of the live broadcast room is off broadcast. This situation affects the viewing experience of the viewing user.
[0028] In order to increase the penetration rate of live broadcast rooms and enhance the live viewing experience of viewing users, the client can initiate a live broadcast status detection request in a polling manner, so that the server determines the live broadcast room information based on the detection request and pushes the live broadcast room information to the client, and then the client adjusts the display status of the live broadcast room status indicator based on the live broadcast room information. However, when the client initiates the detection request, it does not consider whether the live broadcast status of the live broadcast room has changed, resulting in the situation that the display status of the status indicator cannot be adjusted after the client issues the detection request. In other words, most of the detection requests issued by the client are invalid requests, resulting in a waste of request resources.
[0029] In order to solve the above problems, Figure 1 FIG. 1 is a schematic diagram showing the architecture of a live broadcast room status identification processing system provided by an embodiment of the present disclosure. Figure 1 As shown, the status identification processing system of the live broadcast room includes: a client 100 and a server 200.
[0030] First, when the client 100 determines that the target live broadcast room has switched from the off state to the on state, it sends a detection request to the server 200, so that the server 200 returns the live broadcast room information of the target live broadcast room based on the detection request; then, the client 100 adjusts the display of the status identification of the target live broadcast room to the on display state based on the live broadcast room information of the target live broadcast room.
[0031] Therefore, when the client perceives that the target live broadcast room is switched from the off state to the on state, it adjusts the display status of the status identifier of the target live broadcast room in time by sending a detection request to the server. Therefore, the problem of a live broadcast room that has actually been broadcast but whose status identifier is the off display state will not occur, that is, the problem of the display state of the status identifier of the live broadcast room and the actual state of the live broadcast room will not occur, which makes it convenient for viewers to enter the target live broadcast room to watch the live broadcast based on the status identifier of the on display state, ultimately improving the live broadcast penetration rate.
[0032] In other cases, when the client 100 detects that the target live broadcast room has switched from the on state to the off state, and the client 100 determines that the display content of the current interface is not the preview stream of the target live broadcast room, the live broadcast room information of the target live broadcast room is deleted, and the display state of the status identifier of the target live broadcast room is adjusted to the off display state.
[0033] Therefore, when the client detects that the target live broadcast room switches from the on-broadcast state to the off-broadcast state, the live broadcast room information of the target live broadcast room is deleted, and the display state of the status indicator of the target live broadcast room is adjusted to the off-broadcast display state. The problem that the viewing user enters the live broadcast room by triggering the status indicator of the live broadcast room, but finds out that the actual state of the live broadcast room is the off-broadcast state after entering the live broadcast room will not occur. This is conducive to improving the live viewing experience of the viewing users.
[0034] Based on the above architecture, Figure 2 FIG. 1 is a flow chart showing a method for processing a status identification of a live broadcast room provided by an embodiment of the present disclosure. Figure 2 As shown, the status identification processing method of the live broadcast room includes the following steps.
[0035] S210: When it is determined that the target live broadcast room is switched from the off state to the on state, a live broadcast request is sent to the server, so that the server returns the live broadcast room information of the target live broadcast room based on the live broadcast request.
[0036] In this embodiment, for a live broadcast application with a live broadcast room function (such as a short video application), the client where the live broadcast application is located determines whether the target live broadcast room is switched from an off state to an on state. If the target live broadcast room is switched from an off state to an on state, a detection request is sent to the server, so that the server returns the live broadcast room information of the target live broadcast room.
[0037] The target live broadcast room refers to the live broadcast room of any anchor user being detected. For example, the target live broadcast room is the live broadcast room of a beauty anchor, the live broadcast room of a travel anchor, etc.
[0038] Among them, the live detection request refers to the request information for detecting the survival status of the service, which is used to obtain the live broadcast room information of the target live broadcast room when the target live broadcast room is in a survival state (i.e., non-logout state, non-review state, etc.).
[0039] The live broadcast room information refers to the complete address of the live broadcast room, which contains complex fields.
[0040] In order to communicate with the server for a long time, the server and the client can establish a long link, and the client can receive the live broadcast room information returned by the server through the long link.
[0041] S220. Based on the live broadcast room information of the target live broadcast room, adjust the display state of the status indicator of the target live broadcast room to the broadcast display state.
[0042] In this embodiment, the client adjusts the display state of the status identifier of the target live broadcast room to the broadcast display state based on the complete address of the target live broadcast room in the live broadcast room information, so that the display state of the status identifier of the target live broadcast room is consistent with the actual state of the target live broadcast room.
[0043] The status identifier is information indicating the live broadcast status of the live broadcast room. Optionally, the status identifier may be information such as the anchor avatar of the target live broadcast room, the live broadcast tweet of the target live broadcast room, etc., which is not limited here.
[0044] Among them, the broadcast display status is the display status when the target live broadcast room starts broadcasting.
[0045] In the disclosed embodiment, optionally, S220 specifically includes: based on the live broadcast room information, adding a broadcast status element to the basic element of the target live broadcast room to form a status identifier corresponding to the broadcast display status.
[0046] Among them, basic elements refer to the basic components that form the status identification.
[0047] It can be understood that if the basic elements of the target live broadcast room have been stored in the on-air state or the off-air state, then when generating the status identifier corresponding to the on-air display state, it can be directly retrieved and used. If the basic elements of the target live broadcast room have not been stored or have been updated, then before generating the status identifier corresponding to the on-air display state, it is necessary to determine the basic elements of the target live broadcast room before generating the status identifier corresponding to the on-air display state.
[0048] In one case, if the status identifier is the anchor avatar of the target live broadcast room, the basic element of the status identifier is the avatar of the target live broadcast room, and the avatar can be a landscape picture, a pet photo, etc., and there is no limitation here.
[0049] In another case, if the status identifier is a live tweet of the target live broadcast room, the basic element of the status identifier is the live broadcast room nickname of the target live broadcast room.
[0050] The broadcast status element refers to an additional element used to identify that the target live broadcast room is in the broadcast state. Optionally, the broadcast status element may include but is not limited to elements such as a breathing light with a deformation effect, a "live broadcast" field, and a color mark.
[0051] In one case, if the status identifier is the anchor avatar of the target live broadcast room, and the basic element of the status identifier is the avatar of the target live broadcast room, a breathing light with a deformation effect and a "live broadcast" field are added to the avatar of the target live broadcast room to form a status identifier corresponding to the broadcast display status.
[0052] In another case, if the status identifier is a live tweet of the target live broadcast room, and the basic element of the status identifier is the live broadcast room nickname of the target live broadcast room, a "live broadcast" field is added after the live broadcast room nickname of the target live broadcast room, and / or a red identifier is added to the live broadcast room nickname of the target live broadcast room to form a status identifier corresponding to the broadcast display status.
[0053] It should be noted that, since the client considers the switching of the target live broadcast room from the off state to the on state when initiating the live broadcast request, the client can adjust the display state of the status mark of the target live broadcast room to the on state in time after receiving the live broadcast room information, and there will be no situation where the display state of the status mark of the target live broadcast room is not adjusted after the client issues the live broadcast request. Therefore, all live broadcast requests issued by the client are valid requests, which avoids the waste of request resources and improves the utilization rate of request resources.
[0054] The disclosed embodiment provides a method for processing the status identification of a live broadcast room, the method comprising: when determining whether a target live broadcast room is switched from an off-broadcast state to an on-broadcast state, sending a live detection request to a server, so that the server returns the live broadcast room information of the target live broadcast room based on the live detection request; based on the live broadcast room information of the target live broadcast room, adjusting the display state of the status identification of the target live broadcast room to an on-broadcast display state. Thus, when the client perceives that the target live broadcast room is switched from an off-broadcast state to an on-broadcast state, the display state of the status identification of the target live broadcast room is adjusted in time by sending a live detection request to the server. Therefore, there will be no problem that the live broadcast room that has actually been broadcasted but its status identification is an off-broadcast display state, that is, there will be no problem that the display state of the status identification of the live broadcast room does not match the actual state of the live broadcast room, which facilitates the viewing user to enter the target live broadcast room to watch the live broadcast based on the status identification of the on-broadcast display state, and ultimately improves the live broadcast penetration rate.
[0055] In another embodiment of the present disclosure, when the target live broadcast room is switched from the on-broadcast state to the off-broadcast state, the preview stream of the target live broadcast room is processed, and / or the display state of the status indicator of the target live broadcast room is adjusted to the off-broadcast display state.
[0056] Figure 3 FIG. 2 is a flow chart showing another method for processing status identification of a live broadcast room provided by an embodiment of the present disclosure. Figure 3 As shown, the status identification processing method of the live broadcast room includes the following steps.
[0057] S310: Determine whether the target live broadcast room is switched from the off-broadcast state to the on-broadcast state.
[0058] In this embodiment, the client monitors the status of the target live broadcast room in real time, specifically monitoring whether the target live broadcast room switches from the off state to the on state or from the on state to the off state, and then adjusts the display state of the status indicator in a manner corresponding to the two switching states. Specifically, if the client determines that the target live broadcast room switches from the off state to the on state, S320 is executed, otherwise, S340 is executed.
[0059] S320: Send a live broadcast request to the server, so that the server returns the live broadcast room information of the target live broadcast room based on the live broadcast request.
[0060] S330: Based on the live broadcast room information of the target live broadcast room, adjust the display state of the status indicator of the target live broadcast room to the broadcast display state.
[0061] Among them, S320~S330 are similar to S210~S220, and will not be described in detail here.
[0062] S340: Determine whether the current display content displayed on the current interface is the preview stream of the target live broadcast room.
[0063] The current interface refers to an interface on the client that displays the live content of multiple live broadcast rooms. Optionally, the current interface can be a local page, a recommendation page, or a follow page, and the current interface can display the display content of one live broadcast room in a single-column information flow display mode, or can display the display content of multiple live broadcast rooms in a multi-column information flow display mode, which is not limited here.
[0064] Among them, the currently displayed content refers to the editing content corresponding to the target live broadcast room, and the editing content can be a photo, text content, short video or a preview stream of the live broadcast room.
[0065] Among them, the preview stream of the target live broadcast room refers to the live broadcast screen of the target live broadcast room, and the viewing user enters the target live broadcast room by clicking on the preview stream.
[0066] Specifically, if the client determines that the current display content is the preview stream of the target live broadcast room, S350 is executed; otherwise, S360 is executed.
[0067] S350: Delete the preview stream of the target live broadcast room, or replace the preview stream of the target live broadcast room with the preview stream of other live broadcast rooms except the target live broadcast room.
[0068] It is understandable that if the target live broadcast room switches from the on-broadcast state to the off-broadcast state, and the currently displayed content is the preview stream of the target live broadcast room, by deleting the preview stream, it is possible to prevent the viewing users from entering the live broadcast room that is actually closed by clicking on the preview stream. Alternatively, the client can also replace the preview stream of the target live broadcast room with the preview stream of other live broadcast rooms, so that the viewing users can enter other live broadcast rooms by clicking on the preview stream of other live broadcast rooms, thereby maximizing the overall penetration rate of multiple live broadcast rooms in the live broadcast system.
[0069] S360, delete the live broadcast room information of the target live broadcast room, and adjust the display state of the status indicator of the target live broadcast room to the off display state.
[0070] In the disclosed embodiment, optionally, "adjusting the display status of the status identifier of the target live broadcast room to the off display status" in S360 includes: deleting the on-broadcast status element added to the basic element of the status identifier of the target live broadcast room, and forming a status identifier corresponding to the off display status.
[0071] In one case, if the status identifier is the anchor avatar of the target live broadcast room, and the anchor avatar of the target live broadcast room has added a breathing light with a deformation effect and a "live broadcast" field, then the breathing light and the "live broadcast" field are deleted to form the anchor avatar corresponding to the off display state.
[0072] In another case, if the status indicator is a live tweet of the target live broadcast room, the live broadcast room nickname of the target live broadcast room has added a "live broadcast" field, and / or a red indicator is added to the live broadcast room nickname of the target live broadcast room, then the "live broadcast" field and / or the red indicator is deleted to form the anchor avatar corresponding to the off display status.
[0073] It is understandable that if the currently displayed content is not the preview stream of the target live broadcast room, the live broadcast room information can be reset by deleting the live broadcast room information, and the broadcast status element added to the basic element of the status identifier of the target live broadcast room can be deleted, so as to obtain the status identifier corresponding to the off display state, thereby avoiding the viewing users from entering the live broadcast room that is actually closed by clicking on the status identifier. This is conducive to improving the user experience.
[0074] In another embodiment of the present disclosure, in different scenarios, a subscription relationship is generated between the client and the server, so that the client receives the live broadcast status change information of the target live broadcast room pushed by the server based on the subscription relationship, and determines the status switching of the target live broadcast room based on the live broadcast status change information.
[0075] Based on the above embodiment, before executing S210, the method further includes:
[0076] S201, receiving the live broadcast status change information of the target live broadcast room pushed by the server; wherein the live broadcast status change information is pushed by the server based on the subscription relationship between the anchor user of the target live broadcast room and the client.
[0077] S202: Based on the live broadcast status change information, determine whether the target live broadcast room is switched from the off-broadcast state to the on-broadcast state.
[0078] The live broadcast status change information is a prompt information generated by the server based on the change of the live broadcast room status, and is used to prompt the client to process the display status of the status identification of the live broadcast room. Optionally, the live broadcast status change information can be switching information from off to on, or switching information from on to off.
[0079] Specifically, the live broadcast status change information may carry the live broadcast room keyword and status switching information of the target live broadcast room, and determine the target live broadcast room from multiple live broadcast rooms according to the live broadcast room keyword, and determine whether the target live broadcast room is switched from the off state to the on state, or from the on state to the off state according to the status switching information. Optionally, the live broadcast room keyword may be a live broadcast room identification number (e.g., live broadcast room ID).
[0080] In this embodiment, optionally, a method for determining a subscription relationship includes: in response to a refresh operation on a live broadcast room on a current interface, sending a subscription request for at least one live broadcast room to a server; receiving at least one live broadcast room pushed by the server for the subscription request; and based on a live broadcast room identifier of at least one live broadcast room and a client identifier of the client, generating a subscription relationship and sending it to the server.
[0081] In this embodiment, when the viewing user clicks on the application icon of the live broadcast application to cold start the live broadcast application, or when the viewing user clicks on the homepage of the live broadcast application, the client obtains a refresh operation for the live broadcast room on the current interface, and then sends a subscription request to the server based on the refresh operation, so that the server pushes at least one live broadcast room to the client. The client can generate a subscription relationship through the live broadcast room identifier of at least one live broadcast room and the client identifier of the client, and send the subscription relationship to the server.
[0082] As described above, the current interface refers to the same-city page, recommendation page or follow-up page of the live broadcast application, and the current interface can display the display content of one live broadcast room in a single-column information stream display mode, or it can display the display content of multiple live broadcast rooms in a multi-column information stream display mode, which is not limited here.
[0083] Among them, the display content of the live broadcast room refers to the editing content corresponding to the live broadcast room, and the editing content can be text content, short video or preview stream of the live broadcast room.
[0084] Among them, the live broadcast room identifier refers to the identification information used to distinguish different live broadcast rooms, which may include but is not limited to anchor identifiers such as anchor nickname and anchor number.
[0085] The client identifier refers to identification information of the client used to distinguish different viewing users, and may include but is not limited to a device name.
[0086] Furthermore, after the client generates a subscription relationship, the subscription relationship can be sent to the server through a long link, so that the server stores the subscription relationship and, when generating the live broadcast status change information of the target live broadcast room, the server pushes the live broadcast status change information of the target live broadcast room to the client based on the subscription relationship and through the long link. If the client receives the live broadcast status change information of the target live broadcast room pushed by the server, and determines that the target live broadcast room is switched from the off state to the on state, the display state of the status identifier of the target live broadcast room is adjusted to the on display state by sending a detection request to the server, so as to facilitate the viewing users to enter the target live broadcast room to watch the live broadcast based on the status identifier of the on display state, which is ultimately beneficial to improve the live broadcast penetration rate.
[0087] In some cases, after the viewing user opens the short video application, he is accustomed to switching the live broadcast room by sliding down or up. Then, after generating the subscription relationship in the above manner, the method will update the subscription relationship in real time and send the updated subscription relationship to the server, so that the server will re-push the live broadcast status change information of the target live broadcast room to the client based on the updated subscription relationship. Then, based on the re-pushed live broadcast status change information of the target live broadcast room and the method of resending the live search request, the client will adjust the display state of the status identifier of the target live broadcast room from the off display state to the on display state, or adjust the display state of the status identifier of the target live broadcast room from the on display state to the off display state. Correspondingly, after generating the subscription relationship, the method also includes: if a sliding operation is detected for the live broadcast room on the current interface, based on the sliding direction and number of sliding operations, determining the number of live broadcast rooms that have been swiped on the current interface; based on the number of live broadcast rooms that have been swiped and the sliding direction, regenerating the subscription relationship, and sending the regenerated subscription relationship to the server.
[0088] The sliding direction includes a downward sliding direction from the top of the current interface to the bottom of the current interface, and an upward sliding direction from the bottom of the current interface to the top of the current interface. The number of sliding times refers to the number of downward sliding times and / or upward sliding times. Thus, based on the sliding direction and the number of sliding times, the number of live broadcast rooms that have been swiped through can be determined.
[0089] In this embodiment, optionally, based on the number of live broadcast rooms that have been swiped past and the sliding direction, a subscription relationship is regenerated and the regenerated subscription relationship is sent to the server, specifically including: if the sliding direction is a downward sliding direction from the top of the current interface to the bottom of the current interface, and the number of live broadcast rooms that have been swiped past is a first number, based on the live broadcast room identifier of at least one live broadcast room, the live broadcast room identifier of at least one live broadcast room to be displayed by sliding down, and the client identifier, the subscription relationship is regenerated; and / or, if the sliding direction is an upward sliding direction from the bottom of the current interface to the top of the current interface, and the number of live broadcast rooms that have been swiped past is a second number, based on the live broadcast room identifier of at least one live broadcast room, the live broadcast room identifier of at least one live broadcast room to be displayed by sliding up, and the client identifier, the subscription relationship is regenerated.
[0090] The first number is the number of live broadcast rooms of the sliding down interface to be displayed corresponding to the current interface, and the second number is the number of live broadcast rooms of the sliding up interface to be displayed corresponding to the current interface. Optionally, the first number and the second number may be equal or unequal.
[0091] It should be noted that, in some cases, when the server pushes live broadcast rooms to the client, it can quickly push at least one live broadcast room when sliding down or up based on the user's sliding direction, that is, the first number and the second number are both greater than 0. In other cases, when the server pushes live broadcast rooms to the client, it can only quickly push at least one live broadcast room when sliding down, then the first number is greater than 0, and the second number is greater than or equal to 0. For ease of understanding, the first number and the second number are both 6, and the current interface displays the display content of a live broadcast room as an example to explain the process of generating a subscription relationship based on a refresh operation and updating a subscription relationship based on a sliding operation. See Figure 4 The logical diagram of the subscription relationship generation process shown in FIG. 1 is that, first, when the viewing user opens the live broadcast application and clicks on the homepage of the live broadcast application to refresh the live broadcast room displayed on the current page, the client obtains and responds to the refresh operation, and sends a subscription request for 6 live broadcast rooms to the client. Then, the server pushes 6 live broadcast rooms to the client based on the subscription request. The 6 live broadcast rooms refer to a live broadcast room to be displayed after the current interface is refreshed and 5 live broadcast rooms to be displayed after the live broadcast room. Then, the client pushes 6 live broadcast rooms based on the live broadcast room identifiers (i.e., Figure 4 The live broadcast room identifier of the live broadcast room number 1-6 corresponding to S1 in S1 and the client identifier of the client generate 6 subscription relationships and send the 6 subscription relationships to the server.
[0092] Next, when the viewing user slides on the current interface, specifically, the sliding direction is the downward direction, and the number of live broadcast rooms that have been swiped is 6, that is, when the viewing user slides down to the sixth live broadcast room, based on the six live broadcast room identifiers that have been swiped (i.e. Figure 4The live room logos of the live rooms numbered 1-6 corresponding to S2 in the above example), the live room logos of the 6 live rooms to be displayed after sliding down (i.e. Figure 4 The live broadcast room identifier of the live broadcast room number 7-12 corresponding to S2 in S2) and the client identifier, regenerates 12 subscription relationships, and sends the 12 subscription relationships to the server.
[0093] Similarly, when the viewing user slides on the current interface, specifically the sliding direction is the upward sliding direction, and the number of live broadcast rooms that have been swiped past is 6, it is necessary to regenerate the subscription relationship based on the 6 live broadcast room identifiers of the swiped-past live broadcast rooms, the 6 live broadcast room identifiers of the swiped-up live broadcast rooms to be displayed, and the client identifier. However, considering that when the server pushes live broadcast rooms to the client, it can only quickly push at least one live broadcast room when sliding down. Specifically, when the number of live broadcast rooms that have been swiped past is 6, that is, when the viewing user returns to the first live broadcast room, the host identifiers of the 6 live broadcast rooms that are swiped-up to be displayed corresponding to the first live broadcast room cannot be quickly obtained and need to be obtained by refreshing. Therefore, here only the 6 live broadcast room identifiers (that is, Figure 4 The live broadcast room identifier (the live broadcast room number 1-6) corresponding to S3 in S3 and the client identifier are used to regenerate 6 subscription relationships and send the 6 subscription relationships to the server.
[0094] Therefore, the client generates a subscription relationship based on the refresh operation of the viewing user on the live broadcast room on the current interface, and sends the subscription relationship to the server. It can also regenerate the subscription relationship and send it to the server based on the sliding direction and number of sliding operations when a sliding operation is detected, so that the server can push the live broadcast status change information to the client based on the subscription relationship to ensure the reliability of information push.
[0095] In other cases, after the viewing user opens the live broadcast application, the interface can also be switched, and after the interface is switched, the subscription relationship is regenerated and sent. Accordingly, after the subscription relationship is generated, the method further includes: in response to the interface switching operation for the current interface, sending a subscription request for at least one live broadcast room to be displayed on the next interface to the server; receiving at least one live broadcast room re-pushed by the server based on the new subscription request; based on the live broadcast room identifier of the at least one re-pushed live broadcast room and the client identifier of the client, regenerating the subscription relationship and sending it to the server.
[0096] The next interface refers to an interface determined based on the operation position of the interface switching operation of the viewing user. For example, when the current interface is the focus page, the next interface can be a selection interface, a recommendation page, a live selection page, etc.
[0097] Therefore, when the viewing user switches the interface on the client, the subscription relationship between at least one live broadcast room to be displayed on the next interface and the client is regenerated, which facilitates the server to detect the display status of the live broadcast room to be displayed on the next interface based on the subscription relationship corresponding to the next interface.
[0098] In other cases, when the long link between the client and the server is disconnected and then re-established, the subscription relationship can also be regenerated and sent to the server based on the live broadcast room identifier of at least one live broadcast room to be displayed on the current interface after the long link is established and the client identifier of the client.
[0099] Therefore, when the long link is disconnected and reconnected, the subscription relationship is regenerated and sent, which facilitates the server to detect the display status of the live broadcast room to be displayed on the current interface based on the subscription relationship corresponding to the current interface.
[0100] Based on the same inventive concept as the above method embodiment, the present disclosure also provides a state identification processing device for a live broadcast room, referring to Figure 5 , is a structural diagram of a state identification processing device for a live broadcast room provided in an embodiment of the present disclosure, wherein the state identification processing device 500 for a live broadcast room includes:
[0101] The sending module 510 is used to send a live detection request to the server when it is determined that the target live broadcast room is switched from the off-broadcast state to the on-broadcast state, so that the server returns the live broadcast room information of the target live broadcast room based on the live detection request;
[0102] The adjustment module 520 is used to adjust the display state of the status indicator of the target live broadcast room to the broadcast display state based on the live broadcast room information of the target live broadcast room.
[0103] In an optional implementation, the adjustment module 520 includes:
[0104] An adding unit is used to add a broadcast status element to the basic element of the target live broadcast room based on the live broadcast room information to form a status identifier corresponding to the broadcast display status.
[0105] In an optional implementation, the device further includes:
[0106] A receiving module, used for receiving the live broadcast status change information of the target live broadcast room pushed by the server;
[0107] The switching determination module is used to determine whether the target live broadcast room is switched from the off state to the on state based on the live broadcast state change information.
[0108] In an optional implementation, the live broadcast status change information is pushed by the server based on the subscription relationship between the anchor user of the target live broadcast room and the client.
[0109] In an optional implementation, the device further includes:
[0110] A first request sending module, configured to send a subscription request for at least one live broadcast room to the server in response to a refresh operation on the live broadcast room on the current interface;
[0111] A first receiving module, configured to receive at least one live broadcast room pushed by the server based on the subscription request;
[0112] A generation module is used to generate the subscription relationship based on the live broadcast room identifier of the at least one live broadcast room and the client identifier of the client and send it to the server.
[0113] In an optional implementation, the device further includes:
[0114] A sliding operation detection module, for determining the number of live broadcast rooms that have been swiped across on the current interface based on the sliding direction and number of sliding operations if a sliding operation on the live broadcast room on the current interface is detected;
[0115] The first regeneration module is used to regenerate the subscription relationship based on the number of live broadcast rooms that have been swiped and the sliding direction, and send it to the server.
[0116] In an optional implementation manner, the first regeneration module is specifically configured to:
[0117] If the sliding direction is a sliding direction from the top of the current interface to the bottom of the current interface, and the number of live broadcast rooms that have been swiped through is the first number, based on the live broadcast room identifier of the at least one live broadcast room, the live broadcast room identifier of at least one live broadcast room to be displayed by sliding down, and the client identifier, a subscription relationship is regenerated; and / or,
[0118] If the sliding direction is an upward sliding direction from the bottom of the current interface to the top of the current interface, and the number of live broadcast rooms that have been swiped through is the second number, the subscription relationship is regenerated based on the live broadcast room identifier of at least one live broadcast room, the live broadcast room identifier of at least one live broadcast room to be displayed by sliding up, and the client identifier.
[0119] In an optional implementation, the device further includes:
[0120] A first request sending module, configured to send, in response to an interface switching operation on the current interface, a subscription request for at least one live broadcast room to be displayed on a next interface to the server;
[0121] A second receiving module is used to receive at least one live broadcast room re-pushed by the server based on a new subscription request;
[0122] The second regeneration module is used to regenerate the subscription relationship based on the live broadcast room identifier of the at least one live broadcast room that is re-pushed and the client identifier of the client, and send it to the server.
[0123] In an optional implementation, the device further includes:
[0124] A judgment module, configured to judge whether the current display content displayed on the current interface is a preview stream of the target live broadcast room when it is determined that the target live broadcast room is switched from the on-broadcast state to the off-broadcast state;
[0125] a deletion or replacement module, configured to delete the preview stream of the target live broadcast room if the current display content is the preview stream of the target live broadcast room, or replace the preview stream of the target live broadcast room with the preview stream of other live broadcast rooms except the target live broadcast room; and / or,
[0126] The adjustment module is used to delete the live broadcast room information of the target live broadcast room if the current display content is not the preview stream of the target live broadcast room, and adjust the display state of the status identifier of the target live broadcast room to the off display state.
[0127] The disclosed embodiment provides a state identification processing device for a live broadcast room. When determining that a target live broadcast room is switched from an off-broadcast state to an on-broadcast state, a detection request is sent to a server, so that the server returns the live broadcast room information of the target live broadcast room based on the detection request; based on the live broadcast room information of the target live broadcast room, the display state of the state identification of the target live broadcast room is adjusted to an on-broadcast display state. Thus, when the client perceives that the target live broadcast room is switched from an off-broadcast state to an on-broadcast state, the display state of the state identification of the target live broadcast room is adjusted in time by sending a detection request to the server. Therefore, there will be no problem that the live broadcast room that has actually been broadcasted but its state identification is an off-broadcast display state, that is, there will be no problem that the display state of the state identification of the live broadcast room does not match the actual state of the live broadcast room, which facilitates the viewing user to enter the target live broadcast room to watch the live broadcast based on the state identification of the on-broadcast display state, and ultimately improves the live broadcast penetration rate.
[0128] In addition to the above-mentioned methods and apparatus, the embodiments of the present disclosure also provide a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device implements the status identification processing method of the live broadcast room of the embodiments of the present disclosure.
[0129] The embodiment of the present disclosure also provides a computer program product, which includes a computer program / instructions. When the computer program / instructions are executed by a processor, the status identification processing method of the live broadcast room of the embodiment of the present disclosure is implemented.
[0130] In addition, the present disclosure also provides a state identification processing device for a live broadcast room, see Figure 6 As shown, the state identification processing device of the live broadcast room may include:
[0131] Processor 601, memory 602, input device 603 and output device 604. The number of processors 601 in the state identification processing device of the live broadcast room can be one or more. Figure 6 In some embodiments of the present disclosure, the processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means, wherein: Figure 6 The example of connecting through bus is taken in the following.
[0132] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing of the status identification processing device of the live broadcast room by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The input device 603 may be used to receive input digital or character information, and to generate signal input related to the observation user settings and function control of the status identification processing device of the live broadcast room.
[0133] Specifically in this embodiment, the processor 601 will load the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 will run the applications stored in the memory 602, thereby realizing the various functions of the status identification processing device of the above-mentioned live broadcast room.
[0134] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0135] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing status identification of a live broadcast room, characterized in that: The method comprises: When it is determined that the target live broadcast room is switched from the off-broadcast state to the on-broadcast state, a live broadcast request is sent to the server, so that the server returns the live broadcast room information of the target live broadcast room based on the live broadcast request; Based on the live broadcast room information of the target live broadcast room, the display state of the status indicator of the target live broadcast room is adjusted to the broadcast display state.
2. The method according to claim 1, characterized in that The adjusting the display state of the status indicator of the target live broadcast room to the broadcasting display state based on the live broadcast room information of the target live broadcast room includes: Based on the live broadcast room information, a broadcast status element is added to the basic element of the target live broadcast room to form a status identifier corresponding to the broadcast display status.
3. The method according to claim 1, characterized in that The method further comprises: Receiving the live broadcast status change information of the target live broadcast room pushed by the server; Based on the live broadcast state change information, determine whether the target live broadcast room is switched from the off state to the on state.
4. The method according to claim 3, characterized in that The live broadcast status change information is pushed by the server based on the subscription relationship between the anchor user of the target live broadcast room and the client.
5. The method according to claim 4, characterized in that The method further comprises: In response to a refresh operation on the live broadcast room on the current interface, sending a subscription request for at least one live broadcast room to the server; Receiving at least one live broadcast room pushed by the server based on the subscription request; Based on the live broadcast room identifier of the at least one live broadcast room and the client identifier of the client, the subscription relationship is generated and sent to the server.
6. The method according to claim 5, characterized in that After generating the subscription relationship based on the live broadcast room identifier of the at least one live broadcast room and the client identifier of the client and sending the subscription relationship to the server, the method further includes: If a sliding operation on a live broadcast room on the current interface is detected, the number of live broadcast rooms that have been swiped on the current interface is determined based on the sliding direction and the number of sliding times of the sliding operation; Based on the number of live broadcast rooms that have been swiped through and the sliding direction, the subscription relationship is regenerated and sent to the server.
7. The method according to claim 6, characterized in that The regenerating the subscription relationship based on the number of the live broadcast rooms that have been swiped and the sliding direction includes: If the sliding direction is a sliding direction from the top of the current interface to the bottom of the current interface, and the number of live broadcast rooms that have been swiped through is the first number, based on the live broadcast room identifier of the at least one live broadcast room, the live broadcast room identifier of at least one live broadcast room to be displayed by sliding down, and the client identifier, a subscription relationship is regenerated; and / or, If the sliding direction is an upward sliding direction from the bottom of the current interface to the top of the current interface, and the number of live broadcast rooms that have been swiped through is the second number, the subscription relationship is regenerated based on the live broadcast room identifier of at least one live broadcast room, the live broadcast room identifier of at least one live broadcast room to be displayed by sliding up, and the client identifier.
8. The method according to claim 5, characterized in that After generating the subscription relationship based on the live broadcast room identifier of the at least one live broadcast room and the client identifier of the client and sending the subscription relationship to the server, the method further includes: In response to an interface switching operation on the current interface, sending a subscription request for at least one live broadcast room to be displayed on a next interface to the server; Receiving at least one live broadcast room re-pushed by the server based on a new subscription request; Based on the live broadcast room identifier of the at least one live broadcast room that is re-pushed and the client identifier of the client, a subscription relationship is regenerated and sent to the server.
9. The method according to claim 1, characterized in that: Also includes: When it is determined that the target live broadcast room is switched from the on-broadcast state to the off-broadcast state, determining whether the displayed content of the current interface is a preview stream of the target live broadcast room; If the displayed content is the preview stream of the target live broadcast room, the preview stream of the target live broadcast room is deleted, or the preview stream of the target live broadcast room is replaced with the preview stream of other live broadcast rooms except the target live broadcast room; and / or, If the displayed content is not the preview stream of the target live broadcast room, the live broadcast room information of the target live broadcast room is deleted, and the display state of the status indicator of the target live broadcast room is adjusted to the off display state.
10. A state identification processing device for a live broadcast room, characterized in that: The device comprises: A sending module, configured to send a live broadcast request to a server when it is determined that a target live broadcast room is switched from an off-broadcast state to an on-broadcast state, so that the server returns live broadcast room information of the target live broadcast room based on the live broadcast request; The adjustment module is used to adjust the display state of the status identifier of the target live broadcast room to the broadcast display state based on the live broadcast room information of the target live broadcast room.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 9.
12. A device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.
13. A computer program product, characterized in that The computer program product comprises a computer program / instruction, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Interface interaction method and device, equipment and storage medium
CN119676502A
Interface interaction method and apparatus, device, and storage medium
WO2026124504A1
