Disclosure of Invention
In order to overcome the problems or at least partially solve the problems, the invention provides a live room recommendation display method and system.
According to one aspect of the invention, a live room recommendation display method is provided, which comprises the following steps:
step 1, finding a live broadcast room corresponding to live broadcast room recommendation request information based on the live broadcast room recommendation request information of users meeting preset operation authority;
and 2, when the live broadcast room is in live broadcast, displaying the link information of the live broadcast room according to a display rule.
Further, the live room recommendation request information of the specific identity user comprises: identity information of the specific identity user and identification information of the recommended live broadcast room.
Further, the method further comprises: and storing the identity information of the specific identity user and the identification information of the recommended live broadcast room.
Further, the display rule is as follows: and displaying the link information of the recommended live broadcast room at a specific position, and displaying the special identification of the user with the specific identity in a related manner on the link information of the recommended live broadcast room.
Further, still include: when more than two recommended live broadcast rooms which are live broadcast exist, calculating the priority value of each recommended live broadcast room according to the following rules, and displaying each recommended live broadcast room according to the priority value:
calculating a priority value p of each recommended room which is currently live broadcast, wherein p is aM + bN + cO, M is an identity grade value of the specific user, N is a popularity value of the recommended live broadcast room, O is a historical online time of the recommended live broadcast room, and a, b and c are weights of the values, wherein a is greater than 0, b is greater than or equal to 0, and c is greater than or equal to 0.
Further, the live room recommendation request information of the specific identity user further includes: and adding the identity information of the user with the specific identity and the identification information of the recommended live broadcast room into a recommended information attribute field in the recommended live broadcast room information.
Further, the step of displaying the link of the live broadcast room corresponding to the live broadcast room recommendation request information according to a display rule further includes:
when the recommended information attribute field in the live broadcast room information contains the identification information of the user with the specific identity, finding the recommended live broadcast room based on the identification information of the recommended live broadcast room;
and when the live broadcasting room is in live broadcasting, recommending and displaying the recommended live broadcasting room.
Further, the step of displaying the special identifier of the specific identity user in association with the link information of the recommended live broadcast room further comprises: and adding a field for displaying the special identification of the user with the specific identity in the recommended live broadcast room information so that the special identification of the user with the specific identity is displayed based on the field for displaying the special identification of the user with the specific identity when the client terminal displays and loads the recommended live broadcast room.
According to an aspect of the present invention, there is provided a live room recommendation display system, including:
the searching module is used for finding a live broadcast room corresponding to the live broadcast room recommendation request information based on the live broadcast room recommendation request information of the user meeting the preset operation authority;
and the receiving module is used for displaying the link information of the live broadcast room according to a display rule when the live broadcast room is in live broadcast.
Further, the system further comprises a storage module, which is used for associating and storing the identity information of the specific identity user and the identification information of the recommended live broadcast room in a server.
The application provides a live broadcast room recommendation display method and a live broadcast room recommendation display system, wherein the method is used for finding a live broadcast room corresponding to live broadcast room recommendation request information based on the live broadcast room recommendation request information of a user meeting preset operation authority; and when the live broadcast room is in live broadcast, displaying the link information of the live broadcast room according to a display rule. The method has the advantages that the top display of a specific live broadcast room can be realized by audiences, and the psychology of the audiences for showing the main display of the live broadcast room is satisfied.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
As shown in fig. 1, in an embodiment of the present invention, a live room recommendation display method includes:
step 1, finding a live broadcast room corresponding to live broadcast room recommendation request information based on the live broadcast room recommendation request information of users meeting preset operation authority;
and 2, when the live broadcast room is in live broadcast, displaying the link information of the live broadcast room according to a display rule.
In another specific embodiment of the present invention, a live broadcast room recommendation display method is provided, where the live broadcast room recommendation request information of the user with the specific identity includes: identity information of the specific identity user and identification information of the recommended live broadcast room.
In another specific embodiment of the present invention, a live room recommendation display method further includes: and storing the identity information of the specific identity user and the identification information of the recommended live broadcast room.
In another specific embodiment of the present invention, a live broadcast room recommendation display method includes: and displaying the link information of the recommended live broadcast room at a specific position, and displaying the special identification of the user with the specific identity in a related manner on the link information of the recommended live broadcast room.
In another specific embodiment of the present invention, a live room recommendation display method further includes: it can be selected whether a special identification of the specific identity user is presented in association with the link information of the recommended live room.
In another specific embodiment of the present invention, a live room recommendation display method further includes: when more than two recommended live broadcast rooms which are live broadcast exist, calculating the priority value of each recommended live broadcast room according to the following rules, and displaying each recommended live broadcast room according to the priority value:
calculating a priority value p of each recommended room which is currently live broadcast, wherein p is aM + bN + cO, M is an identity grade value of the specific user, N is a popularity value of the recommended live broadcast room, O is a historical online time of the recommended live broadcast room, and a, b and c are weights of the values, wherein a is greater than 0, b is greater than or equal to 0, and c is greater than or equal to 0.
In another specific embodiment of the present invention, a live room recommendation display method further includes: it can be selected whether a special identification of the specific identity user is presented in association with the link information of the recommended live room.
In another specific embodiment of the present invention, a live broadcast room recommendation display method, where the live broadcast room recommendation request information of the user with the specific identity further includes: and adding the identity information of the user with the specific identity and the identification information of the recommended live broadcast room into a recommended information attribute field in the recommended live broadcast room information.
In another specific embodiment of the present invention, a live broadcast room recommendation display method, wherein the step of displaying a link of a live broadcast room corresponding to the live broadcast room recommendation request information according to a display rule further includes:
when the recommended information attribute field in the live broadcast room information contains the identification information of the user with the specific identity, finding the recommended live broadcast room based on the identification information of the recommended live broadcast room;
and when the live broadcasting room is in live broadcasting, recommending and displaying the recommended live broadcasting room.
In another specific embodiment of the present invention, a live broadcast room recommendation display method, where the step of displaying a special identifier of the specific identity user in association with link information of the recommended live broadcast room further includes: and adding a field for displaying the special identification of the user with the specific identity in the recommended live broadcast room information so that the special identification of the user with the specific identity is displayed based on the field for displaying the special identification of the user with the specific identity when the client terminal displays and loads the recommended live broadcast room.
In yet another embodiment of the present invention, a live room recommendation display method. In the iterative process of the video live broadcast page, due to the fact that the special identity user recommendation set-top function is added to the set-top, icons of rooms on which special identity user recommendation set-top is required to be displayed, and special identity user recommendation can be displayed on the page to attract users. If the background sets the room to be recommended by the special identity user, the special identity user recommendation icon is displayed, otherwise, the special identity user recommendation icon is hidden.
The functional point due to the requirement is that the interface display of the front end can be configured through the background. If the background is configured with a room for the special identity user to set the top and the room needs to be played, the front end needs to display the recommended icon set by the special identity user, and if the background does not recommend the room for the special identity user to set the top or the room does not need to be played, the icon does not need to be displayed.
In order to support the dynamic configuration of the background, a set of dynamic protocols is customized in this embodiment, and the situation that the user with the special identity is set on the top in the background configuration can be known through the protocols. The recommendation function of the background is included in the self-defined protocol.
When a user enters a live broadcast room, the server outputs and displays all data information required to be displayed in the room on a page, and the front end acquires a top field recommended by a special identity user from room data to judge whether an icon recommended by the special identity user needs to be displayed or not, so that the display and hiding functions of the icon recommended by the special identity user are controlled.
The special identity user recommending room means that a person who purchases a special identity can put on the top to recommend a certain live broadcast room, and the rooms that the person wants are subjected to website sequencing and put on the top, so that the recommender needs to judge whether the room is the special identity user when the special identity user is added.
The method comprises the following steps: adding a special identity user in a background to set a room, and filling in a unique identifier and a room id of a recommender, namely the corresponding special identity user, wherein the unique identifier and the room id are as follows: pushuid: 21311roomid 401;
the background program judges that the user is the special identity user through the unique user identification, if the user is the special identity user, the special identity user is written into the database, whether a room is broadcast or not is judged at regular time, and if the broadcast updates the redis cache, the recommended person uid is written into the redis;
judging whether the user mode with the special identity is adopted: calling a getUserowner (published) method by a program, if the user is a special identity user, returning true, and otherwise, returning false;
judging whether the broadcasting mode is adopted: calling getROOMIsShow (roomid) by the program, if the broadcast returns true, otherwise, returning false;
when a user enters a live broadcast room, the program acquires room information, and in order to enable the background server to control the display and hidden information of the special identity user recommendation icon of the application program. And a set of self-defined protocol is used for controlling the display and the hiding of the recommended icons of the foreground users with special identities. The protocol contains 1 part in total; the server request protocol format is as follows, and the description in the protocol is referred to for the relevant description of the protocol field:
the protocol design in this embodiment has the following advantages:
(1) the protocol adds the emperorPush attribute field in the room data information in the design process, the emperorPush attribute field is a special identity user recommendation function at present, the emperorPush attribute field contains a recommender and a nickname of the recommender, and subsequently, if other information of the recommender is needed, the protocol does not need to be updated or upgraded. The compatibility of the protocol itself is improved.
(2) The protocol directly buries the required data on the page at the time of initial words, does not need a program asynchronous loading request interface, and can more quickly display or hide the judgment icon
(3) The returned data of the protocol is very simple, if the display function of the special identity user icon is opened, the value of the emperorPush field is not null, otherwise, the value is null. The returned data is simple and clear.
The display and the hiding of the special identity user recommendation icon are controlled through protocol content: the method comprises the steps that after a page is initialized, a front end obtains information recommended by a user with a special identity by obtaining a ROOMS. If the special identity user recommends that the icon be closed, no processing of the page is required, as the icon is hidden by default at the time of the page.
Function of the shownnear button function: the function mainly functions to display the icon button recommended by the user with special identity.
The function implementation of the showepperticon (custom function) is as follows:
the data marked on the page, namely ROOMS.
$ (function () { }) is a shorthand for $ (document). ready (function () { }) to execute a series of predefined functions after the DOM load is complete.
When a ROOMS.
Judgment condition 1:
if (ROOMS. emperorPush! ═ null & & ROOMS. emperorPush. push > 0); the judgment statement is that the special identity user recommended icon is displayed when the ROOMS.
When the condition 1 is met, the showepperticon () is called, and then a show (true) function in the icon is called in the showepperticon to display the special-identity user recommendation icon.
When the condition 1 is not satisfied, since the recommendation icon itself is not visible, the visibility of the button is not set again at the time of illegal.
The method only needs one-time judgment, and if the display is needed, a built-in dom display method of the system is called, so that the icon can be displayed, and the execution efficiency of the program is improved by simply judging; by encapsulating the function, the button can be quickly displayed by simply calling the showEmperIcon; the hidden process is not needed to be processed, the logical judgment of the program is reduced, and the program is simple and clear.
In another embodiment of the present invention, as shown in fig. 2, a live room recommendation display system includes:
the searching module A1 is used for finding a live broadcast room corresponding to the live broadcast room recommendation request information based on the live broadcast room recommendation request information of the user meeting the preset operation authority;
and the display module A2 is configured to, when the live broadcast room is in a live broadcast, display the link information of the live broadcast room according to a display rule.
In another embodiment of the present invention, a live room recommendation display system is provided, where the live room recommendation request information of the user with the specific identity includes: identity information of the specific identity user and identification information of the recommended live broadcast room.
In another embodiment of the present invention, a live room recommendation display system further includes: and the storage module is used for associating and storing the identity information of the specific identity user and the identification information of the recommended live broadcast room in a server.
In another specific embodiment of the present invention, a live broadcast room recommendation display system includes the following display rules: and displaying the link information of the recommended live broadcast room at a specific position, and displaying the special identification of the user with the specific identity in a related manner on the link information of the recommended live broadcast room.
In another specific embodiment of the present invention, the display module is further configured to, when there are more than two recommended live broadcast rooms in live broadcast, calculate a priority value of each recommended live broadcast room according to the following rules, and display each recommended live broadcast room according to the size of the priority value:
calculating a priority value p of each recommended room which is currently live broadcast, wherein p is aM + bN + cO, M is an identity grade value of the specific user, N is a popularity value of the recommended live broadcast room, O is a historical online time of the recommended live broadcast room, and a, b and c are weights of the values, wherein a is greater than 0, b is greater than or equal to 0, and c is greater than or equal to 0.
In another embodiment of the present invention, a live room recommendation display system, the display module is further configured to: and displaying the link information of the recommended live broadcast room at a specific position, and displaying the special identification of the user with the specific identity in a related manner on the link information of the recommended live broadcast room.
In another embodiment of the present invention, a live room recommendation display system, the display module is further configured to: it can be selected whether a special identification of the specific identity user is presented in association with the link information of the recommended live room.
In another embodiment of the present invention, a live room recommendation display system, where the live room recommendation request information of the user with the specific identity further includes: and adding the identity information of the user with the specific identity and the identification information of the recommended live broadcast room into a recommended information attribute field in the recommended live broadcast room information.
In another specific embodiment of the present invention, a live room recommendation display system, the recommendation module is further configured to: when the recommended information attribute field in the live broadcast room information contains the identification information of the user with the specific identity, finding the recommended live broadcast room based on the identification information of the recommended live broadcast room;
and when the live broadcasting room is in live broadcasting, recommending and displaying the recommended live broadcasting room.
In another specific embodiment of the present invention, a live room recommendation display system, the recommendation module is further configured to: and adding a field for showing whether the special identification of the user with the specific identity is shown or not in the recommended live broadcast room information so that when a client terminal shows and loads the recommended live broadcast room, whether the special identification of the user with the specific identity is shown or not is judged based on whether the field for showing the special identification of the user with the specific identity is shown or not.
Fig. 3 shows a block diagram of a device of a live room recommendation presentation method according to an embodiment of the present application.
Referring to fig. 3, the device of the live room recommendation display method includes: a processor (processor)301, a memory (memory)302, a communication Interface (Communications Interface)303, and a bus 304;
wherein,
the processor 301, the memory 302 and the communication interface 303 complete mutual communication through the bus 304;
the communication interface 303 is used for information transmission between the device and a communication device of a live broadcast room recommendation display method;
the processor 301 is configured to call program instructions in the memory 302 to perform the methods provided by the above-mentioned method embodiments, including: step 1, finding a live broadcast room corresponding to live broadcast room recommendation request information based on the live broadcast room recommendation request information of users meeting preset operation authority; and 2, when the live broadcast room is in live broadcast, displaying the link information of the live broadcast room according to a display rule.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: step 1, finding a live broadcast room corresponding to live broadcast room recommendation request information based on the live broadcast room recommendation request information of users meeting preset operation authority; and 2, when the live broadcast room is in live broadcast, displaying the link information of the live broadcast room according to a display rule.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: step 1, finding a live broadcast room corresponding to live broadcast room recommendation request information based on the live broadcast room recommendation request information of users meeting preset operation authority; and 2, when the live broadcast room is in live broadcast, displaying the link information of the live broadcast room according to a display rule.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the devices and the like of the live room recommendation display method are merely illustrative, where the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.