CN114630151A - Method, device, device and storage medium for processing live broadcast list based on stream authentication - Google Patents

Method, device, device and storage medium for processing live broadcast list based on stream authentication Download PDF

Info

Publication number
CN114630151A
CN114630151A CN202210237927.1A CN202210237927A CN114630151A CN 114630151 A CN114630151 A CN 114630151A CN 202210237927 A CN202210237927 A CN 202210237927A CN 114630151 A CN114630151 A CN 114630151A
Authority
CN
China
Prior art keywords
authentication
live broadcast
timestamp
anchor
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210237927.1A
Other languages
Chinese (zh)
Inventor
梁仕田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Cubesili Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Cubesili Information Technology Co Ltd filed Critical Guangzhou Cubesili Information Technology Co Ltd
Priority to CN202210237927.1A priority Critical patent/CN114630151A/en
Publication of CN114630151A publication Critical patent/CN114630151A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application relates to the technical field of network live broadcast, and provides a live broadcast list processing method and device based on stream authentication, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring an anchor video stream and a corresponding channel number sent by an anchor client; authenticating the anchor video stream every a first preset time to obtain an authentication result; if the authentication result is that the authentication is passed, acquiring an authentication timestamp, and updating the authentication timestamp corresponding to the channel number in the live broadcast list; and accessing the authentication timestamp in the live broadcast list at intervals of second preset time, and deleting the channel number from the live broadcast list if the difference between the access timestamp and the authentication timestamp is greater than a preset threshold value. According to the embodiment of the application, the filtering of the black screen live broadcast room is realized through the authentication of the anchor video stream, so that audiences cannot enter the black screen live broadcast room, and the live broadcast watching experience of the audiences is improved.

Description

基于流鉴权的直播列表处理方法、装置、设备及存储介质Method, device, device and storage medium for processing live broadcast list based on stream authentication

技术领域technical field

本申请实施例涉及网络直播技术领域,尤其涉及一种基于流鉴权的直播列表处理方法、装置、计算机设备及存储介质。The embodiments of the present application relate to the technical field of network live broadcast, and in particular, to a method, apparatus, computer equipment, and storage medium for processing a live broadcast list based on stream authentication.

背景技术Background technique

随着互联网技术和流媒体技术的快速发展,网络直播逐渐成为一种日渐普及的娱乐手段,越来越多的用户开始进入网络直播间,参与体验网络直播。用户可以在终端设备下载安装直播应用,在直播应用的首页或内容Tab页或划一划等应用场景展示有直播列表,所述直播列表显示有不同类型的直播供用户选择,包括不同直播分类和每一直播分类下的直播。用户选择某一直播分类后,直播应用的显示界面会以排列的形式显示用户所选的直播分类下的所有直播的封面和标题,以供用户选择某一直播观看。With the rapid development of Internet technology and streaming media technology, webcasting has gradually become an increasingly popular means of entertainment, and more and more users have begun to enter webcasting rooms to participate in and experience webcasting. Users can download and install the live broadcast application on the terminal device, and display the live broadcast list on the homepage or content tab page of the live broadcast application or in application scenarios such as a single line. A live broadcast under the live broadcast category. After the user selects a live broadcast category, the display interface of the live broadcast application will display the covers and titles of all the live broadcasts under the live broadcast category selected by the user in an arrangement, so that the user can select a live broadcast to watch.

然而,主播在开播的过程中,由于网络突然中断,主播直接退出直播类APP。主播的直播状态还会维持1到2分钟左右,以让主播重新打开直播类APP重连上来继续直播。但是主播异常退出直播类APP的这段时间内,主播的视频流是不会上传到直播服务器的,这个时候在直播应用首页或内容Tab页或划一划等应用场景中的直播列表依旧显示有所述主播的直播间,用户点击进入所述主播的直播间就会看到黑屏,影响用户的直播观看体验。However, in the process of launching the broadcast, the host directly exited the live broadcast APP due to the sudden interruption of the network. The live broadcast state of the host will also be maintained for about 1 to 2 minutes, so that the host can reopen the live broadcast APP and reconnect to continue the live broadcast. However, during the period when the host exits the live broadcast APP abnormally, the video stream of the host will not be uploaded to the live server. At this time, the live broadcast list in the homepage of the live broadcast application or the content tab page or the application scenarios such as swipe is still displayed. If the user clicks to enter the live broadcast room of the host, he will see a black screen, which affects the user's live viewing experience.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种基于流鉴权的直播列表处理方法、装置、计算机设备及存储介质,其可以避免用户进入黑屏的直播间、提升用户观看直播的体验,该技术方案如下:The embodiments of the present application provide a method, device, computer equipment and storage medium for processing a live broadcast list based on stream authentication, which can prevent a user from entering a live broadcast room with a black screen and improve the user's experience of watching a live broadcast. The technical solution is as follows:

第一方面,本申请实施例提供了一种基于流鉴权的直播列表处理方法,包括步骤:In a first aspect, an embodiment of the present application provides a method for processing a live broadcast list based on stream authentication, including the steps:

获取主播客户端发送的主播视频流以及对应的频道号;Obtain the anchor video stream sent by the anchor client and the corresponding channel number;

每隔第一预设时间对所述主播视频流进行鉴权,获得鉴权结果;Authenticating the anchor video stream every first preset time to obtain an authentication result;

若所述鉴权结果为鉴权通过,获取鉴权时间戳,更新直播列表中所述频道号对应的鉴权时间戳;If the authentication result is that the authentication is passed, obtain the authentication timestamp, and update the authentication timestamp corresponding to the channel number in the live broadcast list;

每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,从所述直播列表中删除所述频道号。The authentication time stamp in the live broadcast list is accessed every second preset time, and if the difference between the time stamp at the time of access and the authentication time stamp is greater than a preset threshold, delete the authentication time stamp from the live broadcast list. channel number.

第二方面,本申请实施例提供了一种基于流鉴权的直播列表处理装置,包括:In a second aspect, an embodiment of the present application provides an apparatus for processing a live broadcast list based on stream authentication, including:

视频流获取模块,用于获取主播客户端发送的主播视频流以及对应的频道号;The video stream acquisition module is used to acquire the anchor video stream sent by the anchor client and the corresponding channel number;

鉴权结果获得模块,用于每隔第一预设时间对所述主播视频流进行鉴权,获得鉴权结果;an authentication result obtaining module, configured to authenticate the anchor video stream every first preset time to obtain an authentication result;

时间戳更新模块,用于若所述鉴权结果为鉴权通过,获取鉴权时间戳,更新直播列表中所述频道号对应的鉴权时间戳;A timestamp update module, configured to obtain an authentication timestamp if the authentication result is that the authentication passed, and update the authentication timestamp corresponding to the channel number in the live broadcast list;

频道号删除模块,用于每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,从所述直播列表中删除所述频道号。The channel number deletion module is used to access the authentication timestamp in the live broadcast list every second preset time, if the difference between the timestamp during access and the authentication timestamp is greater than the preset threshold, from the Delete the channel number from the live broadcast list.

第三方面,本申请实施例提供了一种计算机设备,处理器、存储器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如第一方面方法的步骤。In a third aspect, embodiments of the present application provide a computer device, a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method of the first aspect when the processor executes the computer program.

第四方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如第一方面方法的步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

本申请实施例通过获取主播客户端发送的主播视频流以及对应的频道号;每隔第一预设时间对所述主播视频流进行鉴权,获得鉴权结果;若所述鉴权结果为鉴权通过,获取鉴权时间戳,更新直播列表中所述频道号对应的鉴权时间戳;每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,从所述直播列表中删除所述频道号。本申请实施例通过主播视频流的鉴权来实现对黑屏直播间的过滤,使得观众不会进入黑屏直播间,提升观众观看直播体验。The embodiment of the present application obtains the anchor video stream and the corresponding channel number sent by the anchor client; authenticates the anchor video stream every first preset time, and obtains an authentication result; if the authentication result is an authentication result The right is passed, the authentication timestamp is obtained, and the authentication timestamp corresponding to the channel number in the live broadcast list is updated; the authentication timestamp in the live broadcast list is accessed every second preset time. If the difference between the stamp and the authentication timestamp is greater than a preset threshold, the channel number is deleted from the live broadcast list. The embodiment of the present application implements the filtering of the live broadcast room with a black screen through the authentication of the anchor video stream, so that the audience does not enter the live broadcast room with a black screen, and the experience of the audience watching the live broadcast is improved.

为了更好地理解和实施,下面结合附图详细说明本申请的技术方案。For better understanding and implementation, the technical solutions of the present application are described in detail below with reference to the accompanying drawings.

附图说明Description of drawings

图1为本申请实施例提供的基于流鉴权的直播列表处理方法的应用场景示意图;1 is a schematic diagram of an application scenario of a method for processing a live broadcast list based on stream authentication provided by an embodiment of the present application;

图2为本申请实施例提供的基于流鉴权的直播列表处理方法的流程示意图;2 is a schematic flowchart of a method for processing a live broadcast list based on stream authentication provided by an embodiment of the present application;

图3为本申请实施例提供的基于流鉴权的直播列表处理方法中S21~S22的流程示意图;3 is a schematic flowchart of S21 to S22 in the method for processing a live broadcast list based on stream authentication provided by an embodiment of the present application;

图4为本申请实施例提供的基于流鉴权的直播列表处理方法中S23~S24的流程示意图;4 is a schematic flowchart of S23 to S24 in the method for processing a live broadcast list based on stream authentication provided by an embodiment of the present application;

图5为本申请实施例提供的基于流鉴权的直播列表处理方法中S41~S43的流程示意图;5 is a schematic flowchart of S41 to S43 in the method for processing a live broadcast list based on stream authentication provided by an embodiment of the present application;

图6为本申请实施例提供的基于流鉴权的直播列表处理方法中S44~S45的流程示意图;6 is a schematic flowchart of S44 to S45 in the method for processing a live broadcast list based on stream authentication provided by an embodiment of the present application;

图7为本申请实施例提供的基于流鉴权的直播列表处理方法中S46~S48的流程示意图;7 is a schematic flowchart of S46 to S48 in the method for processing a live broadcast list based on stream authentication provided by an embodiment of the present application;

图8为本申请实施例提供的基于流鉴权的直播列表处理装置的结构示意图;8 is a schematic structural diagram of an apparatus for processing a live broadcast list based on stream authentication provided by an embodiment of the present application;

图9为本申请实施例提供的计算机设备的结构示意图。FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as recited in the appended claims.

在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”/“若”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information without departing from the scope of the present application. Depending on the context, the words "if"/"if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

请参阅图1,图1为本申请实施例提供的直播间内播放小视频的方法的应用场景示意图,该应用场景包括本申请实施例提供的主播客户端101、服务器102和观众客户端103,主播客户端101与观众客户端103通过服务器102进行交互。Please refer to FIG. 1. FIG. 1 is a schematic diagram of an application scenario of a method for playing a small video in a live room provided by an embodiment of the present application. The application scenario includes the host client 101, the server 102, and the viewer client 103 provided by the embodiment of the present application. The host client 101 interacts with the viewer client 103 through the server 102 .

本申请实施例提出的客户端包括该主播客户端101和该观众客户端103。The clients proposed in the embodiments of the present application include the host client 101 and the viewer client 103 .

需要指出的是,在现有技术中会存在对“客户端”这一概念的多种理解,例如:可以将其理解为安装在计算机设备中的应用程序,或者,也可以将其理解为相对应于服务器的硬件设备。It should be pointed out that there are various understandings of the concept of "client" in the prior art, for example, it can be understood as an application program installed in a computer device, or it can also be understood as a corresponding Corresponds to the hardware device of the server.

在本申请实施例中,所称的“客户端”是指相对应于服务器的硬件设备,更具体来说,是指计算机设备,例如:智能手机、智能交互平板以及个人计算机等。In the embodiments of the present application, the so-called "client" refers to a hardware device corresponding to a server, and more specifically, refers to a computer device, such as a smart phone, a smart interactive tablet, and a personal computer.

在客户端为智能手机、智能交互平板等移动设备时,用户可以在客户端上安装匹配的移动端应用程序,也可以在客户端上访问Web端应用程序。When the client is a mobile device such as a smartphone or an intelligent interactive tablet, the user can install a matching mobile application on the client, or access the web application on the client.

在客户端为个人计算机(PC机)等非移动设备时,用户可以在客户端上安装匹配的PC端应用程序,同样也可以在客户端上访问Web端应用程序。When the client is a non-mobile device such as a personal computer (PC), the user can install a matching PC-side application on the client, and can also access the Web-side application on the client.

其中,移动端应用程序是指可安装在移动设备中的应用程序,PC端应用程序是指可安装在非移动设备中的应用程序,Web端应用程序是指需通过浏览器访问的应用程序。Among them, the mobile application refers to the application that can be installed in the mobile device, the PC application refers to the application that can be installed in the non-mobile device, and the web application refers to the application that needs to be accessed through a browser.

具体地,Web端应用程序依据客户端类型的差异,又可以分为移动版本和PC版本,两者的页面布局方式以及可提供的服务器支持可能存在差别。Specifically, web-side applications can be divided into mobile version and PC version according to the difference of client types, and there may be differences in the page layout and available server support between the two.

在本申请实施例中,提供至用户的直播应用程序的类型分为移动端直播应用程序、PC端直播应用程序和Web端直播应用程序。用户可以依据其采用客户端的类型不同,自主选择其参与网络直播的方式。In the embodiments of the present application, the types of live broadcast applications provided to users are classified into mobile terminal live broadcast applications, PC terminal live broadcast applications, and Web terminal live broadcast applications. Users can choose their own way of participating in the webcast according to the different types of clients they use.

本申请依据采用客户端的用户身份的不同,可以将客户端分为主播客户端101和观众客户端103。应当说明,所述观众客户端103与所述主播客户端101只是从用户身份上进行划分,在实际应用中,可以由同一个客户端在不同时间分别执行所述观众客户端103与所述主播客户端101的功能。因此,同一个客户端在观看网络直播时,可以作为所述观众客户端103,在发布直播视频时,可以作为所述主播客户端101。In the present application, the client can be divided into a host client 101 and a viewer client 103 according to different user identities of the client. It should be noted that the viewer client 103 and the host client 101 are only divided based on user identities. In practical applications, the viewer client 103 and the host may be executed by the same client at different times. Function of Client 101. Therefore, the same client can act as the viewer client 103 when watching the live webcast, and can act as the host client 101 when publishing the live video.

其中,主播客户端101是指发送网络直播视频的一端,通常来说是网络直播中主播(即,直播主播用户)所采用的客户端。The host client 101 refers to the end that sends the webcast video, and is generally the client used by the host (ie, the livestreamer user) in the webcast.

观众客户端103是指接收和观看网络直播视频的一端,通常来说是网络直播中观看视频的观众(即,直播观众用户)所采用的客户端。The viewer client 103 refers to the end that receives and watches the webcast video, and is generally the client used by the viewers (ie, the live viewer users) who watch the video in the webcast.

主播客户端101和观众客户端103所指向的硬件,本质上是指计算机设备,具体地,如图1所示,其可以是智能手机、智能交互平板和个人计算机等类型的计算机设备。主播客户端101和观众客户端103均可以通过公知的网络接入方式接入互联网,与服务器102建立数据通信链路。The hardware pointed to by the host client 101 and the viewer client 103 essentially refers to computer equipment, specifically, as shown in FIG. Both the host client 101 and the viewer client 103 can access the Internet through a well-known network access manner, and establish a data communication link with the server 102 .

服务器102作为一个业务服务器,其可以负责进一步连接起相关音频数据服务器、视频流服务器以及其他提供相关支持的服务器等,以此构成逻辑上相关联的服务机群,来为相关的终端设备,例如图1中所示的主播客户端101和观众客户端103提供服务。As a service server, the server 102 can be responsible for further connecting related audio data servers, video streaming servers, and other servers that provide related support, etc., so as to form a logically related service cluster for related terminal devices, such as FIG. The host client 101 and the viewer client 103 shown in 1 provide services.

本申请实施例中,主播客户端101与观众客户端103可以加入同一个直播间(即直播频道),上述的直播间是指依靠互联网技术实现的一种聊天室,通常具备音视频播控功能。主播用户通过主播客户端101在直播间内进行直播,观众客户端103的观众可以登录服务器102进入直播间观看上直播。In the embodiment of the present application, the host client 101 and the viewer client 103 can join the same live broadcast room (ie, live broadcast channel). The above-mentioned live broadcast room refers to a chat room realized by relying on Internet technology, and usually has the function of audio and video broadcast control. . The host user performs live broadcast in the live room through the host client 101, and the viewer of the viewer client 103 can log in to the server 102 and enter the live room to watch the live broadcast.

在直播间内,主播与观众之间可通过语音、视频、文字等公知的线上交互方式来实现互动,一般是主播用户以音视频流的形式为观众表演节目,并且在互动过程中还可产生经济交易行为。当然,直播间的应用形态并不局限于在线娱乐,也可推广到其他相关场景中,例如:用户配对互动场景、视频会议场景、产品推介销售场景以及其他任何需要类似互动的场景中。In the live broadcast room, the anchor and the audience can interact through well-known online interaction methods such as voice, video, and text. Generally, the anchor user performs the program for the audience in the form of audio and video streams, and can also be used during the interaction process. generate economic transactions. 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 user matching interaction scenarios, video conference scenarios, product promotion sales scenarios, and any other scenarios that require similar interaction.

具体地,观众观看直播的过程如下:观众可以点击访问安装在观众客户端103上的直播应用程序(例如YY),并选择进入任意一个直播间,触发观众客户端103为该观众加载直播间界面,该直播间界面内包括若干交互组件,通过加载这些交互组件可以使观众在直播间内观看直播,并进行多种线上互动。Specifically, the process for the viewer to watch the live broadcast is as follows: the viewer can click to access the live broadcast application (eg YY) installed on the viewer client 103, and choose to enter any live broadcast room, triggering the viewer client 103 to load the live broadcast room interface for the audience , the interface of the live broadcast room includes several interactive components, and by loading these interactive components, the audience can watch the live broadcast in the live broadcast room and conduct various online interactions.

直播列表包含多条直播信息,每一条直播信息可以对应当前正在开播的一个主播。直播信息可以包括主播标识、直播间的频道号、直播间的封面和标题、直播间的开始开播时间等各种信息。在直播应用中,有很多业务场景需要服务器提供直播列表的情况,比如,当直播应用首页或内容Tab页或划一划等业务场景需要显示直播列表时,将从服务器获取直播列表。The live broadcast list contains multiple pieces of live broadcast information, and each piece of live broadcast information can correspond to a host currently broadcasting. The live broadcast information may include various information such as the host identifier, the channel number of the live broadcast room, the cover and title of the live broadcast room, and the start time of the live broadcast room. In the live broadcast application, there are many business scenarios that require the server to provide the live broadcast list. For example, when the live broadcast application homepage or content tab page or swipe and other business scenarios need to display the live broadcast list, the live broadcast list will be obtained from the server.

然而,主播在开播的过程中,由于网络突然中断,主播直接退出直播类APP。主播的直播状态还会维持1到2分钟左右,以让主播重新打开直播类APP重连上来继续直播。但是主播异常退出直播类APP的这段时间内,主播的视频流是不会上传到直播服务器的,这个时候在直播应用首页或内容Tab页或划一划等应用场景中的直播列表依旧显示有所述主播的直播间,用户点击进入所述主播的直播间就会看到黑屏,影响用户的直播观看体验。However, in the process of launching the broadcast, the host directly exited the live broadcast APP due to the sudden interruption of the network. The live broadcast state of the host will also be maintained for about 1 to 2 minutes, so that the host can reopen the live broadcast APP and reconnect to continue the live broadcast. However, during the period when the host exits the live broadcast APP abnormally, the video stream of the host will not be uploaded to the live server. At this time, the live broadcast list in the homepage of the live broadcast application or the content tab page or the application scenarios such as swipe is still displayed. If the user clicks to enter the live broadcast room of the host, he will see a black screen, which affects the user's live viewing experience.

为此,本申请实施例提供了一种基于流鉴权的直播列表处理方法,由服务器作为执行主体。To this end, an embodiment of the present application provides a method for processing a live broadcast list based on stream authentication, in which a server is used as an execution subject.

请参阅图2,图2为本申请第一实施例提供的基于流鉴权的直播列表处理方法的流程示意图,该方法包括如下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a method for processing a live broadcast list based on stream authentication provided by the first embodiment of the present application. The method includes the following steps:

S10:获取主播客户端发送的主播视频流以及对应的频道号。S10: Obtain the host video stream and the corresponding channel number sent by the host client.

在本申请实施例中,主播在开始直播时,在主播客户端创建直播间,所述主播客户端将所述直播间产生的主播视频流以及所述直播间的频道号发送至服务器。In the embodiment of the present application, the host creates a live room on the host client when starting the live broadcast, and the host client sends the host video stream generated in the live room and the channel number of the live room to the server.

S20:每隔第一预设时间对所述主播视频流进行鉴权,获得鉴权结果。S20: Perform authentication on the host video stream every first preset time to obtain an authentication result.

在本申请实施例中,服务器每隔3s对所述主播视频流进行鉴权,获得鉴权结果。若所述鉴权结果为鉴权通过,则所述主播视频流具备推流权限,服务器通过内容分发网络CDN将所述主播视频流下发至观众客户端,观众可以看到主播的直播画面。若所述鉴权结果为鉴权不通过,则所述主播视频流不具备推流权限,服务器不对所述主播视频流进行传输。In the embodiment of the present application, the server authenticates the host video stream every 3s to obtain an authentication result. If the authentication result is that the authentication is passed, the host video stream has the right to push the stream, and the server delivers the host video stream to the viewer client through the content distribution network CDN, and the viewer can see the live broadcast screen of the host. If the authentication result is that the authentication fails, the host video stream does not have the right to push streaming, and the server does not transmit the host video stream.

S30:若所述鉴权结果为鉴权通过,获取鉴权时间戳,更新直播列表中所述频道号对应的鉴权时间戳。S30: If the authentication result is that the authentication is passed, obtain an authentication timestamp, and update the authentication timestamp corresponding to the channel number in the live broadcast list.

在本申请实施例中,鉴权时间戳为服务器对所述主播视频流进行鉴权时的时刻,若主播视频流鉴权通过,服务器获取鉴权时间戳。由于服务器每隔第一预设时间对所述主播视频流进行鉴权,因此,服务器获取的鉴权时间戳是变化的。根据获取的所述鉴权时间戳更新直播列表中所述频道号对应的鉴权时间戳,即将当前次获取的鉴权时间戳替换上一次鉴权通过时获取的鉴权时间戳。In this embodiment of the present application, the authentication timestamp is the time when the server authenticates the anchor video stream. If the anchor video stream is authenticated, the server obtains the authentication timestamp. Since the server authenticates the host video stream every first preset time, the authentication timestamp obtained by the server varies. Update the authentication timestamp corresponding to the channel number in the live broadcast list according to the acquired authentication timestamp, that is, replace the currently acquired authentication timestamp with the authentication timestamp acquired when the last authentication passed.

S40:每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,从所述直播列表中删除所述频道号。S40: Access the authentication timestamp in the live broadcast list every second preset time, and delete the authentication timestamp from the live broadcast list if the difference between the access timestamp and the authentication timestamp is greater than a preset threshold the channel number.

在本申请实施例中,服务器每隔3s访问直播列表中的鉴权时间戳,例如,访问时的时间戳为第9s,所述直播列表中的所述鉴权时间戳为第2s,访问时的时间戳与所述鉴权时间戳之差大于预设阈值5s,表明主播视频流的鉴权时间戳在很长一段时间内没有更新,也即主播客户端无主播视频流产生,从所述直播列表中删除所述主播客户端对应的频道号。In the embodiment of the present application, the server accesses the authentication timestamp in the live broadcast list every 3s. For example, the timestamp when accessing is the 9th s, the authentication timestamp in the live broadcast list is the 2nd s. The difference between the time stamp and the authentication time stamp is greater than the preset threshold 5s, indicating that the authentication time stamp of the anchor video stream has not been updated for a long period of time, that is, the anchor client does not generate the anchor video stream. The channel number corresponding to the host client is deleted from the live broadcast list.

本申请实施例通过获取主播客户端发送的主播视频流以及对应的频道号;每隔第一预设时间对所述主播视频流进行鉴权,获得鉴权结果;若所述鉴权结果为鉴权通过,获取鉴权时间戳,更新直播列表中所述频道号对应的鉴权时间戳;每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,从所述直播列表中删除所述频道号。本申请实施例通过主播视频流的鉴权来实现对黑屏直播间的过滤,使得观众不会进入黑屏直播间,提升观众观看直播体验。The embodiment of the present application obtains the anchor video stream and the corresponding channel number sent by the anchor client; authenticates the anchor video stream every first preset time, and obtains an authentication result; if the authentication result is an authentication result The right is passed, the authentication timestamp is obtained, and the authentication timestamp corresponding to the channel number in the live broadcast list is updated; the authentication timestamp in the live broadcast list is accessed every second preset time. If the difference between the stamp and the authentication timestamp is greater than a preset threshold, the channel number is deleted from the live broadcast list. The embodiment of the present application implements the filtering of the live broadcast room with a black screen through the authentication of the anchor video stream, so that the audience does not enter the live broadcast room with a black screen, and the experience of the audience watching the live broadcast is improved.

在一个可选的实施例中,所述获取主播客户端发送的主播视频流以及对应的频道号步骤之前,包括:In an optional embodiment, before the step of acquiring the anchor video stream sent by the anchor client and the corresponding channel number, the steps include:

接收所述主播客户端发送的开播请求,根据所述开播请求获取主播标识;Receive the broadcast request sent by the host client, and obtain the host identifier according to the broadcast request;

根据所述主播标识校验所述主播客户端是否有开播权限,若有开播权限,在开播状态数据库中记录所述主播标识为开播状态;Check whether the host client has the right to start broadcasting according to the identifier of the anchor, and if there is the right to start broadcasting, record the identifier of the anchor as the broadcasting state in the broadcasting state database;

所述每隔第一预设时间对所述主播视频流进行鉴权,获得鉴权结果的步骤,包括:The described host video stream is authenticated every first preset time, and the steps of obtaining an authentication result include:

获取所述主播视频流对应的主播标识,若根据所述主播标识查询到所述主播标识为开播状态,确定所述主播视频流鉴权通过。The host identifier corresponding to the host video stream is acquired, and if it is found that the host identifier is in a broadcast state according to the host identifier, it is determined that the anchor video stream is authenticated.

在本申请实施例中,主播开始直播时,通过主播客户端向服务器发起主播开播请求,所述主播开播请求包括主播标识。服务器根据所述主播标识可以校验所述主播客户端是否有开播权限。具体地,服务器的数据库中记录有各个主播用户的数据,包括主播标识、开播权限等信息,通过查询数据库可以判断所述主播标识是否对应有允许开播的开播权限。若所述主播客户端有开播权限,服务器在开播状态数据库中记录所述主播标识为开播状态。所述开播状态用于实时标识直播间的状态,例如直播间为直播中。In the embodiment of the present application, when the host starts the live broadcast, the host initiates a broadcast start request to the server through the host client, and the host broadcast request includes the host identifier. The server can verify whether the host client has the right to start broadcasting according to the host identifier. Specifically, the data of each host user is recorded in the database of the server, including information such as the host ID and the broadcasting authority. By querying the database, it can be determined whether the host ID corresponds to the broadcasting authority that allows broadcasting. If the host client has the right to start broadcasting, the server records the host identifier as the broadcasting state in the broadcasting state database. The broadcast start state is used to identify the state of the live broadcast room in real time, for example, the live broadcast room is in live broadcast.

服务器通过判断所述开播状态数据库中是否存在所述主播客户端端的开播状态,来对所述主播视频流进行鉴权。具体地,服务器获取所述主播视频流对应的主播标识,根据所述主播标识在开播状态数据库中查询所述主播标识是否为开播状态,若是,确定所述主播视频流鉴权通过,所述主播视频流具备推流权限。通过对具有开播权限的主播客户端允许视频流推流,提高视频推流的安全性。The server authenticates the host video stream by judging whether the broadcast status of the host client terminal exists in the broadcast status database. Specifically, the server obtains the anchor ID corresponding to the anchor video stream, and according to the anchor ID, inquires in the launch status database whether the anchor ID is in the launch state. The video stream has the push permission. The security of video streaming is improved by allowing video streaming to be pushed to the host client with the broadcast permission.

在一个可选的实施例中,请参阅图3,所述步骤S20包括步骤S21~S22,具体如下:In an optional embodiment, please refer to FIG. 3 , the step S20 includes steps S21-S22, which are as follows:

S21:获取所述主播视频流对应的主播标识;S21: Obtain the anchor identifier corresponding to the anchor video stream;

S22:根据所述主播标识查找与所述主播标识对应的历史开播次数,若所述历史开播次数大于预设次数,确定所述主播视频流鉴权通过。S22: Search for the historical broadcast times corresponding to the anchor identifier according to the anchor identifier, and if the historical broadcast times are greater than a preset number, determine that the anchor video stream authentication has passed.

在本申请实施例中,服务器根据所述主播标识查找与所述主播标识对应的历史开播次数,例如,若历史开播次数大于100次,可以确定所述主播客户端开播频繁,为直播平台稳定用户,直接鉴权通过,提高鉴权效率。In the embodiment of the present application, the server searches for the historical broadcast times corresponding to the anchor identifier according to the anchor identifier. For example, if the historical broadcast times are greater than 100, it can be determined that the anchor client has frequent broadcasts, which is a stable user of the live broadcast platform. , the authentication is passed directly, and the authentication efficiency is improved.

在一个可选的实施例中,请参阅图4,所述步骤S20包括步骤S23~S24,具体如下:In an optional embodiment, please refer to FIG. 4 , the step S20 includes steps S23-S24, which are as follows:

S23:获取所述主播视频流对应的主播标识;S23: Obtain the anchor identifier corresponding to the anchor video stream;

S24:根据所述主播标识查找与所述主播标识对应的历史开播时长,若所述历史开播时长大于预设时长,确定所述主播视频流鉴权通过。S24: Search for the historical broadcast duration corresponding to the host identifier according to the host identifier, and if the historical broadcast duration is greater than a preset duration, determine that the host video stream authentication has passed.

在本申请实施例中,服务器根据所述主播标识查找与所述主播标识对应的历史开播时长,例如,若历史开播时长大于300小时,可以确定所述主播客户端在直播平台的在线开播时间长,为直播平台稳定用户,直接鉴权通过,提高鉴权效率。In the embodiment of the present application, the server searches for the historical broadcast duration corresponding to the host identification according to the host identification. For example, if the historical broadcast duration is greater than 300 hours, it can be determined that the online broadcast time of the host client on the live broadcast platform is long. , to stabilize the users of the live broadcast platform, and pass the direct authentication to improve the authentication efficiency.

在一个可选的实施例中,请参阅图5,所述步骤S40包括步骤S41~S43,具体如下:In an optional embodiment, please refer to FIG. 5 , the step S40 includes steps S41 to S43, which are as follows:

S41:每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,查询当前时间戳是否获取到主播视频流,获得查询结果;S41: Access the authentication time stamp in the live broadcast list every second preset time, and if the difference between the time stamp at the time of access and the authentication time stamp is greater than a preset threshold, query whether the current time stamp is obtained Anchor video stream, get query results;

S42:若所述查询结果为获取到主播视频流,将查询时的当前时间戳替换直播列表中所述频道号对应的鉴权时间戳;S42: if the query result is that the host video stream is obtained, replace the current timestamp during the query with the authentication timestamp corresponding to the channel number in the live broadcast list;

S43:若访问时的时间戳与替换后的所述鉴权时间戳之差大于预设阈值,从所述直播列表中删除所述频道号。S43: If the difference between the time stamp at the time of access and the replaced authentication time stamp is greater than a preset threshold, delete the channel number from the live broadcast list.

在本申请实施例中,对于鉴权时间戳超时不更新的情况,服务器查询当前时间戳是否获取到主播视频流,若查询结果为未获取的主播视频流,从所述直播列表中删除所述频道号。若查询结果为获取到主播视频流,将查询时的当前时间戳替换直播列表中所述频道号对应的鉴权时间戳,从而避免服务器处于异常状态时,对在当前时间戳之前获取的主播视频流不进行鉴权,引起直播列表中频道号的误删。In this embodiment of the present application, in the case where the authentication timestamp is not updated over time, the server queries whether the current timestamp has acquired the anchor video stream, and if the query result is an unacquired anchor video stream, deletes the anchor video stream from the live broadcast list. channel number. If the query result is that the host video stream is obtained, the current timestamp at the time of the query will replace the authentication timestamp corresponding to the channel number in the live broadcast list, so as to avoid the host video obtained before the current timestamp when the server is in an abnormal state. The stream is not authenticated, causing the channel number in the live broadcast list to be deleted by mistake.

在一个可选的实施例中,请参阅图6,所述步骤S40包括步骤S44~S45,具体如下:In an optional embodiment, referring to FIG. 6 , the step S40 includes steps S44 to S45, which are as follows:

S44:每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,统计所述直播列表中满足访问时的时间戳与对应的鉴权时间戳之差大于预设阈值的频道号的数量;S44: Access the authentication time stamp in the live broadcast list every second preset time, and if the difference between the time stamp at the time of access and the authentication time stamp is greater than a preset threshold, count the number of items in the live broadcast list that satisfy the The number of channel numbers for which the difference between the time stamp during access and the corresponding authentication time stamp is greater than the preset threshold;

S45:若所述频道号的数量满足预设条件,从所述直播列表中删除所述频道号。S45: If the number of the channel numbers satisfies a preset condition, delete the channel number from the live broadcast list.

在本申请实施例中,统计直播列表中鉴权时间戳超时更新的频道号的数量,判断频道号的数量是否满足预设条件,例如,所述预设条件可以是频道号的数量大于某个数值,或者小于某个数值,若满足预设条件,从所述直播列表中删除所述频道号,从而自动快捷地删除直播列表的频道号。In this embodiment of the present application, count the number of channel numbers whose authentication timestamps are updated over time in the live broadcast list, and determine whether the number of channel numbers satisfies a preset condition. For example, the preset condition may be that the number of channel numbers is greater than a certain value, or less than a certain value, if a preset condition is met, the channel number is deleted from the live broadcast list, thereby automatically and quickly deleting the channel number of the live broadcast list.

在一个可选的实施例中,所述步骤S45包括步骤S451,具体如下:In an optional embodiment, the step S45 includes step S451, which is specifically as follows:

S451:若所述频道号的数量小于预设数量阈值,从所述直播列表中删除所述频道号。S451: If the number of the channel numbers is less than a preset number threshold, delete the channel number from the live broadcast list.

在本申请实施例中,统计直播列表中鉴权时间戳超时更新的频道号的数量,若所述频道号的数量小于预设数量阈值,例如,所述频道号的数量小于20个,从所述直播列表中删除所有鉴权时间戳超时更新的频道号。若所述鉴权时间戳超时更新的频道号的数量大于20,服务器不对直播列表进行频道号删除,从而避免直播列表删除大量频道号,导致观众留存率低。In this embodiment of the present application, count the number of channel numbers whose authentication timestamps are updated over time in the live broadcast list. If the number of channel numbers is less than a preset number threshold, for example, the number of channel numbers is less than 20, the number of Delete all channel numbers whose authentication timestamps are updated over time from the live broadcast list. If the number of channel numbers updated by the authentication timestamp overtime is greater than 20, the server does not delete the channel numbers from the live broadcast list, thereby preventing a large number of channel numbers from being deleted from the live broadcast list, resulting in a low audience retention rate.

在一个可选的实施例中,请参阅图7,所述步骤S40包括步骤S46~S48,具体如下:In an optional embodiment, referring to FIG. 7 , the step S40 includes steps S46 to S48, which are as follows:

S46:每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,统计所述直播列表中满足访问时的时间戳与对应的鉴权时间戳之差大于预设阈值的频道号的数量;S46: Access the authentication time stamp in the live broadcast list every second preset time, if the difference between the time stamp at the time of access and the authentication time stamp is greater than a preset threshold, count the number of items in the live broadcast list that satisfy The number of channel numbers for which the difference between the time stamp during access and the corresponding authentication time stamp is greater than the preset threshold;

S47:获取所述直播列表存储的频道号总数;S47: Obtain the total number of channel numbers stored in the live broadcast list;

S48:若所述频道号的数量与所述频道号总数的比值小于预设比例阈值,从所述直播列表中删除所述频道号。S48: If the ratio of the number of the channel numbers to the total number of the channel numbers is less than a preset ratio threshold, delete the channel number from the live broadcast list.

在本申请实施例中,统计直播列表中鉴权时间戳超时更新的频道号的数量,若所述频道号的数量与直播列表中频道号总数的比值小于预设比例阈值,从所述直播列表中删除所有鉴权时间戳超时更新的频道号。若所述频道号的数量与直播列表中频道号总数的比值大于预设比例阈值,即出现大量主播异常退出直播间的情况,服务器不对直播列表进行频道号删除,从而避免直播列表删除大量频道号,导致观众留存率低。In this embodiment of the present application, the number of channel numbers whose authentication timestamps are updated over time in the live broadcast list are counted. If the ratio of the number of channel numbers to the total number of channel numbers in the live broadcast list is less than a preset ratio threshold, the number of channel numbers in the live broadcast list Delete all channel numbers whose authentication timestamps are updated over time. If the ratio of the number of channel numbers to the total number of channel numbers in the live broadcast list is greater than the preset ratio threshold, that is, a large number of anchors exit the live broadcast room abnormally, and the server does not delete the channel number from the live broadcast list, thereby avoiding the deletion of a large number of channel numbers from the live broadcast list. , resulting in a low audience retention rate.

请参阅图8,图8为本申请提供的一种基于流鉴权的直播列表处理装置的结构示意图。本申请实施例提供的基于流鉴权的直播列表处理装置5,包括:Please refer to FIG. 8 , which is a schematic structural diagram of a stream authentication-based live broadcast list processing apparatus provided by the present application. The apparatus 5 for processing a live broadcast list based on stream authentication provided by the embodiment of the present application includes:

视频流获取模块51,用于获取主播客户端发送的主播视频流以及对应的频道号;The video stream acquisition module 51 is used to acquire the anchor video stream sent by the anchor client and the corresponding channel number;

鉴权结果获得模块52,用于每隔第一预设时间对所述主播视频流进行鉴权,获得鉴权结果;The authentication result obtaining module 52 is used to authenticate the anchor video stream every first preset time to obtain the authentication result;

时间戳更新模块53,用于若所述鉴权结果为鉴权通过,获取鉴权时间戳,更新直播列表中所述频道号对应的鉴权时间戳;A timestamp updating module 53, configured to obtain an authentication timestamp if the authentication result is that the authentication passed, and update the authentication timestamp corresponding to the channel number in the live broadcast list;

频道号删除模块54,用于每隔第二预设时间访问所述直播列表中的所述鉴权时间戳,若访问时的时间戳与所述鉴权时间戳之差大于预设阈值,从所述直播列表中删除所述频道号。The channel number deletion module 54 is configured to access the authentication time stamp in the live broadcast list every second preset time, if the difference between the time stamp at the time of access and the authentication time stamp is greater than a preset threshold, from The channel number is deleted from the live broadcast list.

需要说明的是,上述实施例提供的基于流鉴权的直播列表处理装置在执行基于流鉴权的直播列表处理方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分为不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的基于流鉴权的直播列表处理装置与基于流鉴权的直播列表处理方法属于同一构思,其体现实现过程详见方法实施例,这里不再赘述。It should be noted that, when the apparatus for processing a live broadcast list based on stream authentication provided by the above embodiment executes the method for processing a live broadcast list based on stream authentication, only the division of the above-mentioned functional modules is used as an example. If necessary, the above-mentioned function distribution is completed by different function modules, that is, the internal structure of the device is divided into different function modules, so as to complete all or part of the functions described above. In addition, the apparatus for processing a live broadcast list based on stream authentication provided by the above embodiments and the method for processing a live broadcast list based on stream authentication belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

请参阅图9,为本申请提供的计算机设备的结构示意图。如图9所示,该计算机设备21可以包括:处理器210、存储器211以及存储在该存储器211并可以在该处理器210上运行的计算机程序212,例如:基于流鉴权的直播列表处理程序;该处理器210执行该计算机程序212时实现上述实施例中的步骤。Please refer to FIG. 9 , which is a schematic structural diagram of a computer device provided in this application. As shown in FIG. 9 , the computer device 21 may include: a processor 210, a memory 211, and a computer program 212 stored in the memory 211 and executable on the processor 210, such as a stream authentication-based live broadcast list processing program ; When the processor 210 executes the computer program 212, the steps in the above embodiments are implemented.

其中,该处理器210可以包括一个或多个处理核心。处理器210利用各种接口和线路连接计算机设备21内的各个部分,通过运行或执行存储在存储器211内的指令、程序、代码集或指令集,以及调用存储器211内的数据,执行计算机设备21的各种功能和处理数据,可选的,处理器210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programble LogicArray,PLA)中的至少一个硬件形式来实现。处理器210可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器210中,单独通过一块芯片进行实现。Wherein, the processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts in the computer device 21, and executes the computer device 21 by running or executing the instructions, programs, code sets or instruction sets stored in the memory 211, and calling the data in the memory 211. various functions and process data, optionally, the processor 210 can use digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), Programmable Logic Array (Programble LogicArray) , PLA) in at least one hardware form. The processor 210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the touch screen; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 210, but is implemented by a single chip.

其中,存储器211可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器211包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器211可用于存储指令、程序、代码、代码集或指令集。存储器211可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控指令等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器211可选的还可以是至少一个位于远离前述处理器210的存储装置。The memory 211 may include a random access memory (Random Access Memory, RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 211 includes a non-transitory computer-readable storage medium. Memory 211 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 211 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing the operating system, instructions for at least one function (such as touch control instructions, etc.), and for implementing the above method embodiments. The storage data area can store the data involved in the above method embodiments, etc. Optionally, the memory 211 may also be at least one storage device located away from the aforementioned processor 210 .

本申请实施例还提供了一种计算机存储介质,该计算机存储介质可以存储有多条指令,该指令适用于由处理器加载并执行上述实施例的方法步骤,具体执行过程可以参见上述实施例的具体说明,在此不进行赘述。Embodiments of the present application further provide a computer storage medium, where multiple instructions can be stored in the computer storage medium, and the instructions are suitable for being loaded by a processor and executing the method steps of the foregoing embodiments. The specific description will not be repeated here.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components. May be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can be When executed by the processor, the steps of the foregoing method embodiments may be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate forms, and the like.

本发明并不局限于上述实施方式,如果对本发明的各种改动或变形不脱离本发明的精神和范围,倘若这些改动和变形属于本发明的权利要求和等同技术范围之内,则本发明也意图包含这些改动和变形。The present invention is not limited to the above-mentioned embodiments. If various changes or deformations of the present invention do not depart from the spirit and scope of the present invention, and if these changes and deformations belong to the claims of the present invention and the equivalent technical scope, then the present invention is also Intended to contain these alterations and variants.

Claims (11)

1. A live list processing method based on stream authentication is characterized by comprising the following steps:
acquiring a main broadcast video stream and a corresponding channel number sent by a main broadcast client;
authenticating the anchor video stream every a first preset time to obtain an authentication result;
if the authentication result is that the authentication is passed, acquiring an authentication timestamp, and updating the authentication timestamp corresponding to the channel number in the live broadcast list;
and accessing the authentication timestamp in the live broadcast list at intervals of second preset time, and deleting the channel number from the live broadcast list if the difference between the access timestamp and the authentication timestamp is greater than a preset threshold value.
2. The method of live list processing based on stream authentication as claimed in claim 1, wherein:
the step of accessing the authentication timestamp in the live broadcast list at a second preset time interval, and deleting the channel number from the live broadcast list if the difference between the access timestamp and the authentication timestamp is greater than a preset threshold value, includes:
accessing the authentication timestamp in the live broadcast list at intervals of second preset time, and inquiring whether the current timestamp obtains the anchor video stream or not to obtain an inquiry result if the difference between the access timestamp and the authentication timestamp is greater than a preset threshold value;
if the query result is that the anchor video stream is acquired, replacing the current timestamp during query with the authentication timestamp corresponding to the channel number in the live broadcast list;
and if the difference between the time stamp during access and the replaced authentication time stamp is larger than a preset threshold value, deleting the channel number from the live broadcast list.
3. The method of live list processing based on stream authentication as claimed in claim 1, wherein:
the step of accessing the authentication timestamp in the live broadcast list at a second preset time interval, and deleting the channel number from the live broadcast list if the difference between the access timestamp and the authentication timestamp is greater than a preset threshold value, includes:
accessing the authentication timestamps in the live broadcast list at intervals of second preset time, and counting the number of channel numbers in the live broadcast list, wherein the difference between the timestamp during the access and the authentication timestamp is larger than a preset threshold value, and the difference between the timestamp during the access and the corresponding authentication timestamp is larger than the preset threshold value;
and if the number of the channel numbers meets a preset condition, deleting the channel numbers from the live broadcast list.
4. The method of live list processing based on stream authentication as claimed in claim 3, wherein:
if the number of the channel numbers meets a preset condition, deleting the channel numbers from the live broadcast list, wherein the step comprises the following steps:
and if the number of the channel numbers is smaller than a preset number threshold, deleting the channel numbers from the live broadcast list.
5. The method of live list processing based on stream authentication as claimed in claim 3, wherein:
if the number of the channel numbers meets a preset condition, deleting the channel numbers from the live broadcast list, wherein the step comprises the following steps:
acquiring the total number of channel numbers stored in the live broadcast list;
and if the ratio of the number of the channel numbers to the total number of the channel numbers is smaller than a preset proportional threshold, deleting the channel numbers from the live broadcast list.
6. The method of live list processing based on stream authentication as claimed in claim 1, wherein:
before the step of obtaining the anchor video stream and the corresponding channel number sent by the anchor client, the method comprises the following steps:
receiving a broadcast request sent by the anchor client, and acquiring an anchor identifier according to the broadcast request;
checking whether the anchor client has a broadcasting authority according to the anchor identification, and if so, recording the anchor identification as a broadcasting state in a broadcasting state database;
the step of authenticating the anchor video stream every a first preset time to obtain an authentication result includes:
and acquiring a main broadcast identifier corresponding to the main broadcast video stream, and determining that the main broadcast video stream passes the authentication if the main broadcast identifier is inquired to be in a broadcasting state according to the main broadcast identifier.
7. The method of live list processing based on stream authentication as claimed in claim 1, wherein:
the step of authenticating the anchor video stream every a first preset time to obtain an authentication result includes:
acquiring a main broadcast identification corresponding to the main broadcast video stream;
and searching the historical playing times corresponding to the anchor identification according to the anchor identification, and determining that the anchor video stream passes the authentication if the historical playing times are greater than the preset times.
8. The method of live list processing based on stream authentication as claimed in claim 1, wherein:
the step of authenticating the anchor video stream every a first preset time to obtain an authentication result includes:
acquiring a main broadcast identification corresponding to the main broadcast video stream;
and searching the historical play duration corresponding to the anchor identifier according to the anchor identifier, and determining that the authentication of the anchor video stream is passed if the historical play duration is greater than a preset duration.
9. A live list processing apparatus based on stream authentication, comprising:
the video stream acquisition module is used for acquiring the anchor video stream and the corresponding channel number sent by the anchor client;
the authentication result obtaining module is used for authenticating the anchor video stream every other first preset time to obtain an authentication result;
the timestamp updating module is used for acquiring an authentication timestamp if the authentication result is that the authentication is passed, and updating the authentication timestamp corresponding to the channel number in the live broadcast list;
and the channel number deleting module is used for accessing the authentication timestamp in the live broadcast list at intervals of second preset time, and deleting the channel number from the live broadcast list if the difference between the accessed timestamp and the authentication timestamp is greater than a preset threshold value.
10. A computer device, comprising: processor, memory and computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 8 are implemented when the processor executes the computer program.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202210237927.1A 2022-03-10 2022-03-10 Method, device, device and storage medium for processing live broadcast list based on stream authentication Pending CN114630151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210237927.1A CN114630151A (en) 2022-03-10 2022-03-10 Method, device, device and storage medium for processing live broadcast list based on stream authentication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210237927.1A CN114630151A (en) 2022-03-10 2022-03-10 Method, device, device and storage medium for processing live broadcast list based on stream authentication

Publications (1)

Publication Number Publication Date
CN114630151A true CN114630151A (en) 2022-06-14

Family

ID=81902647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210237927.1A Pending CN114630151A (en) 2022-03-10 2022-03-10 Method, device, device and storage medium for processing live broadcast list based on stream authentication

Country Status (1)

Country Link
CN (1) CN114630151A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206398A1 (en) * 2016-05-31 2017-12-07 乐视控股(北京)有限公司 Method and device for video sharing
CN110996109A (en) * 2019-11-21 2020-04-10 北京达佳互联信息技术有限公司 Abnormal live broadcast room cleaning method and device, live broadcast server and storage medium
CN112040259A (en) * 2020-08-28 2020-12-04 广州华多网络科技有限公司 Method, server, system, storage medium and equipment for continuous playing
CN113596501A (en) * 2021-07-30 2021-11-02 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113965769A (en) * 2021-10-19 2022-01-21 创盛视联数码科技(北京)有限公司 Live broadcast system for online education

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206398A1 (en) * 2016-05-31 2017-12-07 乐视控股(北京)有限公司 Method and device for video sharing
CN110996109A (en) * 2019-11-21 2020-04-10 北京达佳互联信息技术有限公司 Abnormal live broadcast room cleaning method and device, live broadcast server and storage medium
CN112040259A (en) * 2020-08-28 2020-12-04 广州华多网络科技有限公司 Method, server, system, storage medium and equipment for continuous playing
CN113596501A (en) * 2021-07-30 2021-11-02 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113965769A (en) * 2021-10-19 2022-01-21 创盛视联数码科技(北京)有限公司 Live broadcast system for online education

Similar Documents

Publication Publication Date Title
CN108391179B (en) Live broadcast data processing method and device, server, terminal and storage medium
JP6179907B2 (en) Method and apparatus for monitoring media presentation
US8510644B2 (en) Optimization of web page content including video
US9681089B2 (en) Method for capturing content provided on TV screen and connecting contents with social service by using second device, and system therefor
US12120386B2 (en) Dynamic content ratings
WO2017088621A1 (en) Method for realizing network broadcast and server
US20130173765A1 (en) Systems and methods for assigning roles between user devices
US20130174191A1 (en) Systems and methods for incentivizing user interaction with promotional content on a secondary device
US20120210351A1 (en) Presentation of customized digital media programming
US11825148B2 (en) Expiring synchronized supplemental content in time-shifted media
US10116976B2 (en) System and method for distributing media content associated with an event
US11386152B1 (en) Automatic generation of highlight clips for events
RU2603629C2 (en) Terminal device, server device, information processing method, program and system for providing related applications
US11388561B2 (en) Providing a summary of media content to a communication device
WO2018205833A1 (en) Method and apparatus for transmitting music file information, storage medium, and electronic apparatus
CN104918061A (en) Television channel identification method and system
WO2017152557A1 (en) Service object placing method and device, and server
CN114630151A (en) Method, device, device and storage medium for processing live broadcast list based on stream authentication
CN112235592B (en) Live broadcast method, live broadcast processing method, device and computer equipment
CN113301374A (en) Live broadcast audio and video processing method and device, client and server
US12244658B2 (en) Method and system for monitoring streaming
WO2017197817A1 (en) Data processing method and apparatus, electronic device and server
US20250056096A1 (en) Systems and methods for scheduling a communication session based on media asset communication data
HK40054097A (en) Data processing method and device

Legal Events

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220614

RJ01 Rejection of invention patent application after publication