[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112738538B - Live broadcasting room on-hook behavior detection method and device, electronic equipment and computer readable storage medium - Google Patents

Live broadcasting room on-hook behavior detection method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112738538B
CN112738538B CN202011556196.4A CN202011556196A CN112738538B CN 112738538 B CN112738538 B CN 112738538B CN 202011556196 A CN202011556196 A CN 202011556196A CN 112738538 B CN112738538 B CN 112738538B
Authority
CN
China
Prior art keywords
broadcasting room
target live
live broadcasting
packet data
determining
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.)
Active
Application number
CN202011556196.4A
Other languages
Chinese (zh)
Other versions
CN112738538A (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 Zhenai Jieyun Information Technology Co ltd
Original Assignee
Shenzhen Zhenai Jieyun Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhenai Jieyun Information Technology Co ltd filed Critical Shenzhen Zhenai Jieyun Information Technology Co ltd
Priority to CN202011556196.4A priority Critical patent/CN112738538B/en
Publication of CN112738538A publication Critical patent/CN112738538A/en
Application granted granted Critical
Publication of CN112738538B publication Critical patent/CN112738538B/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/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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/233Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4394Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application relates to a live room on-hook behavior detection method, a live room on-hook behavior detection device, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: receiving an abnormal live event, and determining a target live room based on the live event; continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time; judging whether the heartbeat packet data is in an abnormal state, if so, determining that the target live broadcasting room has an on-hook behavior. The embodiment of the application has the advantage of improving the detection efficiency of the on-hook behavior.

Description

Live broadcasting room on-hook behavior detection method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a live broadcast room on-hook behavior detection method, apparatus, electronic device, and computer readable storage medium.
Background
With the continuous development of live broadcast services, the demand of resources required by live broadcast is increased, and live broadcast monitoring becomes an important work of live broadcast operation in the face of more and more live broadcast scenes.
In the actual live broadcast process, the live broadcast exits from the live broadcast room without being closed, and the live broadcast room is defined as an on-hook live broadcast room, so that bandwidth resources are wasted in the live broadcast room, viewing experience of audiences is reduced, privacy of the live broadcast is possibly exposed, and the like, so that the on-hook live broadcast room needs to be detected and cleaned in time; at present, manual detection is mainly performed on a live broadcasting room by related staff, but the detection mode needs to consume a large amount of manpower, the detection period time is long, the whole detection process is complex, the detection efficiency is low, and the user experience degree is not high.
Disclosure of Invention
The embodiment of the application provides a live broadcasting room on-hook behavior detection method, a live broadcasting room on-hook behavior detection device, electronic equipment and a computer readable storage medium, which are used for improving the on-hook behavior of a live broadcasting room and the on-hook live broadcasting room detection efficiency.
In a first aspect, an embodiment of the present application provides a live room on-hook behavior detection method, where the method includes:
receiving an abnormal live event, and determining a target live room based on the live event;
continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time;
judging whether the heartbeat packet data is in an abnormal state, if so, determining that the target live broadcasting room has an on-hook behavior.
In one embodiment, the determining whether the heartbeat packet data is in an abnormal state includes:
s21, starting a counter, wherein the initial total number T of the counter is 0;
s22, acquiring a preset acquisition time interval, determining a sampling time point based on the sampling time interval and the current time, and judging whether heartbeat packet data of the target live broadcasting room are received at the sampling time point;
s23, if not, the step S22 is skipped, if T is greater than the preset counter threshold, the step S25 is skipped;
S24, if yes, resetting the counter, and determining that the heartbeat packet data is in a non-abnormal state;
s25, determining that the heartbeat packet data is in an abnormal state, and executing a mark to be determined on the target live broadcasting room.
In one embodiment, after the marking to be determined is performed on the target live room, the method further includes: collecting an audio stream of the target live broadcasting room at the current time; acquiring audio decibels of the audio stream; judging whether the audio decibel is larger than a preset decibel threshold value or not; if the target live broadcasting room is not larger than the target live broadcasting room, determining that the target live broadcasting room is in a low decibel state, determining that the target live broadcasting room has the on-hook behavior, and executing on-hook marking on the target live broadcasting room; and if the heartbeat detection operation is larger than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
In one embodiment, after the marking to be determined is performed on the target live room, the method further includes: acquiring historical audio data of the target live broadcasting room; performing silence detection for the historical audio data, marking silence segments in the historical audio data; cutting the mute segment from the historical audio data to obtain detection audio data; substituting the detection audio data into a preset voice detection model, and judging whether the detection audio data is voice; if yes, executing heartbeat detection operation on the target live broadcasting room; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
In one embodiment, the performing a heartbeat detection operation on the target live room further includes: sending a heartbeat detection packet to the target live broadcasting room; setting a timer, and judging whether heartbeat detection data returned by the target live broadcasting room are received in the time of the timer; if yes, determining that the target live broadcasting room does not have the on-hook behavior; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
In one embodiment, the determining whether the heartbeat packet data is in advance of the abnormal situation further includes: judging whether instant heartbeat packet data returned by the target live broadcasting room exists at the current time; and if the instant heartbeat packet data does not exist, determining that the target live broadcasting room is in a pending state, and executing abnormal judgment of the heartbeat packet data.
In one embodiment, the acquiring the heartbeat packet data of the target live broadcast room based on the current time further includes: determining a first extraction time period and a second extraction time period based on a preset extraction time selection rule and the current time; extracting first heartbeat packet data of the target live broadcasting room in the historical time period; setting a timer, and acquiring second heartbeat packet data of the second extraction time period; and merging the first heartbeat packet data and the second heartbeat packet data to obtain the heartbeat packet data.
In a second aspect, an embodiment of the present application provides a live room on-hook behavior detection device, where the device includes:
the receiving unit is used for receiving the abnormal live event and determining a target live room based on the live event;
the acquisition unit is used for continuously acquiring the heartbeat packet data of the target live broadcasting room based on the current time;
and the judging unit is used for judging whether the heartbeat packet data is in an abnormal state, and if so, determining that the on-hook behavior exists in the target live broadcasting room.
In one embodiment, in the aspect of determining whether the heartbeat packet data is in an abnormal state, the determining unit is specifically configured to:
s21, starting a counter, wherein the initial total number T of the counter is 0;
s22, acquiring a preset acquisition time interval, determining a sampling time point based on the sampling time interval and the current time, and judging whether heartbeat packet data of the target live broadcasting room are received at the sampling time point;
s23, if not, the step S22 is skipped, if T is greater than the preset counter threshold, the step S25 is skipped;
s24, if yes, resetting the counter, and determining that the heartbeat packet data is in a non-abnormal state;
S25, determining that the heartbeat packet data is in an abnormal state, and executing a mark to be determined on the target live broadcasting room.
In one embodiment, after the marking to be determined is performed on the target live room, the determining unit is further configured to: collecting an audio stream of the target live broadcasting room at the current time; acquiring audio decibels of the audio stream; judging whether the audio decibel is larger than a preset decibel threshold value or not; if the target live broadcasting room is not larger than the target live broadcasting room, determining that the target live broadcasting room is in a low decibel state, determining that the target live broadcasting room has the on-hook behavior, and executing on-hook marking on the target live broadcasting room; and if the heartbeat detection operation is larger than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
In one embodiment, after the performing the to-be-determined flag on the target live room, the determining unit is further configured to: acquiring historical audio data of the target live broadcasting room; performing silence detection for the historical audio data, marking silence segments in the historical audio data; cutting the mute segment from the historical audio data to obtain detection audio data; substituting the detection audio data into a preset voice detection model, and judging whether the detection audio data is voice; if yes, executing heartbeat detection operation on the target live broadcasting room; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
In one embodiment, in the aspect of performing the heartbeat detection operation on the target live broadcast room, the determining unit is specifically configured to: sending a heartbeat detection packet to the target live broadcasting room; setting a timer, and judging whether heartbeat detection data returned by the target live broadcasting room are received in the time of the timer; if yes, determining that the target live broadcasting room does not have the on-hook behavior; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
In one embodiment, before the determining whether the heartbeat packet data is in an abnormal condition, the determining unit is specifically configured to: judging whether instant heartbeat packet data returned by the target live broadcasting room exists at the current time; and if the instant heartbeat packet data does not exist, determining that the target live broadcasting room is in a pending state, and executing abnormal judgment of the heartbeat packet data.
In one embodiment, in the aspect of acquiring the heartbeat packet data of the target live broadcast room based on the current time, the acquiring unit is specifically configured to: determining a first extraction time period and a second extraction time period based on a preset extraction time selection rule and the current time; extracting first heartbeat packet data of the target live broadcasting room in the historical time period; setting a timer, and acquiring second heartbeat packet data of the second extraction time period; and merging the first heartbeat packet data and the second heartbeat packet data to obtain the heartbeat packet data.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing part or all of the steps described in the method of the first aspect of embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium, where the computer readable storage medium is used to store a computer program, where the computer program is executed by a processor to implement some or all of the steps described in the method according to the first aspect of the embodiments of the present application.
It can be seen that in the embodiment of the present application, the electronic device receives an abnormal live event, and determines a target live room based on the live event; continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time; judging whether the heartbeat packet data is in an abnormal state, if so, determining that the target live broadcasting room has an on-hook behavior. Therefore, the abnormal live event can be received through the electronic equipment, the target live broadcasting room is rapidly positioned based on the abnormal live event, whether the on-hook behavior exists in the target live broadcasting room is judged through the state of the heartbeat packet data, the on-hook behavior detection process in the live broadcasting room can be simplified, the detection period is shortened, the on-hook live broadcasting room is rapidly detected, and the detection efficiency and the user experience degree are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario architecture diagram of a live broadcasting room on-hook behavior detection method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a live broadcasting room on-hook behavior detection method provided in an embodiment of the present application;
fig. 3 is a schematic frame diagram of a live broadcasting room on-hook behavior detection method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a monitoring center according to an embodiment of the present application
FIG. 5 is a schematic diagram of a framework of an event center provided in an embodiment of the present application;
fig. 6 is a schematic frame diagram of another live-room on-hook behavior detection method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device 700 according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a live broadcasting room hanging behavior detection device provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In the following, some terms in the present application are explained for easy understanding by those skilled in the art.
The electronic devices may include various handheld devices, vehicle mounted devices, wearable devices (e.g., smart watches, smart bracelets, pedometers, etc.), computing devices or other processing devices communicatively coupled to wireless modems, as well as various forms of User Equipment (UE), mobile Stations (MSs), terminal devices (terminal devices), etc. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
Referring to fig. 1, fig. 1 is an application scenario architecture diagram of a live-room on-hook behavior detection method provided in an embodiment of the present application, where the live-room on-hook behavior detection method provided in the present application may be applied to an application environment as shown in fig. 1. The electronic device 101 communicates with the monitoring server 103 through a network, the electronic device 101 communicates with the client 102 through a network, and the monitoring server 103 communicates with the client 102 through a network, where the electronic device 101 may be, but is not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the monitoring server 103 may be implemented by a stand-alone server or a server cluster formed by a plurality of servers. The electronic device 101 receives the abnormal live event monitored by the monitoring server 103, the electronic device 101 determines a target live room in the client 102 based on the live event, the electronic device 101 continuously acquires heartbeat packet data of the target live room based on the current time, the electronic device 101 judges whether the heartbeat packet data is in an abnormal state, if yes, the on-hook behavior of the target live room is determined, and after the on-hook behavior is detected, the electronic device 101 closes the target live room in the client 102.
Referring to fig. 2, fig. 2 is a flowchart of a live broadcasting room on-hook behavior detection method provided in an embodiment of the present application, and the method is applied to the electronic device in fig. 1 for illustration, and includes the following steps:
step 201, receiving an abnormal live event, and determining a target live room based on the live event;
optionally, after determining the target live broadcast room, acquiring a historical live broadcast room event corresponding to the target live broadcast room, verifying the authenticity of the abnormal live broadcast event based on the historical live broadcast event, and if true, executing step 202.
Wherein verifying the authenticity of the abnormal live event based on the historical live event comprises: generating a live broadcast flow based on the occurrence time of the historical event corresponding to the historical live broadcast event, judging whether the live broadcast flow is in an abnormal state, and if the live broadcast flow is in the abnormal state, determining that the abnormal live broadcast event is real.
In the specific implementation process, aiming at a live broadcast room, a live broadcast SDK is accessed to the live broadcast room, an electronic device accesses the live broadcast SDK to collect events generated by the live broadcast SDK, in a live broadcast mode, channels are created, destroyed, a host enters a channel, a host leaves a channel, a spectator joins the channel and becomes a host (i.e. a wheat feeding) and a host leaves a channel and becomes a spectator (i.e. a wheat discharging), the live broadcast SDK generates corresponding events, the events can be collected by the electronic device accessing the live broadcast SDK, the events received by the electronic device are regular, any event cannot appear continuously, for example, a live broadcast process of creating a channel A-a host joins a channel B-spectator joins the channel and a host C-spectator leaves a channel B-destroyed channel A ", when only the events corresponding to the same letter are reserved, continuous events cannot appear, and the events corresponding to the same letter must appear in pairs, for example: creating a splice a-destruction channel a, a main join channel B-main leave channel B, a spectator join channel and a top C-spectator leave channel and a bottom C, when the same event occurs twice in succession in the live broadcast process, for example, the electronic device receives an abnormal live broadcast event "main leave channel B event", generates a live broadcast process "creating a channel a-main join channel B-spectator join channel and a top C-spectator leave channel and a bottom C-main leave channel B-destruction channel a" based on the historical live broadcast time, and at this time, the "main leave channel B" event occurs twice in succession, and the live broadcast process is in an abnormal state, that is, the abnormal live broadcast event is true.
Step 202, continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time;
optionally, before continuously acquiring the heartbeat packet data of the target live broadcast room based on the current time, the method further comprises: acquiring the historical time of the latest heartbeat packet data transmission of the target live broadcasting room, calculating the time interval between the historical time and the current time, judging whether the time interval is smaller than a preset interval threshold value, if so, determining that the heartbeat of the target live broadcasting room is in a normal state, and determining that the target live broadcasting room is in a normal state; setting a timer based on the historical time, and continuously acquiring heartbeat data of the target live broadcast room based on the current time when the timer time is greater than the interval threshold value; if the heartbeat data is not smaller than the target living broadcast room, determining that the heartbeat of the target living broadcast room is in an abnormal state, determining that the target living broadcast room is in a pending state, and continuously acquiring the heartbeat data of the target living broadcast room based on the current time.
And 203, judging whether the heartbeat packet data is in an abnormal state, if so, determining that the on-hook behavior exists in the target live broadcasting room.
In the specific implementation process, after the heartbeat packet data is judged to be in an abnormal state, secondary judgment is carried out through the audio data of the target live broadcasting room, and whether the target live broadcasting room has an on-hook behavior is determined.
In one possible example, the determining whether the heartbeat packet data is in an abnormal state includes:
s21, starting a counter, wherein the initial total number T of the counter is 0;
s22, acquiring a preset acquisition time interval, determining a sampling time point based on the sampling time interval and the current time, and judging whether heartbeat packet data of the target live broadcasting room are received at the sampling time point;
s23, if not, the step S22 is skipped, if T is greater than the preset counter threshold, the step S25 is skipped;
s24, if yes, resetting the counter, and determining that the heartbeat packet data is in a non-abnormal state;
s25, determining that the heartbeat packet data is in an abnormal state, and executing a mark to be determined on the target live broadcasting room.
Optionally, the counter and the electronic watch are started, the initial parameter of the counter is 0, the sampling time period is determined, a preset sampling time interval or sampling rule is obtained, for example, the sampling time interval is 10 seconds or the sampling rule is sampling every 10 seconds, the sampling time point is determined based on the sampling time interval and the sampling rule, for example, the sampling time period is 19 minutes to 16 minutes and 20 minutes, and the sampling time points are respectively determined based on the sampling time interval of 10 seconds: 16.19 minutes 0 seconds, 16.19 minutes 10 seconds, 16.19 minutes 20 seconds, 16.19 minutes 30 seconds, 16.19 minutes 40 seconds, 16.19 minutes 50 seconds, and 16.20 minutes 0 seconds; when the time of the electronic watch is coincident with the sampling time point, judging whether heartbeat packet data of a target live broadcasting room are received or not, for example, when the time of the electronic watch is 16 hours and 19 minutes and 0 seconds, detecting whether data transmission exists in the target live broadcasting room, and if so, acquiring the data packet; further, judging whether the data packet contains the heartbeat packet data, if the data packet does not contain the heartbeat packet data or the target live broadcasting room does not have data transmission, adding one to the numerical value of the counter, and if the data packet contains the heartbeat packet data, clearing the numerical value of the counter, and determining that the heartbeat packet data is in a non-abnormal state; executing the above-described loop for a sampling time point when the value of the counter is not greater than the counter threshold; and when the numerical value of the counter is larger than the counter threshold value, determining that the heartbeat packet data is in an abnormal state.
In a possible example, after the marking to be determined is performed on the target live room, the method further includes: collecting an audio stream of the target live broadcasting room at the current time; acquiring audio decibels of the audio stream; judging whether the audio decibel is larger than a preset decibel threshold value or not; if the target live broadcasting room is not larger than the target live broadcasting room, determining that the target live broadcasting room is in a low decibel state, determining that the target live broadcasting room has the on-hook behavior, and executing on-hook marking on the target live broadcasting room; and if the heartbeat detection operation is larger than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
Optionally, setting an audio extraction timer, obtaining a preset audio extraction duration, setting the timer based on the audio extraction duration, starting the timer, collecting current audio of the target live broadcast room, obtaining the audio stream when the timer time meets the audio extraction duration, obtaining audio decibels of the audio stream, wherein the audio decibels are average decibels of the audio stream, judging whether the audio decibels are larger than a preset decibel threshold value, if not, determining that the target live broadcast room is in a low decibel state, determining that the target live broadcast room has a hanging action, and executing hanging marks on the target live broadcast room; and if the heartbeat detection operation is larger than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
In a possible example, after the marking to be determined is performed on the target live room, the method further includes: acquiring historical audio data of the target live broadcasting room; performing silence detection for the historical audio data, marking silence segments in the historical audio data; cutting the mute segment from the historical audio data to obtain detection audio data; substituting the detection audio data into a preset voice detection model, and judging whether the detection audio data is voice; if yes, executing heartbeat detection operation on the target live broadcasting room; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
Optionally, the historical audio data of the target live broadcasting room is obtained, wherein the historical audio data is the audio data of the target live broadcasting room in a preset time period corresponding to the current time, namely when the preset time period is 10min and the current time is 17:50, a historical time period corresponding to the historical audio data is: 17:40-17:50.
Optionally, a silence detection algorithm is executed on the historical audio data, and a silence segment contained in the historical audio data is determined; and cutting the historical audio data based on the mute segment to obtain a plurality of historical audio sub-data, and synthesizing the plurality of historical audio sub-data to obtain the detection audio data.
Further, the audio data is used as input of a preset voice detection model, whether the detected audio data is voice is judged, if the detected audio data is voice, a hook mark is executed on a live broadcasting room, and if the detected audio data is not voice, a hook action exists on the target live broadcasting room.
Optionally, taking the historical audio data as input of a preset silence detection model, calculating the proportion of the silence segment duration in the historical audio data to the total duration of the historical audio data, judging whether the proportion is greater than a preset proportion threshold value, and if so, executing on-hook marking on a live broadcasting room; and if the heartbeat detection operation is not greater than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
In a possible example, the performing a heartbeat detection operation on the target live room includes: sending a heartbeat detection packet to the target live broadcasting room; setting a timer, and judging whether heartbeat detection data returned by the target live broadcasting room are received in the time of the timer; if yes, determining that the target live broadcasting room does not have the on-hook behavior; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
Optionally, the electronic device box is configured to send a heartbeat detection packet to the target live broadcasting room, where the heartbeat detection packet is used to detect the target live broadcasting room, if the target live broadcasting room is normally broadcasting, the target live broadcasting room returns heartbeat detection data after receiving the heartbeat detection packet, a timer is set, the time of the timer is a preset waiting duration threshold, if the heartbeat detection data returned by the target live broadcasting room is received in the time of the timer, it is determined that the target live broadcasting room does not have an on-hook behavior, if the heartbeat detection data returned by the target live broadcasting room is not received in the time of the timer, it is determined that the target live broadcasting room has an on-hook behavior, and on-hook marking is performed on the target live broadcasting room.
In a possible example, the determining whether the heartbeat packet data is in advance of the abnormal situation further includes: judging whether instant heartbeat packet data returned by the target live broadcasting room exists at the current time; and if the instant heartbeat packet data does not exist, determining that the target live broadcasting room is in a pending state, and executing abnormal judgment of the heartbeat packet data.
Optionally, acquiring a data packet received at the current time, judging whether the data packet contains the heartbeat packet data, or acquiring a history time of last sending of the heartbeat packet data by the target live broadcasting room, calculating a time interval between the history time and the current time, and if the data packet contains the heartbeat packet data or the time interval is smaller than a preset time interval threshold, determining that the current time has instant heartbeat packet data returned by the target live broadcasting room, and determining that the target live broadcasting room operates normally; if the data packet contains the heartbeat packet data or the time interval is smaller than a preset time interval threshold, determining that the target live broadcasting room is in a pending state, and executing abnormal judgment of the heartbeat packet data.
In a possible example, the acquiring heartbeat packet data of the target live room based on the current time includes: determining a first extraction time period and a second extraction time period based on a preset extraction time selection rule and the current time; extracting first heartbeat packet data of the target live broadcasting room in the historical time period; setting a timer, and acquiring second heartbeat packet data of the second extraction time period; and merging the first heartbeat packet data and the second heartbeat packet data to obtain the heartbeat packet data.
Optionally, a preset extraction time selection rule is obtained, where the extraction time selection rule may include: taking the current time as a reference, selecting x seconds before the current time to the current time as a first extraction time period, and selecting y seconds after the current time to the current time as a second extraction time period; the first extraction time and the second extraction time are thus determined based on a preset extraction time selection rule and the current time.
It should be understood that, although the steps in the flowchart of fig. 2 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 strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
It can be seen that in the embodiment of the present application, the electronic device receives an abnormal live event, and determines a target live room based on the live event; continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time; judging whether the heartbeat packet data is in an abnormal state or not, after determining that the heartbeat packet data is in the abnormal state, performing secondary judgment on the target live broadcasting room through audio data, and determining that the target live broadcasting room has an on-hook behavior. Therefore, the abnormal live event can be received through the electronic equipment, the target live broadcasting room is rapidly positioned based on the abnormal live event, whether the on-hook behavior exists in the target live broadcasting room or not is judged through the state of the heartbeat packet data, the detection accuracy of the on-hook live broadcasting room is improved through secondary detection, in addition, the on-hook behavior detection flow of the live broadcasting room is simplified, the detection period is shortened, the rapid detection of the on-hook live broadcasting room is realized, and the detection efficiency and the user experience degree are improved.
Referring to fig. 3, fig. 3 is a schematic frame diagram of a live-room on-hook behavior detection method provided in an embodiment of the present application, which is applied to an electronic device shown in fig. 1, and includes: the framework is mainly used for realizing the following steps:
Receiving an abnormal live event, and determining a target live room based on the live event;
continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time;
judging whether the heartbeat packet data is in an abnormal state, if so, determining that the target live broadcasting room has an on-hook behavior.
The monitoring core sends a monitoring event to the event center, the event center receives the monitoring event, the monitoring event is verified and detected, whether the monitoring event is an on-hook event or not is confirmed, when the application service monitors that the on-hook event exists in the event center, the on-hook event is located in a live broadcasting room corresponding to the on-hook event, and the live broadcasting room is cleaned.
In the specific implementation process, aiming at any live broadcasting room, firstly, a live broadcasting SDK is accessed, a message notification service in a monitoring center collects events monitored by the live broadcasting SDK, the message notification service sends the collected events to a monitoring core, the monitoring core monitors the live broadcasting room through IM heartbeat and decibels of the live broadcasting room, and meanwhile, when the live broadcasting room is marked to be determined, the monitoring core sends a heartbeat detection packet to the live broadcasting room; setting a timer, and judging whether heartbeat detection data returned by the live broadcasting room are received in the time of the timer; if yes, determining that the on-hook behavior does not exist in the live broadcasting room; if not, determining that the live broadcasting room has the on-hook behavior, and executing the on-hook mark on the live broadcasting room, as shown in fig. 4, fig. 4 is a schematic diagram of a framework of a monitoring center provided by the embodiment of the application.
In a specific implementation process, a live event is divided into two parts by a monitoring core, an event ID and an event body are received by the event core, the event ID and the event body are stored in an event storage area, the event ID is sent to an event queue, and the event queue establishes a mapping relationship between the event ID and the event body, as shown in fig. 5, and fig. 5 is a schematic diagram of an event center provided in an embodiment of the present application.
Referring to fig. 6 based on the description of fig. 3-5, fig. 6 is a schematic diagram of a framework of another live room on-hook behavior detection method according to an embodiment of the present application, where an application service extracts a consumption event from an event core, that is, performs an on-hook operation on a live room when the event core is monitored to include an on-hook event. The monitoring center and the event center are identical as shown in fig. 4 and fig. 5, and are not described herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device 700 according to an embodiment of the present application, as shown in the drawing, the electronic device 700 includes an application processor 710, a memory 720, a communication interface 730, and one or more programs 721, wherein the one or more programs 721 are stored in the memory 720 and configured to be executed by the application processor 710, and the one or more programs 521 include instructions for executing the following steps:
Receiving an abnormal live event, and determining a target live room based on the live event;
continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time;
judging whether the heartbeat packet data is in an abnormal state, if so, determining that the target live broadcasting room has an on-hook behavior.
It can be seen that in the embodiment of the present application, the electronic device receives an abnormal live event, and determines a target live room based on the live event; continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time; judging whether the heartbeat packet data is in an abnormal state, if so, determining that the target live broadcasting room has an on-hook behavior. Therefore, the abnormal live event can be received through the electronic equipment, the target live broadcasting room is rapidly positioned based on the abnormal live event, whether the on-hook behavior exists in the target live broadcasting room is judged through the state of the heartbeat packet data, the on-hook behavior detection process in the live broadcasting room can be simplified, the detection period is shortened, the on-hook live broadcasting room is rapidly detected, and the detection efficiency and the user experience degree are improved.
In a possible example, the determining whether the heartbeat packet data is in an abnormal state, the instructions in the program are specifically configured to:
S21, starting a counter, wherein the initial total number T of the counter is 0;
s22, acquiring a preset acquisition time interval, determining a sampling time point based on the sampling time interval and the current time, and judging whether heartbeat packet data of the target live broadcasting room are received at the sampling time point;
s23, if not, the step S22 is skipped, if T is greater than the preset counter threshold, the step S25 is skipped;
s24, if yes, resetting the counter, and determining that the heartbeat packet data is in a non-abnormal state;
s25, determining that the heartbeat packet data is in an abnormal state, and executing a mark to be determined on the target live broadcasting room.
In a possible example, after the marking to be determined is performed on the target live room, the instructions in the program are specifically configured to perform the following operations: collecting an audio stream of the target live broadcasting room at the current time; acquiring audio decibels of the audio stream; judging whether the audio decibel is larger than a preset decibel threshold value or not; if the target live broadcasting room is not larger than the target live broadcasting room, determining that the target live broadcasting room is in a low decibel state, determining that the target live broadcasting room has the on-hook behavior, and executing on-hook marking on the target live broadcasting room; and if the heartbeat detection operation is larger than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
In a possible example, after the marking to be determined is performed on the target live room, the instructions in the program are specifically configured to perform the following operations: acquiring historical audio data of the target live broadcasting room; performing silence detection for the historical audio data, marking silence segments in the historical audio data; cutting the mute segment from the historical audio data to obtain detection audio data; substituting the detection audio data into a preset voice detection model, and judging whether the detection audio data is voice; if yes, executing heartbeat detection operation on the target live broadcasting room; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
In a possible example, the heartbeat detection operation is performed on the target live room, and the instructions in the program are specifically configured to perform the following operations: sending a heartbeat detection packet to the target live broadcasting room; setting a timer, and judging whether heartbeat detection data returned by the target live broadcasting room are received in the time of the timer; if yes, determining that the target live broadcasting room does not have the on-hook behavior; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
In a possible example, the instructions in the program are specifically configured to perform the following operations before determining whether the heartbeat packet data is in an abnormal condition: judging whether instant heartbeat packet data returned by the target live broadcasting room exists at the current time; and if the instant heartbeat packet data does not exist, determining that the target live broadcasting room is in a pending state, and executing abnormal judgment of the heartbeat packet data.
In a possible example, the acquiring heartbeat packet data of the target live room based on the current time, the instructions in the program are specifically configured to: determining a first extraction time period and a second extraction time period based on a preset extraction time selection rule and the current time; extracting first heartbeat packet data of the target live broadcasting room in the historical time period; setting a timer, and acquiring second heartbeat packet data of the second extraction time period; and merging the first heartbeat packet data and the second heartbeat packet data to obtain the heartbeat packet data.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. 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 application.
The embodiment of the application may divide the functional units of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one control unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a live room on-hook behavior detection device provided in an embodiment of the present application, including: a receiving unit 801, an acquiring unit 802, and a judging unit 803, wherein:
a receiving unit 801, configured to receive an abnormal live event, and determine a target live room based on the live event;
an obtaining unit 802, configured to continuously obtain heartbeat packet data of the target live broadcast room based on a current time;
and the judging unit 803 is configured to judge whether the heartbeat packet data is in an abnormal state, and if yes, determine that an on-hook behavior exists in the target live broadcasting room.
It can be seen that in the embodiment of the present application, the electronic device receives an abnormal live event, and determines a target live room based on the live event; continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time; judging whether the heartbeat packet data is in an abnormal state, if so, determining that the target live broadcasting room has an on-hook behavior. Therefore, the abnormal live event can be received through the electronic equipment, the target live broadcasting room is rapidly positioned based on the abnormal live event, whether the on-hook behavior exists in the target live broadcasting room is judged through the state of the heartbeat packet data, the on-hook behavior detection process in the live broadcasting room can be simplified, the detection period is shortened, the on-hook live broadcasting room is rapidly detected, and the detection efficiency and the user experience degree are improved.
In one possible example, in the aspect of determining whether the heartbeat packet data is in an abnormal state, the determining unit 803 is specifically configured to:
s21, starting a counter, wherein the initial total number T of the counter is 0;
s22, acquiring a preset acquisition time interval, determining a sampling time point based on the sampling time interval and the current time, and judging whether heartbeat packet data of the target live broadcasting room are received at the sampling time point;
s23, if not, the step S22 is skipped, if T is greater than the preset counter threshold, the step S25 is skipped;
s24, if yes, resetting the counter, and determining that the heartbeat packet data is in a non-abnormal state;
s25, determining that the heartbeat packet data is in an abnormal state, and executing a mark to be determined on the target live broadcasting room.
In a possible example, after the marking to be determined is performed on the target live room, the determining unit 803 is further configured to: collecting an audio stream of the target live broadcasting room at the current time; acquiring audio decibels of the audio stream; judging whether the audio decibel is larger than a preset decibel threshold value or not; if the target live broadcasting room is not larger than the target live broadcasting room, determining that the target live broadcasting room is in a low decibel state, determining that the target live broadcasting room has the on-hook behavior, and executing on-hook marking on the target live broadcasting room; and if the heartbeat detection operation is larger than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
In a possible example, after the performing of the mark to be determined on the target live room, the determining unit 803 is further configured to: acquiring historical audio data of the target live broadcasting room; performing silence detection for the historical audio data, marking silence segments in the historical audio data; cutting the mute segment from the historical audio data to obtain detection audio data; substituting the detection audio data into a preset voice detection model, and judging whether the detection audio data is voice; if yes, executing heartbeat detection operation on the target live broadcasting room; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
In a possible example, in terms of the performing a heartbeat detection operation on the target live room, the determining unit 803 is specifically configured to: sending a heartbeat detection packet to the target live broadcasting room; setting a timer, and judging whether heartbeat detection data returned by the target live broadcasting room are received in the time of the timer; if yes, determining that the target live broadcasting room does not have the on-hook behavior; if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
In one possible example, in the aspect of determining whether the heartbeat packet data is in an abnormal condition, the determining unit 803 is specifically configured to: judging whether instant heartbeat packet data returned by the target live broadcasting room exists at the current time; and if the instant heartbeat packet data does not exist, determining that the target live broadcasting room is in a pending state, and executing abnormal judgment of the heartbeat packet data.
In one possible example, in the aspect of acquiring the heartbeat packet data of the target live room based on the current time, the acquiring unit 802 is specifically configured to: determining a first extraction time period and a second extraction time period based on a preset extraction time selection rule and the current time; extracting first heartbeat packet data of the target live broadcasting room in the historical time period; setting a timer, and acquiring second heartbeat packet data of the second extraction time period; and merging the first heartbeat packet data and the second heartbeat packet data to obtain the heartbeat packet data.
The embodiment of the application also provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to execute part or all of the steps of any one of the methods described in the embodiments of the method, where the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (8)

1. A live room on-hook behavior detection method, the method comprising:
receiving an abnormal live event, and determining a target live room based on the live event;
continuously acquiring heartbeat packet data of the target live broadcasting room based on the current time;
Judging whether the heartbeat packet data is in an abnormal state, if so, determining that the target live broadcasting room has an on-hook behavior;
wherein the judging whether the heartbeat packet data is in an abnormal state comprises:
s21, starting a counter, wherein the initial total number T of the counter is 0;
s22, acquiring a preset sampling time interval, determining a sampling time point based on the sampling time interval and the current time, and judging whether heartbeat packet data of the target live broadcasting room are received at the sampling time point;
s23, if not, T=T+1, if T is not greater than the preset counter threshold, step S22 is skipped, and if T is greater than the preset counter threshold, step S25 is skipped;
s24, if yes, resetting the counter, and determining that the heartbeat packet data is in a non-abnormal state;
s25, determining that the heartbeat packet data is in an abnormal state, and executing a mark to be determined on the target live broadcasting room;
after the marking to be determined is executed on the target live broadcasting room, the method further comprises the following steps:
collecting an audio stream of the target live broadcasting room at the current time;
acquiring audio decibels of the audio stream;
judging whether the audio decibel is larger than a preset decibel threshold value or not;
If the target live broadcasting room is not larger than the target live broadcasting room, determining that the target live broadcasting room is in a low decibel state, determining that the target live broadcasting room has the on-hook behavior, and executing on-hook marking on the target live broadcasting room;
and if the heartbeat detection operation is larger than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
2. The method of claim 1, wherein after the performing the mark to be determined on the target live room, further comprising:
acquiring historical audio data of the target live broadcasting room;
performing silence detection for the historical audio data, marking silence segments in the historical audio data;
cutting the mute segment from the historical audio data to obtain detection audio data;
substituting the detection audio data into a preset voice detection model, and judging whether the detection audio data is voice;
if yes, executing heartbeat detection operation on the target live broadcasting room;
if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
3. The method according to any one of claims 1 or 2, wherein said performing a heartbeat detection operation on the target living room comprises:
sending a heartbeat detection packet to the target live broadcasting room;
Setting a timer, and judging whether heartbeat detection data returned by the target live broadcasting room are received in the time of the timer;
if yes, determining that the target live broadcasting room does not have the on-hook behavior;
if not, determining that the on-hook behavior exists in the target live broadcasting room, and executing on-hook marking on the target live broadcasting room.
4. The method of claim 1, wherein the determining whether the heartbeat packet data is in advance of an abnormal condition further comprises:
judging whether instant heartbeat packet data returned by the target live broadcasting room exists at the current time;
and if the instant heartbeat packet data does not exist, determining that the target live broadcasting room is in a pending state, and executing abnormal judgment of the heartbeat packet data.
5. The method of claim 1, wherein the obtaining heartbeat packet data of the target living room based on the current time comprises:
determining a first extraction time period and a second extraction time period based on a preset extraction time selection rule and the current time;
extracting first heartbeat packet data of the target live broadcasting room in the first extraction time period;
setting a timer, and acquiring second heartbeat packet data of the second extraction time period;
And merging the first heartbeat packet data and the second heartbeat packet data to obtain the heartbeat packet data.
6. A live room on-hook behavior detection device, the device comprising:
the receiving unit is used for receiving the abnormal live event and determining a target live room based on the live event;
the acquisition unit is used for continuously acquiring the heartbeat packet data of the target live broadcasting room based on the current time;
the judging unit is used for judging whether the heartbeat packet data is in an abnormal state or not, and if so, determining that the target live broadcasting room has an on-hook behavior;
wherein, in the aspect of judging whether the heartbeat packet data is in an abnormal state, the judging unit is specifically configured to:
s21, starting a counter, wherein the initial total number T of the counter is 0;
s22, acquiring a preset sampling time interval, determining a sampling time point based on the sampling time interval and the current time, and judging whether heartbeat packet data of the target live broadcasting room are received at the sampling time point;
s23, if not, T=T+1, if T is not greater than the preset counter threshold, step S22 is skipped, and if T is greater than the preset counter threshold, step S25 is skipped;
s24, if yes, resetting the counter, and determining that the heartbeat packet data is in a non-abnormal state;
S25, determining that the heartbeat packet data is in an abnormal state, and executing a mark to be determined on the target live broadcasting room;
wherein, in the aspect of executing the mark to be determined on the target live broadcasting room, the judging unit is further configured to:
collecting an audio stream of the target live broadcasting room at the current time;
acquiring audio decibels of the audio stream;
judging whether the audio decibel is larger than a preset decibel threshold value or not;
if the target live broadcasting room is not larger than the target live broadcasting room, determining that the target live broadcasting room is in a low decibel state, determining that the target live broadcasting room has the on-hook behavior, and executing on-hook marking on the target live broadcasting room;
and if the heartbeat detection operation is larger than the target live broadcasting room, executing the heartbeat detection operation on the target live broadcasting room.
7. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any one of claims 1 to 5.
CN202011556196.4A 2020-12-25 2020-12-25 Live broadcasting room on-hook behavior detection method and device, electronic equipment and computer readable storage medium Active CN112738538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011556196.4A CN112738538B (en) 2020-12-25 2020-12-25 Live broadcasting room on-hook behavior detection method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011556196.4A CN112738538B (en) 2020-12-25 2020-12-25 Live broadcasting room on-hook behavior detection method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112738538A CN112738538A (en) 2021-04-30
CN112738538B true CN112738538B (en) 2023-06-06

Family

ID=75615662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011556196.4A Active CN112738538B (en) 2020-12-25 2020-12-25 Live broadcasting room on-hook behavior detection method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112738538B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220515A (en) * 2021-05-12 2021-08-06 武汉中仪物联技术股份有限公司 Mobile device connection state detection method and device, electronic device and storage medium
CN114710685B (en) * 2022-03-14 2023-12-05 秦皇岛泰和安科技有限公司 Video stream processing method and device, terminal equipment and storage medium
CN115002500B (en) * 2022-06-15 2024-02-13 北京搜房科技发展有限公司 Live broadcast management method and device, storage medium and electronic equipment
CN115314724A (en) * 2022-06-27 2022-11-08 北京思特奇信息技术股份有限公司 Live broadcast life cycle management method based on distributed cache

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331769A (en) * 2016-09-23 2017-01-11 北京赢点科技有限公司 Live streaming detection service end and optimized live streaming resource utilization method
CN108111879A (en) * 2017-12-12 2018-06-01 福建中金在线信息科技有限公司 A kind of method, apparatus and electronic equipment of net cast abnormality processing
CN108259448A (en) * 2016-12-30 2018-07-06 广州华多网络科技有限公司 The method and device of abnormal broken line during a kind of company of preventing wheat
CN110875859A (en) * 2018-09-04 2020-03-10 北京京东尚科信息技术有限公司 Method and system for monitoring network connection abnormity
CN110996109A (en) * 2019-11-21 2020-04-10 北京达佳互联信息技术有限公司 Abnormal live broadcast room cleaning method and device, live broadcast server and storage medium
CN111182314A (en) * 2018-11-12 2020-05-19 阿里巴巴集团控股有限公司 Live stream processing method and device and data processing method
CN111586432A (en) * 2020-06-05 2020-08-25 广州繁星互娱信息科技有限公司 Method and device for determining air-broadcast live broadcast room, server and storage medium
CN112040259A (en) * 2020-08-28 2020-12-04 广州华多网络科技有限公司 Method, server, system, storage medium and equipment for continuous playing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104910B (en) * 2014-06-26 2018-04-17 北京小鱼在家科技有限公司 It is a kind of to carry out two-way live shared terminal and method with intelligent monitoring

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331769A (en) * 2016-09-23 2017-01-11 北京赢点科技有限公司 Live streaming detection service end and optimized live streaming resource utilization method
CN108259448A (en) * 2016-12-30 2018-07-06 广州华多网络科技有限公司 The method and device of abnormal broken line during a kind of company of preventing wheat
CN108111879A (en) * 2017-12-12 2018-06-01 福建中金在线信息科技有限公司 A kind of method, apparatus and electronic equipment of net cast abnormality processing
CN110875859A (en) * 2018-09-04 2020-03-10 北京京东尚科信息技术有限公司 Method and system for monitoring network connection abnormity
CN111182314A (en) * 2018-11-12 2020-05-19 阿里巴巴集团控股有限公司 Live stream processing method and device and data processing method
CN110996109A (en) * 2019-11-21 2020-04-10 北京达佳互联信息技术有限公司 Abnormal live broadcast room cleaning method and device, live broadcast server and storage medium
CN111586432A (en) * 2020-06-05 2020-08-25 广州繁星互娱信息科技有限公司 Method and device for determining air-broadcast live broadcast room, server and storage medium
CN112040259A (en) * 2020-08-28 2020-12-04 广州华多网络科技有限公司 Method, server, system, storage medium and equipment for continuous playing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Android平台的视频直播软件设计;熊祝青等;《中国新通信》;20200205(第03期);全文 *

Also Published As

Publication number Publication date
CN112738538A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN112738538B (en) Live broadcasting room on-hook behavior detection method and device, electronic equipment and computer readable storage medium
US10492531B2 (en) Information pushing method and communication system
CN108345524B (en) Application monitoring method and application monitoring device
EP2755416B1 (en) Method and apparatus for remotely locating wireless network fault
US9277431B1 (en) System, method, and computer program for generating mobile subscriber network experience indicators based on geo-located events
CN109473092B (en) Voice endpoint detection method and device
US20150304402A1 (en) Data communication method and data communication system
CN108305628B (en) Speech recognition method, speech recognition device, computer equipment and storage medium
US20100169021A1 (en) Earthquake detection apparatus, system, and method
CN105703932B (en) Log recording method for uploading, log recording method of reseptance, terminal and server
CN104486839A (en) Method and system for intelligently connecting Wi-Fi hotspots
CN105280187A (en) Family emotion management device and method
CN114168420A (en) A data alarm method, system, electronic device and storage medium
CN105049298A (en) Method and system for monitoring cloud resource
CN106792868B (en) A method and device for obtaining paging volume
CN110401872A (en) Event reminder method, device and storage medium based on smart home operating system
CN104883705B (en) A kind of the problem of data service is complained localization method and device
CN112671622B (en) Safety monitoring method and device based on intelligent mobile equipment and intelligent mobile equipment
CN113763990A (en) Method and device for determining unwake audio, storage medium and electronic device
CN110611831B (en) Video transmission method and device
CN108462734B (en) Message receiving method and device
CN106375809B (en) Volume adjusting method and device and storage medium
CN114222153A (en) Online user number counting method and device, electronic equipment and storage medium
CN105764093A (en) Method and device for selecting data compression level
CN113891386B (en) Base station recessive fault determination method, device, equipment and readable storage medium

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