CN110798693A - User management method, server and computer readable storage medium - Google Patents

User management method, server and computer readable storage medium Download PDF

Info

Publication number
CN110798693A
CN110798693A CN201910935602.9A CN201910935602A CN110798693A CN 110798693 A CN110798693 A CN 110798693A CN 201910935602 A CN201910935602 A CN 201910935602A CN 110798693 A CN110798693 A CN 110798693A
Authority
CN
China
Prior art keywords
client
audience
server
chain
long
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.)
Granted
Application number
CN201910935602.9A
Other languages
Chinese (zh)
Other versions
CN110798693B (en
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.)
Shenzhen Mirror Play Technology Co Ltd
Original Assignee
Shenzhen Mirror Play 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 Shenzhen Mirror Play Technology Co Ltd filed Critical Shenzhen Mirror Play Technology Co Ltd
Priority to CN201910935602.9A priority Critical patent/CN110798693B/en
Publication of CN110798693A publication Critical patent/CN110798693A/en
Application granted granted Critical
Publication of CN110798693B publication Critical patent/CN110798693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication

Abstract

The embodiment of the application discloses a user management method, a server and a computer readable storage medium, wherein the method comprises the following steps: the server acquires the behavior of a spectator client in a live broadcast room; when the server detects that the behavior of the audience client side accords with a user management model, judging whether the network connection of the audience client side is abnormal or not; the user management model is a model generated according to malicious behaviors of a user; if yes, the server detects the audience client connected with the mobile phone through a long-chain heartbeat connection mechanism, and if the fact that the audience client and the anchor client are successfully connected with the mobile phone within a preset time interval is detected, the server interrupts the connection between the anchor client and the audience client. By implementing the method and the device, the efficiency of user management can be improved.

Description

User management method, server and computer readable storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a user management method, a server, and a computer-readable storage medium.
Background
With the development of computer technology and network technology, live webcast is widely popularized, and a user can log in an application program of live webcast through a registered account, enter an interested live webcast room, watch live webcast programs and interact with the live webcast. For example, when anchor a connects to a viewer (or another anchor B) in a live room, some of the connected viewers maliciously broadcast illegal pictures to hurt the anchor. And when the anchor wants to finish the live broadcasting, the network of the anchor is disconnected, so that the anchor cannot immediately disconnect the live broadcasting picture of the live broadcasting audience, and then the live broadcasting audience resumes the network to continue live broadcasting within the timeout time of live broadcasting.
In the prior art, in order to avoid the malicious picture appearing again, the anchor a needs to constantly observe whether the live picture of the live-talk audience recovers (the picture recovery indicates that the network of the live-talk audience recovers to be normal), and then, the anchor a catches this time point to close the live-talk audience. This makes anchor a difficult for malicious, live viewers to deal with, thereby affecting the experience of the average viewer watching the live broadcast. It can thus be appreciated that the prior art fails to achieve a more convenient and faster interruption of the connection between the anchor client and the viewer client by the anchor client.
Disclosure of Invention
The embodiment of the application provides a user management method, a server and a computer readable storage medium, which can interrupt a connection line between a main broadcast client and a spectator client more conveniently and quickly so as to prevent the spectator client from having malicious behaviors in a live broadcast room again and improve the live broadcast experience of a user.
In a first aspect, an embodiment of the present application provides a user management method, where the method includes:
the server receives a closing instruction initiated by the anchor client; wherein, the said main broadcasting customer end and audience customer end are in the connecting to the wheat state;
the server responds to the closing instruction and detects the audience client connected with the microphone through a long-chain heartbeat connection mechanism;
and under the condition that the network connection of the audience client is detected to be switched from the abnormal state to the normal state within a preset time interval, interrupting the connection between the main broadcasting client and the audience client.
According to the embodiment of the application, under the condition that the audience client side has malicious behaviors in the live broadcast room, the connection state between the anchor client side and the audience client side does not need to be judged in an artificial mode, and under the detection of a long-chain heartbeat mechanism, the connection between the anchor client side and the audience client side can be interrupted more conveniently and rapidly, so that the audience client side is prevented from having malicious behaviors in the live broadcast room again, and the live broadcast experience of a user can be improved.
In one possible implementation, the method further includes:
the server receives a change instruction sent by the anchor client; wherein the change instruction is used for instructing the server to adjust the time interval of each detection of the long chain heartbeat receiving mechanism;
the server adjusts the time interval of each detection of the long-chain heartbeat receiving mechanism according to the change instruction to obtain the adjusted long-chain heartbeat receiving mechanism;
the detecting the audience client connected with the microphone through the long-chain heartbeat connection mechanism comprises the following steps:
and detecting the audience client connected with the microphone through the adjusted long-chain heartbeat connection mechanism.
By implementing the embodiment of the application, the time interval of each detection of the long-chain heartbeat receiving mechanism is adjusted to avoid the malicious behavior which is possibly generated by the user under the condition that the time interval of each detection operation of the long-chain heartbeat receiving mechanism is obtained, and the live broadcast experience of the user can be improved.
In a possible implementation manner, before the detecting the audience client connected to the microphone through the long-chain heartbeat connection mechanism, the method further includes:
detecting whether the behavior of the audience client conforms to a user management model; the user management model is a model generated according to malicious behaviors of a user;
and if so, executing a step of detecting the audience client connected with the microphone through a long-chain heartbeat connection mechanism.
In a possible implementation manner, before the detecting whether the behavior of the viewer client conforms to the user management model, the method further includes:
acquiring historical behavior information of the audience client in a live broadcast room;
and if the historical behavior information of the audience client side accords with the user management model, removing the audience client side from the live broadcast room.
In a possible implementation manner, the user management model includes any one of the number of times that the behavior of the audience client has the language forbidden keywords within a first preset time is greater than a first preset threshold, the number of times that the behavior of the audience client has malicious words aiming at the anchor client or other audience clients within a second preset time is greater than a second preset threshold, and the number of times that the behavior of the audience client has the malicious expressions within a third preset time is greater than a third preset threshold.
In a second aspect, an embodiment of the present application provides a server, which includes means for performing the method of the first aspect. Specifically, the server may include:
the first receiving unit is used for receiving a closing instruction initiated by the anchor client; wherein, the said main broadcasting customer end and audience customer end are in the connecting to the wheat state;
the first detection unit is used for responding to the closing instruction and detecting the audience client connected with the microphone through a long-chain heartbeat connection mechanism;
and the processing unit is used for interrupting the connection between the anchor client and the audience client under the condition that the network connection of the audience client is detected to be switched from the abnormal state to the normal state within a preset time interval.
In one possible implementation manner, the server further includes:
the second receiving unit is used for receiving the change instruction sent by the anchor client; wherein the change instruction is used for instructing to adjust the time interval of each detection of the long chain heartbeat receiving mechanism;
the adjusting unit is used for adjusting the time interval of each detection of the long-chain heartbeat connection mechanism according to the change instruction to obtain the adjusted long-chain heartbeat connection mechanism;
the first detection unit is specifically configured to:
and detecting the audience client connected with the microphone through the adjusted long-chain heartbeat connection mechanism.
In one possible implementation manner, the server further includes:
the second detection unit is used for detecting whether the behavior of the audience client side accords with a user management model; the user management model is a model generated according to malicious behaviors of a user;
and under the condition that the second detection unit detects that the behavior of the audience client side accords with a user management model, the first detection unit executes a step of detecting the audience client side connected with the microphone through a long-chain heartbeat connection mechanism.
In one possible implementation manner, the server further includes:
the acquisition unit is used for acquiring historical behavior information of the audience client in a live broadcast room;
and the removing unit is used for removing the audience client from the live broadcast room under the condition that the historical behavior information of the audience client conforms to the user management model.
In a possible implementation manner, the user management model includes any one of the number of times that the behavior of the audience client has the language forbidden keywords within a first preset time is greater than a first preset threshold, the number of times that the behavior of the audience client has malicious words aiming at the anchor client or other audience clients within a second preset time is greater than a second preset threshold, and the number of times that the behavior of the audience client has the malicious expressions within a third preset time is greater than a third preset threshold.
In a third aspect, an embodiment of the present application provides another server, including a processor and a memory, where the processor and the memory are connected to each other, where the memory is used to store a computer program that supports a terminal to execute the foregoing method, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the foregoing method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method of the first aspect.
According to the embodiment of the application, under the condition that the audience client side has malicious behaviors in the live broadcast room, the connection state between the anchor client side and the audience client side does not need to be judged in an artificial mode, and under the detection of a long-chain heartbeat mechanism, the connection between the anchor client side and the audience client side can be interrupted more conveniently and rapidly, so that the audience client side is prevented from having malicious behaviors in the live broadcast room again, and the live broadcast experience of a user can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below.
Fig. 1 is a schematic structural diagram of a network structure provided in an embodiment of the present application;
fig. 2A is a schematic flowchart of a user management method according to an embodiment of the present application;
fig. 2B is a schematic flowchart of another user management method provided in the embodiment of the present application;
fig. 3 is a schematic flowchart of another user management method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of another server provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present 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 be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
First, an application scenario to which the present application can be applied is described below.
A description of a network architecture to which the present application may be applied follows. Referring to fig. 1, fig. 1 is a schematic diagram of a live broadcast network architecture according to an embodiment of the present application. As shown in fig. 1, the network architecture diagram may include a server, a main client, and a plurality of viewer clients, wherein the server may also be referred to as a background server, a component server, a friend-making server, etc., and the server may be communicatively connected with the plurality of clients through the internet. The anchor client provides an online live broadcast channel, an interactive virtual room is established in the online live broadcast channel, the audience client can log in the interactive virtual room established by the anchor client to interact with the anchor, and the audience client can also log in the interactive virtual room established by the anchor client to watch virtual interaction. In practical application, the server sends the live video data to all the audience clients logged into the interactive virtual room for the audience clients to watch. In the embodiment of the present application, the client (including the viewer client and the anchor client) refers to an application program that corresponds to the server and provides a service to the client.
In this embodiment, a live client may run on a user terminal, and a user may register an account (e.g., a first account) on the client and then log in the client through the account. It should be noted that the client may be installed in the user terminal by default, or may be a third-party application downloaded and installed on the user terminal, and the embodiment of the present application is not limited in particular.
The inventive concept of the present application is embodied in: in practical applications, for example, a live audience maliciously broadcasts a violation picture in a live broadcast room to hurt the main broadcast. And when the anchor wants to finish the live broadcasting, the network of the anchor is disconnected, so that the anchor cannot immediately disconnect the live broadcasting picture of the live broadcasting audience, and then the live broadcasting audience resumes the network to continue live broadcasting within the timeout time of live broadcasting. In the prior art, in order to avoid the malicious picture appearing again, the anchor a needs to constantly observe whether the live picture of the live-broadcasting audience recovers (the picture recovery indicates that the network of the live-broadcasting audience recovers to be normal), and then, the anchor a is closed by catching the time point.
In order to solve the pain point problem, in a possible implementation manner, when detecting that the behavior of the user conforms to a user management model, the method detects whether the network connection of the user is switched from an abnormal state to a normal state through a long-chain heartbeat connection mechanism, and if so, the connection between the anchor client and the audience client is interrupted, so that the audience client is prevented from having malicious behavior again, and the live broadcast experience of the user can be improved.
In another possible implementation manner, after receiving a closing instruction initiated by the anchor client, the server detects the audience client connected to the microphone through a long-chain heartbeat connection mechanism, and interrupts the connection between the anchor client and the audience client when detecting that the network connection of the audience client is switched from an abnormal state to a normal state within a preset time interval, so that malicious behaviors of the audience client can be avoided, and the live broadcast experience of a user is improved.
Based on the network architecture diagram shown in fig. 1, the following is a flowchart of a user management method provided in the embodiment of the present application shown in fig. 2A, and specifically illustrates how to implement user management in the embodiment of the present application, where the method may include, but is not limited to, the following steps:
and step S200, the server acquires the behavior of the audience client in the live broadcast room.
In an embodiment of the application, the behavior of the viewer client may include at least one of a text language, a voice language, an expressive language, or a video language published by the user in the live room. For example, the user has published a written language that forbids words, the user has published an expressive language that conforms to the topic of the program in the live room, and so on.
In the embodiment of the application, the server may obtain the behaviors of all the viewer clients in the live broadcast room, or may obtain only the behavior of a certain specific viewer client.
Step S202, the server detects whether the behavior of the audience client side accords with a user management model; if yes, go to step S204.
In the embodiment of the application, the user management model is a model generated according to malicious behaviors of a user.
In this embodiment of the present application, the user management model may include any one of the number of times that the behavior of the viewer client has the language forbidden keyword within a first preset time is greater than a first preset threshold, the number of times that the behavior of the viewer client has malicious words aiming at the anchor client or other viewer clients within a second preset time is greater than a second preset threshold, and the number of times that the behavior of the viewer client has the malicious expressions within a third preset time is greater than a third preset threshold.
In the embodiment of the present application, the word-forbidden keywords may include, but are not limited to: die, etc.
In the embodiments of the present application, malicious words may include, but are not limited to: garbage, spicy chicken, etc.
In the embodiment of the present application, the malicious expression may include, but is not limited to: the expressions comprise vulgar characters, the expressions comprise inelegant pictures, and the like.
In this embodiment of the application, the first preset threshold, the second preset threshold, and the third preset threshold may be set by the server autonomously, or may be set by the server according to a user requirement, and this embodiment of the application is not specifically limited. In addition, the first preset threshold, the second preset threshold and the third preset threshold may be set to the same value, or may be set to different values.
For example, the user management model may be: keyword banning occurs 10 times in the user's behavior within 3 minutes. For another example, the user management model may be that malicious words for the anchor client (e.g., "his mom," "jo") appear 5 times in the user's behavior within 3 minutes.
Step S204, judging whether the network connection of the audience client is in an abnormal state; if yes, go to step S206.
Step S206, the server detects the audience client connected with the microphone through a long-chain heartbeat mechanism, and if the network connection of the audience client is detected to be switched from an abnormal state to a normal state within a preset time interval, the server interrupts the connection between the anchor client and the audience client.
In the embodiment of the present application, the long chain heartbeat connection mechanism refers to: the client sends a heartbeat packet to the server to detect whether the link is normal. In practical application, the implementation process may include: the client sends a packet- > the server receives the packet, and returns a response- > the client receives the response; normal execution, indicating that the link is normal; otherwise, the wire is considered to be broken.
In the embodiment of the present application, the time interval of each detection operation is preset in the long chain heartbeat mechanism, and for example, the time interval is 2 ms.
In this embodiment of the present application, the preset time interval may be a maximum time for performing detection of the long link heartbeat mechanism, and may also be a minimum time for performing detection of the long link heartbeat mechanism, which is not specifically limited in this embodiment of the present application. For example, the preset time interval may be 30 s; also for example, the preset time interval is 1min, and so on.
In the embodiment of the application, the server closes the microphone connection push stream of the audience client when the situation that the network connection of the audience client is switched from the abnormal state to the normal state is detected. Here, the push streaming refers to a process of transmitting the content packaged in the acquisition phase to the server by the viewer client. Closing the push stream means interrupting the transmission process, so that an interruption of the connection of the anchor client to the viewer client can be achieved.
In the embodiment of the present application, when the server detects that the audience client and the anchor client successfully connect to the microphone within the preset time interval (which also indicates that the network connection of the audience client is normal at this time), the server interrupts the connection between the anchor client and the audience client. In this case, the viewer client cannot perform any action in the live room created by the anchor client, so that malicious actions of the viewer client can be avoided.
According to the embodiment of the application, the user does not need to be managed in a manual mode, and the management efficiency of the user can be improved. In addition, in practical application, malicious behaviors of the audience client in the live broadcast room can be avoided, and the live broadcast experience of the user can be improved.
In a possible implementation manner, the following flowchart of a user management method provided in the embodiment of the present application and shown in fig. 2B is specifically described how to implement user management in the embodiment of the present application, where the method may include, but is not limited to, the following steps:
step S3001, the server receives a closing instruction initiated by the anchor client; wherein, the main broadcasting client and the audience client are in a connecting state.
In this embodiment of the present application, the close instruction may be triggered by the anchor client executing a touch operation on a function key included in the client, where the touch operation may include, but is not limited to: click operations, press operations, and the like.
And S3002, the server responds to the closing instruction and detects the audience client connected with the microphone through a long-chain heartbeat connection mechanism.
In the embodiment of the present application, please refer to the foregoing description for the implementation process of detecting the audience client connected to the microphone through the long-chain heartbeat connection mechanism, which is not described herein again.
Step S3003, when it is detected that the network connection of the audience client is switched from the abnormal state to the normal state within the preset time interval, interrupting the connection between the anchor client and the audience client.
By implementing the embodiment of the application, after the server receives the closing request initiated by the anchor client, the server detects the network connection state of the audience client through the long-chain heartbeat mechanism, and the connection between the anchor client and the audience client is interrupted when the situation that the network connection of the audience client is switched from the abnormal state to the normal state is detected. Through the implementation mode, the connection between the anchor client and the audience client can be interrupted more conveniently and rapidly, so that the audience client is prevented from having malicious behaviors in the live broadcast room again, and the live broadcast experience of a user can be improved.
In one possible implementation, the server stores historical behavior information for all viewer clients in a multi-anchor created live room. In one scenario, when the viewer client has not entered the live room created by the anchor client, the server rejects the user 1 to enter the live room by analyzing whether the historical behavior information of the viewer client (e.g., user 1) conforms to the user management model, in case it is determined that the historical behavior information of the user 1 conforms to the user management model. In another case, after the spectator client enters the room created by the anchor client, the server analyzes whether the historical behavior information of the spectator client (e.g., user 1) conforms to the user management model, and directly removes the user 1 from the live broadcast room under the condition that the historical behavior information of the user 1 conforms to the user management model, so that the malicious behavior of the user who injures the anchor client can be fundamentally avoided.
It will be appreciated that the server may also set "banning" or other patterns for viewer clients that are experiencing malicious behavior.
In a possible implementation manner, when the connected-to-microphone viewer client learns the time interval of each detection operation of the long-link heartbeat mechanism, which also means that the viewer client may use the time interval of the detection operation to perform a malicious behavior that impairs the anchor again in the live broadcast room, the following process diagram of another user management method provided in the embodiment of the present application shown in fig. 3 is combined to specifically describe how to implement user management in the embodiment of the present application, which may include, but is not limited to, the following steps:
step S300, the server acquires the behavior of the audience client in the live broadcast room;
step S302, detecting whether the behavior of the audience client side accords with a user management model or not by the detection server; if yes, go to step S304.
Step S304, judging whether the network connection of the audience client is in an abnormal state; if yes, go to step S306.
In the embodiment of the present application, please refer to the detailed description of the foregoing steps S202 to S204 for the specific implementation of steps S302 to S304, which is not repeated herein.
Step S306, the server detects the audience client connected with the microphone through the adjusted long-chain heartbeat mechanism, and if the network connection of the audience client is detected to be switched from an abnormal state to a normal state within a preset time interval, the server interrupts the connection between the anchor client and the audience client; and the adjusted long-chain heartbeat mechanism is adjusted according to a change instruction sent by the anchor client.
Specifically, the server receives a change instruction sent by the anchor client; wherein the change instruction is used for instructing the server to adjust the time interval of each detection of the long chain connection heartbeat mechanism.
In this embodiment of the present application, adjusting the time interval of each detection of the long heartbeat connection mechanism may include increasing the time interval of each detection, and may also include decreasing the time interval of each detection, and this embodiment of the present application is not particularly limited. For example, the time interval of each detection is reduced to one detection of 1 ms.
Taking the reduction of the time interval of each detection as an example, this means that the detection frequency of the server to the network connection state of the audience client becomes high, and the detection operation is more frequent, so that the malicious behavior of the audience client can be better avoided.
Then, after the server receives the change instruction, the server may adjust the time interval of each detection of the long chain heartbeat receiving mechanism according to the change instruction, so as to obtain an adjusted long chain heartbeat receiving mechanism.
It should be noted that, the specific implementation of adjusting the long chain heartbeat mechanism may occur before step S300 or after step S300, and the embodiment of the present application is not particularly limited.
By implementing the embodiment of the application, the detection time of the long-chain heartbeat mechanism is adjusted to detect, so that the client side of the audience connected with the wheat can be prevented from catching a detection bug, the malicious behavior of hurting the main broadcasting client side in the live broadcasting room can be avoided, and the live broadcasting experience can be improved.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
It is further noted that, although the steps in the flowcharts of fig. 2A, 2B and 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2A, 2B, and 3 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
In order to better implement the method of the embodiment of the present application, the embodiment of the present application further describes a schematic structural diagram of a server that belongs to the same inventive concept as the method embodiment described in fig. 2A. The following detailed description is made with reference to the accompanying drawings:
as shown in fig. 4, the server 40 may include:
a first receiving unit 400, configured to receive a shutdown instruction initiated by an anchor client; wherein, the said main broadcasting customer end and audience customer end are in the connecting to the wheat state;
a first detecting unit 402, configured to respond to the closing instruction, and detect the audience client connected to the microphone through a long-chain heartbeat connection mechanism;
the processing unit 404 is configured to interrupt a connection between the anchor client and the audience client when it is detected that the network connection of the audience client is switched from the abnormal state to the normal state within a preset time interval.
In one possible implementation, the server may further include:
a second receiving unit 406, configured to receive a change instruction sent by the anchor client; wherein the change instruction is used for instructing to adjust the time interval of each detection of the long chain heartbeat receiving mechanism;
an adjusting unit 408, configured to adjust a time interval of each detection of the long chain heartbeat receiving mechanism according to the change instruction, so as to obtain an adjusted long chain heartbeat receiving mechanism;
the first detecting unit 402 is specifically configured to:
and detecting the audience client connected with the microphone through the adjusted long-chain heartbeat connection mechanism.
In a possible implementation manner, the server 40 may further include:
a second detecting unit 4010, configured to detect whether a behavior of the viewer client conforms to a user management model; the user management model is a model generated according to malicious behaviors of a user;
in a case that the second detecting unit 4010 detects that the behavior of the spectator client conforms to the user management model, the first detecting unit 402 performs a step of detecting the spectator client connected to the mobile phone through a long-chain heartbeat connection mechanism.
In one possible implementation, the server may further include:
the obtaining unit 4012 is configured to obtain historical behavior information of the viewer client in a live broadcast room;
a removing unit 4014, configured to remove the viewer client from the live broadcast room if the historical behavior information of the viewer client conforms to the user management model.
In a possible implementation manner, the user management model includes any one of the number of times that the behavior of the audience client has the language forbidden keywords within a first preset time is greater than a first preset threshold, the number of times that the behavior of the audience client has malicious words aiming at the anchor client or other audience clients within a second preset time is greater than a second preset threshold, and the number of times that the behavior of the audience client has the malicious expressions within a third preset time is greater than a third preset threshold.
According to the embodiment of the application, under the condition that the audience client side has malicious behaviors in the live broadcast room, the connection state between the anchor client side and the audience client side does not need to be judged in an artificial mode, and under the detection of a long-chain heartbeat mechanism, the connection between the anchor client side and the audience client side can be interrupted more conveniently and rapidly, so that the audience client side is prevented from having malicious behaviors in the live broadcast room again, and the live broadcast experience of a user can be improved. .
In order to better implement the above-mentioned scheme of the embodiment of the present application, the present application further provides another schematic structural diagram of a server, and the following detailed description is provided with reference to the accompanying drawings:
as shown in fig. 5, which is a schematic structural diagram of another server provided in the embodiment of the present application, the server 50 may include at least one processor 501, a communication bus 502, a memory 503, and at least one communication interface 504.
The processor 501 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an Application-Specific Integrated Circuit (ASIC), or one or more ics for controlling the execution of programs in accordance with the present invention.
The communication bus 502 may include a path that conveys information between the aforementioned components. The communication interface 504 may be any transceiver or other communication network, such as ethernet, radio access Technology (RAN), Wireless Local Area Network (WLAN), etc.
The Memory 503 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 503 is used for storing program codes for executing the scheme of the present application, and is controlled by the processor 501 to execute. The processor 501 is configured to execute the program code stored in the memory 503, and perform the following steps:
receiving a closing instruction initiated by an anchor client; wherein, the said main broadcasting customer end and audience customer end are in the connecting to the wheat state;
responding to the closing instruction, and detecting the audience client connected with the microphone through a long-chain heartbeat connection mechanism;
and under the condition that the network connection of the audience client is detected to be switched from the abnormal state to the normal state within a preset time interval, interrupting the connection between the main broadcasting client and the audience client.
Wherein, the processor 501 is further configured to:
receiving a change instruction sent by the anchor client; wherein the change instruction is used for instructing the server to adjust the time interval of each detection of the long chain heartbeat receiving mechanism;
adjusting the time interval of each detection of the long-chain heartbeat receiving mechanism according to the change instruction to obtain an adjusted long-chain heartbeat receiving mechanism;
the detecting, by the processor 501, the audience client connected to the microphone through the long-chain heartbeat mechanism may include:
and detecting the audience client connected with the microphone through the adjusted long-chain heartbeat connection mechanism.
Before the processor 501 detects the audience client connected to the microphone through the long-chain heartbeat connection mechanism, the method may further include:
detecting whether the behavior of the audience client conforms to a user management model; the user management model is a model generated according to malicious behaviors of a user;
if yes, the processor 501 performs a step of detecting the audience client connected to the microphone through a long-chain heartbeat connection mechanism.
Before the processor 501 detects whether the behavior of the viewer client conforms to the user management model, the method may further include:
acquiring historical behavior information of the audience client in a live broadcast room;
and if the historical behavior information of the audience client side accords with the user management model, removing the audience client side from the live broadcast room.
The user management model comprises any one of the times that the behavior of the audience client has the language forbidden keywords within a first preset time is greater than a first preset threshold, the times that the behavior of the audience client has the malicious words aiming at the anchor client or other audience clients within a second preset time is greater than a second preset threshold, and the times that the behavior of the audience client has the malicious expressions within a third preset time is greater than a third preset threshold.
In particular implementations, processor 501 may include one or more CPUs, such as CPU0 and CPU1 in fig. 5, as an alternative embodiment.
In a specific implementation, as an alternative embodiment, the server 50 may include multiple processors, such as the processor 501 and the processor 508 in fig. 5. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In this embodiment, the server 50 may further include an output device 505 and an input device 506 as an alternative embodiment. An output device 505, which is in communication with the processor 501, may display information in a variety of ways. For example, the output device 505 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) Display device, a Cathode Ray Tube (CRT) Display device, a projector (projector), or the like. The input device 506 is in communication with the processor 501 and can accept user input in a variety of ways. For example, the input device 506 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
In particular implementations, server 50 may be a desktop, laptop, web server. The embodiment of the present application does not limit the type of the server 50.
The present application further provides a computer storage medium for storing computer software instructions for the server shown in fig. 2A and fig. 2B, which contains a program for executing the method embodiments described above. By executing the stored program, the connection between the anchor client and the viewer client can be interrupted more conveniently and quickly.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A user management method, comprising:
the server receives a closing instruction initiated by the anchor client; wherein, the said main broadcasting customer end and audience customer end are in the connecting to the wheat state;
the server responds to the closing instruction and detects the audience client connected with the microphone through a long-chain heartbeat connection mechanism;
and under the condition that the network connection of the audience client is detected to be switched from the abnormal state to the normal state within a preset time interval, interrupting the connection between the main broadcasting client and the audience client.
2. The method of claim 1, further comprising:
the server receives a change instruction sent by the anchor client; wherein the change instruction is used for instructing the server to adjust the time interval of each detection of the long chain heartbeat receiving mechanism;
the server adjusts the time interval of each detection of the long-chain heartbeat receiving mechanism according to the change instruction to obtain the adjusted long-chain heartbeat receiving mechanism;
the detecting the audience client connected with the microphone through the long-chain heartbeat connection mechanism comprises the following steps:
and detecting the audience client connected with the microphone through the adjusted long-chain heartbeat connection mechanism.
3. The method of claim 1, wherein before detecting the connected audience client via a long-chain heartbeat mechanism, further comprising:
detecting whether the behavior of the audience client conforms to a user management model; the user management model is a model generated according to malicious behaviors of a user;
and if so, executing a step of detecting the audience client connected with the microphone through a long-chain heartbeat connection mechanism.
4. The method of claim 3, wherein prior to detecting whether the behavior of the viewer client complies with a user management model, further comprising:
acquiring historical behavior information of the audience client in a live broadcast room;
and if the historical behavior information of the audience client side accords with the user management model, removing the audience client side from the live broadcast room.
5. The method of any one of claims 3-4, wherein the user management model includes any one of a number of times that the behavior of the viewer client has a word or phrase banning within a first preset time period greater than a first preset threshold, a number of times that the behavior of the viewer client has a malicious word or phrase against the anchor client or other viewer clients within a second preset time period greater than a second preset threshold, and a number of times that the behavior of the viewer client has a malicious expression within a third preset time period greater than a third preset threshold.
6. A server, comprising:
the first receiving unit is used for receiving a closing instruction initiated by the anchor client; wherein, the said main broadcasting customer end and audience customer end are in the connecting to the wheat state;
the first detection unit is used for responding to the closing instruction and detecting the audience client connected with the microphone through a long-chain heartbeat connection mechanism;
and the processing unit is used for interrupting the connection between the anchor client and the audience client under the condition that the network connection of the audience client is detected to be switched from the abnormal state to the normal state within a preset time interval.
7. The server of claim 6, further comprising:
the second receiving unit is used for receiving the change instruction sent by the anchor client; wherein the change instruction is used for instructing to adjust the time interval of each detection of the long chain heartbeat receiving mechanism;
the adjusting unit is used for adjusting the time interval of each detection of the long-chain heartbeat connection mechanism according to the change instruction to obtain the adjusted long-chain heartbeat connection mechanism;
the first detection unit is specifically configured to:
and detecting the audience client connected with the microphone through the adjusted long-chain heartbeat connection mechanism.
8. The server of claim 7, further comprising:
the second detection unit is used for detecting whether the behavior of the audience client side accords with a user management model; the user management model is a model generated according to malicious behaviors of a user;
and under the condition that the second detection unit detects that the behavior of the audience client side accords with a user management model, the first detection unit executes a step of detecting the audience client side connected with the microphone through a long-chain heartbeat connection mechanism.
9. A server, comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any one of claims 1-5.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-5.
CN201910935602.9A 2019-09-29 2019-09-29 User management method, server and computer readable storage medium Active CN110798693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910935602.9A CN110798693B (en) 2019-09-29 2019-09-29 User management method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910935602.9A CN110798693B (en) 2019-09-29 2019-09-29 User management method, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110798693A true CN110798693A (en) 2020-02-14
CN110798693B CN110798693B (en) 2022-03-11

Family

ID=69438658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910935602.9A Active CN110798693B (en) 2019-09-29 2019-09-29 User management method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110798693B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488964A (en) * 2020-12-18 2021-03-12 深圳市镜玩科技有限公司 Image processing method for sliding list, related device, equipment and medium
CN114554230A (en) * 2020-11-27 2022-05-27 北京字节跳动网络技术有限公司 Continuous microphone state processing method and device, terminal, computer equipment and storage medium
CN112488964B (en) * 2020-12-18 2024-04-16 深圳市镜玩科技有限公司 Image processing method, related device, equipment and medium for sliding list

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140259032A1 (en) * 2013-03-07 2014-09-11 Mark C. Zimmerman Methods and apparatus to monitor media presentations
CN104991850A (en) * 2015-06-27 2015-10-21 广州华多网络科技有限公司 Heartbeat package control method and apparatus for application program
WO2015192802A1 (en) * 2014-06-19 2015-12-23 Tencent Technology (Shenzhen) Company Limited Method and apparatus for live broadcast of streaming media
CN105657471A (en) * 2016-01-29 2016-06-08 广州酷狗计算机科技有限公司 Account management method and device
CN106303702A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Connection status inspection method, device and intelligent television system
CN106488335A (en) * 2016-09-20 2017-03-08 北京小米移动软件有限公司 Live-broadcast control method and device
CN108306942A (en) * 2018-01-09 2018-07-20 武汉斗鱼网络科技有限公司 Communication means, storage medium, electronic equipment and the system that multi-user is broadcast live simultaneously
CN108989864A (en) * 2018-07-24 2018-12-11 武汉斗鱼网络科技有限公司 A kind of even wheat method, apparatus, equipment and storage medium
JP2019062313A (en) * 2017-09-25 2019-04-18 ミハル通信株式会社 Broadcast signal switching apparatus and broadcast signal switching method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140259032A1 (en) * 2013-03-07 2014-09-11 Mark C. Zimmerman Methods and apparatus to monitor media presentations
WO2015192802A1 (en) * 2014-06-19 2015-12-23 Tencent Technology (Shenzhen) Company Limited Method and apparatus for live broadcast of streaming media
CN106303702A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Connection status inspection method, device and intelligent television system
CN104991850A (en) * 2015-06-27 2015-10-21 广州华多网络科技有限公司 Heartbeat package control method and apparatus for application program
CN105657471A (en) * 2016-01-29 2016-06-08 广州酷狗计算机科技有限公司 Account management method and device
CN106488335A (en) * 2016-09-20 2017-03-08 北京小米移动软件有限公司 Live-broadcast control method and device
JP2019062313A (en) * 2017-09-25 2019-04-18 ミハル通信株式会社 Broadcast signal switching apparatus and broadcast signal switching method
CN108306942A (en) * 2018-01-09 2018-07-20 武汉斗鱼网络科技有限公司 Communication means, storage medium, electronic equipment and the system that multi-user is broadcast live simultaneously
CN108989864A (en) * 2018-07-24 2018-12-11 武汉斗鱼网络科技有限公司 A kind of even wheat method, apparatus, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554230A (en) * 2020-11-27 2022-05-27 北京字节跳动网络技术有限公司 Continuous microphone state processing method and device, terminal, computer equipment and storage medium
CN114554230B (en) * 2020-11-27 2023-07-25 北京字节跳动网络技术有限公司 Method, device, terminal, computer equipment and storage medium for processing wheat connecting state
CN112488964A (en) * 2020-12-18 2021-03-12 深圳市镜玩科技有限公司 Image processing method for sliding list, related device, equipment and medium
CN112488964B (en) * 2020-12-18 2024-04-16 深圳市镜玩科技有限公司 Image processing method, related device, equipment and medium for sliding list

Also Published As

Publication number Publication date
CN110798693B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
US10838838B2 (en) Method and apparatus for dealing with abnormality of application program and storage medium
US20120209921A1 (en) Instant Message Management Method and Apparatus
US20140115479A1 (en) Audio Management Method and Apparatus
CN108804215B (en) Task processing method and device and electronic equipment
KR101496632B1 (en) System for safe contents service for youths and method therefor
US10924572B2 (en) Information push method and apparatus, information sending method and apparatus, system, and storage medium
US20180365081A1 (en) Method for Application Action Synchronization, Terminal Device, and Storage Medium
CN111246238A (en) Live broadcast method, device, storage medium and live broadcast system
US20240022661A1 (en) Suppressing indications of events in user interfaces
CN105786356A (en) Application (APP) operation method and device
CN110798693B (en) User management method, server and computer readable storage medium
WO2017219872A1 (en) Set top box upgrading and channel changing methods and systems
CN110574006B (en) System and method for automatically synchronizing responses and conditions on a device
CN110727473A (en) Resource control method, device, system, storage medium and electronic equipment
KR20140055897A (en) User terminal, reliability management server, and method and program for preventing unauthorized remote operation
CN112650541B (en) Application program starting acceleration method, system, equipment and storage medium
CN110286954B (en) Application program starting method and device and storage medium
CN114051146A (en) Method and system for preventing repeated plug flow
CN113852835A (en) Live broadcast audio processing method and device, electronic equipment and storage medium
CN107783825A (en) The more background process of mobile terminal start method, device and mobile terminal
JP2008004015A (en) Online system
US11481248B2 (en) Completing an SMI task across multiple SMI events
CN115134328B (en) Corner mark configuration method and device, computer equipment and readable storage medium
EP3479228A1 (en) Media production to operating system supported display
TWI774053B (en) Hardware management methods and associated machine-readable medium, electronic devices

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
GR01 Patent grant
GR01 Patent grant