CN114630151A - Live list processing method, device and equipment based on stream authentication and storage medium - Google Patents
Live list processing method, device and equipment based on stream authentication and storage medium Download PDFInfo
- 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
- timestamp
- anchor
- live broadcast
- live
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 claims abstract description 36
- 238000012545 processing Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 11
- 238000001914 filtration Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 230000003993 interaction Effects 0.000 description 6
- 230000002452 interceptive effect Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000014759 maintenance of location Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/254—Management at additional data server, e.g. shopping server, rights management server
- H04N21/2541—Rights Management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/262—Content 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/26258—Content 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content 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
Technical Field
The embodiment of the application relates to the technical field of network live broadcast, in particular to a live broadcast list processing method and device based on stream authentication, computer equipment and a storage medium.
Background
With the rapid development of internet technology and streaming media technology, live webcast gradually becomes an entertainment means which is gradually popularized, and more users start to enter a live webcast room to participate in experiencing live webcast. The user can download and install live broadcast application at the terminal equipment, a live broadcast list is displayed in application scenes such as a home page or a content Tab page or a stroke of the live broadcast application, different types of live broadcasts are displayed on the live broadcast list for the user to select, and the live broadcasts comprise different live broadcast categories and live broadcasts under each live broadcast category. After the user selects a certain live broadcast category, a display interface of the live broadcast application displays covers and titles of all live broadcasts under the live broadcast category selected by the user in an arrangement mode so that the user can select the certain live broadcast to watch.
However, during the broadcasting process of the anchor, the anchor directly exits the live APP due to sudden network interruption. The live state of the anchor is maintained for about 1 to 2 minutes, so that the anchor reopens the live APP to continue the live. However, in the period that the anchor exits the live APP abnormally, the video stream of the anchor is not uploaded to the live server, and at this time, the live list in the application scene such as the live application home page or the content Tab page or scratch still displays the live room of the anchor, so that the user can see a black screen when clicking to enter the live room of the anchor, and the live watching experience of the user is influenced.
Disclosure of Invention
The embodiment of the application provides a live list processing method and device based on stream authentication, computer equipment and a storage medium, which can prevent a user from entering a black-screen live room and improve the experience of watching live broadcast of the user, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a live list processing method based on stream authentication, including the steps of:
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.
In a second aspect, an embodiment of the present application provides a live list processing apparatus based on stream authentication, including:
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 time stamp updating module is used for acquiring an authentication time stamp and updating the authentication time stamp corresponding to the channel number in the live broadcast list if the authentication result is that the authentication is passed;
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.
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, where the processor implements the steps of the method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of the method according to the first aspect.
According to the method and the device, the anchor video stream and the corresponding channel number sent by the anchor client are obtained; 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.
For a better understanding and implementation, the technical solutions of the present application are described in detail below with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic view of an application scenario of a live list processing method based on stream authentication according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a live list processing method based on stream authentication according to an embodiment of the present application;
fig. 3 is a schematic flowchart of S21-S22 in the live list processing method based on stream authentication according to the embodiment of the present application;
fig. 4 is a schematic flowchart of S23-S24 in the live list processing method based on stream authentication according to the embodiment of the present application;
fig. 5 is a schematic flowchart of S41-S43 in the live list processing method based on stream authentication according to the embodiment of the present application;
fig. 6 is a schematic flowchart of S44-S45 in the live list processing method based on stream authentication according to the embodiment of the present application;
fig. 7 is a schematic flowchart of S46-S48 in the live list processing method based on stream authentication according to the embodiment of the present application;
fig. 8 is a schematic structural diagram of a live list processing apparatus based on stream authentication according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if/if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a method for playing a small video in a live broadcast room according to an embodiment of the present application, where the application scenario includes an anchor client 101, a server 102, and a viewer client 103, and the anchor client 101 and the viewer client 103 interact with each other through the server 102.
The proposed clients of the embodiment of the present application include the anchor client 101 and the viewer client 103.
It is noted that there are many understandings of the concept of "client" in the prior art, such as: it may be understood as an application program installed in a computer device, or may be understood as a hardware device corresponding to a server.
In the embodiments of the present application, the term "client" refers to a hardware device corresponding to a server, and more specifically, refers to a computer device, such as: smart phones, smart interactive tablets, personal computers, and the like.
When the client is a mobile device such as a smart phone and an intelligent interactive tablet, a user can install a matched mobile application program on the client and can also access a Web application program on the client.
When the client is a non-mobile device such as a Personal Computer (PC), the user can install a matching PC application on the client, and similarly can access a Web application on the client.
The mobile application refers to an application program that can be installed in the mobile device, the PC application refers to an application program that can be installed in the non-mobile device, and the Web application refers to an application program that needs to be accessed through a browser.
Specifically, the Web application program may be divided into a mobile version and a PC version according to the difference of the client types, and the page layout modes and the available server support of the two versions may be different.
In the embodiment of the application, the types of live application programs provided to the user are divided into a mobile end live application program, a PC end live application program and a Web end live application program. The user can autonomously select the mode of participating in the live webcast according to different types of the client adopted by the user.
The present application can divide the clients into a main broadcasting client 101 and a spectator client 103, depending on the identity of the user using the clients. It should be noted that the viewer client 103 and the anchor client 101 are only divided according to the user identity, and in practical applications, the functions of the viewer client 103 and the anchor client 101 may be executed by the same client at different times. Therefore, the same client can be used as the viewer client 103 when watching the network live broadcast, and can be used as the anchor client 101 when publishing the live video.
The anchor client 101 is a client that transmits a live video, and is generally a client used by an anchor (i.e., a live anchor user) in live streaming.
The viewer client 103 refers to an end that receives and views a live video, and is typically a client employed by a viewer viewing a video in a live network (i.e., a live viewer user).
The hardware at which the anchor client 101 and viewer client 103 are directed is essentially a computer device, and in particular, as shown in fig. 1, it may be a type of computer device such as a smart phone, smart interactive tablet, and personal computer. Both the anchor client 101 and the viewer client 103 may access the internet via known network access means to establish a data communication link with the server 102.
In the embodiment of the present application, the anchor client 101 and the audience client 103 may join in the same live broadcast room (i.e., a live broadcast channel), where the live broadcast room is a chat room implemented by means of an internet technology, and generally has an audio/video broadcast control function. The anchor user is live in the live room through the anchor client 101, and the audience of the audience client 103 can log in the server 102 to enter the live room to watch the live.
In the live broadcast room, interaction between the anchor and the audience can be realized through known online interaction modes such as voice, video, characters and the like, generally, the anchor user performs programs for the audience in the form of audio and video streams, and economic transaction behaviors can also be generated in the interaction process. Of course, the application form of the live broadcast room is not limited to online entertainment, and can also be popularized to other relevant scenes, such as: user pairing interaction scenarios, video conference scenarios, product recommendation sale scenarios, and any other scenario requiring similar interaction.
Specifically, the viewer watches live broadcast as follows: the viewer can click to access a live application (such as YY) installed on the viewer client 103, and choose to enter any live room, trigger the viewer client 103 to load a live room interface for the viewer, wherein the live room interface comprises a plurality of interactive components, and the viewer can watch live in the live room by loading the interactive components and perform various online interactions.
The live list includes a plurality of pieces of live information, and each piece of live information may correspond to one anchor currently being played. The live broadcast information may include various information such as a main broadcast identifier, a channel number of a live broadcast room, a cover and title of the live broadcast room, and a start play time of the live broadcast room. In the live broadcast application, there are many service scenarios that require the server to provide the live broadcast list, for example, when a live broadcast list needs to be displayed in a service scenario such as a home page of the live broadcast application, a content Tab page, or a scratch, the live broadcast list is obtained from the server.
However, during the broadcasting process of the anchor, the anchor directly exits the live APP due to sudden network interruption. The live state of the anchor is maintained for about 1 to 2 minutes, so that the anchor reopens the live APP to continue the live. However, in the period that the anchor exits the live APP abnormally, the video stream of the anchor is not uploaded to the live server, and at this time, the live list in the application scene such as the live application home page or the content Tab page or scratch still displays the live room of the anchor, so that the user can see a black screen when clicking to enter the live room of the anchor, and the live watching experience of the user is influenced.
Therefore, the embodiment of the application provides a live list processing method based on stream authentication, and a server is used as an execution main body.
Referring to fig. 2, fig. 2 is a schematic flowchart of a live list processing method based on stream authentication according to a first embodiment of the present application, where the method includes the following steps:
s10: and acquiring the anchor video stream and the corresponding channel number sent by the anchor client.
In the embodiment of the application, when the anchor starts the live broadcast, a live broadcast room is created at an anchor client, and the anchor client sends an anchor video stream generated by the live broadcast room and a channel number of the live broadcast room to a server.
S20: and authenticating the anchor video stream every a first preset time to obtain an authentication result.
In the embodiment of the application, the server authenticates the anchor video stream every 3s to obtain an authentication result. And if the authentication result is that the authentication is passed, the anchor video stream has a stream pushing authority, the server issues the anchor video stream to the audience client through the Content Delivery Network (CDN), and the audience can see a live broadcast picture of the anchor. And if the authentication result is that the authentication is not passed, the anchor video stream does not have the stream pushing authority, and the server does not transmit the anchor video stream.
S30: and 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.
In this embodiment, the authentication timestamp is a time when the server authenticates the anchor video stream, and if the anchor video stream passes the authentication, the server obtains the authentication timestamp. Since the server authenticates the anchor video stream every first preset time, the authentication timestamp acquired by the server is changed. And updating the authentication timestamp corresponding to the channel number in the live broadcast list according to the acquired authentication timestamp, namely replacing the authentication timestamp acquired when the last authentication is passed by the authentication timestamp acquired at the current time.
S40: 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 timestamp during access and the authentication timestamp is greater than a preset threshold value.
In this embodiment of the present application, the server accesses the authentication timestamp in the live broadcast list every 3s, for example, the timestamp during access is 9s, the authentication timestamp in the live broadcast list is 2s, and a difference between the timestamp during access and the authentication timestamp is greater than a preset threshold value of 5s, which indicates that the authentication timestamp of the anchor video stream is not updated within a long period of time, that is, the anchor client does not generate the anchor video stream, and deletes the channel number corresponding to the anchor client from the live broadcast list.
According to the method and the device, the anchor video stream and the corresponding channel number sent by the anchor client are obtained; 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.
In an optional embodiment, before the step of obtaining the anchor video stream and the corresponding channel number sent by the anchor client, the method includes:
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.
In the embodiment of the application, when the anchor starts the live broadcast, the anchor client initiates an anchor broadcasting request to the server, wherein the anchor broadcasting request comprises an anchor identifier. The server can check whether the anchor client has the broadcasting authority or not according to the anchor identification. Specifically, the database of the server records data of each anchor user, including information such as an anchor identifier and a broadcast authority, and whether the anchor identifier corresponds to a broadcast authority that allows broadcast can be determined by querying the database. And if the anchor client has the broadcasting authority, the server records the anchor identifier as the broadcasting state in a broadcasting state database. The playing state is used for identifying the state of the live broadcast room in real time, for example, the live broadcast room is in live broadcast.
And the server authenticates the anchor video stream by judging whether the broadcast state of the anchor client exists in the broadcast state database or not. Specifically, the server obtains a main broadcast identifier corresponding to the main broadcast video stream, queries whether the main broadcast identifier is in a broadcast state database according to the main broadcast identifier, and if so, determines that the main broadcast video stream passes authentication, and the main broadcast video stream has a stream pushing authority. The video stream pushing is allowed to the anchor client side with the broadcasting permission, and the safety of the video stream pushing is improved.
In an alternative embodiment, referring to fig. 3, the step S20 includes steps S21 to S22, which are as follows:
s21: acquiring an anchor identifier corresponding to the anchor video stream;
s22: 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.
In the embodiment of the application, the server searches for the historical broadcasting times corresponding to the anchor identifier according to the anchor identifier, for example, if the historical broadcasting times are greater than 100 times, it can be determined that the anchor client is frequently broadcasted, and the anchor client is a stable user of the live platform and passes direct authentication, so that the authentication efficiency is improved.
In an alternative embodiment, referring to fig. 4, the step S20 includes steps S23 to S24, which are as follows:
s23: acquiring a main broadcast identification corresponding to the main broadcast video stream;
s24: and searching the historical playing time length corresponding to the anchor identification according to the anchor identification, and determining that the anchor video stream passes the authentication if the historical playing time length is greater than a preset time length.
In the embodiment of the application, the server searches for the historical playing time corresponding to the anchor identifier according to the anchor identifier, for example, if the historical playing time is longer than 300 hours, it can be determined that the online playing time of the anchor client on the live platform is long, and the online playing time is directly authenticated for a stable user of the live platform, so that the authentication efficiency is improved.
In an alternative embodiment, referring to fig. 5, the step S40 includes steps S41 to S43, which are as follows:
s41: 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;
s42: 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;
s43: and if the difference between the time stamp during the access and the replaced authentication time stamp is larger than a preset threshold value, deleting the channel number from the live broadcast list.
In the embodiment of the application, for the case that the authentication timestamp is not updated after being overtime, the server queries whether the current timestamp acquires the anchor video stream, and deletes the channel number from the live broadcast list if the query result is the anchor video stream which is not acquired. And 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, so that the phenomenon that the channel number in the live broadcast list is deleted by mistake due to the fact that the anchor video stream acquired before the current timestamp is not authenticated when the server is in an abnormal state is avoided.
In an alternative embodiment, referring to fig. 6, the step S40 includes steps S44 to S45, which are as follows:
s44: 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;
s45: and if the number of the channel numbers meets a preset condition, deleting the channel numbers from the live broadcast list.
In the embodiment of the application, the number of the channel numbers updated when the authentication timestamp is overtime in the live broadcast list is counted, and whether the number of the channel numbers meets a preset condition is judged, for example, the preset condition can be that the number of the channel numbers is larger than a certain numerical value or smaller than a certain numerical value, if the preset condition is met, the channel numbers are deleted from the live broadcast list, so that the channel numbers of the live broadcast list are automatically and quickly deleted.
In an alternative embodiment, the step S45 includes a step S451, which is as follows:
s451: and if the number of the channel numbers is smaller than a preset number threshold, deleting the channel numbers from the live broadcast list.
In the embodiment of the present application, the number of channel numbers updated when the authentication timestamps are overtime in the live broadcast list is counted, and if the number of channel numbers is smaller than a preset number threshold, for example, the number of channel numbers is smaller than 20, all channel numbers updated when the authentication timestamps are overtime are deleted from the live broadcast list. If the number of the channel numbers updated by the overtime authentication timestamp is larger than 20, the server does not delete the channel numbers of the live broadcast list, so that the condition that the live broadcast list deletes a large number of channel numbers and the retention rate of audiences is low is avoided.
In an alternative embodiment, referring to fig. 7, the step S40 includes steps S46 to S48, which are as follows:
s46: 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;
s47: acquiring the total number of channel numbers stored in the live broadcast list;
s48: 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.
In the embodiment of the application, the number of the channel numbers updated by the overtime authentication timestamps in the live broadcast list is counted, and if the ratio of the number of the channel numbers to the total number of the channel numbers in the live broadcast list is smaller than a preset proportional threshold, all the channel numbers updated by the overtime authentication timestamps are deleted from the live broadcast list. If the ratio of the number of the channel numbers to the total number of the channel numbers in the live broadcast list is greater than a preset ratio threshold, a large number of the anchor broadcasts exit the live broadcast room abnormally, and the server does not delete the channel numbers of the live broadcast list, so that the condition that the live broadcast list deletes a large number of the channel numbers is avoided, and the retention rate of audiences is low.
Please refer to fig. 8, fig. 8 is a schematic structural diagram of a live list processing apparatus based on stream authentication according to the present application. The live list processing apparatus 5 based on stream authentication provided in the embodiment of the present application includes:
a video stream obtaining module 51, configured to obtain an anchor video stream and a corresponding channel number sent by an anchor client;
an authentication result obtaining module 52, configured to authenticate the anchor video stream every other first preset time to obtain an authentication result;
a timestamp updating module 53, configured to obtain an authentication timestamp if the authentication result is that authentication is passed, and update the authentication timestamp corresponding to the channel number in the live broadcast list;
and the channel number deleting module 54 is configured to access the authentication timestamp in the live broadcast list every second preset time, and delete the channel number from the live broadcast list if a difference between the access timestamp and the authentication timestamp is greater than a preset threshold.
It should be noted that, when the live list processing apparatus based on stream authentication provided in the foregoing embodiment executes the live list processing method based on stream authentication, the above-mentioned division of each functional module is merely used as an example, and in practical applications, the above-mentioned function allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above-mentioned functions. In addition, the live list processing device based on stream authentication and the live list processing method based on stream authentication provided by the above embodiments belong to the same concept, and the details of the implementation process are shown in the method embodiments and are not described herein again.
Please refer to fig. 9, which is a schematic structural diagram of a computer device according to the present 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 operable on the processor 210, such as: a live list processing program based on stream authentication; the steps in the above embodiments are implemented when the processor 210 executes the computer program 212.
The processor 210 may include one or more processing cores, among other things. The processor 210 is connected to various parts in the computer device 21 by various interfaces and lines, executes various functions of the computer device 21 and processes data by executing or executing instructions, programs, code sets or instruction sets stored in the memory 211 and calling data in the memory 211, and optionally, the processor 210 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable Logic Array (PLA). The processor 210 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing contents required to be displayed by the touch display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 210, but may be implemented by a single chip.
The Memory 211 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 211 includes a non-transitory computer-readable medium. The memory 211 may be used to store instructions, programs, code sets, or instruction sets. The memory 211 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned method embodiments, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 211 may optionally be at least one memory device located remotely from the processor 210.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps of the foregoing embodiment, and a specific execution process may refer to specific descriptions of the foregoing embodiment, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. For the specific working processes of the units and modules in the system, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc.
The present invention is not limited to the above-described embodiments, and various modifications and variations of the present invention are intended to be included within the scope of the claims and the equivalent technology of the present invention if they do not depart from the spirit and scope of the present invention.
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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210237927.1A CN114630151A (en) | 2022-03-10 | 2022-03-10 | Live list processing method, device and equipment based on stream authentication and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210237927.1A CN114630151A (en) | 2022-03-10 | 2022-03-10 | Live list processing method, device and equipment based on stream authentication and storage medium |
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 | Live list processing method, device and equipment based on stream authentication and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114630151A (en) |
Citations (5)
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 |
-
2022
- 2022-03-10 CN CN202210237927.1A patent/CN114630151A/en active Pending
Patent Citations (5)
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 |
---|---|---|
CN108184144B (en) | Live broadcast method and device, storage medium and electronic equipment | |
US7706740B2 (en) | Apparatus and methods of selective collection and selective presentation of content | |
US8515336B2 (en) | Apparatus and methods of selective collection and selective presentation of content | |
US9769414B2 (en) | Automatic media asset update over an online social network | |
US9681089B2 (en) | Method for capturing content provided on TV screen and connecting contents with social service by using second device, and system therefor | |
US9955204B2 (en) | System and method for distributing content through a set-top box | |
WO2007082190A2 (en) | Apparatus and methods of selective collection and selective presentation of content | |
WO2013184875A2 (en) | Systems and methods for compiling media information based on privacy and reliability metrics | |
CN104918061A (en) | Television channel identification method and system | |
US10413825B2 (en) | Software-application initiation | |
US20170111667A1 (en) | System and method for distributing media content associated with an event | |
US8840474B1 (en) | System and method for distributing games related to TV programs | |
CN104185040A (en) | Application synchronization method, application server and terminal | |
CN113613027A (en) | Live broadcast room recommendation method and device and computer equipment | |
US8528033B2 (en) | Method and system for providing subscription data | |
CN114650440B (en) | Virtual prop sharing method and device for live broadcasting room, computer equipment and medium | |
CN113613029B (en) | Live broadcast picture display method and device, storage medium and electronic equipment | |
CN114630151A (en) | Live list processing method, device and equipment based on stream authentication and storage medium | |
CN112235592B (en) | Live broadcast method, live broadcast processing method, device and computer equipment | |
CN114885191A (en) | Interaction method, system, device and equipment based on exclusive nickname of live broadcast room | |
CN111629236B (en) | Friend relationship establishing method, device, equipment and computer readable storage medium | |
JP7026900B2 (en) | Content distribution system and content distribution method | |
CN115086697B (en) | Live cover interaction method, system and device and electronic equipment | |
CN114694272B (en) | Activity batch sign-in method and device, computer equipment and storage medium | |
CN114245223B (en) | Live broadcasting room task loading method, system, device and computer equipment |
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 |