Disclosure of Invention
In order to solve the problems of complex and inconvenient operation of watching live videos in the prior art, the embodiment of the invention provides a method and a device for displaying recommended data in social application. The technical scheme is as follows:
in a first aspect, a method for displaying recommended data in a social application is provided, the method including:
acquiring recommended live video data;
generating a preview control according to the recommended live video data, wherein the preview control comprises summary information of a live channel and is used for providing an operation entrance for entering the live channel to watch live video;
and overlapping and displaying the preview control in a main panel interface of the client.
Optionally, the method further includes:
displaying a stow-deploy control in the main panel interface;
when a trigger signal corresponding to the retraction and expansion control is acquired, detecting whether the preview control is in a display state or a hidden state;
if the preview control is in the display state, hiding the preview control;
and if the preview control is in the hidden state, displaying the preview control.
Optionally, before the displaying the preview control in a superimposed manner in the main panel interface of the client, the method further includes:
acquiring a preview control display record of a user account logged in the client, wherein the preview control display record is used for recording the display condition of the preview control when the user account logs out of the client for the last time;
detecting whether the preview control is in a display state or a hidden state when the user account logs out of the client for the last time according to the preview control display record;
and if the preview control is in the display state, executing the step of displaying the preview control in a main panel interface of the client in an overlapping manner.
Optionally, the displaying the preview control in a main panel interface of the client in an overlapping manner includes:
all the generated n preview controls are displayed in the main panel interface in an overlapped mode, each preview control corresponds to the respective recommended live video data, and n is larger than or equal to 1;
or,
and overlapping and displaying m preview controls in the n generated preview controls in the main panel interface, wherein each preview control corresponds to the respective recommended live video data, and n is more than m and is not less than 1.
Optionally, after the m preview controls of the n generated preview controls are displayed in the main panel interface in an overlapping manner, the method further includes:
receiving a toggle indication corresponding to the m preview controls being displayed;
selecting at least one preview control from the undisplayed preview controls in the n generated preview controls;
replacing at least one of the m preview controls being displayed with the selected at least one preview control for display.
Optionally, after the m preview controls of the n generated preview controls are displayed in the main panel interface in an overlapping manner, the method further includes:
when the width of the main panel interface is widened, increasing the number of the displayed preview controls according to the width of the main panel interface; or,
when the length of the main panel interface is lengthened, increasing the number of the displayed preview controls according to the length of the main panel interface; or,
when the width of the main panel interface is narrowed, reducing the number of the preview controls which are displayed according to the width of the main panel interface; or,
when the width of the main panel interface is shortened, the number of the preview controls displayed is reduced according to the length of the main panel interface.
Optionally, the method further includes:
displaying a page triggering control in the main panel interface;
and when a trigger signal corresponding to the page trigger control is acquired, displaying a live video aggregation page, wherein the live video aggregation page comprises at least one preview control.
Optionally, the obtaining recommended live video data includes:
acquiring at least one piece of first recommended live video data, wherein the first recommended live video data refers to live video data corresponding to a channel with the largest number of people among all channels which are live;
and/or the presence of a gas in the gas,
acquiring at least one piece of second recommended live video data, wherein the second recommended live video data refers to live video data corresponding to a channel with the highest channel rank in all channels which are live;
and/or the presence of a gas in the gas,
and acquiring at least one piece of third recommended live video data, wherein the third recommended live video data refers to live video data corresponding to a channel which has an association relationship with a user account which logs in the client in all channels which are live, and the association relationship comprises at least one of a collection relationship, an attention relationship and a historical access relationship.
In a second aspect, an apparatus for displaying recommendation data in a social application is provided, the apparatus comprising:
the data acquisition module is used for acquiring recommended live video data;
the control generating module is used for generating a preview control according to the recommended live video data, the preview control comprises summary information of a live channel, and the preview control is used for providing an operation entrance for entering the live channel to watch live video;
and the first display module is used for displaying the preview control in a main panel interface of the client in an overlapping manner.
Optionally, the apparatus further comprises:
the second display module is used for displaying the folding and unfolding control in the main panel interface;
the first detection module is used for detecting whether the preview control is in a display state or a hidden state when a trigger signal corresponding to the retracting and expanding control is acquired;
the control hiding module is used for hiding the preview control when the preview control is in the display state;
the first display module is further configured to display the preview control when the preview control is in the hidden state.
Optionally, the apparatus further comprises:
the system comprises a record acquisition module, a preview control display record and a preview control display module, wherein the record acquisition module is used for acquiring the preview control display record of a user account logged in the client, and the preview control display record is used for recording the display condition of the preview control when the user account logs out of the client for the last time;
the second detection module is used for detecting whether the preview control is in a display state or a hidden state when the user account logs out of the client terminal for the last time according to the preview control display record;
the first display module is further configured to display the preview control in a main panel interface of the client in an overlapping manner when the first display module is in the display state.
Optionally, the first display module includes:
all display units are used for displaying all the generated n preview controls in the main panel interface in an overlapping mode, each preview control corresponds to the respective recommended live video data, and n is larger than or equal to 1;
or,
and the partial display unit is used for displaying m preview controls in the n generated preview controls in a superposition manner in the main panel interface, each preview control corresponds to the respective recommended live video data, and n is more than m and is not less than 1.
Optionally, the first display module further includes: the device comprises an indication receiving unit, a control selecting unit and a replacement display unit;
the instruction receiving unit is used for receiving switching instructions corresponding to the m preview controls being displayed;
the control selecting unit is used for selecting at least one preview control from the undisplayed preview controls in the n generated preview controls;
and the replacing and displaying unit is used for replacing at least one of the m preview controls which are being displayed by the selected at least one preview control for displaying.
Optionally, the first display module further includes:
a first increasing display unit, configured to increase the number of the displayed preview controls according to the width of the main panel interface when the width of the main panel interface is widened; or,
a second increase display unit, configured to increase, when the length of the main panel interface is lengthened, the number of the displayed preview controls according to the length of the main panel interface; or,
a first reduction display unit, configured to reduce the number of the preview controls that are displayed according to the width of the main panel interface when the width of the main panel interface is narrowed; or,
and the second reduction display unit is used for reducing the number of the displayed preview controls according to the length of the main panel interface when the width of the main panel interface is shortened.
Optionally, the apparatus further comprises:
the third display module is used for displaying a page trigger control in the main panel interface;
and the fourth display module is used for displaying a live video aggregation page when a trigger signal corresponding to the page trigger control is acquired, wherein the live video aggregation page comprises at least one preview control.
Optionally, the data obtaining module includes:
the first acquisition unit is used for acquiring at least one piece of first recommended live video data, wherein the first recommended live video data refers to live video data corresponding to a channel with the largest number of people in all channels which are live;
and/or the presence of a gas in the gas,
the second acquisition unit is used for acquiring at least one piece of second recommended live video data, wherein the second recommended live video data refers to live video data corresponding to a channel with the highest channel rank in all channels which are live;
and/or the presence of a gas in the gas,
and the third obtaining unit is used for obtaining at least one piece of third recommended live video data, wherein the third recommended live video data refers to live video data corresponding to a channel which has an association relationship with a user account which logs in the client in all channels which are live, and the association relationship comprises at least one of a collection relationship, an attention relationship and a historical access relationship.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps of acquiring recommended live video data, generating a preview control according to the recommended live video data, and displaying the preview control in a main panel interface of a client in an overlapping mode; the problem that operation for watching live video is complicated and inconvenient in the related technology is solved; the user can directly select the live video to be watched from the recommended live video in the main panel interface, so that the effects of simplifying operation and improving the efficiency of selecting the live video are achieved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of an implementation environment according to various embodiments of the present invention is shown, where the implementation environment includes a terminal 120 and a server 140. Wherein:
the terminal 120 may be a smart phone, a tablet computer, an e-book reader, an MP3(Moving picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3) player, an MP4(Moving picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4) player, a laptop, a desktop computer, and the like. The terminal 120 runs a social application client providing a video live broadcast function, such as an instant messaging client, a team voice tool client, a live broadcast client, and the like. Wherein, common instant messaging clients such as QQ clients, wechat clients, etc.; common team voice tool clients such as askew voice clients, QT voice clients, and the like; common live broadcast clients such as the client of the cool dog starring.
The terminal 120 may be connected to the server 140 through a wired network or a wireless network.
The server 140 may be a server, a server cluster composed of several servers, or a cloud computing service center.
Referring to fig. 2, a flowchart of a method for displaying recommended data in a social application according to an embodiment of the present invention is shown, where the method is applied to a client running in a terminal in the implementation environment shown in fig. 1 for example. The method may include the steps of:
step 202, obtaining recommended live video data.
And 204, generating a preview control according to the recommended live video data, wherein the preview control comprises summary information of the live channel and is used for providing an operation entrance for entering the live channel to watch the live video.
And step 206, overlapping and displaying the preview control in a main panel interface of the client.
In summary, in the method for displaying recommended data in a social application provided by this embodiment, recommended live video data is obtained, a preview control is generated according to the recommended live video data, and then the preview control is displayed in a main panel interface of a client in an overlapping manner; the problem that operation for watching live video is complicated and inconvenient in the related technology is solved; the user can directly select the live video to be watched from the recommended live video in the main panel interface, so that the effects of simplifying operation and improving the efficiency of selecting the live video are achieved.
Referring to fig. 3A, a flowchart of a method for displaying recommended data in a social application according to another embodiment of the present invention is shown, where the method is applied to a client running in a terminal in the implementation environment shown in fig. 1 for example. The method may include the steps of:
step 301, acquiring recommended live video data.
After a user logs in a client by using a user account, the client acquires recommended live video data. The client is a client provided with a video live broadcast function, such as a team voice tool client or other social application clients. In a typical scenario, a client obtains recommended live video data from a server. This step may include:
first, a client sends a data acquisition request to a server.
Correspondingly, the server receives a data acquisition request sent by the client.
And secondly, the server selects recommended live video data from all live video data which are live according to the data acquisition request.
All live video data which are live are stored in the server, and each piece of live video data comprises but is not limited to at least one of a channel identifier, a sub-channel identifier, a preview picture, a channel name, the number of channels, a channel ranking, a live video source and a live video type.
This step may include several possible implementations as follows:
in a first possible implementation manner, the server obtains the number of channel people corresponding to each piece of live video data in all live video data being live, and selects at least one piece of live video data with the largest number of channel people as recommended live video data.
The number of the channel persons refers to the number of the clients entering the channel, and the number of the channel persons reflects the popularity of the channel. The more the number of the channels, the higher the popularity of the channel, the higher the popularity of the live broadcast video in the channel; conversely, a channel with a smaller number of people indicates that the popularity of the live video in the channel is lower as the popularity of the channel is lower. Therefore, the server selects one or more live video data with the largest number of people in the channel from all live video data which are live, the quality of the selected live video can be guaranteed, and the high-quality live video is recommended to the user.
For example, in a specific example, assuming that the number of all live video data being live is 1000, the server obtains the number of channels corresponding to each piece of live video data, sorts the 1000 pieces of live video data according to the number of channels from high to low, and then selects the first 4 pieces of live video data as recommended live video data.
In a second possible implementation manner, a channel rank corresponding to each piece of live video data in all live video data being live is obtained, and at least one piece of live video data with the highest channel rank is selected as recommended live video data.
The channel ranking refers to the ranking condition of the channel in all channels or all channels of the same type, and the channel ranking reflects the popularity of the channel. The higher the channel rank is, the higher the popularity of the channel is, and the popularity of the live video in the channel is higher; conversely, a channel with a lower channel rank indicates that the lower the popularity of the channel, the lower the popularity of the live video within the channel. Therefore, the server selects one or more pieces of live video data with the highest channel rank from all live video data which are live, the quality of the selected live video can be guaranteed, and the high-quality live video is recommended to the user.
In a third possible implementation manner, when the data acquisition request carries at least one channel identifier, at least one piece of live video data corresponding to the at least one channel identifier is selected from all live video data which are live; and taking the selected at least one piece of live video data as recommended live video data.
And at least one channel identifier has an association relationship with a user account of the login client, wherein the association relationship comprises but is not limited to at least one of a collection relationship, an attention relationship and a historical access relationship. The above-mentioned association reflects the personal habits and preferences of the user. The at least one channel identifier is a channel identifier of a channel which the user is accustomed to accessing, or a channel identifier of a favorite channel of the user. The server selects live video data which is live broadcast and accessed by a user habit or corresponds to a favorite channel of the user, so that the user satisfaction degree of the selected live video can be ensured, and the user experience is improved.
In addition, corresponding to the third possible implementation manner, before the client sends the data acquisition request to the server, the following two steps may also be performed: 1. acquiring at least one channel identifier having an association relationship with a user account of a login client, wherein the association relationship comprises at least one of a collection relationship, an attention relationship and a historical access relationship; 2. and generating a data acquisition request carrying at least one channel identifier.
And thirdly, the server sends recommended live video data to the client.
Correspondingly, the client receives the recommended live video data sent by the server.
The points to be explained are: the number of recommended live video data fed back to the client by the server may be preset according to actual needs, such as 4 or 8, and so on. However, in order to ensure the quality of the recommended live video data and improve the efficiency of the user in the subsequent selection process, the quantity of the recommended live video data is not too large. In the usual case, the amount of recommended live video data is much smaller than the amount of all live video data being live.
And 302, generating a preview control according to the recommended live video data.
The preview control contains summary information of the live channel, and is used for providing an operation entrance for entering the live channel to watch live videos. The preview control may include summary information of the live channel, such as a channel identifier, a channel name, a main broadcast name, a preview picture, a live broadcast summary, etc. In a possible implementation manner, for any piece of recommended live video data, when the recommended live video data contains a preview picture, the client generates a preview control containing the preview picture. The preview picture may be a screenshot of a live video or a photograph of a host user. The preview control can enable a user to more intuitively know the content of the live video when selecting the live video to be watched, and the user can conveniently decide whether to select to watch the live video.
In addition, when the client receives n pieces of recommended live video data from the server, n preview controls can be correspondingly generated, and each preview control corresponds to respective recommended live video data.
And step 303, overlapping and displaying the preview control in a main panel interface of the client.
The main panel interface refers to a first interface displayed by the client when the user account is in a login state in the client. And after the user logs in the client by using the user account, the client displays a main panel interface. In the main panel interface, a user avatar, a nickname, a signature, and other functional controls, such as a maximize control, a minimize control, a close control, etc., are typically included. As shown in fig. 3B, a schematic diagram of a main panel interface 30 is shown, the main panel interface 30 comprising a user avatar 31, a nickname 32, a minimize control 33, a close control 34, a label bar 35, etc., wherein the label bar 35 may be composed of a channel label, a buddy label, a group label, and an application label.
By directly displaying the generated preview control in the main panel interface, a user can conveniently select live videos required to be watched, and the selection efficiency is improved.
As shown in FIG. 3B, after the client generates the preview control 36, the generated preview control 36 is directly displayed in the main panel interface 30 for the user to view and select.
In addition, the present step may include two possible embodiments as follows:
in a first possible implementation manner, all the generated n preview controls are overlaid and displayed in a main panel interface, each preview control corresponds to respective recommended live video data, and n is greater than or equal to 1.
For example, assuming that the client generates 4 preview controls in step 302, all of the 4 preview controls may be displayed in the main panel interface in an overlapping manner.
In a second possible implementation manner, m preview controls in the n generated preview controls are displayed in a main panel interface in an overlapped manner, each preview control corresponds to respective recommended live video data, and n > m is greater than or equal to 1.
For example, assuming that the client generates 4 preview controls in step 302, 2 of the 4 preview controls may be displayed in the main panel interface in an overlapping manner at this time. After that, when a switching instruction corresponding to the preview control is acquired, another 2 preview controls are displayed. Alternatively, after a predetermined time interval, another 2 preview controls are displayed.
Optionally, the client may further perform the following steps 304 to 306:
step 304, when each piece of recommended live video data comprises a channel identifier, receiving a selection signal acting on any one preview control.
The user can select a preview control from the preview controls displayed by the client, and trigger and generate a selection signal on the selected preview control through operations such as touch, click and the like. Correspondingly, the client receives a selection signal triggered by the user.
And 305, acquiring a channel identifier included in the recommended live video data corresponding to the selected preview control.
The client acquires recommended live video data corresponding to the preview control selected by the user, and reads a channel identifier from the acquired recommended live video data.
And step 306, entering a corresponding live channel according to the channel identifier.
Different channels correspond to different channel identifications, and the client can realize the skipping among different channels according to different channel identifications and provide different live videos for users. And after the client enters the channel, the template can be loaded, the live video stream in the channel is obtained through interaction with the server, and then the live video stream is displayed in the template. The video type of the live video includes, but is not limited to, any one of videos such as live entertainment performances, live games, live education classes and the like.
Optionally, when the recommended live video data further includes a sub-channel identifier, the client reads the channel identifier and the sub-channel identifier. Correspondingly, the client enters the sub-channel of the corresponding channel according to the channel identifier and the sub-channel identifier.
In summary, in the method for displaying recommended data in a social application provided by this embodiment, recommended live video data is obtained, a preview control is generated according to the recommended live video data, and then the preview control is displayed in a main panel interface of a client in an overlapping manner; the problem that operation for watching live video is complicated and inconvenient in the related technology is solved; the user can directly select the live video to be watched from the recommended live video in the main panel interface, so that the effects of simplifying operation and improving the efficiency of selecting the live video are achieved.
In addition, at least one piece of live video data with the largest number of people in the channel is selected as recommended live video data; or selecting at least one piece of live video data with the highest channel rank as recommended live video data; or acquiring at least one channel identifier having an association relation with the user account, and selecting at least one piece of live video data corresponding to the at least one channel identifier as recommended live video data; the effect of recommending the high-quality live video to the user or recommending the favorite live video to the user is achieved, and the user experience is improved.
In addition, when any preview control is selected, the effect of providing live video for the user is realized by acquiring the channel identifier corresponding to the preview control and entering the corresponding channel according to the channel identifier.
Referring to fig. 4A, a flowchart of a method for displaying recommended data in a social application according to still another embodiment of the present invention is shown, where the method is applied to a client running in a terminal in the implementation environment shown in fig. 1 for example. The method may include the steps of:
step 401, obtaining recommended live video data.
After a user logs in a client by using a user account, the client acquires recommended live video data. In a typical scenario, a client obtains recommended live video data from a server.
Optionally, the recommended live video data acquired by the client may include at least one of the following three recommended live video data:
1. acquiring at least one piece of first recommended live video data, wherein the first recommended live video data refers to live video data corresponding to a channel with the largest number of people in all channels which are live;
2. acquiring at least one piece of second recommended live video data, wherein the second recommended live video data refers to live video data corresponding to a channel with the highest channel rank in all channels which are live;
3. and acquiring at least one piece of third recommended live video data, wherein the third recommended live video data refers to live video data corresponding to a channel which has an association relationship with the user account of the login client in all channels which are live, and the association relationship comprises at least one of a collection relationship, an attention relationship and a historical access relationship.
And 402, generating a preview control according to the recommended live video data.
The preview control contains summary information of the live channel, and is used for providing an operation entrance for entering the live channel to watch live videos. The preview control may include summary information of the live channel, such as a channel identifier, a channel name, a main broadcast name, a preview picture, a live broadcast summary, etc. In addition, when the client receives n pieces of recommended live video data from the server, n preview controls can be correspondingly generated, and each preview control corresponds to respective recommended live video data.
In addition, before displaying the generated preview control, the client may further perform the following steps 403 and 404:
and step 403, displaying a folding and unfolding control in a main panel interface of the client.
The main panel interface refers to a first interface displayed by the client when the user account is in a login state in the client. And after the user logs in the client by using the user account, the client displays a main panel interface. In the main panel interface, a user avatar, a nickname, a signature, and other functional controls, such as a maximize control, a minimize control, a close control, etc., are typically included. As shown in fig. 4B, which illustrates a schematic diagram of a main panel interface 40, the main panel interface 40 includes a user head 41, a nickname 42, a minimize control 43, a close control 44, a label bar 45, etc., wherein the label bar 45 may be composed of a channel label, a buddy label, a group label, and an application label.
In addition, in this embodiment, a stow and expand control is further included in the main panel interface, and the stow and expand control is used to trigger the display and hiding of the preview control. As shown in fig. 4B, the client may also display a collapse and expand control 47 in the main panel interface 40.
In step 404, when a trigger signal corresponding to the retracting and expanding control is acquired, whether the preview control is in a display state or a hidden state is detected.
When a user clicks the folding and unfolding control, the client detects whether the preview control is in a display state or a hidden state at the current moment.
And 405, if the preview control is in a hidden state, displaying the preview control.
And when the preview control is detected to be in a hidden state, the client displays the generated preview control in a main panel interface in an overlapping manner. By directly displaying the generated preview control in the main panel interface, a user can conveniently select live videos required to be watched, and the selection efficiency is improved.
Referring collectively to FIG. 4B, when the user clicks on the collapse and expand control 47, the client displays the generated preview control 46 in the main panel interface 40 for the user to view and select.
In addition, the present step may include two possible embodiments as follows:
in a first possible implementation manner, all the generated n preview controls are overlaid and displayed in a main panel interface, each preview control corresponds to respective recommended live video data, and n is greater than or equal to 1.
For example, assuming that the client generates 4 preview controls in step 402, all of the 4 preview controls may be displayed in the main panel interface in an overlapping manner.
In a second possible implementation manner, m preview controls in the n generated preview controls are displayed in a main panel interface in an overlapped manner, each preview control corresponds to respective recommended live video data, and n > m is greater than or equal to 1.
For example, assuming that the client generates 4 preview controls in step 402, 2 of the 4 preview controls may be displayed in the main panel interface in an overlapping manner.
In addition, when the client acquires the trigger signal corresponding to the folding and unfolding control, if the preview control is detected to be in a display state, the preview control is hidden. Referring to fig. 4B, when the preview control 46 is in the display state, the user clicks the folding and unfolding control 47, and the client hides the preview control 46, that is, does not display the preview control.
In addition, after the client displays a part of the generated preview control, the following steps 406 to 408 may be further performed:
at step 406, toggle indications corresponding to the m preview controls being displayed are received.
The client may also display at least one toggle control in the main panel interface.
For example, assume that the client generates 4 preview controls in step 402 above, and 1 st and 2 nd preview controls of the 4 preview controls are displayed in the main panel interface in step 405 above. Referring collectively to FIG. 4B, the client may provide two toggle controls 48 on either side of the preview control 46 displayed by the main panel interface 40. When the user needs to toggle the display preview control 46, a toggle indication to the toggle control 48 may be triggered by a touch, click, or the like.
Step 407, selecting at least one preview control from the undisplayed preview controls in the n generated preview controls.
And after receiving the switching instruction, the client selects at least one preview control from the n-m undisplayed preview controls. In one possible implementation, the client selects m preview controls from among n-m preview controls that are not displayed. For example, if the client displays the 1 st and 2 nd preview controls in the 4 generated preview controls in the main panel interface in step 405, the 3 rd and 4 th preview controls are selected at this time.
At step 408, at least one of the m preview controls being displayed is replaced with the selected at least one preview control for display.
In one possible implementation, when the client selects m preview controls from n-m preview controls that are not displayed, the m preview controls that are being displayed are replaced with the selected m preview controls for display. For example, the client displays the selected 3 rd and 4 th preview controls instead of the 1 st and 2 nd preview controls being displayed. The client provides preview controls corresponding to different live videos for the user according to the switching indication of the user, and the user can conveniently compare and select the preview controls.
Optionally, after step 405, the client may further increase or decrease the number of the displayed preview controls according to the stretching operation of the user on the main panel interface. In particular, several possibilities can be included:
1. when the width of the main panel interface is widened, increasing the number of the displayed preview controls according to the width of the main panel interface; or,
2. when the length of the main panel interface is lengthened, increasing the number of the displayed preview controls according to the length of the main panel interface; or,
3. when the width of the main panel interface is narrowed, reducing the number of displayed preview controls according to the width of the main panel interface; or,
4. as the width of the main panel interface is pulled short, the number of preview controls displayed is reduced according to the length of the main panel interface.
With combined reference to fig. 4B and 4C, in one possible implementation, the main panel interface 40 displays 2 preview controls 46 in a default state, and as the main panel interface 40 is widened, the client gradually displays the 3 rd preview control 46. Further, as the width of the main panel interface 40 increases, the 4 th, 5 th, or even more may also be displayed.
Alternatively, the client obtains the width of the main panel interface 40 and the width of each preview control 46, and when the width of the main panel interface 40 increases to be able to display 3 preview controls 46, the client displays the 3 rd preview control 46. Further, as the width of the main panel interface 40 increases, the 4 th, 5 th, or even more may also be displayed.
The points to be explained are: the number of preview controls displayed may be increased or decreased one by one, or may be increased or decreased in multiple ways. For example, when the length of the main panel interface is lengthened, the client may add a row of displayed preview controls according to the length of the main panel interface. Where a row of preview controls may be 2 or another number. Of course, there are other possible forms for the variation of the number of preview controls in the main panel interface, and this embodiment is not particularly limited to this.
Additionally, with reference to fig. 4B, the client may also display a page trigger control 49 in the main panel interface 40; when the trigger signal corresponding to the page trigger control 49 is acquired, the live video aggregation page is displayed. And the live video aggregation page comprises at least one preview control. The preview control contained in the live video aggregation page can be a preview control corresponding to all live video data which are live, so that complete and comprehensive live video can be provided for a user. And after the user clicks any one preview control in the live video aggregation page, the client acquires a channel identifier included in the recommended live video data corresponding to the selected preview control, and enters a corresponding live channel according to the channel identifier. Optionally, in order to facilitate user selection, the client may classify the preview control in the live video aggregation page according to a video type of the live video, where the video type includes, but is not limited to, any one of videos such as live entertainment shows, live games, live education classrooms, and the like.
With reference to fig. 4B, in a possible implementation, when the preview control 46, the folding and unfolding control 47, and the page triggering control 49 are simultaneously displayed in the main panel interface 40, the folding and unfolding control 47 may be disposed on the right side of the page triggering control 49, and the preview control 46 may be displayed below the folding and unfolding control 47 and the page triggering control 49, so that a user can know the functions of the controls, and the user can operate the controls conveniently, and user experience is improved.
In summary, in the method for displaying recommended data in a social application provided by this embodiment, recommended live video data is obtained, a preview control is generated according to the recommended live video data, and then the preview control is displayed in a main panel interface of a client in an overlapping manner; the problem that operation for watching live video is complicated and inconvenient in the related technology is solved; the user can directly select the live video to be watched from the recommended live video in the main panel interface, so that the effects of simplifying operation and improving the efficiency of selecting the live video are achieved.
In addition, the display and hiding functions of the preview control are realized by displaying the folding and unfolding control in the main panel interface, so that a user can conveniently manage the preview control in the main panel interface.
In addition, when the preview control is displayed, switching display can be performed; or, the number of the displayed preview controls can be increased or decreased along with the stretching of the length or the width of the main panel interface, so that multiple display modes are provided, the display flexibility of the preview controls is increased, and the preview controls are convenient for a user to view and operate.
The points to be explained are: after the user logs in the client by using the user account, the client can also decide whether to display the preview control or not through the following steps 1 to 3:
1. and acquiring a preview control display record of a user account of the login client.
The preview control display record is used for recording the display condition of the preview control when the user account logs out of the login client last time, and the display condition comprises a display state and a hidden state.
2. And detecting whether the preview control is in a display state or a hidden state when the user account exits the login client for the last time according to the preview control display record.
3. And if the display state is achieved, the preview control is displayed in the main panel interface in an overlapped mode.
And when the preview control is in a display state when the user account logs out of the login client for the last time, the client displays the generated preview control. Otherwise, the client displays the generated preview control when acquiring the expansion trigger signal corresponding to the retraction and expansion control.
Of course, in other possible embodiments, the client may also determine whether to display the preview control according to the configuration of the user for the preview control, or determine when to display the preview control, or determine the display position or the display number of the preview control in the main panel interface, and the like, which is not specifically limited in this embodiment of the present invention.
What needs to be further explained is that: after the preview control is displayed in the main panel interface, the client can also reacquire the recommended live video data at preset time intervals, realize the real-time refreshing of the recommended live video data, and provide the latest and most accurate recommended live video for the user.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 5, a block diagram of an apparatus for displaying recommendation data in a social application according to an embodiment of the present invention is shown, where the apparatus may be implemented as part of or all of a client through software, hardware, or a combination of the two. The apparatus may include: a data acquisition module 510, a control generation module 520, and a first display module 530.
And a data obtaining module 510, configured to obtain recommended live video data.
And a control generating module 520, configured to generate a preview control according to the recommended live video data, where the preview control includes summary information of a live channel, and the preview control is used to provide an operation entry entering the live channel to view a live video.
And a first display module 530, configured to display the preview control in a main panel interface of the client in an overlapping manner.
In summary, the device for displaying recommended data in a social application provided by this embodiment generates a preview control according to recommended live video data by acquiring the recommended live video data, and then displays the preview control in a main panel interface of a client in an overlapping manner; the problem that operation for watching live video is complicated and inconvenient in the related technology is solved; the user can directly select the live video to be watched from the recommended live video in the main panel interface, so that the effects of simplifying operation and improving the efficiency of selecting the live video are achieved.
Referring to fig. 6, it shows a block diagram of an apparatus for displaying recommendation data in a social application according to another embodiment of the present invention, which may be implemented as part of or all of a client through software, hardware or a combination of both. The apparatus may include: a data acquisition module 510, a control generation module 520, and a first display module 530.
And a data obtaining module 510, configured to obtain recommended live video data.
Optionally, the data obtaining module 510 includes: a first acquisition unit 510 a; and/or, the second obtaining unit 510 b; and/or a third obtaining unit 510 c.
The first obtaining unit 510a is configured to obtain at least one piece of first recommended live video data, where the first recommended live video data is live video data corresponding to a channel with the largest number of people in all channels that are live.
The second obtaining unit 510b is configured to obtain at least one piece of second recommended live video data, where the second recommended live video data is live video data corresponding to a channel with a highest channel rank in all channels being live.
A third obtaining unit 510c, configured to obtain at least one piece of third recommended live video data, where the third recommended live video data is live video data corresponding to a channel that has an association relationship with a user account that logs in the client in all channels that are live, and the association relationship includes at least one of a collection relationship, an attention relationship, and a historical access relationship.
And a control generating module 520, configured to generate a preview control according to the recommended live video data, where the preview control includes summary information of a live channel, and the preview control is used to provide an operation entry entering the live channel to view a live video.
And a first display module 530, configured to display the preview control in a main panel interface of the client in an overlapping manner.
Optionally, the apparatus further comprises: a second display module 521, a first detection module 522, and a control hiding module 523.
And the second display module 521 is configured to display a stow and deploy control in the main panel interface.
The first detecting module 522 is configured to detect whether the preview control is in a display state or a hidden state when the trigger signal corresponding to the retracting and expanding control is acquired.
A control hiding module 523, configured to hide the preview control when the preview control is in the display state.
The first displaying module 530 is further configured to display the preview control when the preview control is in the hidden state.
Optionally, the first display module 530 includes: all the display units 530 a; or, part of the display unit 530 b.
And the all-display unit 530a is configured to display all the generated n preview controls in the main panel interface in an overlapping manner, where each preview control corresponds to respective recommended live video data, and n is greater than or equal to 1.
And the partial display unit 530b is configured to display m preview controls in the n generated preview controls in the main panel interface in an overlapping manner, where each preview control corresponds to respective recommended live video data, and n > m is greater than or equal to 1.
Optionally, the first display module 530 further includes: an indication receiving unit 530c, a control selecting unit 530d, and an alternative display unit 530 e.
The indication receiving unit 530c is configured to receive switching indications corresponding to the m preview controls being displayed.
The control selecting unit 530d is configured to select at least one preview control from the generated preview controls that are not displayed in the n preview controls.
The replacing and displaying unit 530e is configured to replace at least one of the m preview controls being displayed with the selected at least one preview control for displaying.
Optionally, the first display module 530 further includes:
a first increasing display unit, configured to increase the number of the displayed preview controls according to the width of the main panel interface when the width of the main panel interface is widened; or,
a second increase display unit, configured to increase, when the length of the main panel interface is lengthened, the number of the displayed preview controls according to the length of the main panel interface; or,
a first reduction display unit, configured to reduce the number of the preview controls that are displayed according to the width of the main panel interface when the width of the main panel interface is narrowed; or,
and the second reduction display unit is used for reducing the number of the displayed preview controls according to the length of the main panel interface when the width of the main panel interface is shortened.
Optionally, the apparatus further comprises: a signal receiving module 540, an identification acquisition module 550 and a channel entry module 560.
And the signal receiving module 540 is configured to receive a selection signal applied to any one of the preview controls when each piece of recommended live video data includes a channel identifier.
And an identifier obtaining module 550, configured to obtain a channel identifier included in the recommended live video data corresponding to the selected preview control.
And a channel entering module 560, configured to enter a corresponding channel according to the channel identifier.
Optionally, the apparatus further comprises: a record acquisition module 524 and a second detection module 525.
A record obtaining module 524, configured to obtain a preview control display record of a user account logged in the client, where the preview control display record is used to record a display condition of the preview control when the user account logs out of the client last time;
a second detecting module 525, configured to detect, according to the preview control display record, whether the preview control is in a display state or a hidden state when the user account logs out of the client last time;
the first display module 530 is further configured to, when in the display state, display the preview control in an overlay manner in a main panel interface of the client.
Optionally, the apparatus further comprises: a third display module 570 and a fourth display module 580.
And a third display module 570, configured to display a page trigger control in the main panel interface.
A fourth display module 580, configured to display a live video aggregation page when a trigger signal corresponding to the page trigger control is acquired, where the live video aggregation page includes at least one preview control.
In summary, the device for displaying recommended data in a social application provided by this embodiment generates a preview control according to recommended live video data by acquiring the recommended live video data, and then displays the preview control in a main panel interface of a client in an overlapping manner; the problem that operation for watching live video is complicated and inconvenient in the related technology is solved; the user can directly select the live video to be watched from the recommended live video in the main panel interface, so that the effects of simplifying operation and improving the efficiency of selecting the live video are achieved.
It should be noted that: in the device for displaying recommended data in social application provided in the above embodiment, when displaying recommended data, only the division of the above functional modules is used for illustration, and in practical application, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the device for displaying recommended data in social applications provided by the above embodiments and the method embodiments of the corresponding method belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Referring to fig. 7, a block diagram of a terminal according to an embodiment of the present invention is shown. The terminal 700 includes: processor 720 and memory 740, processor 720 and memory 740 may be connected by a communication bus, and memory 740 may be an instruction memory, registers, and the like.
The memory 740 is used for storing one or more instructions for implementing the method for displaying recommendation information in a social application provided by the embodiments shown in fig. 2, fig. 3A or fig. 4A.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.