












技术领域technical field
本申请涉及网络直播领域,尤其涉及一种直播推荐通知处理方法,此外还涉及该方法相应的装置、设备、非易失性存储介质以及计算机程序产品。The present application relates to the field of web live broadcasting, and in particular, to a method for processing a recommendation notification for live broadcasting, and also to apparatuses, devices, non-volatile storage media and computer program products corresponding to the method.
背景技术Background technique
随着互联网的发展,互联网中存在多种直播平台,各平台为平台用户提供直播间在线服务,以使主播用户在其平台中开启直播间,吸引观众用户进入直播间中参与主播用户开启的主播活动,使直播平台中存在各类型的直播间供平台用户浏览,提升平台中用户的使用体验。With the development of the Internet, there are a variety of live broadcast platforms on the Internet. Each platform provides online services of live broadcast rooms for platform users, so that anchor users can open live broadcast rooms in their platforms and attract audience users to enter the live broadcast rooms to participate in the live broadcasts opened by the anchor users. Activities, so that there are various types of live broadcast rooms in the live broadcast platform for platform users to browse, and to improve the user experience on the platform.
但在现有的直播平台中,平台的主播用户在直播间中进行直播业务时,主播用户想了解其直播间在平台中的观众数量或直播热度等直播数据时,往往需要进入主播后台等相应个人页面中才可了解,方式较为繁琐,主播用户无法直观地感知其直播间在当前平台中的曝光度。However, in the existing live broadcast platform, when the anchor user of the platform conducts the live broadcast business in the live broadcast room, when the anchor user wants to know the number of viewers in the live broadcast room on the platform or the live broadcast data such as the live broadcast popularity, they often need to enter the anchor background and other relevant information. It can only be understood on the personal page, the method is more complicated, and the anchor users cannot intuitively perceive the exposure of their live broadcast room on the current platform.
相应的,现有的直播平台中往往没有为主播用户提供相应的直播间推荐服务,使平台中的主播用户的直播间无法吸引更多的观众用户进入观看,使得直播间的观众人数无法有效地增长。Correspondingly, the existing live broadcast platforms often do not provide corresponding live broadcast room recommendation services for anchor users, so that the live broadcast rooms of the anchor users in the platform cannot attract more audience users to watch, so that the number of viewers in the live broadcast room cannot be effectively used. increase.
针对上述的问题,本申请人出于该些问题的考虑做出相应的探索。In view of the above problems, the applicant has made corresponding explorations in consideration of these problems.
发明内容SUMMARY OF THE INVENTION
本申请的目的在于满足现有技术的需求或克服现有技术的至少部分不足而提供一种直播推荐通知处理方法及其相应的装置、电子设备、非易失性存储介质以及计算机程序产品。The purpose of this application is to meet the needs of the prior art or overcome at least part of the deficiencies of the prior art to provide a method for processing live broadcast recommendation notification and its corresponding apparatus, electronic device, non-volatile storage medium and computer program product.
为实现本申请的目的,采用如下技术方案:For realizing the purpose of this application, adopt following technical scheme:
适应本申请的目的而提出的一种直播推荐通知处理方法,包括如下步骤:A method for processing a live broadcast recommendation notification proposed to suit the purpose of this application includes the following steps:
查询出广播推荐消息队列中入队时间早于当前时间的主播广播推荐消息,所述广播推荐消息队列依照各主播广播推荐消息具有的入队时间进行升序排序,其中,所述主播广播推荐消息还包含主播标识及直播间推荐类型;Querying out the anchor broadcast recommendation messages whose enqueue time is earlier than the current time in the broadcast recommendation message queue, the broadcast recommendation message queue is sorted in ascending order according to the enqueue time of each anchor broadcast recommendation message, wherein the anchor broadcast recommendation message also Including the anchor logo and the recommended type of the live broadcast room;
获取具有目标主播标识的主播广播推荐消息,查询出广播记录库中与该目标主播标识相对应的广播记录信息,所述广播记录信息中包含各直播间推荐类型相对应的广播状态及广播优先级;Obtain the anchor broadcast recommendation message with the target anchor identifier, and query the broadcast record information corresponding to the target anchor identifier in the broadcast record database. The broadcast record information includes the broadcast status and broadcast priority corresponding to the recommended types of each live broadcast room. ;
根据所述主播广播推荐消息中包含的直播间推荐类型在所述广播记录信息中记录的广播状态及广播优先级,校验是否广播所述直播间推荐类型对应的推荐通知至目标主播标识所对应的目标直播间中;According to the broadcast status and broadcast priority recorded in the broadcast record information of the recommended type of the live broadcast room contained in the broadcast recommendation message of the host, it is verified whether to broadcast the recommendation notification corresponding to the recommended type of the live broadcast room to the target host identifier. in the target live room;
根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示,其中,若广播状态为已广播过状态,则直播间推荐类型的推荐通知中包含推荐动画图标,若广播状态为未广播过状态,则直播间推荐类型的推荐通知中包含推荐通知文本及推荐动画图标。According to the broadcast status to which the recommended type of the live room has passed the verification, a recommendation notification corresponding to the recommended type of the live room is generated and broadcast to the target live room for display. The recommendation notification of the type contains the recommendation animation icon. If the broadcast status is the unbroadcasted state, the recommendation notification of the recommendation type in the live broadcast room includes the recommendation notification text and the recommendation animation icon.
进一步的实施例中,所述获取具有目标主播标识的主播广播推荐消息,查询出广播记录库中与该目标主播标识相对应的广播记录信息的步骤中,包括如下由服务器执行的步骤:In a further embodiment, the step of obtaining the anchor broadcast recommendation message with the target anchor identifier, and querying the broadcast record information corresponding to the target anchor identifier in the broadcast record library, includes the following steps performed by the server:
根据主播广播推荐消息所具有的主播标识,查询所述广播记录库中是否存在与该主播标识相匹配的广播记录信息;According to the anchor identifier of the anchor broadcast recommendation message, query whether there is broadcast record information matching the anchor identifier in the broadcast record library;
当所述广播记录库中不存在与所述主播标识相匹配的广播记录信息时,将根据所述主播广播推荐消息包含的直播间推荐类型,生成包含用于表征该直播间推荐类型的推荐通知文本及推荐动画图标的推荐通知;When there is no broadcast record information matching the host identifier in the broadcast record library, a recommendation notification including a recommendation type for characterizing the live room recommendation type will be generated according to the live room recommendation type included in the host's broadcast recommendation message Recommendation notifications with text and recommended animation icons;
广播所述推荐通知至所述主播标识相对应的直播间中进行展示。Broadcasting the recommendation notification to the live broadcast room corresponding to the anchor identifier for display.
进一步的实施例中,所述根据所述主播广播推荐消息中包含的直播间推荐类型在所述广播记录信息中记录的广播状态及广播优先级,校验是否广播所述直播间推荐类型对应的推荐通知至目标主播标识所对应的目标直播间中的步骤中,包括:In a further embodiment, according to the broadcast status and broadcast priority recorded in the broadcast record information according to the recommended type of the live broadcast room included in the broadcast recommendation message of the host, it is checked whether to broadcast the corresponding type of the live broadcast room recommendation type. The steps of recommending the notification to the target live broadcast room corresponding to the target host identifier include:
从所述广播记录信息中获取所述主播广播推荐消息中包含的直播间推荐类型所对应的广播状态及广播优先级;Obtain, from the broadcast record information, the broadcast status and broadcast priority corresponding to the recommended type of the live broadcast room included in the broadcast recommendation message of the anchor;
当所述广播状态表征所述直播间推荐类型为正在广播状态时,则不广播该直播间推荐类型所对应的推荐通知;When the broadcast state indicates that the recommended type of the live room is in the broadcasting state, the recommendation notification corresponding to the recommended type of the live room is not broadcast;
当所述广播状态表征所述直播间推荐类型为已经广播过状态或未广播过状态时,调用快速排序算法,根据该直播间推荐类型的广播优先级及入队时间,确定该直播间推荐类型在目标主播标识所对应的推荐类型列表中的排序位置;When the broadcast status indicates that the recommended type of the live broadcast room is already broadcasted or not broadcasted, the quick sorting algorithm is invoked, and the recommended type of the live broadcast room is determined according to the broadcast priority and the queue time of the recommended type of the live broadcast room. The sorting position in the recommended type list corresponding to the target anchor ID;
当所述直播间推荐类型在所述推荐类型列表中的排序位置超过预设广播排序位置时,将向目标主播标识所对应的直播间广播该直播间推荐类型的推荐通知。When the sorting position of the recommended type of the live broadcast room in the recommended type list exceeds the preset broadcast sorting position, a recommendation notification of the recommended type of the live broadcast room will be broadcast to the live broadcast room corresponding to the target anchor identifier.
较佳的实施例中,所述调用快速排序算法,根据该直播间推荐类型的广播优先级及入队时间,确定该直播间推荐类型在目标主播标识所对应的推荐类型列表中的排序位置的步骤中,包括如下由服务器执行的步骤:In a preferred embodiment, the quick sorting algorithm is invoked to determine the ordering position of the recommended type of the live broadcast room in the list of recommended types corresponding to the target anchor identifier according to the broadcast priority and the queue entry time of the recommended type of the live broadcast room. The steps include the following steps executed by the server:
从所述广播记录信息中获取广播状态表征为已经广播过状态或未广播过状态的目标直播间推荐类型所对应的广播优先级;Obtain, from the broadcast record information, the broadcast priority corresponding to the recommended type of the target live room whose broadcast state is characterized as having been broadcasted or not broadcasted;
根据目标直播间推荐类型所对应的广播优先级及入队时间,更新目标直播间推荐类型在所述推荐类型列表中的排序权重;According to the broadcast priority and the queue entry time corresponding to the recommended type of the target live broadcast room, update the sorting weight of the recommended type of the target live broadcast room in the recommended type list;
调用所述快速排序算法,获取所述推荐类型列表中处于首位的直播间推荐类型的排序权重,以该排序权重为基准数,根据该推荐类型列表中存储的所有直播间推荐类型各自的排序权重,更新该些直播间推荐类型各自在所述推荐类型列表中的排序位置;Invoke the quick sort algorithm to obtain the sorting weight of the recommended type of the live broadcast room at the top of the recommendation type list, and use the sorting weight as the reference number, according to the sorting weight of all the recommended types of live broadcast rooms stored in the recommended type list. , update the respective ranking positions of the recommended types in the live broadcast room in the recommended type list;
判断目标直播间推荐类型在所述推荐类型列表中的排序位置是否超过预设广播排序位置,若否,则不对目标直播间推荐类型进行推荐通知广播处理。It is judged whether the ranking position of the recommended type of the target live broadcast room in the recommended type list exceeds the preset broadcast ranking position, and if not, the recommendation notification broadcast processing is not performed on the recommended type of the target live broadcast room.
进一步的实施例中,所述根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示的步骤中,包括如下由服务器执行的步骤:In a further embodiment, the step of generating a recommendation notification corresponding to the recommended type of the live broadcast room and broadcasting it to the target live broadcast room according to the broadcast status of the recommended type of the live broadcast room that has passed the verification includes the following steps by the server: Steps to perform:
从推荐素材库中获取与所述直播间推荐类型相匹配的推荐通知文本及推荐动画图标;Obtain the recommendation notification text and the recommendation animation icon matching the recommendation type of the live broadcast room from the recommendation material library;
当所述直播间推荐类型所对应的广播状态为已广播过状态时,生成包含所述推荐动画图标的推荐通知;When the broadcast state corresponding to the recommended type of the live room is the broadcasted state, generating a recommendation notification including the recommended animation icon;
当所述直播间推荐类型所对应的广播状态为未广播过状态时,生成包含推荐通知文本及推荐动画图标的推荐通知;When the broadcast state corresponding to the recommended type of the live broadcast room is an unbroadcasted state, a recommendation notification including the recommendation notification text and the recommendation animation icon is generated;
将生成的推荐通知广播至所述目标主播标识所对应的直播间中进行展示。The generated recommendation notification is broadcast to the live broadcast room corresponding to the target anchor identifier for display.
进一步的实施例中,所述根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示的步骤中,包括如下由客户端执行的步骤:In a further embodiment, the step of generating a recommendation notification corresponding to the recommended type of the live broadcast room and broadcasting it to the target live room according to the broadcast state of the recommended type of the live broadcast room that has passed the verification includes the following steps: Steps performed on the side:
响应由服务器推送的所述推荐通知,判断该推荐通知中是否包含推荐通知文本;In response to the recommendation notification pushed by the server, determine whether the recommendation notification contains recommendation notification text;
当所述推荐通知中包含推荐通知文本时,输出该推荐通知文本至当前直播间界面中进行显示,直至该推荐通知文本的显示时长超过预设时长时,停止该推荐通知文本的展示;When the recommendation notification contains recommendation notification text, output the recommendation notification text to the current live room interface for display, until the display duration of the recommendation notification text exceeds the preset duration, stop the display of the recommendation notification text;
将所述推荐通知中包含的推荐动画图标输出至当前直播间界面的图标轮播窗口中显示,所述图标轮播窗口中循环播放其具有的多个推荐动画图标。The recommended animation icons contained in the recommendation notification are output to the icon carousel window of the current live room interface for display, and the icon carousel window plays a plurality of recommended animation icons in a loop.
进一步的实施例中,所述根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示的步骤之后,包括如下由服务器执行的步骤:In a further embodiment, after the step of generating a recommendation notification corresponding to the recommended type of the live broadcast room and broadcasting it to the target live broadcast room according to the broadcast status to which the recommended type of the live broadcast room has passed the verification, the following steps are included by the server: Steps to perform:
监听所述目标主播标识所对应的直播间,获取该直播间中广播的直播间推荐类型所对应的广播状态;Monitor the live broadcast room corresponding to the target anchor identifier, and obtain the broadcast status corresponding to the recommended type of live broadcast room broadcast in the live broadcast room;
响应作用于直播间推荐类型的广播权重更新事件,获取该直播间推荐类型最新的广播权重;In response to the broadcast weight update event acting on the recommended type of the live broadcast room, obtain the latest broadcast weight of the recommended type of the live broadcast room;
对应更新所述目标主播标识所属的广播记录信息中所述直播间推荐类型所对应的广播状态或广播权重。Correspondingly, the broadcast status or broadcast weight corresponding to the recommended type of the live broadcast room in the broadcast record information to which the target anchor identifier belongs is updated.
适应本申请的目的而提出的一种直播推荐通知处理装置,其包括:A live broadcast recommendation notification processing device proposed to meet the purpose of this application includes:
推荐消息查询模块,用于查询出广播推荐消息队列中入队时间早于当前时间的主播广播推荐消息,所述广播推荐消息队列依照各主播广播推荐消息具有的入队时间进行升序排序,其中,所述主播广播推荐消息还包含主播标识及直播间推荐类型;The recommendation message query module is used to query the broadcast recommendation message queue of the anchors whose enqueue time is earlier than the current time. The anchor broadcast recommendation message also includes the anchor identifier and the recommendation type of the live broadcast room;
记录信息查询模块,用于获取具有目标主播标识的主播广播推荐消息,查询出广播记录库中与该目标主播标识相对应的广播记录信息,所述广播记录信息中包含各直播间推荐类型相对应的广播状态及广播优先级;The record information query module is used to obtain the anchor broadcast recommendation message with the target anchor identifier, and query the broadcast record information corresponding to the target anchor identifier in the broadcast record database, and the broadcast record information includes the recommendation types corresponding to each live broadcast room. broadcast status and broadcast priority;
通知广播校验模块,用于根据所述主播广播推荐消息中包含的直播间推荐类型在所述广播记录信息中记录的广播状态及广播优先级,校验是否广播所述直播间推荐类型对应的推荐通知至目标主播标识所对应的目标直播间中;The notification broadcast verification module is used to verify whether to broadcast the broadcast status and broadcast priority recorded in the broadcast record information according to the recommended type of the live broadcast room included in the broadcast recommendation message of the anchor. The recommendation notification is sent to the target live broadcast room corresponding to the target anchor ID;
推荐通知广播模块,用于根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示,其中,若广播状态为已广播过状态,则直播间推荐类型的推荐通知中包含推荐动画图标,若广播状态为未广播过状态,则直播间推荐类型的推荐通知中包含推荐通知文本及推荐动画图标。The recommendation notification broadcast module is used to generate a recommendation notification corresponding to the recommended type of the live broadcast room according to the broadcast state to which the recommended type of the live broadcast room belongs, and broadcast it to the target live room for display, wherein, if the broadcast status is broadcasted If the broadcast status is not broadcasted, the recommendation notification of the recommended type in the live broadcast room contains the recommendation notification text and the recommended animation icon.
进一步的实施例中,所述记录信息查询模块包括:In a further embodiment, the record information query module includes:
广播记录信息查询子模块,用于根据主播广播推荐消息所具有的主播标识,查询所述广播记录库中是否存在与该主播标识相匹配的广播记录信息;The broadcast record information query submodule is used for querying whether there is broadcast record information matching the anchor identifier in the broadcast record library according to the anchor identifier possessed by the anchor broadcast recommendation message;
推荐通知生成子模块,用于当所述广播记录库中不存在与所述主播标识相匹配的广播记录信息时,将根据所述主播广播推荐消息包含的直播间推荐类型,生成包含用于表征该直播间推荐类型的推荐通知文本及推荐动画图标的推荐通知;A recommendation notification generation sub-module is used to generate, according to the type of live room recommendation contained in the broadcast recommendation message of the anchor, a broadcast recording information that matches the anchor identifier when there is no broadcast record information in the broadcast record library. The recommendation notification text of the recommended type of the live broadcast room and the recommendation notification of the recommendation animation icon;
推荐通知广播子模块,用于广播所述推荐通知至所述主播标识相对应的直播间中进行展示。The recommendation notification broadcasting sub-module is configured to broadcast the recommendation notification to the live broadcast room corresponding to the anchor identifier for display.
进一步的实施例中,所述通知广播校验模块包括:In a further embodiment, the notification broadcast verification module includes:
广播信息获取子模块,用于从所述广播记录信息中获取所述主播广播推荐消息中包含的直播间推荐类型所对应的广播状态及广播优先级;A broadcast information acquisition submodule, configured to acquire, from the broadcast record information, the broadcast status and broadcast priority corresponding to the type of recommendation for the live broadcast room included in the broadcast recommendation message of the anchor;
停止广播处理子模块,用于当所述广播状态表征所述直播间推荐类型为正在广播状态时,则不广播该直播间推荐类型所对应的推荐通知;A stop broadcast processing submodule, configured to not broadcast the recommendation notification corresponding to the recommended type of the live broadcast room when the broadcast state indicates that the recommended type of the live room is in the broadcasting state;
排序位置确定子模块,用于当所述广播状态表征所述直播间推荐类型为已经广播过状态或未广播过状态时,调用快速排序算法,根据该直播间推荐类型的广播优先级及入队时间,确定该直播间推荐类型在目标主播标识所对应的推荐类型列表中的排序位置;The sorting position determination submodule is used to call the quick sorting algorithm when the broadcast status indicates that the recommended type of the live broadcast room is a state that has been broadcasted or has not been broadcasted, according to the broadcast priority of the recommended type of the live broadcast room and the queue. time, determine the ranking position of the recommended type of the live broadcast room in the recommended type list corresponding to the target anchor identifier;
预广播子模块,用于当所述直播间推荐类型在所述推荐类型列表中的排序位置超过预设广播排序位置时,将向目标主播标识所对应的直播间广播该直播间推荐类型的推荐通知。The pre-broadcast sub-module is used to broadcast the recommendation of the recommended type of the live broadcast room to the live room corresponding to the target anchor identifier when the ranking position of the recommended type of the live broadcast room in the recommended type list exceeds the preset broadcast sorting position Notice.
进一步的实施例中,所述推荐通知广播模块包括:In a further embodiment, the recommendation notification broadcasting module includes:
通知素材获取子模块,用于从推荐素材库中获取与所述直播间推荐类型相匹配的推荐通知文本及推荐动画图标;A notification material acquisition sub-module, which is used to acquire the recommended notification text and the recommended animation icon matching the recommended type of the live broadcast room from the recommended material library;
第一推荐通知生成子模块,用于当所述直播间推荐类型所对应的广播状态为已广播过状态时,生成包含所述推荐动画图标的推荐通知;a first recommendation notification generation submodule, configured to generate a recommendation notification including the recommendation animation icon when the broadcast state corresponding to the recommendation type of the live studio is the broadcasted state;
第二推荐通知生成子模块,用于当所述直播间推荐类型所对应的广播状态为未广播过状态时,生成包含推荐通知文本及推荐动画图标的推荐通知;The second recommendation notification generation submodule is configured to generate a recommendation notification including recommendation notification text and recommendation animation icon when the broadcast state corresponding to the recommendation type of the live room is an unbroadcasted state;
推荐通知广播子模块,用于将生成的推荐通知广播至所述目标主播标识所对应的直播间中进行展示。The recommendation notification broadcasting sub-module is configured to broadcast the generated recommendation notification to the live room corresponding to the target anchor identifier for display.
较佳的实施例中,所述推荐通知广播模块还包括:In a preferred embodiment, the recommendation notification broadcasting module further includes:
推荐通知响应子模块,用于响应由服务器推送的所述推荐通知,判断该推荐通知中是否包含推荐通知文本;A recommendation notification response submodule, configured to respond to the recommendation notification pushed by the server, and determine whether the recommendation notification contains recommendation notification text;
通知文本显示子模块,用于当所述推荐通知中包含推荐通知文本时,输出该推荐通知文本至当前直播间界面中进行显示,直至该推荐通知文本的显示时长超过预设时长时,停止该推荐通知文本的展示;The notification text display sub-module is used to output the recommendation notification text to the current live room interface for display when the recommendation notification contains recommendation notification text, and stop the recommendation notification text until the display duration of the recommendation notification text exceeds the preset duration. Display of recommendation notice text;
动画图标显示子模块,用于将所述推荐通知中包含的推荐动画图标输出至当前直播间界面的图标轮播窗口中显示,所述图标轮播窗口中循环播放其具有的多个推荐动画图标。The animation icon display sub-module is used for outputting the recommended animation icons contained in the recommendation notification to the icon carousel window of the current live room interface for display, and the icon carousel window cyclically plays a plurality of recommended animation icons it has. .
适应本申请的目的而提出的一种电子设备,包括中央处理器和存储器,所述中央处理器用于调用运行存储于所述存储器中的计算机程序以执行所述直播推荐通知处理方法的步骤。An electronic device proposed to suit the purpose of this application includes a central processing unit and a memory, where the central processing unit is configured to call and run a computer program stored in the memory to execute the steps of the method for processing a live broadcast recommendation notification.
适应本申请的目的而提出的一种非易失性存储介质,其存储有依据所述直播推荐通知处理方法所实现的计算机程序,所述计算机程序被计算机调用运行时,执行其相应的方法所包括的步骤。A non-volatile storage medium proposed for the purpose of this application, which stores a computer program implemented according to the method for processing a live broadcast recommendation notification. steps included.
为解决上述技术问题本申请实施例还提供一种计算机程序产品,包括计算机程序及计算机指令,该计算机程序及计算机指令被处理器执行时,使得所述处理器执行上述所述直播数据分层预测方法或直播推荐通知处理方法的步骤。In order to solve the above-mentioned technical problem, the embodiment of the present application further provides a computer program product, including a computer program and computer instructions, when the computer program and computer instructions are executed by a processor, the processor can perform the above-mentioned hierarchical prediction of live data. method or steps of the live recommendation notification handling method.
相对于现有技术,本申请的优势如下:Compared with the prior art, the advantages of the present application are as follows:
本申请为平台中的主播用户所开启的直播间提供直播间推荐服务,通过向满足推荐场景的主播用户的直播间广播相应的推荐通知进行显示,进而提升主播用户所开启的直播间中的观众人数,且通过将直播间的观众数据等直播数据通过推荐通知的方式广播至直播间界面中进行展示,使主播用户直观地了解其直播间在直播平台及直播分区中曝光度,提升主播用户的直播体验,同时提升直播间中的直播氛围。This application provides a live broadcast room recommendation service for the live broadcast room opened by the host user in the platform, and broadcasts the corresponding recommendation notification to the live broadcast room of the host user who meets the recommended scenario for display, thereby increasing the audience in the live broadcast room opened by the host user. and broadcast the live broadcast data such as audience data in the live broadcast room to the interface of the live broadcast room for display by means of recommendation notifications, so that the anchor users can intuitively understand the exposure of their live broadcast room on the live broadcast platform and live broadcast zone, and improve the anchor users' awareness. Live broadcast experience, while enhancing the live broadcast atmosphere in the live broadcast room.
其次,本申请通过为主播用户过滤其推荐通知,仅向直播间广播符合当前业务场景及具有时效性的推荐通知,防止过多的推荐通知输出展示至直播间界面中,影响直播间中观众用户的直播观看体验。Secondly, by filtering the recommendation notifications of the anchor users, this application only broadcasts the recommendation notifications that conform to the current business scenario and is time-sensitive to the live broadcast room, so as to prevent the output of too many recommendation notifications from being displayed on the live broadcast room interface and affect the audience users in the live broadcast room. live viewing experience.
另外,本申请通过消息队列的方式处理不同主播用户的主播广播推荐消息,通过入队时间对队列中多个主播广播推荐消息进行排序,仅需确定出队列中入队时间最早的主播广播推荐消息,即可获取当前时间中未处理的主播广播推荐消息,而不需要多次遍历队列中的消息,提升系统的处理效率。In addition, this application processes the anchor broadcast recommendation messages of different anchor users by means of a message queue, sorts multiple anchor broadcast recommendation messages in the queue by the queue entry time, and only needs to determine the anchor broadcast recommendation message with the earliest entry time in the queue. , you can obtain unprocessed anchor broadcast recommendation messages at the current time, without needing to traverse the messages in the queue multiple times, improving the processing efficiency of the system.
本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be set forth in part in the following description, which will become apparent from the following description, or may be learned by practice of the present application.
附图说明Description of drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1为实施本申请的技术方案相关的一种典型的网络部署架构示意图;1 is a schematic diagram of a typical network deployment architecture related to implementing the technical solution of the present application;
图2为本申请的直播推荐通知处理方法的典型实施例的流程示意图;2 is a schematic flowchart of a typical embodiment of a method for processing a live broadcast recommendation notification of the present application;
图3为本申请中显示推荐通知文本及推荐动画图标的直播间页面的图形用户界面的示意图;3 is a schematic diagram of a graphical user interface of a live room page displaying recommendation notification text and recommendation animation icons in the application;
图4为本申请中显示推荐动画图标的直播间页面的图形用户界面的示意图;4 is a schematic diagram of a graphical user interface of a live room page displaying a recommended animation icon in the application;
图5为本申请中图标轮播窗口的推荐动画图标循环播放的示意图;Fig. 5 is the schematic diagram of the recommended animation icon loop playing of the icon carousel window in the application;
图6为本申请关于处理对于不存对应的广播记录信息的主播广播推荐消息的实施方式所形成的流程示意图;6 is a schematic flowchart of an embodiment of the present application for processing a broadcast recommendation message for a host that does not have corresponding broadcast record information;
图7为本申请关于校验是否对直播间推荐类型进行推荐通知广播处理的实施方式所形成的流程示意图;FIG. 7 is a schematic flowchart of an embodiment of the present application for verifying whether to perform recommendation notification broadcast processing on a recommended type of a live broadcast room;
图8为本申请关于调用快速排序算法排序推荐类型队列的实施方式所形成的流程示意图;8 is a schematic flowchart of an embodiment of the present application for invoking a quick sort algorithm to sort a recommendation type queue;
图9为本申请关于根据直播间推荐类型所对应的广播状态生成推荐通知进行广播的实施方式所形成的流程示意图;9 is a schematic flowchart of an embodiment of the application for generating a recommendation notification for broadcasting according to the broadcast state corresponding to the recommendation type of the live broadcast room;
图10为本申请关于推荐通知在直播间界面中可视化方式的实施方式所形成的流程示意图;FIG. 10 is a schematic flow chart formed by the implementation of the visualization method of the recommendation notification in the live room interface of the present application;
图11为本申请关于对应更新广播记录信息的实施方式所形成的流程示意图;FIG. 11 is a schematic flowchart of an embodiment of the application for correspondingly updating broadcast record information;
图12为本申请的直播推荐通知处理装置的典型实施例的原理框图;FIG. 12 is a schematic block diagram of a typical embodiment of a live broadcast recommendation notification processing apparatus of the present application;
图13为本申请一个实施例的计算机设备的基本结构框图。FIG. 13 is a basic structural block diagram of a computer device according to an embodiment of the application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。The following describes in detail the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, but not to be construed as a limitation on the present application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the specification of this application refers to the presence of stated features, integers, steps, operations, elements and/or components, but does not preclude the presence or addition of one or more other features, Integers, steps, operations, elements, components and/or groups thereof. It will be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Furthermore, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combination of one or more of the associated listed items.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本申请所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It should also be understood that terms, such as those defined in a general dictionary, should be understood to have meanings consistent with their meanings in the context of the prior art and, unless specifically defined as herein, should not be interpreted in idealistic or overly formal meaning to explain.
本技术领域技术人员可以理解,这里所使用的“客户端”、“终端”、“终端设备”既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,进行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他诸如个人计算机、平板电脑之类的通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(PersonalCommunications Service,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(Personal Digital Assistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(Global PositioningSystem,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“客户端”、“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“客户端”、“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(Mobile Internet Device,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that the "client", "terminal" and "terminal device" used herein include both a wireless signal receiver device that only has a wireless signal receiver without transmission capability, and a wireless signal receiver device. A device with receive and transmit hardware that has receive and transmit hardware capable of two-way communication over a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service, Personal Communications System) ), which can combine voice, data processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads , calendar and/or GPS (Global Positioning System) receivers; conventional laptop and/or palmtop computers or other devices having and/or conventional laptop and/or palmtop radio frequency receivers computer or other device. As used herein, "client", "terminal", "terminal device" may be portable, transportable, mounted in a vehicle (air, marine and/or land), or adapted and/or configured to be locally operate, and/or in distributed form, operate at any other location on Earth and/or space. The "client", "terminal" and "terminal device" used here can also be a communication terminal, an Internet terminal, and a music/video playing terminal, such as a PDA, MID (Mobile Internet Device) and/or A mobile phone with music/video playback function, or a smart TV, set-top box, etc.
本申请所称的“服务器”、“客户端”、“服务节点”等名称所指向的硬件,本质上是具备个人计算机等效能力的电子设备,为具有中央处理器(包括运算器和控制器)、存储器、输入设备以及输出设备等冯诺依曼原理所揭示的必要构件的硬件装置,计算机程序存储于其存储器中,中央处理器将存储在外存中的程序调入内存中运行,执行程序中的指令,与输入输出设备交互,借此完成特定的功能。The hardware referred to by names such as "server", "client" and "service node" in this application is essentially an electronic device with the equivalent capability of a personal computer, which is a central processing unit (including an arithmetic unit and a controller). ), memory, input device and output device and other necessary components disclosed by the Von Neumann principle, the computer program is stored in its memory, and the central processing unit transfers the program stored in the external memory into the memory to run, and executes the program. The instructions in the interface interact with input and output devices to complete specific functions.
需要指出的是,本申请所称的“服务器”这一概念,同理也可扩展到适用于服务器机群的情况。依据本领域技术人员所理解的网络部署原理,所述各服务器应是逻辑上的划分,在物理空间上,这些服务器既可以是互相独立但可通过接口调用的,也可以是集成到一台物理计算机或一套计算机机群的。本领域技术人员应当理解这一变通,而不应以此约束本申请的网络部署方式的实施方式。It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters in the same way. According to the principles of network deployment understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent from each other but can be called through interfaces, or can be integrated into a physical server. A computer or a group of computers. Those skilled in the art should understand this modification, but should not limit the implementation of the network deployment manner of the present application.
请参阅图1,本申请相关技术方案实施时所需的硬件基础可按图中所示的架构进行部署。本申请所称服务器80部署在云端,作为一个业务服务器,其可以负责进一步连接起相关数据服务器以及其他提供相关支持的服务器等,以此构成逻辑上相关联的服务机群,来为相关的终端设备例如图中所示的智能手机81和个人计算机82或者第三方服务器(未图示)提供服务。所述的智能手机和个人计算机均可通过公知的网络接入方式接入互联网,与云端的服务器80建立数据通信链路,以便运行所述服务器所提供的服务相关的终端应用程序。Referring to FIG. 1 , the hardware foundation required for implementing the related technical solutions of the present application can be deployed according to the architecture shown in the figure. The
对于服务器而言,所述的应用程序通常会被构建为服务进程,开放相应的程序接口,供各种终端设备上运行的应用程序进行远程调用,本申请中适于运行于服务器的相关技术方案,便可以此种方式实现于服务器中。For the server, the application program is usually constructed as a service process, and corresponding program interfaces are opened for remote invocation by the application programs running on various terminal devices. This application is suitable for related technical solutions running on servers , it can be implemented in the server in this way.
所述的应用程序,是指运行于服务器或终端设备上的应用程序,这一应用程序采用编程的方式实现了本申请的相关技术方案,其程序代码可被以计算机可执行指令的形式保存于计算机能识别的非易失性存储介质中,并被中央处理器调入内存中运行,通过该应用程序在计算机的运行而构造出本申请的相关装置。The application program refers to an application program running on a server or a terminal device. This application program implements the relevant technical solutions of the present application by programming, and its program code can be stored in the form of computer-executable instructions. It is stored in a non-volatile storage medium that can be recognized by the computer, and is called into the memory by the central processing unit to run, and the relevant device of the present application is constructed through the running of the application program in the computer.
对于服务器而言,所述的应用程序通常会被构建为服务进程,开放相应的程序接口,供各种终端设备上运行的应用程序进行远程调用,本申请中适于运行于服务器的相关技术方案,便可以此种方式实现于服务器中。For the server, the application program is usually constructed as a service process, and corresponding program interfaces are opened for remote invocation by the application programs running on various terminal devices. This application is suitable for related technical solutions running on servers , it can be implemented in the server in this way.
本申请中适于在终端设备实现的技术方案也可以被编程内置于提供网络直播的应用程序中,作为其一部分扩展功能。所述的网络直播,是指一种基于前述的网络部署架构所实现的一种直播间网络服务。The technical solutions in this application that are suitable for implementation in the terminal device can also be programmed and built into the application program that provides webcasting, as a part of which extends the function. The network live broadcast refers to a live broadcast room network service implemented based on the aforementioned network deployment architecture.
本申请所称的直播间,是指依靠互联网技术实现的一种视频聊天室,通常具备音视频播控功能,包括主播用户和观众用户,观众用户可以包括已经在平台中注册的注册用户,也可以是未注册的游客用户;可以是关注了主播用户的注册用户,也可以是未关注主播用户的注册或未注册用户。主播用户与观众用户之间可通过语音、视频、文字等公知的线上交互方式来实现互动,一般是主播用户以音视频流的形式为观众用户表演节目,并且在互动过程中还可产生经济交易行为。当然,直播间的应用形态并不局限于在线娱乐,也可推广到其他相关场景中,例如教育培训场景、视频会议场景、产品推介销售场景以及其他任何需要类似互动的场景中。The live broadcast room referred to in this application refers to a video chat room realized by relying on Internet technology, usually with audio and video broadcast control function, including anchor users and audience users. Audience users can include registered users who have registered in the platform, and It can be an unregistered guest user; it can be a registered user who has followed the anchor user, or a registered or unregistered user who has not followed the anchor user. The interaction between the anchor user and the audience user can be realized through well-known online interaction methods such as voice, video, and text. Generally, the anchor user performs programs for the audience users in the form of audio and video streams, and in the process of interaction, it can also generate economic benefits. transaction behavior. Of course, the application form of the live broadcast room is not limited to online entertainment, but can also be extended to other related scenarios, such as education and training scenarios, video conference scenarios, product promotion and sales scenarios, and any other scenarios that require similar interaction.
本领域技术人员对此应当知晓:本申请的各种方法,虽然基于相同的概念而进行描述而使其彼此间呈现共通性,但是,除非特别说明,否则这些方法都是可以独立执行的。同理,对于本申请所揭示的各个实施例而言,均基于同一发明构思而提出,因此,对于相同表述的概念,以及尽管概念表述不同但仅是为了方便而适当变换的概念,应被等同理解。Those skilled in the art should know that: although the various methods of the present application are described based on the same concept to show commonality with each other, unless otherwise specified, these methods can be independently executed. Similarly, for the various embodiments disclosed in this application, they are all proposed based on the same inventive concept. Therefore, the concepts expressed in the same way, and the concepts that are appropriately transformed for convenience even though the concept expressions are different, should be regarded as equivalent. understand.
本申请即将揭示的各个实施例,除非明文指出彼此之间的相互排斥关系,否则,各个实施例所涉的相关技术特征可以交叉结合而灵活构造出新的实施例,只要这种结合不背离本申请的创造精神且可满足现有技术中的需求或解决现有技术中的某方面的不足即可。对此变通,本领域技术人员应当知晓。In the various embodiments to be disclosed in this application, unless the mutually exclusive relationship between each other is clearly indicated, the related technical features involved in the various embodiments can be cross-combined to flexibly construct new embodiments, as long as the combination does not deviate from the present invention. The creative spirit of the application can meet the needs in the prior art or solve a certain aspect of the deficiencies in the prior art. Variations on this will be known to those skilled in the art.
请参阅图2,本申请的一种直播推荐通知处理方法,在其典型实施例中,其包括如下步骤:Referring to FIG. 2, a method for processing a live broadcast recommendation notification of the present application, in a typical embodiment thereof, includes the following steps:
步骤S11,查询出广播推荐消息队列中入队时间早于当前时间的主播广播推荐消息,所述广播推荐消息队列依照各主播广播推荐消息具有的入队时间进行升序排序,其中,所述主播广播推荐消息还包含主播标识及直播间推荐类型:Step S11, querying the broadcast recommendation message queue for anchor broadcast recommendation messages whose enqueue time is earlier than the current time, and the broadcast recommendation message queue is sorted in ascending order according to the queue entry time of each anchor broadcast recommendation message, wherein the anchor broadcast The recommendation message also includes the host's logo and the type of recommendation in the live broadcast room:
服务器查询出所述广播推荐消息队列中入队时间早于当前时间的所述主播广播推荐消息,以处理当前未处理的所述主播广播推荐消息。The server queries the broadcast recommendation message queue for the anchor broadcast recommendation messages whose enqueue time is earlier than the current time, so as to process the currently unprocessed anchor broadcast recommendation messages.
所述的广播推荐消息队列中存储着多个所述主播广播推荐消息,且该些主播广播推荐消息皆具有与其对应的入队时间,以便根据该些主播广播推荐消息各自对应的入队时间,在所述主播推荐消息队列中对该些主播广播推荐消息进行升序排序。A plurality of the anchor broadcast recommendation messages are stored in the broadcast recommendation message queue, and these anchor broadcast recommendation messages all have their corresponding queuing times, so that according to the respective queuing times corresponding to the anchor broadcast recommendation messages, Sort these anchor broadcast recommendation messages in an ascending order in the anchor recommendation message queue.
存储至所述广播推荐消息队列中的主播广播推荐消息皆为满足了各自所属的直播间推荐类型对应的推荐条件,例如,当某一直播间所处的直播类型为歌唱类型时,其观众数量数据在处于歌唱类型的所有直播间中为前三时,该直播间将被判断为通过满足直播间推荐类型为歌唱区热门的推荐条件,服务器将生成包含该直播间所属的主播标识及表征为歌唱区热门的直播间推荐类型的所述主播广播推荐消息,并将该主播广播推荐消息存储至所述广播推荐消息队列中,且记录该主播广播推荐消息的入队时间,以将该入队时间与所述主播广播推荐消息对应存储至所述广播推荐消息队列中,以便排序该主播广播推荐消息在所述广播推荐消息队列中的存储位置。The broadcast recommendation messages of the anchors stored in the broadcast recommendation message queue are all satisfying the recommendation conditions corresponding to the recommendation types of the live broadcast rooms to which they belong. For example, when the live broadcast type of a live broadcast room is a singing type, the number of its audience When the data is in the top three among all the live broadcast rooms of the singing type, the live broadcast room will be judged to meet the recommendation condition that the recommended type of the live broadcast room is popular in the singing area, and the server will generate a stream containing the broadcast room to which the host's identity belongs and is characterized as: The anchor broadcast recommendation message of the popular live room recommendation type in the singing area, store the anchor broadcast recommendation message in the broadcast recommendation message queue, and record the enqueue time of the anchor broadcast recommendation message, so that the enqueue The time corresponding to the broadcast recommendation message of the anchor is stored in the broadcast recommendation message queue, so as to sort the storage position of the broadcast recommendation message of the anchor in the broadcast recommendation message queue.
所述广播推荐消息队列根据各所述主播广播推荐消息的入队时间进行升序排序,以便服务器从该广播推荐消息队列中获取早于当前时间的主播广播推荐消息进行处理时,不需要依次查询该广播推荐消息队列中各主播广播推荐消息所具有的入队时间,以确定出哪些主播广播推荐消息是早于当前时间的,因以根据各入队时间对主播广播推荐消息进行排序,仅需查询入队时间距离当前时间的最近的一个主播广播推荐消息,即可获取所述广播推荐消息队列中所有早于当前时间的主播广播推荐消息进行处理,有效地提升了服务器整体的执行效率。The broadcast recommendation message queue is sorted in ascending order according to the enqueue time of each anchor broadcast recommendation message, so that when the server obtains an anchor broadcast recommendation message earlier than the current time from the broadcast recommendation message queue for processing, it does not need to query the broadcast recommendation message in turn. The enqueue time of each anchor broadcast recommendation message in the broadcast recommendation message queue is used to determine which anchor broadcast recommendation messages are earlier than the current time. Therefore, to sort the anchor broadcast recommendation messages according to each queue entry time, just query A host broadcast recommendation message whose enqueue time is closest to the current time can obtain all the host broadcast recommendation messages earlier than the current time in the broadcast recommendation message queue for processing, which effectively improves the overall execution efficiency of the server.
所述的直播间推荐类型是指平台为直播间推荐服务所设置的推荐类型,且直播间推荐类型与后续叙述的推荐通知相关联,以通过广播推荐通知进而通知相应主播用户所属的直播间的直播数据满足相应推荐条件,所述直播间推荐类型的推荐类型一般包含多个直播分区的热门推荐、与平台活动所关联的推荐以及全平台的直播热门推荐,例如,所述直播分区的热门推荐可根据平台所设置的直播类型所设置,如为歌唱区、游戏区及户外区分别设置对应的热门推荐,当处于任一直播分区的主播用户所属的直播间的观众数量数据为该直播分区的前三或前十时,将向生成与该直播分区关联的直播间推荐类型的所述主播广播推荐消息以进行相应的推荐通知的广播,相对应,平台活动如春节、中秋或国庆等可分别设置相应的推荐类型,以在对应的节日中为满足推荐条件的主播用户所属的直播间广播该节日的推荐通知。The live room recommendation type refers to the recommendation type set by the platform for the live room recommendation service, and the live room recommendation type is associated with the recommendation notification described later, so as to notify the corresponding anchor user of the live room to which the user belongs by broadcasting the recommendation notification. The live broadcast data satisfies the corresponding recommendation conditions, and the recommendation type of the live broadcast room recommendation type generally includes popular recommendations of multiple live broadcast partitions, recommendations associated with platform activities, and live broadcast popular recommendations of the whole platform, for example, the popular recommendation of the live broadcast partition. It can be set according to the type of live broadcast set by the platform, such as setting corresponding popular recommendations for the singing area, game area and outdoor area, when the number of viewers in the live broadcast room to which the anchor user in any live broadcast zone belongs is the data of the live broadcast zone. In the first three or ten o’clock, a recommendation message will be broadcast to the anchor who generated the recommendation type of the live room associated with the live broadcast division to broadcast the corresponding recommendation notification. Correspondingly, platform events such as the Spring Festival, Mid-Autumn Festival or National Day can be separately Set the corresponding recommendation type to broadcast the recommendation notification of the festival to the live broadcast room to which the anchor user who meets the recommendation condition belongs in the corresponding festival.
步骤S12,获取具有目标主播标识的主播广播推荐消息,查询出广播记录库中与该目标主播标识相对应的广播记录信息,所述广播记录信息中包含各直播间推荐类型相对应的广播状态及广播优先级:Step S12, obtain the anchor broadcast recommendation message with the target anchor identifier, query the broadcast record information corresponding to the target anchor identifier in the broadcast record library, and the broadcast record information includes the broadcast status and the corresponding broadcast status of each live broadcast room recommendation type. Broadcast priority:
服务器获取当前线程中需进行处理的目标主播标识所对应的一个或多个主播广播推荐消息,且从所述广播记录库中查询与该目标主播标识相对应的所述广播记录信息,以对该目标主播标识对应的多个所述主播广播推荐消息进行批量处理。The server obtains one or more anchor broadcast recommendation messages corresponding to the target anchor identifier that needs to be processed in the current thread, and queries the broadcast record information corresponding to the target anchor identifier from the broadcast record database, so as to obtain the broadcast record information corresponding to the target anchor identifier. A plurality of the anchor broadcast recommendation messages corresponding to the target anchor identifier are processed in batches.
所述的广播记录库中存储着平台中当前进行直播业务的各主播用户所对应的所述广播记录信息,且在所述广播记录库中具有广播记录信息的主播用户一般为直播间中当前或先前已广播推荐通知的主播用户,所述广播记录信息一般与其所属的主播用户的主播标识对应存储至所属广播记录库中,以便服务器根据主播标识从所属广播记录库中查询出对应的广播记录信息。The broadcast record library stores the broadcast record information corresponding to each anchor user currently performing the live broadcast service in the platform, and the anchor users with the broadcast record information in the broadcast record library are generally the current or current in the live broadcast room. An anchor user who has previously broadcast a recommendation notification, the broadcast record information is generally stored in the broadcast record library corresponding to the anchor user of the anchor user to which it belongs, so that the server can query the corresponding broadcast record information from the broadcast record library according to the anchor identifier. .
所述的广播记录信息中存储着其所具有的主播标识与平台中所有直播间推荐类型的广播状态,以及该些直播间推荐类型各自对应的广播优先级,以便服务器为根据所述广播记录信息中各直播间推荐类型的广播状态及广播优先级处理校验广播许可及生成对应的推荐通知进行广播。The broadcast record information stores the broadcast status of the host identifier and the recommended types of all live broadcast rooms in the platform, and the broadcast priority corresponding to the recommended types of these live broadcast rooms, so that the server can be based on the broadcast record information. The broadcast status and broadcast priority of the recommended types of each live broadcast room in the system verify the broadcast permission and generate the corresponding recommendation notification for broadcast.
所述的广播状态用于记录其所对应的直播间推荐类型在直播间中的广播状态,所述广播状态一般分为未广播过状态、已广播过状态及正在广播状态等,服务器根据直播间推荐类型所对应的广播状态所表征的状态校验该直播间推荐类型是否需要进行广播处理及生成对应的推荐通知进行广播推送。The broadcast status is used to record the broadcast status of the corresponding recommended type of the live broadcast room in the live broadcast room. The state represented by the broadcast state corresponding to the recommendation type verifies whether the recommendation type in the live broadcast room needs to perform broadcast processing and generate a corresponding recommendation notification for broadcast push.
各直播间推荐类型的所述广播优先级一般由平台根据业务场景所预先设置,平台一般将根据当前业务场景设置各直播间推荐类型的广播优先级,例如,在业务场景为国庆节日直播活动时,国庆活动相关联的直播间推荐类型的广播优先级一般为所有直播间推荐类型的广播优先级中最高的广播优先级。The broadcast priority of the recommended type of each live broadcast room is generally preset by the platform according to the business scenario, and the platform will generally set the broadcast priority of each live broadcast room recommended type according to the current business scenario. For example, when the business scenario is a National Day holiday live broadcast event , the broadcast priority of the recommended types of live rooms associated with the National Day event is generally the highest broadcast priority among the broadcast priorities of all recommended types of live rooms.
若服务器查询所述广播记录库中不存在与目标主播标识相匹配的广播记录信息时,即表征目标主播标识的直播间中未广播过任何直播间推荐类型所对应的推荐通知,则服务器将根据所述主播广播推荐消息包含的直播间推荐类型,生成包含用于表征该直播间推荐类型的推荐通知文本及推荐动画图标的推荐通知,进而将广播所述推荐通知至目标主播标识相对应的直播间中进行展示。If the server queries the broadcast record database for no broadcast record information matching the target anchor ID, that is, no recommendation notification corresponding to the recommended type of any live broadcast room has been broadcast in the live room with the target anchor ID, the server will The anchor broadcasts the recommendation type of the live broadcast room contained in the recommendation message, generates a recommendation notification including the recommendation notification text and the recommendation animation icon used to characterize the recommendation type of the live broadcast room, and then broadcasts the recommendation notification to the live broadcast corresponding to the target anchor logo. display in between.
一种实施例中,服务器将监听平台中多个直播间的直播状态,当任一直播间退出直播后,服务器将根据该直播间所对应的主播标识,查询所述广播记录库中该主播标识所对应的广播记录信息,已将该广播记录信息从所述广播记录库中移除,进而保证该直播间所属的主播用户在下次开启直播间时,重新参与直播间推荐服务,以保证直播间推荐服务的公平性。In one embodiment, the server will monitor the live broadcast status of multiple live broadcast rooms in the platform, and after any live broadcast room exits the live broadcast, the server will query the broadcast record library for the host identity according to the host identity corresponding to the live broadcast room. The corresponding broadcast record information has been removed from the broadcast record library, thereby ensuring that the anchor user to which the live broadcast room belongs will re-participate in the live broadcast room recommendation service when the live broadcast room is opened next time, so as to ensure the live broadcast room Fairness of referral services.
步骤S13,根据所述主播广播推荐消息中包含的直播间推荐类型在所述广播记录信息中记录的广播状态及广播优先级,校验是否广播所述直播间推荐类型对应的推荐通知至目标主播标识所对应的目标直播间中:Step S13, according to the broadcast status and broadcast priority recorded in the broadcast record information of the live room recommendation type included in the broadcast recommendation message of the host, verify whether to broadcast the recommendation notification corresponding to the live room recommendation type to the target host. In the target live room corresponding to the logo:
服务器获取所述目标主播标识所对应的广播记录信息后,将根据该广播记录信息中包含的各直播间推荐类型所对应的广播状态即广播优先级,校验具有所述目标主播标识的一个或多个主播广播推荐消息所具有的直播间推荐类型对应的推荐通知是否需进行广播处理,以将通过校验的直播间推荐类型的推荐通知广播至所述目标主播标识所对应的直播间中。After acquiring the broadcast record information corresponding to the target anchor identifier, the server will check one or more of the target anchor identifiers according to the broadcast status corresponding to the recommended types of each live broadcast included in the broadcast record information, that is, the broadcast priority. Whether the recommendation notifications corresponding to the live room recommendation types in the multiple anchor broadcast recommendation messages need to be broadcasted, so as to broadcast the verified recommendation notifications of the live room recommendation type to the live room corresponding to the target anchor identifier.
关于服务器如何校验所述直播间推荐类型是否需进行推荐通知广播处理的实施方式,一般将先根据各直播间推荐类型所对应的广播状态判断是否进行广播处理,具体的,服务器从所述广播记录信息中获取当前进行校验的主播广播推荐消息中包含的直播间推荐类型所对应的广播状态,若所述广播状态表征所述直播间推荐类型为正在广播状态时,则服务器不对该直播间推荐类型所对应的推荐通知进行广播处理,若所述广播状态表征所述直播间推荐类型为已经广播过状态或未广播过状态时,则服务器将根据该直播间推荐类型在所述广播记录信息中记录的广播优先级,以调用快速排序算法,根据该直播间推荐类型的广播优先级及其所属的主播广播推荐消息的所述入队时间,确定该直播间推荐类型在目标主播标识所对应的推荐类型列表中的排序位置,当所述直播间推荐类型在所述推荐类型列表中的排序位置超过预设广播排序位置时,则服务器将向目标主播标识所对应的直播间广播该直播间推荐类型的推荐通知。Regarding the implementation of how the server verifies whether the recommendation type of the live room needs to perform recommendation notification broadcast processing, generally, it will first determine whether to perform broadcast processing according to the broadcast status corresponding to the recommended type of each live room. The broadcast status corresponding to the recommended type of the live broadcast room contained in the currently verified anchor broadcast recommendation message is obtained from the record information. If the broadcast status indicates that the recommended type of the live broadcast room is in the broadcasting state, the server does not accept the broadcast status for the live broadcast room. The recommendation notification corresponding to the recommendation type is broadcasted. If the broadcast status indicates that the recommendation type of the live room is already broadcasted or unbroadcasted, the server will record the information in the broadcast according to the recommendation type of the live room. The broadcast priority recorded in , to call the quick sorting algorithm, according to the broadcast priority of the recommended type of the live broadcast room and the enqueue time of the broadcast recommendation message of the host to which it belongs, to determine that the recommended type of the live broadcast room corresponds to the target host identifier. The sorting position in the recommended type list, when the sorting position of the recommended type of the live broadcast room in the recommended type list exceeds the preset broadcast sorting position, the server will broadcast the live broadcast room to the live broadcast room corresponding to the target anchor identifier Referral notifications for referral types.
关于所述快速排序算法的实施方式,具体的,当服务器校验目标直播间推荐类型所对应广播状态为已经广播过状态或未广播过状态时,服务器将从所述广播记录信息中获取该目标直播间推荐类型所对应的广播优先级,进而根据目标直播间推荐类型所对应的广播优先级及入队时间,更新目标直播间推荐类型在所述推荐类型列表中的排序权重,以调用所述快速排序算法,获取所述推荐类型列表中处于首位的直播间推荐类型的排序权重,以该排序权重为基准数,根据该推荐类型列表中存储的所有直播间推荐类型各自的排序权重,更新该些直播间推荐类型各自在所述推荐类型列表中的排序位置,并判断目标直播间推荐类型在所述推荐类型列表中的排序位置是否超过预设广播排序位置,所述广播排序位置一般设置在第三或第四,若超过,则服务器将向目标主播标识所对应的直播间广播该直播间推荐类型的推荐通知,若未超过,则服务器不对目标直播间推荐类型进行推荐通知广播处理。Regarding the implementation of the quick sorting algorithm, specifically, when the server verifies that the broadcast state corresponding to the recommended type of the target live room is the broadcasted state or the non-broadcasted state, the server will obtain the target from the broadcast record information. The broadcast priority corresponding to the recommended type of the live broadcast room, and then according to the broadcast priority and the queue entry time corresponding to the recommended type of the target live broadcast room, the sorting weight of the recommended type of the target live broadcast room in the recommended type list is updated to call the The quick sorting algorithm obtains the sorting weight of the recommended type of the live broadcast room at the top in the recommended type list, takes the sorting weight as the reference number, and updates the sorting weight according to the respective sorting weights of all the recommended types of live broadcast rooms stored in the recommendation type list. The ranking position of each of the recommended types of live broadcast rooms in the list of recommended types, and to determine whether the ranking position of the recommended types of the target live broadcast room in the list of recommended types exceeds the preset broadcast sorting position, and the broadcast sorting position is generally set at Third or fourth, if it exceeds, the server will broadcast the recommendation notification of the recommended type of the live broadcast room to the live room corresponding to the target host identifier.
步骤S14,根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示,其中,若广播状态为已广播过状态,则直播间推荐类型的推荐通知中包含推荐动画图标,若广播状态为未广播过状态,则直播间推荐类型的推荐通知中包含推荐通知文本及推荐动画图标:Step S14, according to the broadcast status to which the recommended type of the live broadcast room has passed the verification, generate a recommendation notification corresponding to the recommended type of the live broadcast room and broadcast it to the target live broadcast room for display, wherein, if the broadcast status is the broadcasted status, then The recommendation notification of the recommendation type in the live room includes the recommendation animation icon. If the broadcast status is the unbroadcasted state, the recommendation notification of the recommendation type in the live room includes the recommendation notification text and the recommendation animation icon:
服务器为通过校验的直播间推荐类型进行推荐通知广播处理,首先服务器将根据所述直播间推荐类型所对应的广播状态生成对应所述推荐通知,当所述广播状态表征所述直播间推荐类型为已广播过状态时,服务器将为该直播间推荐类型生成包含推荐动画图标的推荐通知,当所述广播状态表征所述直播间推荐类型为未广播过状态时,服务器将未该直播间推荐类型生成包含所述推荐动画图标及推荐通知文本的推荐通知。The server performs recommendation notification broadcast processing for the verified live room recommendation type. First, the server generates the recommendation notification according to the broadcast status corresponding to the live room recommendation type. When the broadcast status represents the live room recommendation type When it is in the broadcasted state, the server will generate a recommendation notification including the recommended animation icon for the recommended type of the live broadcast room. When the broadcast status indicates that the recommended type of the live broadcast room is not broadcasted, the server will not recommend the live broadcast room. The type generates a recommendation notification including the recommendation animation icon and recommendation notification text.
服务器生成所述推荐通知时所需的所述推荐动画图标及推荐通知文本一般从推荐素材库中获取,所述推荐素材库中存储着多个与推荐标识对应存储的推荐动画图标及推荐通知,以便服务器根据所述直播间推荐类型所对应的推荐标识,从所述推荐素材库中获取与该推荐标识相匹配的推荐通知文本及推荐动画图标,进而生成所述推荐通知进行广播。The recommended animation icon and the recommended notification text required by the server to generate the recommendation notification are generally obtained from a recommended material library, and the recommended material library stores a plurality of recommended animation icons and recommendation notifications stored corresponding to the recommendation identifiers. So that the server obtains the recommendation notification text and the recommendation animation icon matching the recommendation identifier from the recommendation material library according to the recommendation identifier corresponding to the recommendation type of the live studio, and then generates the recommendation notification for broadcasting.
所述的推荐动画图标一般是指用于表征其所对应的直播间推荐类型的动画特效素材或图片素材,其用于输出至直播间界面中进行显示,以展示直播间所具有的直播间推荐类型,相应的,所述推荐通知文本一般是指用于表征其所对应的直播间推荐类型的文本素材,其输出至直播间界面中进行显示,且其在直播间界面中具有相应的显示时长限制,当显示时长超过预设时长时,直播间界面将停止该推荐通知文本的展示,防止遮挡直播间界面,影响处于直播间的用户的直播观看体验。The recommended animation icon generally refers to the animation special effect material or picture material used to represent the recommended type of the corresponding live room, which is used for outputting to the live room interface for display to display the live room recommendations in the live room. Correspondingly, the recommendation notification text generally refers to the text material used to represent the recommended type of the corresponding live room, which is output to the live room interface for display, and has a corresponding display time in the live room interface. Restriction, when the display time exceeds the preset time, the live broadcast room interface will stop the display of the recommended notification text, so as to prevent blocking the live broadcast room interface and affect the live broadcast viewing experience of users in the live broadcast room.
服务器根据所述直播间推荐类型的广播状态生成对应的所述推荐通知后,将该推荐通知广播至所述目标主播标识所对应的直播间中进行展示,处于所述直播间的客户端接收到由服务器推送的推荐通知后,将解析该推荐通知,若所述推荐通知中包含所述推荐通知文本时,输出该推荐通知文本至当前直播间界面中进行显示,直至该推荐通知文本的显示时长超过预设时长时,停止该推荐通知文本的展示,之后再将所述推荐通知中包含的推荐动画图标输出至当前直播间界面的图标轮播窗口中轮播显示,所述预设时长一般设置在3-5秒的时间范围内;若所述推荐通知中不包含所述推荐通知文本时,则客户端将直接将所述推荐动画图标输出至当前直播间界面的图标轮播窗口中轮播显示。After the server generates the corresponding recommendation notification according to the broadcast state of the recommended type of the live broadcast room, the server broadcasts the recommendation notification to the live broadcast room corresponding to the target anchor ID for display, and the client in the live broadcast room receives the After the recommendation notification pushed by the server, the recommendation notification will be parsed. If the recommendation notification contains the recommendation notification text, the recommendation notification text will be output to the current live room interface for display until the display time of the recommendation notification text. When the preset time is exceeded, stop the display of the recommendation notification text, and then output the recommended animation icon contained in the recommendation notification to the icon carousel window of the current live room interface for display in a carousel. The preset time is generally set. Within the time range of 3-5 seconds; if the recommendation notification does not contain the recommendation notification text, the client will directly output the recommendation animation icon to the icon rotation window of the current live room interface for rotation show.
请参考图3、图4及图5,图3为输出所述推荐通知文本及推荐动画图标显示的直播间界面的示意图,图3的直播间界面中显示的推荐通知文本显示窗口301中输出显示所述推荐通知文本,图标轮播窗口302中显示与该推荐通知文本相关联的推荐动画图标,当推荐通知文本显示窗口301中显示的推荐通知文本的显示时长超过预设时长时,该推荐通知文本显示窗口301将在当前直播间界面中隐藏,以将图3所示的直播间界面转化为图4所示的直播间界面,图4所示的直播间界面中仅显示图标轮播窗口401进行当前直播间所接收的一个或多个推荐动画图标的显示,所述图标轮播窗口401的轮播显示请参考图5所示的图标轮播窗口的推荐动画图标循环播放的示意图,所示图标轮播窗口的每一个推荐动画图标的显示时长一般设置在2-4秒的时长范围内。Please refer to FIG. 3 , FIG. 4 and FIG. 5 . FIG. 3 is a schematic diagram of a live room interface for outputting the recommended notification text and the recommended animation icon displayed. The recommended notification
当所述目标主播标识所对应的直播间的不满足其直播间中当前显示的直播间推荐类型对应的推荐条件时,服务器将向该直播间广播作用于该直播间推荐类型的停止显示指令,以及停止向该直播间广播所述直播间推荐类型所对应的推荐通知。When the live room corresponding to the target anchor identifier does not meet the recommendation conditions corresponding to the recommended type of the live room currently displayed in the live room, the server will broadcast a stop display instruction acting on the recommended type of the live room to the live room, and stop broadcasting the recommendation notification corresponding to the recommended type of the live studio to the live studio.
通过本典型实施例中可知,本方法通过为主播用户过滤其推荐通知,仅向直播间广播符合当前业务场景及具有时效性的推荐通知,防止过多的推荐通知输出展示至直播间界面中,影响直播间中观众用户的直播观看体验,使得与本方法为平台中的主播用户所开启的直播间提供直播间推荐服务相融合,向满足推荐场景的主播用户的直播间广播相应的推荐通知进行显示,进而提升主播用户所开启的直播间中的观众人数,且通过将直播间的观众数据等直播数据通过推荐通知的方式广播至直播间界面中进行展示,使主播用户直观地了解其直播间在直播平台及直播分区中曝光度,帮助主播用户开展其直播业务,同时提升直播间中的直播氛围。It can be seen from this typical embodiment that this method filters the recommendation notifications of the host users, and broadcasts only the recommendation notifications that conform to the current business scenario and is time-sensitive to the live broadcast room, so as to prevent excessive recommendation notification output from being displayed on the interface of the live broadcast room. Affect the live viewing experience of audience users in the live broadcast room, so as to integrate with the live broadcast room recommendation service provided by the method for the live broadcast room opened by the host user in the platform, and broadcast the corresponding recommendation notification to the live broadcast room of the host user satisfying the recommended scenario. Display, and then increase the number of viewers in the live broadcast room opened by the anchor user, and broadcast the live broadcast data such as the audience data of the live broadcast room to the interface of the live broadcast room through recommendation notifications for display, so that the anchor user can intuitively understand the live broadcast room. The exposure in the live broadcast platform and the live broadcast section helps the anchor users to carry out their live broadcast business, and at the same time improves the live broadcast atmosphere in the live broadcast room.
以上的典型实施例及其变化实施例充分揭示了本申请的直播推荐通知处理方法的实施方案,但是,仍可通过对一些技术手段的变换和扩增而演绎出该方法的多种变化实施例,如下概要说明其他实施例:The above typical embodiment and its variation examples fully disclose the implementation of the method for processing the live recommendation notification of the present application, however, various variation examples of the method can still be deduced by transforming and expanding some technical means , other embodiments are outlined below:
一种实施例中,请参考图3及图6,所述获取具有目标主播标识的主播广播推荐消息,查询出广播记录库中与该目标主播标识相对应的广播记录信息的步骤中,包括如下由服务器执行的步骤:In an embodiment, please refer to FIG. 3 and FIG. 6 , in the step of obtaining the anchor broadcast recommendation message with the target anchor identifier, and querying the broadcast record information corresponding to the target anchor identifier in the broadcast record library, the steps include the following: Steps performed by the server:
步骤S121,根据主播广播推荐消息所具有的主播标识,查询所述广播记录库中是否存在与该主播标识相匹配的广播记录信息:Step S121, according to the anchor identifier of the anchor broadcast recommendation message, query whether there is broadcast record information matching the anchor identifier in the broadcast record library:
服务器解析获取当前主播广播推荐消息中包含的主播标识,以根据该主播标识,从所述广播记录库中查询是否存在与该主播标识相匹配的所述广播记录信息。The server parses and obtains the anchor identifier contained in the current anchor broadcast recommendation message, so as to query the broadcast record library for whether there is the broadcast record information matching the anchor identifier according to the anchor identifier.
步骤S122,当所述广播记录库中不存在与所述主播标识相匹配的广播记录信息时,将根据所述主播广播推荐消息包含的直播间推荐类型,生成包含用于表征该直播间推荐类型的推荐通知文本及推荐动画图标的推荐通知:Step S122, when there is no broadcast record information matching the anchor identifier in the broadcast record library, generate a recommendation type that is used to characterize the live room recommendation type according to the live room recommendation type included in the anchor broadcast recommendation message. The recommendation notification text for the recommendation notification and the recommendation animation icon for the recommendation notification:
当服务器查询所述广播记录库中不存在所述主播标识相匹配的所述广播记录信息时,则表征该主播标识所对应的直播间当前未广播过任意推荐通知,服务器将根据该主播广播推荐信息中包含的直播间推荐类型,生成包含与该直播间推荐类型相对应的推荐通知文本及推荐动画图标的所述推荐通知。When the server queries the broadcast record database and does not have the broadcast record information that matches the anchor ID, it means that the live room corresponding to the anchor ID has not broadcast any recommendation notification, and the server will recommend based on the anchor broadcast The recommendation type of the live room included in the information is generated, and the recommendation notification including the recommendation notification text and the recommendation animation icon corresponding to the recommendation type of the live room is generated.
步骤S123,广播所述推荐通知至所述主播标识相对应的直播间中进行展示:Step S123, broadcasting the recommendation notification to the live broadcast room corresponding to the anchor ID for display:
服务器将所述推荐通知广播至所述主播标识所对应的直播间中,以便处于该直播间的客户端接收该推荐通知,将该推荐通知中包含的所述推荐通知文本及推荐动画图标输出至直播间界面中进行显示,所述推荐通知文本及推荐动画图标在直播间界面中的可视化方式请参考图3所示的直播间界面示意图。The server broadcasts the recommendation notification to the live room corresponding to the host ID, so that the client in the live room receives the recommendation notification, and outputs the recommendation notification text and recommendation animation icon contained in the recommendation notification to It is displayed in the interface of the live broadcast room. For the visualization of the recommended notification text and the recommended animation icon in the interface of the live broadcast room, please refer to the schematic diagram of the interface of the live broadcast room shown in FIG. 3 .
本实施例中,若主播用户在广播记录库中不存在与其对应的广播记录信息,则表征该主播用户所处的直播间未广播过任何推荐通知,当服务器处理该直播用户的主播广播推荐消息时,将直接为其生成对应的推荐通知进行广播。In this embodiment, if the host user does not have the corresponding broadcast record information in the broadcast record database, it means that the live broadcast room where the host user is located has not broadcast any recommendation notification, and when the server processes the live broadcast user's host broadcast recommendation message , it will directly generate the corresponding recommendation notification for broadcasting.
一种实施例中,请参考图7,所述根据所述主播广播推荐消息中包含的直播间推荐类型在所述广播记录信息中记录的广播状态及广播优先级,校验是否广播所述直播间推荐类型对应的推荐通知至目标主播标识所对应的目标直播间中的步骤中,包括如下由服务器执行的步骤:In an embodiment, please refer to FIG. 7 , the broadcast status and broadcast priority recorded in the broadcast record information according to the recommended type of the live broadcast included in the broadcast recommendation message of the anchor is used to check whether the live broadcast is broadcast. The steps of sending the recommendation notification corresponding to the type of recommendation to the target live broadcast room corresponding to the target anchor identifier include the following steps performed by the server:
步骤S131,从所述广播记录信息中获取所述主播广播推荐消息中包含的直播间推荐类型所对应的广播状态及广播优先级:Step S131, obtaining the broadcast status and broadcast priority corresponding to the recommended type of the live broadcast room included in the broadcast recommendation message of the anchor from the broadcast record information:
服务器从所述广播记录库中获取目标主播标识所对应的广播记录信息后,根据目标主播标识所属的主播广播推广消息包含的直播间推荐类型,在所述广播记录信息中获取该直播间推荐类型所对应的所述广播状态及广播优先级。After acquiring the broadcast record information corresponding to the target anchor identifier from the broadcast record database, the server obtains the recommended type of the live studio from the broadcast record information according to the recommended type of the live broadcast room included in the broadcast promotion message of the anchor to which the target anchor identifier belongs. The corresponding broadcast state and broadcast priority.
步骤S132,当所述广播状态表征所述直播间推荐类型为正在广播状态时,则不广播该直播间推荐类型所对应的推荐通知:Step S132, when the broadcast state indicates that the recommended type of the live room is in the broadcasting state, the recommendation notification corresponding to the recommended type of the live room is not broadcast:
所述广播状态表征所述直播间推荐类型为正在广播状态时,即表征该直播间推荐类型所对应的推荐通知当前正在所述目标主播标识对应的直播间中进行显示,服务器将不对该直播间推荐类型进行推荐通知广播处理。When the broadcast status indicates that the recommended type of the live room is in the broadcasting state, it means that the recommendation notification corresponding to the recommended type of the live room is currently being displayed in the live room corresponding to the target anchor ID, and the server will not display the recommendation notice in the live room. The recommendation type performs recommendation notification broadcast processing.
步骤S133,当所述广播状态表征所述直播间推荐类型为已经广播过状态或未广播过状态时,调用快速排序算法,根据该直播间推荐类型的广播优先级及入队时间,确定该直播间推荐类型在目标主播标识所对应的推荐类型列表中的排序位置:Step S133, when the broadcast status indicates that the recommended type of the live broadcast room is a state that has been broadcasted or has not been broadcasted, a quick sorting algorithm is invoked, and the broadcast priority of the recommended type of the live broadcast room and the time to join the queue are determined to determine the live broadcast. The ranking position of the recommended types in the list of recommended types corresponding to the target anchor ID:
当所述广播状态表征所述直播间推荐类型为已经广播过状态或未广播过状态时,服务器将调用所述快速排序算法,以根据该直播间推荐类型的在所述广播记录信息中最新的广播优先级及入队时间,确定该直播间推荐类型在目标主播标识所调用的推荐类型列表中的排序位置。When the broadcast status indicates that the recommended type of the live studio is the broadcasted state or the unbroadcasted state, the server will call the quick sort algorithm to select the latest broadcast record information according to the recommended type of the live broadcast studio. The broadcast priority and the queue entry time determine the ranking position of the recommended type of the live broadcast room in the recommended type list called by the target anchor identifier.
所述的推荐类型列表中存储着多个直播间推荐类型及其对应的排序权重,所述排序权重根据其所属的直播间推荐类型所对应的广播优先级及入队时间所确定,以便服务器根据所述推荐类型列表中各直播间推荐类型所对应的排序权重,调用所述快速排序算法,排序该些直播间推荐类型在所述推荐类型列表中的排序位置。The recommendation type list stores a plurality of live room recommendation types and their corresponding sorting weights. For the sorting weights corresponding to the recommendation types of each live broadcast room in the recommendation type list, the quick sorting algorithm is invoked to sort the sorting positions of the live broadcast room recommendation types in the recommendation type list.
步骤S134,当所述直播间推荐类型在所述推荐类型列表中的排序位置超过预设广播排序位置时,将向目标主播标识所对应的直播间广播该直播间推荐类型的推荐通知:Step S134, when the ranking position of the recommended type of the live broadcast room in the recommended type list exceeds the preset broadcast ranking position, the recommendation notification of the recommended type of the live broadcast room will be broadcast to the live broadcast room corresponding to the target anchor identifier:
当服务器确定所述直播间推荐类型在所述推荐类型列表中的排序位置后,将判断该直播间推荐类型在所述推荐类型列表中的排序位置是否超过所述预设广播排序位置,若超过,则将对该直播间推荐类型进行推荐通知广播处理,生成与该直播间推荐类型所对应的推荐通知广播至目标主播标识所对应的直播间中。After the server determines the ranking position of the recommended type of the live studio in the list of recommended types, it will determine whether the ranking position of the recommended type of the live studio in the list of recommended types exceeds the preset broadcast ranking position. , the recommendation notification broadcast processing is performed on the recommended type of the live broadcast room, and a recommendation notification corresponding to the recommended type of the live broadcast room is generated and broadcast to the live broadcast room corresponding to the target host identifier.
本实施例中,通过直播间推荐类型的广播状态及广播优先级确定是否将其推荐通知广播至直播间中进行显示,以防止相同的推荐通知不断地进行广播,影响用户的直播观看体验,且将针对符合当前业务需求的推荐通知进行优先广播处理。In this embodiment, whether to broadcast its recommendation notification to the live room for display is determined according to the broadcast status and broadcast priority of the recommended type of the live broadcast room, so as to prevent the same recommendation notification from being continuously broadcast and affect the user's live broadcast viewing experience, and Priority broadcast processing will be performed for recommendation notifications that meet current business needs.
一种实施例中,请参考图8,所述调用快速排序算法,根据该直播间推荐类型的广播优先级及入队时间,确定该直播间推荐类型在目标主播标识所对应的推荐类型列表中的排序位置的步骤中,包括如下由服务器执行的步骤:In one embodiment, please refer to FIG. 8 , the quick sorting algorithm is invoked, and according to the broadcast priority and the queue entry time of the recommended type of the live broadcast room, it is determined that the recommended type of the live broadcast room is in the recommended type list corresponding to the target anchor identifier. The steps of sorting the position include the following steps performed by the server:
步骤S1331,从所述广播记录信息中获取广播状态表征为已经广播过状态或未广播过状态的目标直播间推荐类型所对应的广播优先级:Step S1331, from the broadcast record information, obtain the broadcast priority corresponding to the recommended type of the target live room whose broadcast state is characterized as having been broadcasted or not broadcasted:
当目标直播间推荐类型的所述广播状态表征其为以及广播过状态或未广播过状态时,服务器将从所述广播记录信息中获取该目标直播间推荐类型所对应的广播优先级。When the broadcast state of the recommended type of the target live room indicates that it is a broadcasted state or a non-broadcasted state, the server will obtain the broadcast priority corresponding to the recommended type of the target live room from the broadcast record information.
步骤S1332,根据目标直播间推荐类型所对应的广播优先级及入队时间,更新目标直播间推荐类型在所述推荐类型列表中的排序权重:Step S1332, according to the broadcast priority and the queue entry time corresponding to the recommended type of the target live broadcast room, update the sorting weight of the recommended type of the target live broadcast room in the recommended type list:
服务器根据所述目标直播间推荐类型所对应的广播优先级及其所属的主播广播推荐消息存储至所述推荐消息队列的入队时间,更新该目标直播间推荐类型在所述推荐类型列表中的所述排序权重。The server updates the recommendation type of the target live room in the recommendation type list according to the broadcast priority corresponding to the target live room recommendation type and the enqueue time of the anchor broadcast recommendation message to which it belongs and stored in the recommendation message queue. the sorting weight.
所述的排序权重一般是指所述广播优先级及其入队时间的总和结果。The sorting weight generally refers to the result of the sum of the broadcast priorities and their queuing times.
所述的排序权重是指用于确定直播间推荐类型在所述推荐类型列表中的排序位置,即所述推荐类型列表中各直播间推荐类型具有各自对应的排序权重,以便服务器调用快速排序算法,排序该推荐类型列表中各直播间推荐类型的排序位置。The sorting weight is used to determine the sorting position of the recommendation types of the live broadcast rooms in the recommendation type list, that is, each recommendation type of the live broadcast rooms in the recommendation type list has its own corresponding sorting weight, so that the server can invoke the quick sort algorithm. , sort the ranking positions of the recommended types of each live broadcast room in the recommended type list.
步骤S1333,调用所述快速排序算法,获取所述推荐类型列表中处于首位的直播间推荐类型的排序权重,以该排序权重为基准数,根据该推荐类型列表中存储的所有直播间推荐类型各自的排序权重,更新该些直播间推荐类型各自在所述推荐类型列表中的排序位置:Step S1333, call the quick sort algorithm to obtain the sorting weight of the recommended type of the live room at the top in the recommended type list, and use the sorting weight as the reference number, according to the recommended types of all live rooms stored in the recommended type list. , and update the respective ranking positions of the recommended types of the live broadcast rooms in the recommended type list:
服务器调用所述快速排序算法,以获取所述推荐类型列表中处于首位的直播间推荐类型的排序权重作为该快速排序算法的基准数,根据该推荐类型列表中存储的所有直播间推荐类型各自的排序权重,重新排序该些直播间推荐类型各自在所述推荐类型列表中的排序位置。The server invokes the quick sort algorithm to obtain the sorting weight of the recommended type of the live room at the top in the recommended type list as the reference number of the quick sort algorithm. Sorting weight, reordering the respective sorting positions of the recommended types in the live broadcast room in the list of recommended types.
服务器根据所述快速排序算法,将所述推荐类型列表中排序权重大于首位直播间推荐类型的直播间推荐类型排序至该首位直播间推荐类型的左边,将排序权重小于首位直播间推荐类型的直播间推荐类型排序至该首位直播间推荐类型的右边,以此类推,之后对所述首位直播间推荐类型的左边及右边的直播间推荐类型子集依照上述逻辑进行排序,直至完成所述推荐类型列表中所有直播间推荐类型各自的排序位置,以该些直播间推荐类型的排序权重进行降序排序。According to the quick sorting algorithm, the server sorts the recommended types of live broadcast rooms whose sorting weight is greater than that of the first live broadcast room recommendation type in the list of recommended types to the left of the first live broadcast room recommendation type, and sorts the live broadcast rooms whose sorting weight is less than that of the first live broadcast room recommendation type. The recommended type of the first live broadcast room is sorted to the right of the recommended type of the first live broadcast room, and so on, and then the subsets of the recommended types of the live broadcast room on the left and the right of the first live broadcast room recommended type are sorted according to the above logic, until the recommended type is completed. The respective sorting positions of all the recommended types of live broadcast rooms in the list are sorted in descending order by the sorting weights of the recommended types of live broadcast rooms.
步骤S1334,判断目标直播间推荐类型在所述推荐类型列表中的排序位置是否超过预设广播排序位置,若否,则不对目标直播间推荐类型进行推荐通知广播处理:Step S1334, determine whether the ranking position of the recommended type of the target live room in the recommended type list exceeds the preset broadcast ranking position, if not, do not perform recommendation notification broadcast processing for the recommended type of the target live room:
服务器判断所述目标直播间推荐类型再所述推荐类型列表中的排序位置是否超过所述预设广播排序位置,所述广播排序位置一般是指在第三或第四,若未超过,则服务器不对该目标直播间推荐类型降序推荐通知广播处理,若超过,若超过,则将对该直播间推荐类型进行推荐通知广播处理,生成与该直播间推荐类型所对应的推荐通知广播至目标主播标识所对应的直播间中。The server determines whether the ranking position of the recommended type of the target live room and the recommended type list exceeds the preset broadcast ranking position. The broadcast ranking position generally refers to the third or fourth position. If not, the server The recommendation notification broadcast processing in the descending order of the recommended type of the target live room is not performed. If it exceeds, if it exceeds, the recommendation notification broadcast processing will be performed on the recommended type of the live broadcast room, and the recommendation notification corresponding to the recommended type of the live broadcast room will be generated and broadcast to the target anchor ID. in the corresponding live room.
本实施例中,以直播间推荐类型的广播权重及入队时间确定其排序权重进行排序,校验直播间推荐类型的排序是否超过预设的广播排序位置,以将向直播间广播符合业务需求及具有时效性的推荐通知。In this embodiment, the ranking weights of the recommended types of the live broadcast rooms and the time of entering the queue are used to determine the sorting weights for sorting, and it is checked whether the sorting of the recommended types of the live broadcast rooms exceeds the preset broadcast sorting position, so that the broadcast to the live broadcast rooms meets the business requirements. and time-sensitive recommendation notices.
一种实施例中,请参考图3、图4及图9,所述根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示的步骤中,包括如下由服务器执行的步骤:In an embodiment, please refer to FIG. 3, FIG. 4 and FIG. 9. According to the broadcast state to which the recommended type of the live room is verified, a recommendation notification corresponding to the recommended type of the live room is generated and broadcast to the target live broadcast. The steps shown in the interval include the following steps performed by the server:
步骤S141,从推荐素材库中获取与所述直播间推荐类型相匹配的推荐通知文本及推荐动画图标:Step S141: Obtain the recommendation notification text and the recommendation animation icon matching the recommendation type of the live broadcast room from the recommendation material library:
服务器为所述直播间推荐类型生成推荐通知时,将从推荐素材库中获取与该直播间推荐类型相匹配的所述推荐通知文本及推荐动画图标。When the server generates a recommendation notification for the recommendation type of the live room, it will obtain the recommendation notification text and the recommendation animation icon that match the recommendation type of the live room from the recommendation material library.
步骤S142,当所述直播间推荐类型所对应的广播状态为已广播过状态时,生成包含所述推荐动画图标的推荐通知:Step S142, when the broadcast state corresponding to the recommended type of the live room is the broadcasted state, generate a recommendation notification including the recommended animation icon:
当所述直播间推荐类型所对应的所述广播状态为已广播过状态时,服务器将生成包含该直播间推荐类型所对应的推荐动画图标的推荐通知,该推荐通知中将不包含所述推荐通知文本,以防止以广播过的推荐通知在直播间中显示推荐通知文本影响用户的直播观看体验。When the broadcast state corresponding to the recommended type of the live room is the broadcasted state, the server will generate a recommendation notification including the recommended animation icon corresponding to the recommended type of the live room, and the recommendation notification will not include the recommendation Notification text to prevent the recommendation notification text displayed in the live room with the broadcast recommendation notification from affecting the user's live viewing experience.
步骤S143,当所述直播间推荐类型所对应的广播状态为未广播过状态时,生成包含推荐通知文本及推荐动画图标的推荐通知:Step S143, when the broadcast state corresponding to the recommended type of the live room is an unbroadcasted state, generate a recommendation notification including the recommendation notification text and the recommendation animation icon:
当所述直播间推荐类型所对应的所述广播状态为已广播过状态时,服务器将生成包含该直播间推荐类型所对应的推荐动画图标及推荐通知文本的推荐通知,因未广播过状态的直播间推荐类型即为直播间之前未具有的,通过推荐通知文本的展示,以提升该直播间推荐类型的提示效果。When the broadcast state corresponding to the recommended type of the live room is the broadcasted state, the server will generate a recommendation notification including the recommended animation icon and recommendation notification text corresponding to the recommended type of the live room. The recommended type of the live broadcast room is the one that the live broadcast room did not have before. By displaying the recommendation notification text, the prompt effect of the recommended type of the live broadcast room can be improved.
步骤S144,将生成的推荐通知广播至所述目标主播标识所对应的直播间中进行展示:Step S144, broadcasting the generated recommendation notification to the live room corresponding to the target anchor ID for display:
服务器将生成的所述推荐通知广播至所述目标主播标识所对应的直播间中进行展示,若所述推荐通知中包含推荐通知文本及推荐动画图标时,该推荐通知在直播间中的可视化方式如图3所示,若所示推荐通知中仅包含推荐动画图标,则该推荐通知在直播间中的可视化方式如图4所示。The server broadcasts the generated recommendation notification to the live room corresponding to the target anchor ID for display. If the recommendation notification contains recommendation notification text and recommendation animation icons, the visualization method of the recommendation notification in the live room As shown in FIG. 3 , if the shown recommendation notification only includes a recommendation animation icon, the visualization of the recommendation notification in the live room is shown in FIG. 4 .
本实施例中,为不同广播状态的直播间推荐类型生成不同的推荐通知进行广播推送,提升推荐通知的可视化效果。In this embodiment, different recommendation notifications are generated for the types of recommendation in the live broadcast room in different broadcast states to be broadcast and pushed, so as to improve the visualization effect of the recommendation notifications.
一种实施例中,请参考图3至图5及图10,所述根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示的步骤中,包括如下由客户端执行的步骤:In one embodiment, please refer to FIG. 3 to FIG. 5 and FIG. 10 , according to the broadcast state to which the recommended type of the live room is verified, a recommendation notification corresponding to the recommended type of the live room is generated and broadcast to the target live broadcast. Among the steps shown in the interval, include the following steps performed by the client:
步骤S141’,响应由服务器推送的所述推荐通知,判断该推荐通知中是否包含推荐通知文本:Step S141', in response to the recommendation notification pushed by the server, determine whether the recommendation notification contains recommendation notification text:
处于目标直播间的客户端接收由服务器推送的所述推荐通知,并判断该推荐通知中是否包含所述推荐通知文本。The client in the target live room receives the recommendation notification pushed by the server, and determines whether the recommendation notification text contains the recommendation notification text.
步骤S142’,当所述推荐通知中包含推荐通知文本时,输出该推荐通知文本至当前直播间界面中进行显示,直至该推荐通知文本的显示时长超过预设时长时,停止该推荐通知文本的展示:Step S142', when the recommendation notification contains recommendation notification text, output the recommendation notification text to the current live room interface for display, until the display duration of the recommendation notification text exceeds the preset duration, stop the recommendation notification text. exhibit:
当所述推荐通知中包含所述推荐通知文本时,客户端将在当前直播间界面中输出该推荐通知文本进行显示,具体的,请参考图3及图4,图3的直播间界面中显示的推荐通知文本显示窗口301中输出显示所述推荐通知文本,直至该推荐通知文本的显示时长超过预设时长时,客户端将停止该推荐通知文本在当前直播间界面中的显示,以将图3所示的直播间界面切换为图4所示的直播间界面,仅输出显示所示推荐通知中包含的推荐动画图标。When the recommendation notification contains the recommendation notification text, the client will output the recommendation notification text in the current live room interface for display. For details, please refer to Figure 3 and Figure 4, which is displayed in the live broadcast room interface of Figure 3 The recommended notification text is output and displayed in the recommended notification
步骤S143’,将所述推荐通知中包含的推荐动画图标输出至当前直播间界面的图标轮播窗口中显示,所述图标轮播窗口中循环播放其具有的多个推荐动画图标:Step S143', outputting the recommended animation icon included in the recommendation notification to the icon carousel window of the current live room interface for display, and looping the multiple recommended animation icons it has in the icon carousel window:
请参考图4至图5,图4所示的直播间界面中显示的图标轮播窗口401中将输出显示所述推荐通知中包含的推荐动画图标,且所述的图标列表窗口如图5所示,将循环播放其具有的多个推荐动画图标,该些推荐动画图标为直播间当前正在广播的推荐通知所对应的推荐动画图标。Please refer to FIG. 4 to FIG. 5 , the
本实施例中,推荐通知的推荐通知文本在直播间界面中的显示具有显示时长的限制,防止推荐通知文本长时间的显示影响用户的直播观看体验,且通过图标轮播窗口循环播放推荐动画图标,表征直播间当前具有的直播间推荐类型。In this embodiment, the display of the recommendation notification text of the recommendation notification in the interface of the live broadcast room has a display time limit to prevent the long-term display of the recommendation notification text from affecting the user's live viewing experience, and the recommendation animation icon is played in a loop through the icon carousel window , which represents the recommended type of the live room currently available in the live room.
一种实施例中,请参考图11,所述根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示的步骤之后,包括如下由服务器执行的步骤:In an embodiment, please refer to FIG. 11 , after the step of generating a recommendation notification corresponding to the recommended type of the live broadcast room and broadcasting it to the target live room according to the broadcast state to which the recommended type of the live broadcast room has passed the verification. , which includes the following steps performed by the server:
步骤S15,监听所述目标主播标识所对应的直播间,获取该直播间中广播的直播间推荐类型所对应的广播状态:Step S15, monitor the live room corresponding to the target anchor identifier, and obtain the broadcast status corresponding to the recommended type of live broadcast broadcast in the live room:
服务器监听所示目标主播标识所对应的直播间中当前广播的直播间推荐类型,以获取该直播间中该些直播间推荐类型各自所对应的广播状态,例如,当该直播间的直播数据不满足其当前广播的直播间推荐类型的推荐条件时,服务器将不再向该直播间广播所示直播间推荐类型所对应的推荐通知,则该直播间推荐类型的广播状态将从当前正在广播状态修改为已广播过状态。The server monitors the recommended types of live broadcast rooms currently broadcast in the live broadcast room corresponding to the target anchor identifier, so as to obtain the broadcast statuses corresponding to the recommended types of live broadcast rooms in the live broadcast room. For example, when the live broadcast data of the live broadcast room does not When the recommendation conditions of the recommended type of the live room that it currently broadcasts are met, the server will no longer broadcast the recommendation notification corresponding to the recommended type of the live room to the live room, and the broadcast status of the recommended type of the live room will change from the currently broadcasting state. Modified to the broadcasted state.
步骤S16,响应作用于直播间推荐类型的广播权重更新事件,获取该直播间推荐类型最新的广播权重:Step S16, in response to the broadcast weight update event acting on the recommended type of the live broadcast room, obtain the latest broadcast weight of the recommended type of the live broadcast room:
服务器响应作用于一个或多个直播间推荐类型的广播权重更新事件,获取该事件为所述直播间推荐类型最新更新的所述广播权重;所述广播权重更新事件一般由处于平台的管理端所触发,管理端根据平台当前的业务场景更新相应的直播间推荐类型所对应的广播权重。In response to a broadcast weight update event acting on one or more recommended types of live broadcast rooms, the server obtains the broadcast weight of the latest update of the recommended type of the live broadcast room for the event; the broadcast weight update event is generally managed by the management end of the platform. Triggered, the management end updates the broadcast weight corresponding to the recommended type of the corresponding live room according to the current business scenario of the platform.
步骤S17,对应更新所述目标主播标识所属的广播记录信息中所述直播间推荐类型所对应的广播状态或广播权重:Step S17, correspondingly update the broadcast status or broadcast weight corresponding to the recommended type of the live broadcast room in the broadcast record information to which the target anchor identifier belongs:
服务器获取任意直播间推荐类型最新更新的广播状态或广播权重后,将对应更新所述目标主播标识所对应的广播记录消息中该直播间推荐类型的广播状态或广播权重。After acquiring the latest updated broadcast status or broadcast weight of any recommended type of live studio, the server will correspondingly update the broadcast status or broadcast weight of the recommended type of live studio in the broadcast record message corresponding to the target anchor identifier.
本实施例中,通过监听直播间中各直播间推荐类型的广播状态或获取平台最新更新的广播权重,即时更新主播所对应的广播记录信息中相应直播间推荐类型的广播状态或广播权重,以保证在直播间推荐服务的运行。In this embodiment, by monitoring the broadcast status of each recommended type of live studio in the live studio or obtaining the latest updated broadcast weight of the platform, the broadcast status or broadcast weight of the recommended type of the corresponding live studio in the broadcast record information corresponding to the anchor is updated in real time, so that Guarantee the operation of the recommended service in the live broadcast room.
进一步,可以通过将上述各实施例所揭示的方法中的各个步骤进行功能化,构造出本申请的一种直播推荐通知处理装置,按照这一思路,请参阅图12,其中的一个典型实施例中,该装置包括:推荐消息查询模块11,用于查询出广播推荐消息队列中入队时间早于当前时间的主播广播推荐消息,所述广播推荐消息队列依照各主播广播推荐消息具有的入队时间进行升序排序,其中,所述主播广播推荐消息还包含主播标识及直播间推荐类型;记录信息查询模块12,用于获取具有目标主播标识的主播广播推荐消息,查询出广播记录库中与该目标主播标识相对应的广播记录信息,所述广播记录信息中包含各直播间推荐类型相对应的广播状态及广播优先级;通知广播校验模块13,用于根据所述主播广播推荐消息中包含的直播间推荐类型在所述广播记录信息中记录的广播状态及广播优先级,校验是否广播所述直播间推荐类型对应的推荐通知至目标主播标识所对应的目标直播间中;推荐通知广播模块14,用于根据通过校验的直播间推荐类型所属的广播状态,生成与该直播间推荐类型对应的推荐通知广播至所述目标直播间中显示,其中,若广播状态为已广播过状态,则直播间推荐类型的推荐通知中包含推荐动画图标,若广播状态为未广播过状态,则直播间推荐类型的推荐通知中包含推荐通知文本及推荐动画图标。Further, by functionalizing the steps in the methods disclosed in the above embodiments, a live broadcast recommendation notification processing device of the present application can be constructed. According to this idea, please refer to FIG. 12, a typical embodiment of which , the device includes: a recommendation message query module 11, which is used to query the broadcast recommendation message queue of anchors whose enqueue time is earlier than the current time. The time is sorted in ascending order, wherein, the anchor broadcast recommendation message also includes the anchor identifier and the recommendation type of the live broadcast room; the record information query module 12 is used to obtain the anchor broadcast recommendation message with the target anchor identifier, and query the broadcast record database. The broadcast record information corresponding to the target anchor identifier, the broadcast record information includes the broadcast status and broadcast priority corresponding to the recommended types of each live broadcast room; notify the broadcast verification module 13, for according to the anchor broadcast recommendation message contains The broadcast status and broadcast priority recorded in the broadcast record information of the recommended type of the live broadcast room, check whether the recommendation notification corresponding to the recommended type of the live broadcast room is broadcast to the target live broadcast room corresponding to the target host identifier; the recommendation notification broadcast The module 14 is used to generate a recommendation notification corresponding to the recommended type of the live broadcast room according to the broadcast state to which the recommended type of the live broadcast room belongs to be broadcast to the target live broadcast room for display, wherein, if the broadcast state is the broadcasted state , the recommendation notification of the recommendation type in the live room includes the recommendation animation icon. If the broadcast status is the unbroadcasted state, the recommendation notification of the recommendation type in the live room includes the recommendation notification text and the recommendation animation icon.
一种实施例中,所述记录信息查询模块12包括:广播记录信息查询子模块,用于根据主播广播推荐消息所具有的主播标识,查询所述广播记录库中是否存在与该主播标识相匹配的广播记录信息;推荐通知生成子模块,用于当所述广播记录库中不存在与所述主播标识相匹配的广播记录信息时,将根据所述主播广播推荐消息包含的直播间推荐类型,生成包含用于表征该直播间推荐类型的推荐通知文本及推荐动画图标的推荐通知;推荐通知广播子模块,用于广播所述推荐通知至所述主播标识相对应的直播间中进行展示。In one embodiment, the record information query module 12 includes: a broadcast record information query sub-module, configured to query whether there is a broadcast record database that matches the anchor identifier according to the anchor identifier of the anchor broadcast recommendation message. The broadcast record information; the recommendation notification generation submodule is used for when there is no broadcast record information matching the anchor identifier in the broadcast record library, according to the broadcast recommendation message of the anchor. A recommendation notification including recommendation notification text and a recommendation animation icon representing the recommendation type of the live room is generated; a recommendation notification broadcast sub-module is used to broadcast the recommendation notification to the live room corresponding to the anchor ID for display.
一种实施例中,所述通知广播校验模块13包括:广播信息获取子模块,用于从所述广播记录信息中获取所述主播广播推荐消息中包含的直播间推荐类型所对应的广播状态及广播优先级;停止广播处理子模块,用于当所述广播状态表征所述直播间推荐类型为正在广播状态时,则不广播该直播间推荐类型所对应的推荐通知;排序位置确定子模块,用于当所述广播状态表征所述直播间推荐类型为已经广播过状态或未广播过状态时,调用快速排序算法,根据该直播间推荐类型的广播优先级及入队时间,确定该直播间推荐类型在目标主播标识所对应的推荐类型列表中的排序位置;预广播子模块,用于当所述直播间推荐类型在所述推荐类型列表中的排序位置超过预设广播排序位置时,将向目标主播标识所对应的直播间广播该直播间推荐类型的推荐通知。In one embodiment, the notification broadcast verification module 13 includes: a broadcast information acquisition sub-module, configured to acquire, from the broadcast record information, the broadcast status corresponding to the recommended type of the live broadcast room contained in the broadcast recommendation message of the anchor. and broadcast priority; stop broadcast processing sub-module, for when the broadcast state indicates that the recommended type of the live room is in the broadcasting state, the recommendation notification corresponding to the recommended type of the live room is not broadcast; the sorting position determination sub-module , used to call the quick sorting algorithm when the broadcast status indicates that the recommended type of the live room is already broadcasted or not broadcasted, and determine the live broadcast according to the broadcast priority of the recommended type of the live broadcast room and the queue entry time The sorting position of the recommended type in the list of recommended types corresponding to the target anchor identifier; the pre-broadcast sub-module is used for when the sorting position of the recommended type of the live broadcast room in the recommended type list exceeds the preset broadcast sorting position, A recommendation notification of the recommended type of the live broadcast room will be broadcast to the live broadcast room corresponding to the target host identifier.
一种实施例中,所述推荐通知广播模块14包括:通知素材获取子模块,用于从推荐素材库中获取与所述直播间推荐类型相匹配的推荐通知文本及推荐动画图标;第一推荐通知生成子模块,用于当所述直播间推荐类型所对应的广播状态为已广播过状态时,生成包含所述推荐动画图标的推荐通知;第二推荐通知生成子模块,用于当所述直播间推荐类型所对应的广播状态为未广播过状态时,生成包含推荐通知文本及推荐动画图标的推荐通知;推荐通知广播子模块,用于将生成的推荐通知广播至所述目标主播标识所对应的直播间中进行展示。In one embodiment, the recommendation notification broadcasting module 14 includes: a notification material acquisition sub-module for acquiring recommendation notification text and recommendation animation icons matching the recommendation type of the live broadcast room from the recommendation material library; the first recommendation A notification generation sub-module is used to generate a recommendation notification including the recommended animation icon when the broadcast state corresponding to the recommended type of the live broadcast room is the broadcasted state; a second recommendation notification generation sub-module is used for when the When the broadcast state corresponding to the recommendation type of the live broadcast room is the unbroadcasted state, a recommendation notification including the recommendation notification text and the recommendation animation icon is generated; the recommendation notification broadcasting sub-module is used to broadcast the generated recommendation notification to the target anchor ID. It will be displayed in the corresponding live room.
一种实施例中,所述推荐通知广播模块14还包括:推荐通知响应子模块,用于响应由服务器推送的所述推荐通知,判断该推荐通知中是否包含推荐通知文本;通知文本显示子模块,用于当所述推荐通知中包含推荐通知文本时,输出该推荐通知文本至当前直播间界面中进行显示,直至该推荐通知文本的显示时长超过预设时长时,停止该推荐通知文本的展示;动画图标显示子模块,用于将所述推荐通知中包含的推荐动画图标输出至当前直播间界面的图标轮播窗口中显示,所述图标轮播窗口中循环播放其具有的多个推荐动画图标。In one embodiment, the recommendation notification broadcasting module 14 further includes: a recommendation notification response sub-module for responding to the recommendation notification pushed by the server, and judging whether the recommendation notification contains recommendation notification text; a notification text display sub-module , for when the recommendation notification contains recommendation notification text, output the recommendation notification text to the current live room interface for display, until the display duration of the recommendation notification text exceeds the preset duration, stop the display of the recommendation notification text The animation icon display sub-module is used to output the recommended animation icon contained in the recommendation notification to the icon carousel window of the current live room interface for display, and the multiple recommended animations it has are played in a loop in the icon carousel window. icon.
为解决上述技术问题,本申请实施例还提供一种计算机设备,用于运行根据所述直播推荐通知处理方法所实现的计算机程序。具体请参阅图13,图13为本实施例计算机设备基本结构框图。In order to solve the above technical problem, an embodiment of the present application further provides a computer device for running a computer program implemented according to the method for processing a live broadcast recommendation notification. Please refer to FIG. 13 for details. FIG. 13 is a block diagram of the basic structure of a computer device according to this embodiment.
如图13所示,计算机设备的内部结构示意图。该计算机设备包括通过系统总线连接的处理器、非易失性存储介质、存储器和网络接口。其中,该计算机设备的非易失性存储介质存储有操作系统、数据库和计算机可读指令,数据库中可存储有控件信息序列,该计算机可读指令被处理器执行时,可使得处理器实现一种直播推荐通知处理方法。该计算机设备的处理器用于提供计算和控制能力,支撑整个计算机设备的运行。该计算机设备的存储器中可存储有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行一种直播推荐通知处理方法。该计算机设备的网络接口用于与终端连接通信。本领域技术人员可以理解,图13中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。As shown in Figure 13, a schematic diagram of the internal structure of the computer equipment. The computer device includes a processor, non-volatile storage medium, memory, and a network interface connected by a system bus. Wherein, the non-volatile storage medium of the computer device stores an operating system, a database and computer-readable instructions, and the database may store a sequence of control information. When the computer-readable instructions are executed by the processor, the processor can realize a A method for processing live recommendation notifications. The processor of the computer device is used to provide computing and control capabilities and support the operation of the entire computer device. Computer-readable instructions may be stored in the memory of the computer device, and when executed by the processor, the computer-readable instructions may cause the processor to execute a method for processing a live broadcast recommendation notification. The network interface of the computer equipment is used for communication with the terminal connection. Those skilled in the art can understand that the structure shown in FIG. 13 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
本实施方式中处理器用于执行本发明的直播推荐通知处理装置中的各个模块/子模块的具体功能,存储器存储有执行上述模块所需的程序代码和各类数据。网络接口用于向用户终端或服务器之间的数据传输。本实施方式中的存储器存储有直播推荐通知处理装置中执行所有模块/子模块所需的程序代码及数据,服务器能够调用服务器的程序代码及数据执行所有子模块的功能。In this embodiment, the processor is used to execute the specific functions of each module/sub-module in the apparatus for processing a live recommendation notification of the present invention, and the memory stores program codes and various types of data required to execute the above modules. The network interface is used for data transmission between user terminals or servers. The memory in this embodiment stores the program codes and data required to execute all modules/sub-modules in the live broadcast recommendation notification processing apparatus, and the server can call the server's program codes and data to execute the functions of all sub-modules.
本申请还提供一种非易失性存储介质,所述的直播推荐通知处理方法被编写成计算机程序,以计算机可读指令的形式存储于该存储介质中,计算机可读指令被一个或多个处理器执行时,意味着该程序在计算机中的运行,由此使得一个或多个处理器执行上述任一实施例直播推荐通知处理方法的步骤。The present application also provides a non-volatile storage medium, wherein the method for processing a live recommendation notification is written as a computer program, and stored in the storage medium in the form of computer-readable instructions, and the computer-readable instructions are stored in the storage medium by one or more When the processor is executed, it means that the program runs in the computer, thereby causing one or more processors to execute the steps of the method for processing a live broadcast recommendation notification in any of the foregoing embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM).
综上所述,本申请为平台提供直播间推荐服务,使用户感知直播间的曝光数据,同时自动化筛选及定制推荐通知,提升推荐通知的可视化效果。In summary, this application provides the platform with a recommendation service for live broadcast rooms, enabling users to perceive the exposure data of the live broadcast rooms, and at the same time automate screening and customization of recommendation notifications to improve the visualization effect of recommendation notifications.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the accompanying drawings are sequentially shown in the order indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is also It does not have to be performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.
本技术领域技术人员可以理解,本申请中已经讨论过的各种操作、方法、流程中的步骤、措施、方案可以被交替、更改、组合或删除。进一步地,具有本申请中已经讨论过的各种操作、方法、流程中的其他步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。进一步地,现有技术中的具有与本申请中公开的各种操作、方法、流程中的步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。Those skilled in the art can understand that various operations, methods, steps, measures, and solutions in the process discussed in this application may be alternated, modified, combined or deleted. Further, other steps, measures, and solutions in the various operations, methods, and processes that have been discussed in this application may also be alternated, modified, rearranged, decomposed, combined, or deleted. Further, steps, measures and solutions in the prior art with various operations, methods, and processes disclosed in this application may also be alternated, modified, rearranged, decomposed, combined or deleted.
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only part of the embodiments of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can also be made. It should be regarded as the protection scope of this application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210038267.4ACN114417151B (en) | 2022-01-13 | 2022-01-13 | Live broadcast recommendation notification processing method and its device, equipment, medium, and product |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210038267.4ACN114417151B (en) | 2022-01-13 | 2022-01-13 | Live broadcast recommendation notification processing method and its device, equipment, medium, and product |
| Publication Number | Publication Date |
|---|---|
| CN114417151Atrue CN114417151A (en) | 2022-04-29 |
| CN114417151B CN114417151B (en) | 2025-01-24 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210038267.4AActiveCN114417151B (en) | 2022-01-13 | 2022-01-13 | Live broadcast recommendation notification processing method and its device, equipment, medium, and product |
| Country | Link |
|---|---|
| CN (1) | CN114417151B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111104583A (en)* | 2018-10-10 | 2020-05-05 | 武汉斗鱼网络科技有限公司 | Live broadcast room recommendation method, storage medium, electronic device and system |
| CN111556327A (en)* | 2020-04-02 | 2020-08-18 | 北京达佳互联信息技术有限公司 | Live broadcast room recommendation method, device, terminal, server, system and storage medium |
| CN112399200A (en)* | 2019-08-13 | 2021-02-23 | 腾讯科技(深圳)有限公司 | Method, device and storage medium for recommending information in live broadcast |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111104583A (en)* | 2018-10-10 | 2020-05-05 | 武汉斗鱼网络科技有限公司 | Live broadcast room recommendation method, storage medium, electronic device and system |
| CN112399200A (en)* | 2019-08-13 | 2021-02-23 | 腾讯科技(深圳)有限公司 | Method, device and storage medium for recommending information in live broadcast |
| CN111556327A (en)* | 2020-04-02 | 2020-08-18 | 北京达佳互联信息技术有限公司 | Live broadcast room recommendation method, device, terminal, server, system and storage medium |
| US20210314639A1 (en)* | 2020-04-02 | 2021-10-07 | Beijing Dajia Internet Information Technology Co., Ltd. | Method and apparatus for recommending live streaming room |
| Publication number | Publication date |
|---|---|
| CN114417151B (en) | 2025-01-24 |
| Publication | Publication Date | Title |
|---|---|---|
| US11474779B2 (en) | Method and apparatus for processing information | |
| CN108174272B (en) | Method and device for displaying interactive information in live broadcast, storage medium and electronic equipment | |
| WO2022077881A1 (en) | Virtual live streaming method and apparatus, device and storage medium | |
| US20110173663A1 (en) | Program guide and apparatus | |
| CN113727130A (en) | Message prompting method, system and device for live broadcast room and computer equipment | |
| CN113824979A (en) | Live broadcast room recommendation method and device and computer equipment | |
| WO2023147758A1 (en) | Method and apparatus for processing cloud game resource data, and computer device and storage medium | |
| CN113727178B (en) | Screen-throwing resource control method and device, equipment and medium thereof | |
| CN114302163B (en) | Live broadcasting room advertisement processing method and device, equipment and medium thereof | |
| CN113727177B (en) | Screen-throwing resource playing method and device, equipment and medium thereof | |
| CN114422821A (en) | Live broadcast home page interaction method, device, medium and equipment based on virtual gift | |
| CN113613027A (en) | Live broadcast room recommendation method and device and computer equipment | |
| CN113824984A (en) | Virtual gift pipelining display method, system, device and computer equipment | |
| CN112099895B (en) | Interface notification message scheduling method, device, equipment and storage medium | |
| EP3975598A1 (en) | Method, apparatus, and device for subscribing resources in field of internet of things, and storage medium | |
| CN113727125B (en) | Live broadcast room screenshot method, device, system, medium and computer equipment | |
| CN113573121B (en) | Video playing method, device and storage medium | |
| CN114205366A (en) | Cross-platform data synchronization method and device, equipment, medium and product thereof | |
| CN113873282A (en) | Live broadcast room guidance speaking method, system, device, medium and computer equipment | |
| US20240244101A1 (en) | Communication queue | |
| CN114417151B (en) | Live broadcast recommendation notification processing method and its device, equipment, medium, and product | |
| CN115119008B (en) | Method and device for recommending open broadcast in live broadcast scene, electronic equipment and medium | |
| CN114630189B (en) | Multi-channel approach prompting method, system, device, computer equipment and medium in live broadcasting room | |
| CN114489905B (en) | Live broadcasting room activity data processing method and device, equipment, medium and product thereof | |
| CN113590063B (en) | Method for controlling multimedia presentation by third party |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |