LIVE CONTENT PRESENTATION METHOD AND APPARATUS, ELECTRONIC DEVICE, AND READABLE STORAGE MEDIUM

The present disclosure relates to a live content presentation method and apparatus, an electronic device, and a readable storage medium. The method includes: receiving a trigger operation on a target entry; and in response to the trigger operation on the target entry, presenting a profile page of a target user, and in response to determining that the target user is on a live, presenting live preview content in a background image area comprised in the profile page, wherein the live preview content is generated in accordance with an image of a live room of the target user.

TECHNICAL FIELD

The present disclosure relates to the field of Internet technology, and in particular, to a live content presentation method and apparatus, an electronic device, and a readable storage medium.

BACKGROUND

With the rapid development of Internet technology, an application can provide a function of online live, wherein an anchor user can start the function of online live, and other users can enter an online live room of the anchor user through a live recommendation page provided by the application or searching for the anchor user, and participate in the online live.

At present, the manner of acquiring the live content by the user is so single that the user experience is seriously influenced.

SUMMARY

In order to solve the above technical problem or at least partially solve the above technical problem, embodiments of the present disclosure provide a live content presentation method and apparatus, an electronic device, and a readable storage medium.

In a first aspect, an embodiment of the present disclosure provides method for presenting live content, comprising:receiving a trigger operation on a target entry; andin response to the trigger operation on the target entry, presenting a profile page of a target user, and in response to determining that the target user is on a live, presenting live preview content in a background image area comprised in the profile page, wherein the live preview content is generated in accordance with an image of a live room of the target user.

In some implementations, the method further comprises:in response to a trigger operation on the background image area, switching from the profile page to the live room of the target user, to present the image of the live room of the target user.

In some implementations, the in response to a trigger operation on the background image area, switching from the profile page to the live room of the target user comprises:in response to a click operation on the background image area, switching from the profile page to the live room of the target user.

In some implementations, the in response to a trigger operation on the background image area, switching from the profile page to the live room of the target user comprises:in response to a drop-down operation on the background image area, determining whether the drop-down operation has reached a preset critical point when it ends; andif it is determined that the drop-down operation has reached the preset critical point when it ends, switching from the profile page to the live room of the target user.

In some implementations, the method further comprises: prompting that the drop-down operation has reached the preset critical point.

In some implementations, the prompting that the drop-down operation has reached the preset critical point comprises:prompting, in the manner of a text prompt and/or a vibration prompt, that the drop-down operation has reached the preset critical point.

In some implementations, the live preview content is obtained by cropping the image of the live room of the target user in accordance with a size of the background image area.

In some implementations, the live preview content is obtained by identifying a visual center of gravity of the image of the live room of the target user and cropping the image of the live room of the target user in accordance with the size of the background image area and the visual center of gravity.

In some implementations, the live preview content is obtained by zooming out the image of the live room of the target user in accordance with a size of the background image area.

In a second aspect, an embodiment of the present disclosure provides an apparatus for presenting live content, comprising:a receiving module configured to receive a trigger operation on a target entry; anda displaying module configured to, in response to the trigger operation on the target entry, present a profile page of a target user, and in response to determining that the target user is on a live, present live preview content in a background image area comprised in the profile page, wherein the live preview content is generated in accordance with an image of a live room of the target user.

In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a memory and a processor, wherein the memory is configured to store computer program instructions, and the processor is configured to execute the computer program instructions to implement the method for presenting live content in accordance with any term of the first aspect.

In a fourth aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, comprising: computer program instructions,wherein the computer program instructions, when executed by at least one processor of an electronic device, cause the electronic device to implement the method for presenting live content in accordance with any term of the first aspect.

In a fifth aspect, an embodiment of the present disclosure further provides a computer program product which, when being executed by a computer, causes the computer to perform the method for presenting live content in accordance with any term of the first aspect.

DETAILED DESCRIPTION

In order that the above objectives, features and advantages of the present disclosure may be more clearly understood, the solutions of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be implemented in other ways than those described herein; and it is apparent that the embodiments in the description are only a few embodiments of the present disclosure, but not all embodiments.

Exemplarily, the present disclosure provides a live content presentation method and apparatus, an electronic device, a readable storage medium, and a computer program product, wherein the method comprises: receiving a trigger operation on a target entry; and in response to the trigger operation on the target entry, presenting a profile page of a target user, and in response to determining that the target user is on a live, presenting live preview content in a background image area comprised in the profile page, wherein the live preview content presented in the background image area is generated in accordance with an image of a live room released by the target user, such that the following is achieved: a user can view the live content released by the target user when entering the profile page of the target user, which enriches the channel for a user to preview the live content, and helps raising a motivation of the user to enter the live room page, and improves the user experience.

Herein, the background image area of the profile page mentioned in the present disclosure is a head image area of the profile page, and the background image area is used for presenting a profile page background image and is usually located at a top area of the profile page. Herein, for the background image of the profile page, a default background image may be used, and user customization may also be supported, which is not limited in the present disclosure.

Herein, the live content released by the target user may include: video performance, content recorded in real time, pre-recorded content, and the like, which is not limited in the present disclosure.

Herein, the method for presenting live content provided in the present disclosure is executed by an electronic device. The electronic device may be an internet of things (IOT) device, such as a tablet computer, a mobile phone (such as a foldable mobile phone, a large screen mobile phone, or the like), a wearable device, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart television, a smart screen, a high-definition television, a 4K television, a smart speaker, and a smart projector, and the present disclosure does not impose any limitation on the specific type of the electronic device.

Herein, the present disclosure does not limit a type of an operating system of the electronic device. For example, an Android system, a Linux system, a Windows system, an iOS systems, etc.

Based on the foregoing description, in the embodiments of the present disclosure, by taking the electronic device as an example and combining the accompanying drawings and an application scenario, a detailed description is made to an interaction method provided in the present disclosure.

An implementation process of the method for presenting live content provided by the present disclosure is described in conjunction withFIGS.1A to1F. For convenience of the description, the electronic device is a mobile phone, where a short video social application (hereinafter, referred to as application1) is installed, and a user1is a live user who is on a live.

FIGS.1A to1Fare schematic diagrams of human-computer interaction interfaces provided by embodiments of the present disclosure.

Herein, when the application1receives a trigger operation for entering a profile page of the user1, the application1may, on the mobile phone, exemplarily display a user interface11as shown inFIG.1A, wherein the user interface11is used for presenting the profile page of the user1.

Referring toFIG.1A, the user interface11includes: an area101, which is a background image area. If the user1is on a live currently, the area101is used for presenting live preview content generated in accordance with an image of a live room of the user1; and if the user1is not on a live currently, the area101may present a background image of the profile page corresponding to the user1; the present disclosure does not limit the background image of the profile page, for example, the background image of the profile page of the user1may be a default background image provided by the application1, or a background image customized by the user1.

The present disclosure does not limit parameters of the area101, such as size, display position, shape, and the like. For example, referring toFIG.1A, the area101may be quadrilateral, and the area101may be located at a top area of the profile page, that is, the area101is located at a top area of the user interface11.

When the user1is on a live currently, the live preview content presented in the area101may be generated in accordance with the image of the live room of the user1. The present disclosure does not limit a type of the live room of the user1, for example, the live room of the user1may be a live room capable of producing a real-time live stream, for example, the live content of the live room of the user1is a video performance recorded in real time, a pre-recorded video performance, a movie/TV drama played back, or the like, and furthermore, the live room of the user1may also be a non-stream live room, for example, a voice live room, a chat room live room, and the like.

Next, the description is made by taking an example that a live of a video performance recorded in real time is being performed in the live room of the user1.

Assuming that a live of the video performance recorded in real time is being performed in the live room of the user1, a live stream will be produced by the live room of the user1, and the live preview content generated in accordance with the live stream generated by the live room is a live preview stream corresponding to the live stream, then the live preview stream is presented in the background image area (i.e., area101) of the profile page of the user1. Other live rooms capable of producing a live stream, which are similar to the live room of the user1, may all present a live preview stream in the background image area of the profile page of the target user in a manner similar to that described above.

For example, in the area101, the image of the live content (i.e., the video performance) released by the user1in the live room can be displayed, while whether to display other content than the live content in the area101, for example, comment information released by the user in the live room, or the like, is not limited in the present disclosure. Because the user, when entering the live room, generally pays greater attention to the live content released in the live room than attention to other content presented in the live room, the image of the live content can be mainly presented in the area101, which conforms to the viewing habit of the user, and can improve the user experience.

In some implementations, the live content may not be image-processed, and the image of the obtained live content is displayed in the area101.

For example, the size of the area101is matched with that of the image of the live content, for example, if the size of the area101is greater than or equal to that of the image of the live content, the size of the image of the live content can be kept unchanged to display the live content in the area101, which can ensure that the user can view the relatively complete image of the live content from the area101, thereby helping raising the motivation of the user to enter the live room. When the size of the area101is greater than that of the image of the live content, other content may be filled in an area that cannot be filled with the image of the live content, for example, the area that cannot be filled with the image of the live content is filled with pure black or pure white.

In other implementations, image processing is performed on the image of the live content to obtain the live preview content, and then the live preview content is presented in the area101.

For example, by cropping the image of the live content, an image of an area may be selected from the image of the live content for presentation; when cropping, an image presented in the area101may be obtained by identifying a visual center of gravity of the image of the live content in real time and cropping the image of the live content in accordance with the size of the area101and the visual center of gravity.

Herein, a most delectable image area can be identified and cut-out from the image of the live content by using artificial intelligence technology, and real-time tracking is performed, to make sure that the center of gravity of the image of the live content is always presented in the background image area of the profile page. Alternatively, the image of the live content can be zoomed out so that the image of the live content can be thumbnail-presented in the area101; alternatively, when the size of the image area of the live content to be cut-out is not matched with that of the area101, the image of the cut-out live content may be resized, and then the resized image of the live content is presented in the area101, and if the entire area101might not be filled with the resized image of the cut-out live content, then other content may be filled in an area that cannot be filled with the image of the cut-out live content, for example, the area that cannot be filled with the image of the cut-out live content is filled with pure black or pure white.

The presentation mode of the live content released by the user1in the area101is not limited in the present disclosure, and can be flexibly set as required. In addition, when the live preview content is displayed in the area101, whether the electronic device is currently in a landscape screen state or a portrait screen state can be considered; for example, when the electronic device is in the portrait screen state, blank-leaving processing can be performed on both sides of the image of the live preview content, and when the electronic device is in the landscape screen state, the image of the live preview content can be made to occupy the entire area101.

In addition, in the area101, prompt content for prompting that the user1is on a live may also be displayed, which may be implemented by one or more of an image, a symbol, text, animation effects, or the like; for example, referring toFIG.1A, the prompt content may be displayed in an area a1, where the prompt content includes text “live is being performed” and a symbol with animation effects. The present disclosure does not limit the display parameters of the prompt content, such as display position, size, color, and the like.

Furthermore, the user interface11may further include: a control102for controlling volume of the live preview content. The control102may be implemented by one or more of an image, a symbol, text, or the like. When the application1displays the user interface11, it may be in a mute state by default, that is, audio content included in the live preview content is not played back, and a presentation mode of the control102corresponds to the mute state; when the application1receives a trigger operation (e.g., a click operation) for the control102, the application1may play back the audio content included in the live preview content, and switch the presentation mode of the control102to a mode corresponding to a non-mute state.

The user can repeatedly operate the control102to toggle between the mute state and the non-mute state.

Furthermore, the user interface11may further include: a control103for exiting the profile page of the user1, an entry104for entering a specific page, wherein the user can, by means of the specific page, realize functions such as sharing the user1, blocking the user1, sending a private message to the user1. The present disclosure does not limit implementations and display parameters of the control103and the entry104. For example, the control103and the entry104each may be implemented by one or more of an icon, text, an image, a symbol, or the like, and the control103and the entry104may have display positions overlapped with the area103and be displayed in an upper layer of the area101.

In order to minimize shield against the image of the live preview content displayed in the area101by the control103and the entry104, the control103and the entry104can be set to be displayed in a semi-transparent state.

In addition, the user interface11may further present related information of the user1, for example, account information of the user1, avatar information of the user1, a personality signature of the user1, label information of a type to which the user1belongs, a work released by the user1, a work liked by the user1, an entry for entering a goods window of the user1, an entry for entering a topic in which the user1participates, an entry for entering a fans group of the user1, and the like.

On the basis of the embodiment shown inFIG.1A, in response to a trigger operation on the area101, the application1may, on the mobile phone, present a live room page of the user1, that is, enter the live room of the user1.

This embodiment exemplarily provides scenarios of entering the live room of the user1by a click operation and a drop-down operation on the area101, respectively, which are respectively described in detail below.

Scenario1: in response to a click operation on the area101, entering the live room of the user1.

In the scenario1, the user may click any position of the area101, the application1may determine whether the position clicked by the user is a position within the area101, and if the position clicked by the user is the position within the area101, the application1may jump to the live room page of the user1; the present disclosure does not limit the implementation of the live room page of the user1.

Exemplarily, the application1may, on the mobile phone, exemplarily display a user interface12shown inFIG.1B, which is used for displaying the live room page of the user1.

InFIG.1B, the user interface12includes: an area105.

The area105, is used for displaying the live content released by the user1, and enables the user to view multimedia content released by the user1. The present disclosure does not limit the parameters of the area105, such as shape, area position, size, and the like. For example, referring toFIG.1B, the area105is a quadrilateral area located in a middle of the user interface12. It should be noted that the area105may also include an entire display screen of the mobile phone.

In addition, the user interface12may further present content such as a follow button for an account associated with the live content released by the user1, the number of views of the live content played back currently, a title of the live content played back currently, and the like. The user interface12may further present a control related to the live content played back currently; for example, a button for exiting the live room, a button for sharing the live content of the current live room, an entry for entering a live recommendation page, an entry for entering a virtual gift presentation interface, and an entry for entering a specific page, wherein the user may, through the specific page, realize functions such as sharing the live room of the user1reporting the live room of the user1, clearing a screen, and the like.

In addition, the user interface12may further include an area106, which is used for displaying a comment interface corresponding to the live content. The comment interface is mainly used for displaying comment information for the live content played back currently. Herein, the present disclosure does not limit the manner of displaying the comment information on the comment interface.

It should be noted that, if the position clicked by the user is not the position within the area101, the application1may jump to another corresponding page in accordance with the position clicked by the user or keep the current user interface11unchanged.

Scenario2: in response to a drop-down operation on the area101, entering the live room of the user1.

In the scenario2, the user may start to drop down from any position of the area101, and when the application1detects that the drop-down operation ends, and the application1determines that the drop-down operation has reached a preset critical point, the application1jumps to the live room page of the user1.

The preset critical point can be determined in accordance with a position of a pixel point on the mobile phone screen. Referring toFIG.2, assuming that the mobile phone screen has pixels of375*210, taking a lower left corner of the mobile phone screen as an origin, a rectangular coordinate system is established along two mutually perpendicular edges, where an edge in a vertical direction is a Y axis and an edge in a horizontal direction is an X axis, then a position of the preset critical point may include positions of a plurality of pixels on a straight line with the Y coordinate of n. For example, n=88, then the preset critical point may include positions of a plurality of pixel points with the Y coordinate of88.

Herein, in the embodiment shown inFIG.2, “pt” and “dp” both indicate a pixel unit, and “pt/dp” indicates any pixel unit of “pt” or “dp”.

The present disclosure does not limit the implementation of jumping from the profile page to the live room page in the scenario2.

Exemplarily, when the user starts the drop-down operation from any position of the area101, and when the drop-down operation has reached the preset critical point, the live room page of the user1may be presented on the mobile phone screen in a manner of downward movement.

Exemplarily, it is assumed that when the application1detects that the drop-down operation has reached and exceeded the preset critical point, the application1may, on the mobile phone, exemplarily display a user interface13shown inFIG.1C.

Referring to the user interface13shown inFIG.1C, the profile page displayed in the user interface13moves downward with respect to the profile page presented in the user interface11. Due to the downward movement of the profile page, an area formed by an upper edge of the profile page, an upper edge of the mobile phone screen and two side edges of the mobile phone screen appears, such as an area107shown inFIG.1C, where the live room page of the user1can be displayed; since the size of the area107cannot fully present the entire content of the live room page, so that part of the image of the live room page can be presented in the area107, for example, image content corresponding to a position of the area107can be cut-out from the image of the live room page and displayed in the area107.

Assuming that the live room page is as shown inFIG.1B, the image content corresponding to the area107is cut-out in accordance with the content presented in the live room page, wherein the image content corresponding to the area107is pure white image content, so that inFIG.1C, it is the pure white image content in the area106.

In addition, it should be noted that before the drop-down operation has reached the preset critical point, the application1may, on the mobile phone screen, always display the user interface11shown inFIG.1A.

In addition, when the drop-down operation has reached the preset critical point, the application1may further display prompt information to prompt the user that the drop-down operation has reached the preset critical point, so that the user can know to end the drop-down operation so that the live room of the user1can be entered. The prompt information can be implemented in the manner of a text prompt and/or a vibration prompt.

For example, referring toFIG.1C, the user interface13further includes: an area108which is used for displaying text content “loose your hand and enter the live room” to prompt the user that the drop-down operation has reached the preset critical point, and certainly, the text prompt may also be achieved by other text content, and is not limited to the case shown inFIG.1C.

The present disclosure does not limit the parameters of the area108, such as display position, size, area color, color, font, and size of text located in the area108, and the like. For example, as shown inFIG.1C, the area108may be overlapped with the background image area of the profile page and displayed in an upper layer of the background image area.

If the application1detects that the drop-down operation ends when the text prompt in the area108and the vibration prompt appear, the application1may automatically move downwards a non-background image area of the profile page, and then display the live room page of the user1on the entire screen of the mobile phone, for example, display the user interface12shown inFIG.1B.

If the preset critical point has been reached, but the application1detects that the drop-down operation does not end (if the user does not loose his hand, the application1may determine that the drop-down operation does not end), and the user continues sliding down, then, as a distance of the drop-down operation exceeding the preset critical point continuously increases, the area107is continuously increased in area, so that there can be more and more related content of the live room page that can be displayed in the area107.

Exemplarily, the application1may, on the mobile phone, exemplarily display a user interface14as shown inFIG.1D, where the background image area of the profile page disappears, and further downward movement of the non-background image area of the profile page occurs, and where the non-background image area of the profile page becomes smaller in size, and the area107for displaying the related image of the live room page of the user1is increased in area.

Furthermore, the prompt information for prompting the user that the drop-down operation has reached the preset critical point may disappear as the area107is continuously increased in area. For example, when the area107exceeds half of the entire mobile phone screen, the text prompt in the area108can disappear and the vibration prompt can also cease.

In the user interface14shown inFIG.1D, with the continuous downward movement of the profile page, the background image area of the profile page disappears, so that the area107is increased in area, and the user can focus his vision on the related image of the live room page, which is beneficial to improving the user experience.

As the application1detects that the drop-down operation ends and the drop-down operation has reached the preset critical point, the application1may automatically move downwards the non-background image area of the profile page, and then display the live room page of the user1on the entire screen of the mobile phone, for example, display the user interface12shown inFIG.1B.

In this way, the user can successfully enter the live room page of the user1by means of the drop-down operation for the background image area of the profile page.

In some cases, when the user starts to drop down from any position of the area101, and the application1detects that the drop-down operation has not reached the preset critical point when it ends, the application1will not jump to the live room page of the user1, and the application1always displays the profile page of the user1in the process of inputting the drop-down operation by the user; alternatively, if the drop-down operation input by the user has exceeded the preset critical point but the user does not loose his hand, the application1may exemplarily and sequentially display the user interface13shown inFIG.1Cand the user interface14shown inFIG.1Ddescribed above as the distance of the drop-down operation exceeding the preset critical point increases, and if the user inputs a slide-up operation immediately, the application1will not jump to the live room page of the user1, but return to the user interface13of the embodiment shown inFIG.1Cfrom the user interface14shown inFIG.1D, and when detecting that the slide-up operation ends, the application1returns to display the user interface11shown inFIG.1A, that is, when detecting that the slide-up operation ends, the application1displays the profile page of the user1.

In addition, on the basis of the above embodiment shown inFIG.1A, guidance information may further be displayed in the user interface11to prompt the user that the application1provides a function of entering the live room of the user1from the background image area and guide the user to perform an operation. The present disclosure does not limit the implementation of the guidance information, for example, the guidance information may be implemented by one or more of a text bubble, animation effects, an image, a symbol, or the like. Exemplarily, as shown inFIG.1A, the user interface11further includes: an area a2, which is used for displaying a text bubble, wherein text guidance content “click or drop down to enter the live room” can be displayed in the text bubble, and of course, other text guidance content can also be displayed. The present disclosure does not limit a display position of the guidance information.

Herein, the guide information can be displayed when the user uses the function of entering the live room from the background image area for the first time, or displayed when the user uses the function of entering the live room from the background image area for the first N times, or displayed when the user uses the function of entering the live room from the background image area each time, or can also be displayed never, which is not limited in the present disclosure.

In addition, in the embodiment shown inFIG.1A, an area for presenting the avatar of the user1further provides an entry for entering the live room of the user1, and in the area for presenting the avatar of the user1, breathing circle animation effects can be also displayed, through which the user can be prompted that the user1is on a live currently. When the application1detects a trigger operation for the avatar area of the user1, the application1jumps to the live room page of the user1, such as the user interface12shown inFIG.1B.

It should be noted that, in the embodiments shown inFIGS.1A to1D, the description is made by taking an example that a live of a video performance recorded in real time is being performed in the live room of the user1. It can be seen in combination with the foregoing description that, the live room of the user1may also be a non-stream live room, for example, the live room with a type such as a voice live room, a chat room live room, and the like. Assuming that the live room of the user1is a voice live room, an image of the live room may display avatar information, account information, and the like of users currently joining the live room, and the live preview content may be generated in accordance with the image of the live room in a preset manner; the present disclosure does not limit the preset manner, for example, the image of the live room may be cut-out at a preset ratio in accordance with the size of the area101, and the cut-out image of the live room is displayed in the area101, or the entire image of the live room is thumbnail-presented in the area101.

And when the image of the live room of the user1changes, the image of the live room that is displayed in the area101is updated. For example, in the case of a new user joining the live room of the user1, a user exiting the live room of the user1, a user releasing comment information, a user sending out a virtual gift, or the like, the live preview content can be regenerated in accordance with the latest image of the live room and displayed in the area101.

For example, when the live room of the user1is a voice live room and a live is being performed in the live room of the user1, the application1may, on the mobile phone, exemplarily display a user interface15as shown inFIG.1Ewhen the profile page of the user1is entered. Referring toFIG.1E, in the user interface15, the live preview content cut-out in accordance with an image of the voice live room of the user1is displayed in an area101.

Exemplarily,FIG.1Fexemplarily shows the image of the voice live room of the user1, i.e., the live room page of the user1. Referring to a user interface16shown inFIG.1F, in the live room of the user1,

in addition to the user1, there are 3 users participating therein, which are user “aaa1”, user “aaa2”, and user “aaa3”, respectively, so that in an area109of the user interface16, in addition to that an avatar of the user1and a name of the live room of the user1are displayed, avatars and names of the user “aaa1”, the user “aaa2” and the user “aaa3” are displayed. Of course, in the area109, other related content may be further displayed, which is not limited in the present disclosure.

In addition, the user interface16may further include an area110, which is used for presenting comment information of the voice live room of the user1. A system prompt issued by the application1may also be displayed in the user interface11.

Accordingly, in accordance with the user interface16shown inFIG.1F, image content of the area109may be cut-out in accordance with the size of the area101, and the cut-out image content may be displayed in the area101, such as the illustration in the user interface15provided in the embodiment shown inFIG.1E. Alternatively, in accordance with the user interface16shown inFIG.1F, the image content of the area109may be resized to be matched with the size of the area101and displayed in the area101.

And the implementation of the user entering the user interface16through the area101in the user interface15is similar to the embodiments shown inFIGS.1A to1D, so that reference may be made to the detailed description of the foregoing embodiments, which is not repeated herein for brevity.

In accordance with the method for presenting live content, first, the live preview content is presented in the background image area of the profile page, whereby the channel for the user to view the live preview content is enriched and the motivation of the user to enter the live room is raised, and in addition, the entry for entering the live room of the user1is provided in the profile page, whereby the channel for entering the live room is enriched, and the user can enter the live room by a plurality of kinds of operations, and the flexibility is high, and the user experience can be improved.

The present disclosure further provides a live content presentation method.

FIG.3is a schematic flow diagram of a live content presentation method in accordance with an embodiment of the present disclosure. Referring toFIG.3, the method provided in this embodiment comprises:

S301, receiving a trigger operation on a target entry. The electronic device has installed thereon an application, by which a profile page of a target user can be entered. Herein, the target entry may include an entry for entering the profile page of the target user that is provided by the application, and the target entry may include an entry in a multimedia content presentation page, an entry in a friend list, an entry in a notification information page, and the like, and of course, may also include an entry provided by another page, which is not limited in the present disclosure.

S302, in response to the trigger operation on the target entry, presenting a profile page of a target user, and in response to determining that the target user is on a live (i.e., on a live stream, or on live streaming), presenting live preview content in a background image area comprised in the profile page, wherein the live preview content is generated in accordance with an image of a live room of the target user.

When the application receives the trigger operation (such as a click operation) on the target entry, the application are displays the profile page of the target user on the electronic device, and the present disclosure does not limit the implementation of the profile page.

Herein, the profile page comprises the background image area, and in the present disclosure, in response to determining that the target user is on a live currently, the live preview content is presented in the background image area of the profile page of the target user, wherein the live preview content is generated in accordance with the image of the live room of the target user.

If, as described above, the live room of the target user may be a live room capable of producing a live stream, then the live preview content is a live preview stream generated in accordance with the live stream (i.e., live content); and, if the live room of the target user is a non-stream live room, then the live preview content can be an image of the live room cut-out in a preset manner.

If the live room of the target user is a live room capable of producing a live stream, the live preview content may be generated in the following manner:in some implementations, the live content may not be image-processed, and the obtained live content is directly displayed in the background image area.

For example, a size of the background image area is matched with an image size of the live content, and if the size of the background image area is greater than or equal to the image size of the live content, the image size of the live content can be kept unchanged to display the live content in the background image area, which can ensure that the user can view the relatively complete image of the live content from the background image area, thereby helping raising the motivation of the user to enter the live room.

In another implementation, the live content is image-processed to obtain the live preview content, and then the live preview content is presented in the background image area.

For example, by cropping the image of the live content, an image of an area may be selected from the image of the live content for presentation, and when cropping, an image to be presented in the background image area may be obtained by identifying a visual center of gravity of the image of the live content in real time and cropping the image of the live content in accordance with the size of the background image area and the visual center of gravity.

Herein, a most delectable area can be identified and cut-out from the image of the live content by using artificial intelligence technology and real-time tracking is performed, to make sure that the center of gravity of the image of the live content is always presented in the background image area of the profile page. Alternatively, the image of the live content can be zoomed out so that the image of the live content can be thumbnail-presented in the background image area.

The presentation mode of the live content released by the target user in the background image area is not limited in the present disclosure, and can be flexibly set as required. In addition, when the live preview content is presented in the background image area, whether the electronic device is currently in a landscape screen state or a portrait screen state can be considered; for example, when the electronic device is in the portrait screen state, blank-leaving processing can be performed on both sides of the image of the live preview content, and when the electronic device is in the landscape screen state, the image of the live preview content can be made to occupy the entire background image area.

If the live room of the target user is a non-stream live room, the live preview content can be live preview content generated in accordance with the image of the live room in the preset manner; the present disclosure does not limit the preset manner, for example, the image of the live room can be cut-out at a preset ratio in accordance with the size of the background image area, and the cut-out image of the live room can be displayed in the background image area; alternatively, the image of the entire live room is thumbnail-presented in the background image area. For example, as shown in the embodiment ofFIG.1E.

In accordance with the method provided in this embodiment, by receiving a trigger operation on a target entry, presenting a profile page of a target user in response to the trigger operation on the target entry, and in response to determining that the target user is on a live, presenting live preview content in a background image area comprised in the profile page, wherein the live preview content presented in the background image area is generated in accordance with an image of a live room of the target user, the following is achieved: the user can view the live content when entering the profile page of the target user, which enriches the channel for the user to preview the live content, helps raising the motivation of the user to enter the live room page, and improves the user experience.

FIG.4is a schematic flow diagram of a live content presentation method provided by another embodiment of the present disclosure. Referring toFIG.4, the method provided in this embodiment comprises:S401, receiving a trigger operation on a target entry;S402, in response to the trigger operation on the target entry, displaying a profile page of a target user, and in response to determining that the target user is on a live, presenting live preview content in a background image area comprised in the profile page, wherein the live preview content is generated in accordance with an image of a live room of the target user.

The steps S401and S402in this embodiment are similar to the steps S301and S302in the embodiment shown inFIG.3, respectively, so that reference can be made to the detailed description of the embodiment shown inFIG.3, which is not repeated herein for brevity.

S403, in response to a trigger operation on the background image area, switching from the profile page to the live room of the target user, to present the image of the live room of the target user.

In combination with the foregoing description, the user may, by inputting a click operation or a drop-down operation for the background image area, cause an application to display the live room page of the target user on an electronic device, so that the user views the live content released by the target user through the live room page of the target user.

If the live room of the target user is entered by the click operation on the background image area, the application determines whether a position clicked by the user is inside the background image area in accordance with the click operation of the user, and if it is determined that the position clicked by the user is inside the background image area, jumps to a live room page of the target user, that is, enters the live room of the target user. That is, this corresponds to the case of the forgoing scenario1, and reference may be made to the detailed description above, which is not repeated herein for brevity.

If the live room of the target user is entered by the drop-down operation on the background image area, the application jumps to the live room page of the target user if it detects that the drop-down operation has reached or exceeded a critical point when it ends; the present disclosure does not limit the manner of jumping from the profile page to the live room page, for example, the live room page can be presented in a manner of downward movement. That is, this corresponds to the case of the forgoing scenario2, and reference may be made to the detailed description above, which is not repeated herein for brevity.

In addition, if the application detects that the drop-down operation has not reached a preset critical point, the application may always display the profile page of the target user. If the user inputs the drop-down operation, does not loose his hand, no matter whether the drop-down operation has exceeded the preset critical point, and continuously inputs a slide-up operation, then the application can move downwards the live room page with the drop-down operation, without jumping to the live room page, and return to the profile page of the target user with the slide-up operation.

It should be noted that, in the process of the user inputting the drop-down operation, when the preset critical point has been reached, the application may further present a prompt message to prompt the user that the drop-down operation has reached the preset critical point, and the prompt message may be implemented in the manner of a text prompt and/or a vibration prompt; for example, as to the case of the embodiment shown inFIG.1C, reference may be made to the detailed description of the embodiment shown inFIG.1C.

In accordance with the method provided in this embodiment, by receiving a trigger operation on a target entry, presenting a profile page of a target user in response to the trigger operation on the target entry, and in response to determining that the target user is on a live, presenting live preview content in a background image area comprised in the profile page, wherein the live preview content presented in the background image area is generated in accordance with an image of a live room of the target user, the following is achieved: the user can view the live content when entering the profile page of the target user, which enriches the channel for the user to preview the live content, and helps raising the motivation of the user to enter the live room page. In addition, by providing an entry for entering the live room of the target user in the background image area of the profile page, the channel for the user to enter the live room is enriched, and the user can enter the live room by a plurality of kinds of operations, and the flexibility is high, and the user experience can be improved.

Exemplarily, an embodiment of the present disclosure further provides an apparatus for presenting live content.

FIG.5is a schematic structural diagram of an apparatus for presenting live content in accordance with an embodiment of the present disclosure. Referring toFIG.5, the apparatus500for presenting live content provided in this embodiment comprises:a receiving module501configured to receive a trigger operation on a target entry.

A displaying module502configured to, in response to the trigger operation on the target entry, present a profile page of the target user, and in response to determining that the target user is on a live, present live preview content in a background image area comprised in the profile page; wherein the live preview content is generated in accordance with an image of a live room of the target user.

In some implementations, the displaying module502is further configured to, in response to a trigger operation on the background image area comprised in the profile page, switch from the profile page to the live room of the target user, to present the image of the live room of the target user.

In some implementations, the displaying module502is specifically configured to, in response to a click operation on the background image area, switch from the profile page to the live room of the target user.

In some implementations, the displaying module502is specifically configured to, in response to a drop-down operation on the background image area, determine whether the drop-down operation has reached a preset critical point when it ends; and if it is determined that the drop-down operation has reached the preset critical point when it ends, switch from the profile page to the live room of the target user.

In some implementations, the apparatus for presenting live content500further comprises: a prompt module503.

The prompt module503is configured to prompt that the drop-down operation has reached the preset critical point.

In some implementations, the prompt module503is specifically configured to prompt, in the manner of a text prompt and/or a vibration prompt, that the drop-down operation has reached the preset critical point.

If the prompt is achieved via the text, the prompt module503is specifically configured to control the displaying module502to present corresponding text prompt content; and If the prompt is achieved via the vibration, the prompt module503is specifically configured to control an electronic device to vibrate.

In some implementations, the live preview content is obtained by cropping the image of the live room of the target user in accordance with a size of the background image area.

In some implementations, the live preview content is obtained by identifying a visual center of gravity of the image of the live room of the target user and cropping the image of the live room of the target user in accordance with the size of the background image area and the visual center of gravity.

In some implementations, the live preview content is obtained by zooming out the image of the live room of the target user in accordance with a size of the background image area.

The apparatus for presenting live content provided in this embodiment may be configured to perform the technical solution of any of the foregoing method embodiments, and have similar implementation principle and technical effects, so that reference can be made to the detailed description of the foregoing method embodiments, which is not repeated herein for brevity.

Exemplarily, an embodiment of the present disclosure further provides an electronic device.

FIG.6is a schematic structural diagram of an electronic device in accordance with an embodiment of the present disclosure. Referring toFIG.6, the electronic device600provided in this embodiment comprises: a memory601and a processor602.

Herein, the memory601may be a separate physical unit, and may be connected with the processor602by a bus603. The memory601and the processor602may also be integrated together, implemented by hardware, or the like.

The memory601is configured to store program instructions, and the processor602calls the program instructions to perform the method for presenting live content provided in any of the method embodiments above.

In some embodiments, when part or all of the method of any of the above embodiments is implemented by software, the above electronic device600may also include only the processor602. The memory601, which is configured to store a program, is located outside the electronic device600, and the processor602, which is connected with the memory via a circuit/wire, is configured to read and execute the program stored in the memory.

The processor602may be a central processing unit (CPU), a network processor (NP), or a combination of the CPU and the NP.

The processor602may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

The memory601may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory may also include a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); and the memory may also include a combination of the above kinds of memories.

The present disclosure further provides a readable storage medium, comprising: computer program instructions which, when executed by at least one processor of an electronic device, cause the electronic device to implement the method for presenting live content provided in any of the method embodiments above.

The present disclosure further provides a computer program product which, when being run on a computer, causes the computer to implement the method for presenting live content provided in any of the method embodiments above.

It should be noted that, relational terms such as “first” and “second”, herein, are only used for distinguishing one entity or operation from another entity or operation without necessarily requiring or implying any such actual relation or order between these entities or operations. Moreover, the term “comprise”, “include”, or any other variation thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device including a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or device. Without more limitations, an element defined by a statement “including one . . . ” does not exclude the presence of another identical element in the process, method, article, or device that includes the element.

The above contents are only specific implementations of the present disclosure, which enable those skilled in the art to 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 may 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 described herein, but conform to the widest scope consistent with the principles and novel features disclosed herein.