Page display method, apparatus and device and storage medium
By displaying live video streams or video clips within the avatar display box on the user's homepage, the problem of monotonous content in the avatar display box is solved, enabling users to have an intuitive preview of the live content and a more efficient experience.
Patent Information
- Application Number
- PCT/CN2024/094761
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-24
- Filing Date
- 2024-05-22
- Publication Date
- 2024-11-28
AI Technical Summary
In existing technologies, the content displayed in the avatar display box on a personal homepage is limited and cannot meet user needs, thus affecting the user experience.
Display the target object's live video stream or video clip within the avatar display box on the target page. Obtain the target video clip through the live video stream to enrich the displayed content and improve the user experience.
By displaying live video streams or video clips within the avatar display frame, users can preview live content, enhancing the live stream notification function and improving the user experience.
Smart Images

Figure CN2024094761_28112024_PF_FP_ABST
Abstract
Description
Page display method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed on May 24, 2023, with application number 202310596173.3 and invention name “A page display method, device, equipment and storage medium”. The entire contents of that application are incorporated by reference into this application. Technical Field
[0003] The present disclosure relates to the field of data processing, and in particular to a page display method, apparatus, device, and storage medium. Background Art
[0004] With the development of Internet technology, live streaming has become increasingly popular and popular among users. A live streamer can enable the live streaming function, and viewers can click on the live streamer's profile picture on their personal homepage to enter the live streamer's room and watch the live stream.
[0005] Currently, the avatar display frame on the personal homepage displays a static image and a live broadcast logo to prompt the anchor that he is in the live broadcast state. However, since the display content in the avatar display frame is single, it cannot meet user needs and affects the user experience.
[0006] Summary of the Invention
[0007] In order to solve the above technical problems, an embodiment of the present disclosure provides a page display method.
[0008] In a first aspect, the present disclosure provides a page display method, the method comprising:
[0009] Receiving a trigger operation for requesting to display a target page; wherein the target page is provided with an avatar display frame of a target object;
[0010] In response to the trigger operation, the target page is displayed, and the live video stream or target video clip of the target object is displayed in the avatar display frame; wherein, the target video clip is obtained through the live video stream of the target object.
[0011] In an optional embodiment, displaying the live video stream or target video clip of the target object in the avatar display frame includes:
[0012] When the target object is in a live broadcast state, displaying the target object's live video stream or target video clip in the avatar display frame;
[0013] In an optional implementation, the method further includes:
[0014] When the target object is in a non-live broadcast state, a preset avatar corresponding to the target object is displayed in the avatar display frame, or
[0015] In a case where the target part image is not displayed on the current live screen in the live video stream of the target object, a preset avatar corresponding to the target object is displayed in the avatar display frame.
[0016] In an optional embodiment, displaying the live video stream or target video clip of the target object in the avatar display frame includes:
[0017] If a target part image is displayed on the current live screen in the live video stream of the target object, the live video stream or the target video clip of the target object is displayed in the avatar display frame.
[0018] In an optional implementation manner, the trigger operation is an operation triggered by the current object, and the target page is the personal homepage of the target object;
[0019] Alternatively, the target page is a follow page of the current object, on which a head portrait display frame of the current object's follow object is displayed, and the target object is one of the current object's follow objects.
[0020] In an optional embodiment, displaying the live video stream or target video clip of the target object in the avatar display frame includes:
[0021] Enlarge and display the avatar display frame on the target page;
[0022] The live video stream or target video clip of the target object is displayed in the enlarged avatar display frame.
[0023] In an optional implementation, the enlarging and displaying the avatar display frame on the target page includes:
[0024] When the target object is in a live broadcast state, the avatar display frame is enlarged and displayed on the target page to a second display size; wherein the second display size is smaller than the first display size, and the first display size is the display size of the avatar display frame when the target object is in a non-live broadcast state;
[0025] Correspondingly, displaying the live video stream or target video clip of the target object in the enlarged avatar display frame includes:
[0026] The live video stream or target video clip of the target object is displayed in the avatar display frame of the second display size.
[0027] In an optional implementation, after receiving the trigger operation for requesting to display the target page, the method further includes:
[0028] Sending a page display request for the target page to a target server; wherein the target server is configured to return a live video stream or a target video clip of the target object when determining that the target object is in a live broadcast state;
[0029] Receive a live video stream or a target video clip of the target object.
[0030] In an optional implementation manner, after sending the page display request carrying the identifier of the target object to the target server, the method further includes:
[0031] Receive cropping area position information corresponding to the target object; wherein the cropping area position information is determined based on the display position of the target part image on the video screen in the live video stream of the target object;
[0032] determining a cropping area based on the cropping area position information;
[0033] Correspondingly, displaying the live video stream or target video clip of the target object in the avatar display frame includes:
[0034] Based on the cropping area, the live video stream or target video clip of the target object is displayed in the avatar display frame; wherein, the cropping area is used to control the screen display area of the live video stream or target video clip of the target object in the avatar display frame.
[0035] In a second aspect, the present disclosure further provides a page display method, the method comprising:
[0036] Receiving a page display request for a target page from a target client; wherein the target page is provided with an avatar display frame of a target object;
[0037] Return the live video stream or target video clip of the target object to the target client to display the live video stream or target video clip of the target object in the avatar display frame; wherein the target video clip is obtained through the live video stream of the target object.
[0038] In an optional implementation manner, before returning the live video stream or target video clip of the target object to the target client, the method further includes:
[0039] Determine whether the target object is in a live broadcast state;
[0040] Correspondingly, returning the live video stream or target video clip of the target object to the target client so as to display the live video stream or target video clip of the target object in the avatar display frame on the target page of the target client includes:
[0041] If it is determined that the target object is in a live broadcast state, the live video stream or target video clip of the target object is returned to the target client to display the live video stream or target video clip of the target object in the avatar display box on the target page of the target client.
[0042] In an optional implementation, the method further includes:
[0043] Return the cropping area position information of the target object to the target client; wherein, the cropping area position information is determined based on the display position of the target part image on the video screen in the live video stream of the target object, and the cropping area position information is used to control the screen display area of the live video stream of the target object or the target video clip within the avatar display frame.
[0044] In an optional implementation, the method further includes:
[0045] According to a preset screenshot cycle, a live screen in the live video stream of the target object is screenshotted to obtain a screenshot corresponding to the live video stream;
[0046] If it is determined that the target part image is displayed in the screenshot, determining the cropping area position information of the target object based on the display position of the target part image in the screenshot;
[0047] Storing the clipping area position information of the target object in a preset cache area;
[0048] Accordingly, returning the clipping region location information of the target object to the target client includes:
[0049] The clipping region position information of the target object is acquired from the preset cache area, and the clipping region position information of the target object is returned to the target client.
[0050] In an optional embodiment, after taking screenshots of the live video stream of the target object according to a preset screenshot period and obtaining screenshots corresponding to the live video stream, the method further includes:
[0051] Storing the screenshot corresponding to the live video stream in a preset message queue;
[0052] Correspondingly, if it is determined that the target part image is displayed in the screenshot, before determining the position information of the cropping area of the target object based on the display position of the target part image in the screenshot, the method further includes:
[0053] The screen shot corresponding to the live video stream is read from the preset message queue, and it is determined whether the target part image is displayed on the screen shot.
[0054] In a third aspect, the present disclosure provides a page display device, the device comprising:
[0055] A first receiving module is configured to receive a trigger operation for requesting to display a target page; wherein the target page is provided with an avatar display frame of a target object;
[0056] The first display module is used to display the target page in response to the trigger operation, and display the live video stream or target video clip of the target object in the avatar display frame; wherein, the target video clip is obtained through the live video stream of the target object.
[0057] In a fourth aspect, the present disclosure further provides a page display device, the device comprising:
[0058] A second receiving module is configured to receive a page display request for a target page from a target client; wherein the target page is provided with an avatar display frame of a target object;
[0059] The first return module is used to return the live video stream or target video clip of the target object to the target client, so as to display the live video stream or target video clip of the target object in the avatar display box on the target page of the target client; wherein, the target video clip is obtained through the live video stream of the target object.
[0060] In a fifth 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.
[0061] In a sixth aspect, the present disclosure provides a page display 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-mentioned method when executing the computer program.
[0062] In a seventh aspect, the present disclosure provides a computer program product, which includes a computer program / instructions, and the computer program / instructions implement the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] 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.
[0064] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0065] FIG1 is a flow chart of a page display method provided by an embodiment of the present disclosure;
[0066] FIG2 is a schematic diagram of a personal homepage provided by an embodiment of the present disclosure;
[0067] FIG3 is a flow chart of another page display method provided by an embodiment of the present disclosure;
[0068] FIG4 is a flowchart of another page display method provided by an embodiment of the present disclosure;
[0069] FIG5 is a data interaction diagram of a page display method provided by an embodiment of the present disclosure;
[0070] FIG6 is a schematic structural diagram of a page display device provided by an embodiment of the present disclosure;
[0071] FIG7 is a schematic structural diagram of another page display device provided by an embodiment of the present disclosure;
[0072] FIG8 is a schematic structural diagram of a page display device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0073] 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, in the absence of conflict, the embodiments of the present disclosure and the features therein can be combined with each other.
[0074] 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.
[0075] Currently, the avatar display frame on the personal homepage displays a static image and a live broadcast logo to remind the host that he is in the live broadcast state. However, due to the single content displayed in the avatar display frame, the prompt effect on users is not strong, thus affecting the user experience of viewers who want to enter the live broadcast room based on the host's avatar frame.
[0076] To this end, the present disclosure provides a method for page display, specifically, in response to a display trigger operation for a target page, the target page is displayed, wherein an avatar display frame of the target object is provided on the target page. When the target object is in a live broadcast state, the target object's live video stream or target video clip is displayed in the avatar display frame on the target page, wherein the target video clip is obtained through the target object's live video stream. It can be seen that the present disclosure embodiment enables the viewing user to preview the live content based on the displayed content in the avatar display frame by displaying the live video stream in the avatar display frame of the target page or obtaining the target video clip through the live video stream. This not only enriches the displayed content in the avatar display frame, but also facilitates the user to understand the live broadcast situation, meets the user's needs, and improves the user experience.
[0077] Based on this, an embodiment of the present disclosure provides a page display method. Referring to FIG1 , which is a flow chart of a page display method provided by an embodiment of the present disclosure, the method includes:
[0078] S101: Receive a trigger operation for requesting to display a target page.
[0079] Wherein, a head portrait display frame of the target object is set on the target page.
[0080] The page display method provided by the embodiments of the present disclosure may be applied to a client. For example, the client may include a client deployed on a smart phone, a client deployed on a tablet computer, and the like.
[0081] In the embodiment of the present disclosure, the target page can be any page, and an avatar display frame of the target object is set on the target page. When a trigger operation for the avatar display frame is received, the target page can be jumped to the live broadcast room page of the target object.
[0082] The target page may be, for example, the personal homepage of a target object, and the target object may be the user to whom the personal homepage belongs. In one embodiment, receiving a trigger operation for requesting display of the target page may be receiving a trigger operation for a current object for requesting display of the target page, and the current object may be the object performing the trigger operation, such as the user currently performing the trigger operation. In some embodiments, the target page may be the personal homepage of the current object. In this case, the target object and the current object are the same object, i.e., the current object requests to display its own homepage. In some embodiments, the target page may be the personal homepage of an object other than the current object, i.e., the current object requests to view the homepage of another user.
[0083] In addition, the target page may also be, for example, a focused page of the current object, the current object may be the user to which the focused page belongs, the triggering operation for requesting display of the target page is an operation triggered by the current object, and the focused page displays avatar display frames of the objects of interest of the current object. For example, the focused page displays a focused list of the current object, and the focused list displays avatar display frames of the objects that the current object follows, i.e., there is a corresponding relationship between the focused objects and the avatar display frames. In the embodiment of the present disclosure, the target object belongs to the focused object of the current object, i.e., the target object belongs to the followed user of the user to which the focused page belongs.
[0084] Alternatively, the target page may be, for example, a video playback page that displays an avatar display frame of the user who posted the currently playing video. This means that the target user is the posting user, and clicking on the avatar display frame allows access to the posting user's live broadcast room page. It is noteworthy that in the disclosed embodiments, the target page only needs to have an avatar display frame of the target user, and no specific restrictions are imposed on other features of the target page.
[0085] In an optional embodiment, the triggering operation for requesting the display of the target page may include any operation for triggering the display of the target page, which is not limited herein. For example, assuming that the target page is the personal homepage of the target object, the triggering operation for displaying the personal homepage may include a triggering operation for any entry on the personal homepage.
[0086] S102: In response to the triggering operation, the target page is displayed, and the live video stream or target video clip of the target object is displayed in the avatar display frame.
[0087] In some embodiments, in response to a triggering operation on the avatar display frame, the live broadcast room of the target object is entered, thereby entering the live broadcast room of the target object by clicking on the avatar display frame, watching the live broadcast and participating in the interaction.
[0088] The target video clip is obtained through a live video stream of the target object.
[0089] In an embodiment of the present disclosure, after receiving a trigger operation for requesting to display a target page, the target page is displayed, and when it is determined that the target object is in a live broadcast state, the target object's live video stream or target video clip is displayed in the target object's avatar display frame on the target page. In some embodiments, the target video clip is a highlight clip, which can be a highlight clip determined from the live broadcast content before the current moment. When the highlight clip is displayed in the avatar display frame on the target page, if a trigger operation is received for the avatar display frame, the target object's live broadcast room is entered, and the highlight clip is played first. If the user triggers the playback of the live video stream in the live broadcast room, the playback is switched to the live video stream.
[0090] As shown in Figure 2, a schematic diagram of a personal homepage provided by an embodiment of the present disclosure is shown, wherein the avatar display frame 201 on the personal homepage displays a live video stream or a target video clip of the user to whom the personal homepage belongs, prompting that the user is currently in a live broadcast state, and supporting the current user to preview the live broadcast content of the user. The avatar display frame reveals the live video content of the target object, making it convenient for the current user to understand the live video content without entering the live broadcast room. In addition, when the target object is in a live broadcast state, the avatar display frame 201 not only displays the live video stream or target video clip of the target object, but also displays a "live broadcast" label in the avatar display frame 201 for a more intuitive prompt that the target object is in a live broadcast state.
[0091] In addition, the avatar display frame 201 displays the live video stream or target video clip of the target object, which allows users to understand the live content more intuitively, conveniently and efficiently. Compared with the existing solution in which the live content can only be understood by clicking the avatar display frame, the path of the embodiment of the present disclosure is shorter and more efficient, thereby improving the user experience.
[0092] In addition, if the target object is not in a live video state, an image, such as the user avatar of the target object, may be displayed in the avatar display frame 201 on the target page.
[0093] In one optional embodiment, if the target subject is determined to be live streaming, the target subject's live video stream is pulled from the live streaming server and displayed within the target subject's avatar display box on the target page. The live video stream displayed within the avatar display box allows the current user to preview the target subject's live content. By clicking on the avatar display box, the current user can enter the target subject's live streaming room and watch the live broadcast.
[0094] In another optional embodiment, when it is determined that the target subject is in a live broadcast state, a target video segment of the target subject is obtained from the server. The target video segment is obtained through the target subject's live video stream and includes multiple consecutive live frames in the target subject's live video stream. For example, the target video segment may be a video segment of a certain period of live content in the target subject's live video stream, such as a video segment in the target subject's live video stream where live interactive information meets preset conditions, such as a video segment with a high level of interaction.
[0095] In the embodiment of the present disclosure, when it is determined that the target object is in a non-live broadcast state (in the process of displaying the target page, if it is determined that the target object is in a non-live broadcast state, that is, not broadcasting), the preset avatar corresponding to the target object can be displayed in the avatar display box of the target object on the target page; or when the target part image is not displayed on the current live broadcast screen in the live video stream of the target object, the preset avatar corresponding to the target object can be displayed in the avatar display box.
[0096] In an optional embodiment, since the avatar display frame has the attribute for displaying the avatar, when the target object is in a live broadcast state (in the process of displaying the target page, if it is determined that the target object is in a live broadcast state, that is, a broadcast state), when a trigger operation for requesting to display the target page is received, it can be determined whether a target part image is displayed on the current live screen in the live video stream of the target object (for example, the live screen at the time point corresponding to the trigger operation for requesting to display the target page), wherein the target part image may include a head image, etc. The target part image may also be a target part image of the target object. If it is determined that the target part image is displayed on the video screen, the live video stream or target video clip of the target object is displayed in the avatar display frame on the target page. Thus, user needs are met and user experience is improved.
[0097] In addition, in order to improve the display effect of the display content in the avatar display box on the target page, the embodiment of the present disclosure can enlarge the avatar display box on the target page when it is determined that the target object is in a live broadcast state, and display the target object's video live stream or target video clip in the enlarged avatar display box, thereby more effectively prompting the anchor that he is in a live broadcast state.
[0098] In an optional embodiment, when the target object is in a live broadcast state, the avatar display frame is enlarged and displayed on the target page to a second display size, and then the target object's live video stream or target video clip is displayed in the avatar display frame of the second display size. The second display size is smaller than the first display size, and the first display size is the display size of the avatar display frame when the target object is in a non-live broadcast state. It can be seen that the display size of the avatar display frame on the target page is larger when the target object is in a live broadcast state than in a non-live broadcast state, so as to highlight the target object's live video stream or target video clip, further enhancing the prompt effect of the target object being in a live broadcast state.
[0099] In the page display method provided by the embodiment of the present disclosure, a trigger operation for requesting the display of a target page is received, and in response to the trigger operation, the target page is displayed, and the live video stream or target video clip of the target object is displayed in the avatar display frame on the target page. The target video clip is obtained through the live video stream of the target object. It can be seen that the embodiment of the present disclosure enables the viewing user to preview the live content based on the displayed content in the avatar display frame by displaying the live video stream in the avatar display frame of the target page or obtaining the target video clip through the live video stream. This not only enriches the displayed content in the avatar display frame, but also enhances the live broadcast prompt function of the avatar display frame for the user, and improves the experience of the viewing user who wants to enter the live broadcast room based on the host's avatar frame.
[0100] Based on the above embodiment, the present disclosure also provides a page display method, which is implemented through data interaction between the client and the target server. As shown in Figure 3, it is a flowchart of another page display method provided by the present disclosure, which specifically includes:
[0101] S301: receiving a trigger operation for requesting to display a target page, and sending a page display request for the target page to a target server.
[0102] The target server is configured to return the live video stream or target video clip of the target object when determining that the target object is in a live broadcast state.
[0103] In actual applications, upon receiving a trigger requesting the display of a target page, the client sends a page display request for the target page to the target server, requesting that the target page be displayed on the client. The target page displays a frame displaying the target subject's avatar. The page display request carries the target subject's identifier, which uniquely identifies the target subject.
[0104] In the embodiment of the present disclosure, the target server may be a server or a service cluster composed of multiple servers.
[0105] In the embodiment of the present disclosure, the live video stream refers to a continuous video stream formed from the start to the end of the live broadcast.
[0106] After receiving a page display request carrying the target object's identifier, the target server first determines whether the target object is in a live broadcast state. If so, it pulls the target object's live video stream or target video clip and returns the target object's live video stream or target video clip to the client. The target video clip includes multiple consecutive live frames from the target object's live video stream.
[0107] In an optional implementation, when the target server receives a page display request carrying the identifier of the target object and determines that the target object is in a live broadcast state, it can push the live video stream of the target object to the client so that the client can display the live video stream in the avatar display box on the target page.
[0108] In another optional embodiment, upon receiving a page display request carrying the target object's identifier and determining that the target object is in a live broadcast state, the target server may return a predetermined target video segment to the client so that the client can display the target video segment in an avatar display box on the target page. The target video segment may be a video segment that the target object has previously determined from the live video stream, or it may be a video segment that the target server has determined from the live video stream based on the live broadcast data of the target object's live broadcast room. For example, it may be a video segment of a certain period of time in the target object's live video stream, such as a segment in the target object's live video stream with a high live click-through rate, popularity value, etc.
[0109] If it is determined that the target object is not in a live video broadcast state, the target server may return the user avatar of the target object to the client for display in a user avatar frame on the target page.
[0110] S302: Receive the live video stream or target video clip of the target object.
[0111] In the disclosed embodiment, the client receives a live video stream or a target video clip from a target server, and displays a target page.
[0112] S303: Display the target page, and display the live video stream or target video clip of the target object in the avatar display frame.
[0113] The target video clip is obtained through a live video stream of the target object.
[0114] Among them, the avatar display frame is used to trigger the live broadcast room page that displays the target object's video live stream.
[0115] In the embodiment of the present disclosure, if a live video stream or a target video clip of a target object is received from a target server, it indicates that the target object is in a live broadcast state. The client can display the target page and display the live video stream or the target video clip of the target object in the avatar display box on the target page.
[0116] In one optional embodiment, the target server returns the target subject's live video stream to the client. Specifically, the target server pulls the target subject's live video stream from the live streaming server in real time so that the live video stream can be played in real time in the avatar display box on the target page. The live video stream played in the avatar display box allows a preview of the target subject's live video content. By previewing the live video stream played in the avatar display box, the user can determine whether they are interested in the target subject's live video content. In addition, the user can click on the avatar display box to enter the target subject's live broadcast room and watch the target subject's live video.
[0117] In another optional implementation, the target server returns the target video clip of the target object to the client, and the target video clip can be played in a loop in the avatar display box on the target page. By looping the target video clip in the avatar display box, the live video content of the target object can be understood, thereby determining whether to click on the avatar display box to enter the live broadcast room of the target object and watch the live video of the target object.
[0118] In actual applications, since the avatar display frame only has a display function, the live video stream or target video clip of the target object played in the avatar display frame on the target page in the embodiment of the present disclosure may not support audio output.
[0119] In addition, when the live broadcast of the target object ends, the avatar display box on the target page can be updated to display the static avatar of the target object.
[0120] In an optional embodiment, since the avatar display frame has the attribute of displaying an avatar, when the target server determines that the target subject is in a live video broadcast state, but the live video broadcast screen does not display an image of the target part, such as a portrait, the target server may not return the live video stream or target video clip of the target subject, but instead return the user avatar of the target subject. In this case, the avatar display frame 201 in Figure 2 can display a static avatar of the target subject and a "Live Broadcast" label.
[0121] In practical applications, due to the limited display area of the avatar display frame on the target page, how to adapt the target subject's live video stream or target video clip to the avatar display frame is a key issue. To improve the display effect of the avatar display frame on the target subject's live video stream or target video clip, the disclosed embodiments can control the avatar display frame's screen display area for the target subject's live video stream or target video clip based on the cropping area position information of the target subject, which determines the cropping area.
[0122] In an optional embodiment, the cropping area position information corresponding to the avatar display frame can be pre-set to control the screen display area of the target object's live video stream or the target video clip in the avatar display frame. For example, the pre-set cropping area position information can be the position information of a rectangular or circular area determined with the center point of the video screen in the live video stream as the center position. After receiving the target object's live video stream or the target video clip, the client displays the target object's live video stream or the target video clip in the avatar display frame on the target page based on the cropping area position information. Specifically, the cropping area determined based on the cropping area position information is applied to the player corresponding to the avatar display frame to control the screen display area of the live video stream or the target video clip played in the avatar display frame. For example, the avatar area in the video screen displaying the live video stream or the target video clip in the avatar display frame is controlled, that is, the partial area centered on the avatar.
[0123] In another optional implementation, based on the above embodiment, the live video stream of the target object or the target video clip can be controlled to be displayed in the avatar display frame on the target page by proportionally enlarging or reducing the display. For example, when the display screen of the client is relatively large, such as a projection screen, a giant screen, or other large screen, the area of the avatar display frame on the target page used to display the live video stream of the target object or the target video clip is also relatively large. Therefore, the screen display area of the live video stream of the target object or the target video clip can be enlarged and displayed in the avatar display frame. Similarly, when the display screen of the client is relatively small, such as a mobile phone screen, the screen display area of the live video stream of the target object or the target video clip can be reduced and displayed in the avatar display frame.
[0124] In order to more accurately display the target part image in the live video screen within the avatar display frame on the target page, the disclosed embodiment can determine the cropping area position information based on the display position of the target part image in the live video screen. The target part image can be a specific object such as a portrait or avatar in the live video screen.
[0125] To this end, after the embodiment of the present disclosure sends a page display request carrying the identification of the target object to the target server, if the target server determines that the target object is in a live broadcast state, the target server returns the cropping area position information of the target object, which is used to control the live video stream of the target object or the screen display area of the target video clip within the avatar display box on the target page.
[0126] Specifically, the target server determines the cropping area position information of the target object based on the display position of the target part image on the video screen in the live video stream of the target object, so as to display the target part image in the avatar display frame.
[0127] The disclosed embodiments provide a page display method, which can realize displaying a video live stream in an avatar display frame of a target page or obtaining a target video clip through the video live stream through data interaction between a client and a target server, so that viewers can preview the live content based on the displayed content in the avatar display frame. This not only enriches the displayed content in the avatar display frame, but also enhances the live broadcast prompt function of the avatar display frame for users, and improves the experience of viewers who want to enter the live broadcast room based on the host's avatar frame.
[0128] On the basis of the above embodiments, the present disclosure further provides a page display method. Referring to FIG4 , which is a flowchart of another page display method provided by the present disclosure, the method includes:
[0129] S401: receiving a page display request for a target page from a target client.
[0130] The page display request is used to request display of a target page, on which an avatar display frame of a target object is set.
[0131] The page display method provided by the embodiment of the present disclosure is applied to a target server, which may be a single server or a server cluster composed of multiple servers.
[0132] In the embodiment of the present disclosure, when the target server receives a page display request carrying the identifier of the target object, it first determines whether the target object is in a live broadcast state, so as to determine whether to return the live video stream or target video clip of the target object.
[0133] The method of determining whether the target object is in a live broadcast state is not limited in the embodiments of the present disclosure.
[0134] S402: Returning the live video stream or target video clip of the target object to the target client, so as to display the live video stream or target video clip of the target object in the avatar display frame on the target page of the target client.
[0135] The target video clip is obtained through a live video stream of the target object.
[0136] In the embodiment of the present disclosure, when the target server determines that the target object is in a live broadcast state, it returns the target object's video live stream or target video clip to the target client; when it determines that the target object is in a non-live broadcast state, it returns the target object's user avatar to the target client.
[0137] In an optional embodiment, if it is determined that the target object is in a live broadcast state, the cropping area position information of the target object is returned to the target client; wherein, the cropping area position information is determined based on the display position of the target part image on the video screen in the live video stream of the target object, and the cropping area position information is used to control the display screen area of the live video stream of the target object or the target video clip within the avatar display frame.
[0138] In another optional embodiment, during the live broadcast of the target object, the target server takes a screenshot of the live screen in the live video stream of the target object according to a preset screenshot cycle to obtain a screenshot corresponding to the live video stream. If it is determined that the target part image exists in the screenshot, the cropping area position information of the target object is determined based on the display position of the target part image in the screenshot; the cropping area position information of the target object is stored in a preset cache area. Specifically, when the target server determines that the target object is in a live broadcast state, it can obtain the cropping area position information of the target object from the preset cache area for returning to the target client.
[0139] In an optional embodiment, after the target server takes a screenshot of the live screen in the live video stream of the target object to obtain a screenshot corresponding to the live video stream, the screenshot corresponding to the live video stream can be stored in a preset message queue. When the conditions for analyzing and processing the screenshot are met, the screenshot corresponding to the live video stream can be read from the preset message queue, and it can be determined whether the target part image is displayed on the screenshot, for example, whether the target part image is displayed on the screenshot. If it is determined that the target part image is displayed on the screenshot, the target object's cropping area position information is determined based on the display position of the target part image on the screenshot, for example, a rectangular or circular area is determined as the cropping area with the display position of the target part image on the screenshot as the center point, and the position information of the cropping area (such as the coordinates of the upper left corner and the lower right corner) is used as the target object's cropping area position information, and the target object's cropping area position information is stored in the preset cache area.
[0140] In the embodiment of the present disclosure, when the target server receives a page display request carrying the identifier of the target object, it can directly obtain the cropping area location information of the target object from the preset cache area, thereby achieving asynchrony with the processing flow of the page display request and reducing the occurrence of abnormalities in the target server caused by a large number of page display requests.
[0141] On the basis of the above embodiment, referring to FIG5, a data interaction diagram of a page display method provided by the embodiment of the present disclosure is provided, wherein, for the "visit target page" part, after the client receives the trigger operation for requesting to display the target page, it sends a page display request to the second server; after receiving the page display request, the second server first determines whether the target object is in a video live state. If so, it pulls the video live stream of the target object from the live server and returns the video live stream to the client. In order to improve the display effect of the user's avatar frame, the second server can also obtain the cropping area coordinate information of the target object from the preset cache area redis and return the cropping area coordinate information to the client. After receiving the video live stream and the cropping area coordinate information, the client applies the cropping area coordinate information to the player, and uses the player to play the video live stream in the avatar display frame on the target page, wherein the cropping area determined by the cropping area coordinate information is used to control the screen display area of the video live stream played in the avatar display frame.
[0142] Regarding the "live stream screenshot" part, the anchor user pushes the live stream to the first server during the live broadcast. The first server takes a screenshot of the live screen according to the preset screenshot period (such as 10s), and then saves the live screen screenshot to the preset message queue. The live screen screenshots stored in the preset message queue have their own screenshot identifiers, and the corresponding live screen screenshots can be obtained through the screenshot identifiers.
[0143] For the "screenshot cropping" part, the second server reads the live screen screenshot from the preset message queue based on the screenshot identifier, and sends the live screen screenshot to the third server, which analyzes the live screen screenshot to determine whether there is a target part image (such as a specific part object such as a portrait) on the live screen screenshot. If so, the cropping area coordinate information is determined based on the display position of the target part image in the live screen screenshot, and then the cropping area coordinate information is returned to the second server, which sends the cropping area coordinate information to the preset cache area redis. In an optional implementation, the display position of the target part image in the live screen screenshot can be used as the center point, and the shorter side in the live screen screenshot can be used as the side of the cropping area to determine a cropping area, and the coordinates of the upper left corner and the lower right corner of the cropping area can be used as the cropping area coordinate information and stored in redis.
[0144] In one optional implementation, after determining the cropping region coordinate information, the second server stores the cropping region coordinate information in Redis, overwriting the historical cropping region coordinate information. In other words, Redis stores the latest cropping region location information, which reflects the display position of the portrait in the live video stream. Therefore, the latest cropping region location information is used to more accurately control the display of the live video stream within the portrait display frame on the target page.
[0145] In addition, the second server can also delete the cropping area coordinate information stored in redis when detecting that no new cropping area coordinate information is determined within a preset time period, to indicate that the target image does not exist on the live screen in the live video stream.
[0146] In the page display method provided by the embodiment of the present disclosure, the three processing flows of the above-mentioned "access target page", "live stream screenshot" and "screenshot cropping" are set to be implemented asynchronously, especially the asynchronous implementation of the "access target page" part and the other two parts, which can avoid the occurrence of problems such as server freeze and slow loading caused by a large number of page display requests from the client.
[0147] Based on the above method embodiment, the present disclosure further provides a page display device. Referring to FIG6 , which is a structural diagram of a page display device provided in an embodiment of the present disclosure, the device includes:
[0148] The first receiving module 601 is configured to receive a trigger operation for requesting to display a target page; wherein the target page is provided with an avatar display frame of a target object;
[0149] The first display module 602 is used to display the target page in response to the trigger operation, and display the live video stream or target video clip of the target object in the avatar display frame; wherein the target video clip is obtained through the live video stream of the target object.
[0150] In an optional implementation manner, the first display module is specifically configured to:
[0151] When the target object is in a live broadcast state, displaying the target object's live video stream or target video clip in the avatar display frame;
[0152] In an optional embodiment, the device further includes:
[0153] The second display module is used to display the preset avatar corresponding to the target object in the avatar display frame when the target object is in a non-live broadcast state, or
[0154] In a case where the target part image is not displayed on the current live screen in the live video stream of the target object, a preset avatar corresponding to the target object is displayed in the avatar display frame.
[0155] In an optional embodiment, the first display module is specifically used to
[0156] If a target part image is displayed on the current live screen in the live video stream of the target object, the live video stream or the target video clip of the target object is displayed in the avatar display frame.
[0157] In an optional implementation manner, the trigger operation is an operation triggered by the current object, and the target page is the personal homepage of the target object;
[0158] Alternatively, the target page is a follow page of the current object, on which a head portrait display frame of the current object's follow object is displayed, and the target object is one of the current object's follow objects.
[0159] In an optional implementation, the first display module includes:
[0160] A magnification submodule, configured to magnify and display the avatar display frame on the target page;
[0161] The display submodule is used to display the live video stream or target video clip of the target object in the avatar display frame after the enlarged display.
[0162] In an optional implementation manner, the amplification submodule is specifically used to:
[0163] When the target object is in a live broadcast state, the avatar display frame is displayed on the target page in an enlarged manner to a second display size; wherein the second display size is smaller than the first display size, and the first display size is the display size of the avatar display frame when the target object is in a non-live broadcast state;
[0164] Accordingly, the display submodule is specifically used for:
[0165] The live video stream or target video clip of the target object is displayed in the avatar display frame of the second display size.
[0166] In an optional embodiment, the device further includes:
[0167] A first sending module is configured to send a page display request for the target page to a target server; wherein the target server is configured to return a live video stream or a target video clip of the target object when determining that the target object is in a live broadcast state;
[0168] The third receiving module is used to receive the live video stream or target video clip of the target object.
[0169] In an optional embodiment, the device further includes:
[0170] a fourth receiving module, configured to receive position information of a cropping region corresponding to the target object; wherein the position information of the cropping region is determined based on a display position of an image of a target part on a video screen in a live video stream of the target object;
[0171] A first determining module, configured to determine a cropping area based on the cropping area position information;
[0172] Accordingly, the first display module is specifically used to:
[0173] Based on the cropping area, the live video stream or target video clip of the target object is displayed in the avatar display frame; wherein, the cropping area is used to control the screen display area of the live video stream or target video clip of the target object in the avatar display frame.
[0174] Based on the above method embodiment, the present disclosure further provides a page display device. Referring to FIG7 , which is a schematic structural diagram of another page display device provided by an embodiment of the present disclosure, the device includes:
[0175] The second receiving module 701 is configured to receive a page display request for a target page from a target client; wherein the target page is provided with an avatar display frame of a target object;
[0176] The first return module 702 is used to return the live video stream or target video clip of the target object to the target client, so as to display the live video stream or target video clip of the target object in the avatar display box on the target page of the target client; wherein, the target video clip is obtained through the live video stream of the target object.
[0177] In an optional embodiment, the device further includes:
[0178] A second determining module is used to determine whether the target object is in a live broadcast state;
[0179] Accordingly, the first return module is specifically configured to:
[0180] If it is determined that the target object is in a live broadcast state, the live video stream or target video clip of the target object is returned to the target client to display the live video stream or target video clip of the target object in the avatar display box on the target page of the target client.
[0181] In an optional embodiment, the device further includes:
[0182] The second return module is used to return the cropping area position information of the target object to the target client; wherein, the cropping area position information is determined based on the display position of the target part image on the video screen in the live video stream of the target object, and the cropping area position information is used to control the screen display area of the live video stream of the target object or the target video clip within the avatar display frame.
[0183] In an optional embodiment, the device further includes:
[0184] A screenshot module is used to take screenshots of the live video stream of the target object according to a preset screenshot cycle to obtain screenshots corresponding to the live video stream;
[0185] a third determining module, configured to, when determining that a target part image is displayed in the screenshot, determine position information of a cropping area of the target object based on a display position of the target part image in the screenshot;
[0186] A first storage module is configured to store the location information of the clipping area of the target object in a preset cache area;
[0187] Accordingly, the second return module is specifically configured to:
[0188] The clipping region position information of the target object is acquired from the preset cache area, and the clipping region position information of the target object is returned to the target client.
[0189] In an optional embodiment, the device further includes:
[0190] A second storage module is used to store the screenshot corresponding to the live video stream in a preset message queue;
[0191] Accordingly, the device further includes:
[0192] The reading module is used to read the screenshot corresponding to the live video stream from the preset message queue and determine whether the target part image is displayed on the screenshot.
[0193] The disclosed embodiment displays a live video stream in an avatar display frame on a target page or obtains a target video clip through the live video stream, so that the viewing user can preview the live content based on the displayed content in the avatar display frame. This not only enriches the displayed content in the avatar display frame, but also makes it easier for the user to understand the live broadcast situation, meets the user's needs, and improves the user experience.
[0194] In addition to the above-mentioned method and apparatus, the embodiment of the present disclosure further provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal device, the terminal device implements the page display method described in the embodiment of the present disclosure.
[0195] The embodiments of the present disclosure further provide a computer program product, which includes a computer program / instructions. When the computer program / instructions are executed by a processor, the page display method described in the embodiments of the present disclosure is implemented.
[0196] In addition, the embodiment of the present disclosure further provides a page display device, as shown in FIG8 , which may include:
[0197] Processor 801, memory 802, input device 803, and output device 804. The page display device may include one or more processors 801, with one processor being used as an example in FIG8 . In some embodiments of the present disclosure, the processor 801, memory 802, input device 803, and output device 804 may be connected via a bus or other means, with FIG8 using a bus as an example.
[0198] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing of the page display device by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function, etc. In addition, the memory 802 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 device. The input device 803 may be used to receive input digital or character information, and to generate signal input related to user settings and function control of the page display device.
[0199] Specifically in this embodiment, the processor 801 will load the executable files corresponding to the processes of one or more applications into the memory 802 according to the following instructions, and the processor 801 will run the applications stored in the memory 802, thereby realizing the various functions of the above-mentioned page display device.
[0200] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0201] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.
Claims
1. A page display method, wherein the method comprises: Receiving a trigger operation for requesting to display a target page; wherein the target page is provided with an avatar display frame of the target object; In response to the trigger operation, the target page is displayed, and the live video stream or target video clip of the target object is displayed in the avatar display frame; wherein the target video clip is obtained through the live video stream of the target object.
2. The method according to claim 1, wherein displaying the live video stream or target video clip of the target object in the avatar display frame comprises: When the target object is in a live broadcast state, the live video stream or target video clip of the target object is displayed in the avatar display frame.
3. The method according to claim 1, wherein the method further comprises: When the target object is in a non-live broadcast state, a preset avatar corresponding to the target object is displayed in the avatar display frame, or When the target part image is not displayed on the current live screen in the live video stream of the target object, a preset avatar corresponding to the target object is displayed in the avatar display frame.
4. The method according to claim 1, wherein displaying the live video stream or target video clip of the target object in the avatar display frame comprises: If a target part image is displayed on the current live screen in the live video stream of the target object, the live video stream or the target video clip of the target object is displayed in the avatar display frame.
5. The method according to claim 1, wherein the trigger operation is an operation triggered by the current object, and the target page is the personal homepage of the target object; Alternatively, the target page is a follow page of the current object, on which a headshot display box of an object of interest of the current object is displayed, and the target object is an object of interest of the current object.
6. The method according to claim 1, wherein displaying the live video stream or target video clip of the target object in the avatar display frame comprises: Enlarging and displaying the avatar display frame on the target page; The live video stream or target video clip of the target object is displayed in the enlarged avatar display frame.
7. The method according to claim 6, wherein the enlarging and displaying the avatar display frame on the target page comprises: When the target object is in a live broadcast state, the avatar display frame is enlarged and displayed on the target page to a second display size; wherein the second display size is smaller than the first display size, and the first display size is the display size of the avatar display frame when the target object is in a non-live broadcast state; Correspondingly, displaying the live video stream or target video clip of the target object in the avatar display frame after the enlarged display includes: The live video stream or the target video clip of the target object is displayed in the avatar display frame of the second display size.
8. The method according to claim 1, wherein after receiving the trigger operation for requesting to display the target page, the method further comprises: Sending a page display request for the target page to the target server; wherein the target server is used to return the live video stream or target video clip of the target object when determining that the target object is in a live broadcast state; Receive a live video stream or a target video clip of the target object.
9. The method according to claim 8, wherein after sending the page display request carrying the identifier of the target object to the target server, the method further comprises: Receive the cropping area position information corresponding to the target object; wherein the cropping area position information is determined based on the display position of the target part image on the video screen in the live video stream of the target object; Determine a cropping area based on the cropping area position information; Correspondingly, the live video of the target object is displayed in the avatar display frame. Stream or target video segments, including: Based on the cropping area, the live video stream or the target video clip of the target object is displayed in the avatar display frame; wherein the cropping area is used to control the screen display area of the live video stream or the target video clip of the target object in the avatar display frame.
10. A page display method, wherein the method comprises: Receiving a page display request for a target page from a target client; wherein the target page is provided with an avatar display frame of a target object; Return the live video stream or the target video clip of the target object to the target client, so as to display the live video stream or the target video clip of the target object in the avatar display frame; wherein the target video clip is obtained through the live video stream of the target object.
11. The method according to claim 10, wherein before returning the live video stream or target video clip of the target object to the target client, it also includes: Determine whether the target object is in a live broadcast state; Correspondingly, returning the live video stream or the target video clip of the target object to the target client so as to display the live video stream or the target video clip of the target object in the avatar display frame on the target page of the target client includes: If it is determined that the target object is in a live broadcast state, the live video stream or target video clip of the target object is returned to the target client to display the live video stream or target video clip of the target object in the avatar display box on the target page of the target client.
12. The method according to claim 10, wherein the method further comprises: Return the cropping area position information of the target object to the target client; wherein the cropping area position information is determined based on the display position of the target part image on the video screen in the live video stream of the target object, and the cropping area position information is used to control the screen display area of the live video stream of the target object or the target video clip within the avatar display frame.
13. The method according to claim 12, wherein the method further comprises: According to a preset screenshot cycle, a live screen in the live video stream of the target object is screenshotted to obtain a screen screenshot corresponding to the live video stream; If it is determined that the target part image is displayed in the screenshot, determining the position information of the cropping area of the target object based on the display position of the target part image in the screenshot; Storing the clipping area position information of the target object in a preset cache area; Correspondingly, returning the clipping area position information of the target object to the target client includes: The clipping region position information of the target object is obtained from the preset cache area, and the clipping region position information of the target object is returned to the target client.
14. The method according to claim 12, wherein after taking screenshots of the live video stream of the target object according to a preset screenshot cycle and obtaining the screenshots corresponding to the live video stream, the method further comprises: The screenshot corresponding to the live video stream is stored in a preset message queue; Correspondingly, if it is determined that the target part image is displayed in the screenshot, before determining the position information of the cropping area of the target object based on the display position of the target part image in the screenshot, the method further includes: The screen shot corresponding to the live video stream is read from the preset message queue, and it is determined whether the screen shot displays an image of the target part.
15. A page display device, wherein the device comprises: A first receiving module is used to receive a trigger operation for requesting to display a target page; wherein the target page is provided with an avatar display frame of the target object; The first display module is used to display the target page in response to the trigger operation, and to display the live video stream or target video clip of the target object in the avatar display frame; wherein the target video clip is obtained through the live video stream of the target object.
16. A page display device, wherein the device comprises: A second receiving module is used to receive a page display request for a target page from a target client; wherein the target page is provided with an avatar display frame of a target object; The first return module is used to return the live video stream or the target video clip of the target object to the target client, so as to display the live video stream or the target video clip of the target object in the avatar display box on the target page of the target client; wherein, the target video clip is obtained through the live video stream of the target object.
17. 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 method according to any one of claims 1 to 14.
18. A page display device, comprising: 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 14 is implemented.
Citation Information
Patent Citations
Information display method, device and system, electronic equipment and storage medium
CN111131875A
Audio file playing method and device, terminal and storage medium
CN111818358A
Dynamic icon display method and device, and electronic equipment
CN113220184A
Head portrait display method and device
CN115760628A
Page display method and device, equipment and storage medium
CN116708855A
Cited By
Screen display method and system of intelligent ring
CN120295520A
