CN107659842B - Method and system for reporting in video friend making - Google Patents

Method and system for reporting in video friend making Download PDF

Info

Publication number
CN107659842B
CN107659842B CN201710720446.5A CN201710720446A CN107659842B CN 107659842 B CN107659842 B CN 107659842B CN 201710720446 A CN201710720446 A CN 201710720446A CN 107659842 B CN107659842 B CN 107659842B
Authority
CN
China
Prior art keywords
audio data
level cache
server
uploading
trigger condition
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
CN201710720446.5A
Other languages
Chinese (zh)
Other versions
CN107659842A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710720446.5A priority Critical patent/CN107659842B/en
Publication of CN107659842A publication Critical patent/CN107659842A/en
Application granted granted Critical
Publication of CN107659842B publication Critical patent/CN107659842B/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/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4332Content storage operation, e.g. storage operation in response to a pause request, caching operations by placing content in organized collections, e.g. local EPG data repository
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • 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/4392Processing of audio elementary streams involving audio buffer management
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a system for reporting in video friend making, wherein the method comprises the following steps: s1, intercepting audio data in the video friend making process according to the first trigger condition; s2, storing the audio data by adopting a secondary cache mechanism, so that the audio data stored in the primary cache is the audio data of a preset time period before the current time; and S3, uploading the audio data in the first-level cache to the server according to the second trigger condition. According to the invention, in the process of making friends through network video, audio signals in the process of making friends are intercepted according to the triggering condition, a two-level cache mechanism is adopted, the audio data in the first-level cache is ensured to be the audio data in the latest preset time, and then the audio data uploaded to the server is also in the latest time period, so that the real reporting condition can be reflected better through the analysis of the audio data in the latest time period.

Description

Method and system for reporting in video friend making
Technical Field
The invention relates to the technical field of internet, in particular to a method and a system for reporting in video friend making.
Background
With the development of internet, it is very common to make video friends on the internet, and video friends are mainly convenient for information exchange between two people. However, in the process of making friends through video, the user may encounter acts such as law violation, fraud and the like, and in this case, the user needs to report to the other party.
At present, a user usually clicks a reporting button on a friend making interface to serve as a trigger condition for reporting an opposite party, the reporting in the mode is usually that the user identity information of the opposite party is directly reported, and a server analyzes and judges whether the user is a malicious user or not through the identity information of the user.
Since the server only analyzes the identity information of the user and does not analyze specific communication contents, reporting the analyzed result in this way is inaccurate.
Disclosure of Invention
The present invention provides a method and system for video dating reporting that overcomes, or at least partially solves, the above-mentioned problems.
According to a first aspect of the present invention, there is provided a method for reporting in video friend-making, comprising:
s1, intercepting audio data in the video friend making process according to the first trigger condition;
s2, storing the audio data by adopting a secondary cache mechanism, so that the audio data stored in the primary cache is the audio data of a preset time period before the current time;
and S3, uploading the audio data in the first-level cache to the server according to the second trigger condition.
The invention has the beneficial effects that: in the network video friend making process, audio data in the friend making process is intercepted according to a trigger condition, a secondary cache mechanism is adopted, the audio data in a first-level cache is guaranteed to be the audio data within the latest preset time all the time, the audio data uploaded to a server is further within the latest time period, and the real reporting condition can be reflected better through analysis of the audio data within the latest time period.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the first trigger condition is formed by clicking a trigger button arranged on the video friend-making interface, and the second trigger condition is formed by clicking a report confirmation button in a dialog box on the video friend-making interface, wherein the dialog box pops up when the trigger button is clicked.
Further, the step S2 further includes:
and maintaining two levels of caches in the memory, wherein the first level of cache has a first preset space size, and the second cache has a second preset space size, and the second preset space size is smaller than the first preset space size.
Further, the step S2 further includes:
s21, when the first-level cache space is full, the audio data intercepted subsequently is stored in the second-level cache;
s22, when the second-level cache is full, audio data with a second preset space size at the head of the first-level cache is removed, and the rest audio data is moved to the head, so that the second preset space size is left at the tail of the first-level cache;
and S23, placing the audio data with the second preset space size in the second-level cache at the tail part of the first-level cache.
Further, the step S3 further includes:
and writing the audio data cached at the first level in the memory into a disk according to a second trigger condition, and uploading the audio data to the server through the disk.
Further, before writing the audio data in the first level cache in the memory to the disk in step S3, the method further includes:
when the second trigger condition is received and audio data exists in both the first level cache and the second level cache, the audio data in the second level cache is moved to the first level cache according to steps S22 and S23.
Further, the writing the audio data cached in the first level in the memory to the disk further includes:
when the size of the residual capacity of the disk is smaller than the size of a first preset space, equally dividing the audio data in the first-level cache into a plurality of audio data blocks, wherein the size of each audio data block is smaller than the size of the residual capacity of the disk;
and writing one audio data block into the disk each time, uploading the audio data block to the server, deleting the audio data block in the disk after the uploading is successful, and writing the next audio data block until all the audio data blocks are uploaded to the server.
Further, the step S3 further includes:
when a second trigger condition is received, extracting character information in the audio data in the first-level cache;
matching the character information in the audio data with the character information in the database, wherein when the character information matched with the character information in the audio data exists in the database, the audio data belongs to the audio data needing to be reported, otherwise, the audio data belongs to the audio data needing not to be reported;
accordingly, the step S3 further includes:
and uploading the audio data to be reported to a server.
According to a second aspect of the present invention, there is provided a video friend making and reporting system, comprising:
the audio interception module is used for intercepting an audio signal in the video friend making process according to a first trigger condition;
the storage module is used for storing the audio data by adopting a second-level cache mechanism, so that the audio data stored in the first-level cache is the audio data in a preset time period before the current time;
and the uploading module is used for uploading the audio data in the first-level cache to the server according to the second trigger condition.
According to a third aspect of the present invention, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the video dating, reporting method described above.
Drawings
FIG. 1 is a flow chart of a method for reporting in making friends with video according to an embodiment of the present invention;
FIG. 2 is a block diagram of a connection of a system for reporting video friends in accordance with another embodiment of the present invention;
FIG. 3 is a block diagram of the overall connection of the reporting system in video friend-making according to another embodiment of the present invention;
FIG. 4 is a block diagram of the internal connections of the storage module in the video dating reporting system;
fig. 5 is a connection block diagram of an apparatus for a reporting method in video friend making according to another embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Referring to fig. 1, a method for reporting in making friends with video according to an embodiment of the present invention is provided, including: s1, intercepting audio data in the video friend making process according to the first trigger condition; s2, storing the audio data by adopting a secondary cache mechanism, so that the audio data stored in the primary cache is the audio data of a preset time period before the current time; and S3, uploading the audio data in the first-level cache to the server according to the second trigger condition.
With the development of internet, it is very common to make video friends on the internet, and video friends are mainly convenient for information exchange between two people. However, in the process of making friends through video, the behaviors of law violation, fraud and the like can be encountered, and in this case, the user needs to report. The embodiment is mainly implemented by uploading audio data communicated between two parties in the video friend making process to a server according to the situation that the friend making process needs to be reported, and specifically implemented by intercepting the audio data in the video friend making process according to a first trigger condition, wherein the first trigger condition can be triggered by a user. Because the audio data in the latest time period is reported when the user reports the other party, and the audio data communicated between the two parties in the latest time period can reflect the real situation of reporting most, the embodiment adopts a secondary cache mechanism to store the intercepted audio data, and the secondary cache mechanism is mainly used for enabling the audio data stored in the first-level cache to be the audio data in the preset time period before the current time point. And finally, uploading the audio data of the latest time period stored in the first-level cache to the server according to a second trigger condition, wherein the second trigger condition can be triggered by a user.
In the network video friend-making process, the audio signals in the friend-making process are intercepted according to the triggering conditions, a secondary cache mechanism is adopted, the audio data in the primary cache are guaranteed to be the audio data in the latest preset time all the time, the audio data uploaded to the server are also in the latest time period, and the real reporting condition can be reflected through the analysis of the audio data in the latest time period.
On the basis of the above embodiment, in an embodiment of the present invention, the first trigger condition is formed by clicking a trigger button provided on the video friend making interface, and the second trigger condition is formed by clicking a report confirmation button in a dialog box on the video friend making interface, where the dialog box pops up when the trigger button is clicked.
In the process of making friends through videos, in order to achieve the function of reporting, a trigger button can be arranged on a video friend making interface, and a user can form a first trigger condition by clicking the trigger button. When the user clicks the trigger button, the system starts to intercept the audio data in the video chat process of the two parties. When a user clicks the trigger button, a dialog box pops up on the video friend-making interface, a report confirmation button is arranged in the dialog box, and when the user clicks the report confirmation button, the audio data in the latest time period in the first-level cache is uploaded to the server.
On the basis of the foregoing embodiments, in another embodiment of the present invention, the step S2 further includes: two levels of caches are opened up in the memory, the first level of cache is a first preset space size, the second cache is a second preset space size, and the second preset space size is smaller than the first preset space size.
First, a method for capturing audio data in a video friend-making process is introduced, and in this embodiment, the audio data in the video friend-making process is captured through a MediaRecorder class provided in an andriod system, where the MediaRecorder class is an audio capturer provided in the andriod system, and by using the capturer, an audio PCM (Pulse Code Modulation) signal can be rapidly intercepted and captured.
The specific implementation is that, firstly, a global MediaRecorder object is instantiated by a construction method in the MediaRecorder class, and the object is marked as MediaRecorder, and then a series of setting operations are required to be performed on the object, specifically setting as follows: the signal source of the audio PCM signal is set by calling the setAudioSource method in the mediaRecorder object, which in this embodiment is set as a Microphone (MIC), i.e. the microphone is the inlet for capturing the audio PCM signal. Secondly, the format of the output audio file is set by calling setOutputFormat in the mediascorer object, and the format of the audio file is set to be the GPP-type file format in the embodiment. The setAudioEncoder in the mediaRecorder object is called again to encode the audio PCM signal, and in this embodiment, the encoding format is not set, so that the audio file is stored in the original data form.
Through the above three steps, the capture process of the audio file can be started by calling the prepare () and start () methods in the mediaRecorder object.
After audio data in the video communication process is intercepted, the audio data is cached in a memory, and because the audio data uploaded to a server is the audio data in the latest time period, in order to ensure the point, two levels of caches are maintained in the memory, the maintained first level cache is the first preset space size, the maintained second level cache is the second preset space size, and the second preset space size is smaller than the first preset space size, for example, the first level cache space size is 400k, the second level cache size is 100k, and the second preset space size is 25%, 30%, 50% or 70% of the first preset space size, and through a second level cache mechanism, the audio data stored in the first level cache can be ensured to be the audio data in the latest time period before the current time point.
On the basis of the foregoing embodiment, in an embodiment of the present invention, the step S2 further includes: s21, when the first-level cache space is full, the audio data intercepted subsequently is stored in the second-level cache; s22, when the second-level cache is full, audio data with a second preset space size at the head of the first-level cache is removed, and the rest audio data is moved to the head, so that the second preset space size is left at the tail of the first-level cache; and S23, placing the audio data with the second preset space size in the second-level cache at the tail part of the first-level cache.
When the audio data in the first-level cache is guaranteed to be the audio data in the latest time period through a second-level cache mechanism, when a user clicks a trigger button on a video friend-making interface, the system starts to intercept the audio data, and the intercepted audio data is stored in the first-level cache. When the first-level buffer space is full, the audio data intercepted subsequently needs to be stored in the second-level buffer, wherein when the second-level buffer space is full, the audio data with the second preset space size at the head part in the first-level buffer is cleared.
After audio data with the second preset space size at the head in the first-level cache is cleared, the rest audio data in the first-level cache is moved to the head, so that the second preset space size is left at the tail of the first-level cache. And then, the audio data with the second preset space size in the second-level cache is used for filling the second preset cache space left at the tail part in the first-level cache, so that the audio data in the second-level cache and the audio data in the first-level cache are spliced. By repeating the steps, the audio data stored in the first-level cache can be ensured to be the audio data in the latest time period all the time.
On the basis of the foregoing embodiments, in an embodiment of the present invention, the step S3 further includes: and writing the audio data cached in the first level in the memory into a disk according to a second trigger condition, uploading the audio data to the server through the disk, and analyzing the audio data by the server to judge whether the opposite side is a malicious user.
The audio data generated in the video communication process is intercepted when the user clicks the trigger button, and the audio data in the first-level cache is ensured to be the audio data in the latest time period through the second-level cache mechanism. When a user clicks a report confirmation button in the dialog box to form a second trigger condition, writing the audio data in the first-level cache into the magnetic disk, uploading the audio data to the server through the magnetic disk, and analyzing the audio data after the server receives the audio data so as to judge whether the opposite side is a malicious user.
On the basis of the foregoing embodiments, in another embodiment of the present invention, before writing the audio data in the first-level cache in the memory to the disk in step S3, the method further includes: when the second trigger condition is received and audio data exists in both the first level cache and the second level cache, the audio data in the second level cache is moved to the first level cache according to steps S22 and S23.
When a user clicks a report confirmation button in a dialog box, audio data in a latest preset time period are written into a disk, at the moment, several situations exist, the first situation is that when the disk needs to be written, the space of a first-level cache is not full, all the audio data in the first-level cache can be directly written into the disk, and the audio data are uploaded to a server through the disk. In the second case, when the space of the first level cache is full and the second level cache also stores audio data, the method in the above embodiment is firstly needed, that is, the audio data in the second level cache is placed into the first level cache according to the above steps S22 and S23, so as to ensure that the audio data stored in the first level cache is the audio data in the latest time slot, and then the audio data in the first level cache is written into the disk.
On the basis of the foregoing embodiments, in an embodiment of the present invention, the writing the audio data cached in the first level in the memory to the disk further includes: when the size of the residual capacity of the disk is smaller than the size of a first preset space, equally dividing the audio data in the first-level cache into a plurality of audio data blocks, wherein the size of each audio data block is smaller than the size of the residual capacity of the disk; and writing one audio data block into the disk each time, uploading the audio data block to the server, deleting the audio data block in the disk after the uploading is successful, and writing the next audio data block until all the audio data blocks are uploaded to the server.
In the process of writing the audio data in the first-level cache of the memory into the disk, when the size of the remaining capacity of the disk is smaller than the size of a first preset space, the audio data in the first-level cache cannot be written into the disk at one time, and therefore the audio data in the first-level cache needs to be divided.
When the audio data are uploaded to the server, one audio data is written into the disk each time, the audio data block is uploaded to the server through the disk, the audio data block in the disk is deleted after the audio data block is uploaded successfully, a certain amount of space is left in the disk, the next audio data block in the first-level cache is written into the disk, and the audio data are uploaded to the server until all the audio data in the first-level cache are uploaded to the server.
On the basis of the foregoing embodiments, in an embodiment of the present invention, the step S3 further includes: when a second trigger condition is received, extracting character information in the audio data in the first-level cache; matching the character information in the audio data with the character information in the database, wherein when the character information matched with the character information in the audio data exists in the database, the audio data belongs to the audio data needing to be reported, otherwise, the audio data belongs to the audio data needing not to be reported; accordingly, the step S3 further includes: and uploading the audio data to be reported to a server.
The audio data are uploaded to the server to realize a reporting function, and in order to avoid that the audio data uploaded to the server are malicious data, the data uploaded to the server are invalid. Therefore, in the present embodiment, before uploading the audio data to the server, it needs to preliminarily determine whether malicious behaviors exist in the audio data. The specific implementation mode is that when a user clicks a report confirmation button in a dialog box, text information in audio data in a first-level cache is extracted, the text information extracted from the audio data is matched with malicious text information in a database, if the malicious text information matched with the text information extracted from the audio data exists in the database, the audio data is required to be uploaded to a server when the audio data is determined to be the audio data required to be reported, and otherwise, the audio data is the audio data not required to be reported, the audio data is not uploaded to the server.
In the embodiment, before the intercepted audio data is uploaded to the server, preliminary judgment is firstly carried out, when the audio data is preliminarily judged to have potential malicious behaviors, the audio data is determined to be uploaded to the server, and the server is prevented from analyzing the audio data without malicious behaviors, so that the resources of the server are wasted.
Referring to fig. 2, a video friend-making reporting system according to another embodiment of the present invention is provided, which includes an audio interception module 21, a storage module 22, and an upload module 23.
And the audio intercepting module 21 is configured to intercept an audio signal in the video friend making process according to the first trigger condition.
The storage module 22 is configured to store the audio data by using a second-level cache mechanism, so that the audio data stored in the first-level cache is audio data of a preset time period before the current time. And the uploading module 23 is configured to upload the audio data in the first-level cache to the server according to the second trigger condition.
The first trigger condition is formed by clicking a trigger button arranged on the video friend making interface, the second trigger condition is formed by clicking a report confirmation button in a dialog box on the video friend making interface, and the dialog box pops up when the trigger button is clicked.
Referring to fig. 3, on the basis of the above embodiment, the system for reporting in making friends with video provided by this embodiment further includes a maintenance module 24, a segmentation module 25, and a matching module 26.
The maintenance module 24 is configured to maintain two levels of caches in a memory, where the first level of cache has a first preset space size, and the second cache has a second preset space size, where the second preset space size is smaller than the first preset space size.
Referring to fig. 4, the memory module 22 includes a first memory unit 221, a clearing unit 222, and a second memory unit 223.
The first storage unit 221 is configured to store the subsequently intercepted audio data in the second-level cache when the first-level cache space is full.
The clearing unit 222 is configured to clear the audio data with the second preset space size at the head of the first level cache when the second level cache is full, and move the remaining audio data to the head, so that the second preset space size is left at the tail of the first level cache.
The second storage unit 223 is configured to store the audio data of the second preset space size in the second-level cache at the tail of the first-level cache.
The uploading module 23 is specifically configured to: and writing the audio data cached at the first level in the memory into a disk according to a second trigger condition, and uploading the audio data to the server through the disk.
The dividing module 25 is configured to, when the size of the remaining capacity of the disk is smaller than a first preset space size, equally divide the audio data in the first-level cache into a plurality of audio data blocks, where the size of each audio data block is smaller than the size of the remaining capacity of the disk.
Correspondingly, the upload module 23 is specifically configured to: and writing one audio data block into the disk each time, uploading the audio data block to the server, deleting the audio data block in the disk after the uploading is successful, and writing the next audio data block until all the audio data blocks are uploaded to the server.
The matching module 26 is configured to, when a second trigger condition is received, extract text information in the audio data in the first-level cache, and match the text information in the audio data with text information in the database, where when text information matching the text information in the audio data exists in the database, the audio data belongs to audio data that needs to be reported, and otherwise, the audio data belongs to audio data that needs not to be reported.
Accordingly, upload module 23 is further configured to: and uploading the audio data to be reported to a server.
Referring to fig. 5, a block diagram of an apparatus of a reporting method in video friend making according to an embodiment of the present application is shown.
Referring to fig. 5, the apparatus for reporting method in video dating includes: a processor (processor)501, a memory (memory)502, and a bus 503; the processor 501 and the memory 502 are in communication with each other via the bus 503.
The processor 501 is configured to call program instructions in the memory 502 to perform the methods provided by the above-mentioned method embodiments, for example, including: intercepting audio data in the video friend making process according to a first trigger condition; storing the audio data by adopting a second-level cache mechanism, so that the audio data stored in the first-level cache is the audio data of a preset time period before the current time; and uploading the audio data in the first-level cache to the server according to a second trigger condition.
The invention discloses a computer program product, which comprises a computer program stored on a non-transitory computer readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer can execute the method for reporting in video friend making provided by the corresponding embodiment, for example, the method comprises the following steps: intercepting audio data in the video friend making process according to a first trigger condition; storing the audio data by adopting a second-level cache mechanism, so that the audio data stored in the first-level cache is the audio data of a preset time period before the current time; and uploading the audio data in the first-level cache to the server according to a second trigger condition.
The present invention also provides a non-transitory computer-readable storage medium storing computer instructions, which cause a computer to execute the method for reporting in video friend making provided by the above-mentioned corresponding embodiments, for example, the method includes: intercepting audio data in the video friend making process according to a first trigger condition; storing the audio data by adopting a second-level cache mechanism, so that the audio data stored in the first-level cache is the audio data of a preset time period before the current time; and uploading the audio data in the first-level cache to the server according to a second trigger condition.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatus and the like for the method of reporting in video friend making are merely illustrative, wherein units illustrated as separate components may or may not be physically separate, and components displayed 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the various embodiments or some parts of the methods of the embodiments.
According to the method and the system for reporting in the video friend-making process, in the network video friend-making process, audio signals in the friend-making process are intercepted according to triggering conditions, a secondary cache mechanism is adopted, the audio data in a first-level cache is guaranteed to be the audio data within the latest preset time, the audio data uploaded to a server is also within the latest time period, and the real reporting condition can be reflected better through analysis of the audio data within the latest time period; in addition, when the audio data in the first-level cache is written into the disk, if the size of the remaining capacity of the disk is smaller than that of the audio data in the first-level cache, the audio data in the first-level cache is divided, so that the size of each divided audio data block is smaller than that of the remaining capacity of the disk, and all the audio data in the first-level cache can be uploaded to the server.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for reporting in video friend making is characterized by comprising the following steps:
s1, intercepting audio data in the video friend making process according to the first trigger condition;
s2, storing the audio data by adopting a secondary cache mechanism, so that the audio data stored in the primary cache is the audio data of a preset time period before the current time;
s3, uploading the audio data in the first-level cache to the server according to the second trigger condition;
wherein, the step S3 further includes:
when a second trigger condition is received, extracting character information in the audio data in the first-level cache;
matching the character information in the audio data with the character information in the database, wherein when the character information matched with the character information in the audio data exists in the database, the audio data belongs to the audio data needing to be reported, otherwise, the audio data belongs to the audio data not needing to be reported;
and uploading the audio data which need to be reported to a server, and not uploading the audio data which do not need to be reported to the server, so that the server analyzes the uploaded audio data to judge whether the opposite side is a malicious user.
2. The method of claim 1, wherein the first trigger condition is formed by clicking a trigger button provided on the video friend making interface, and the second trigger condition is formed by clicking a report confirm button in a dialog box on the video friend making interface, wherein the dialog box pops up when the trigger button is clicked.
3. The method for reporting in video friend-making according to claim 1, wherein said step S2 further comprises:
and maintaining two levels of caches in the memory, wherein the first level of cache has a first preset space size, and the second level of cache has a second preset space size, wherein the second preset space size is smaller than the first preset space size.
4. The method for reporting in video friend making according to claim 3, wherein said step S2 further comprises:
s21, when the first level cache is full, the audio data intercepted subsequently is stored in the second level cache;
s22, when the second-level cache space is full, audio data with a second preset space size at the head of the first-level cache is removed, and the rest audio data is moved to the head, so that the second preset space size is left at the tail of the first-level cache;
and S23, placing the audio data with the second preset space size in the second-level cache at the tail part of the first-level cache.
5. The method for reporting in video friend-making according to claim 4, wherein said step S3 further comprises:
and writing the audio data cached in the first level in the memory into a disk according to a second trigger condition, uploading the audio data to the server through the disk, and analyzing the uploaded audio data by the server to judge whether the opposite side is a malicious user.
6. The method for reporting in a video friend-making according to claim 5, wherein before writing the audio data cached at the first level in the memory to the disk in step S3, the method further comprises:
when the second trigger condition is received and audio data exists in both the first level cache and the second level cache, the audio data in the second level cache is moved to the first level cache according to steps S22 and S23.
7. The method of claim 5, wherein writing the audio data cached in the first level of memory to disk further comprises:
when the size of the residual capacity of the disk is smaller than the size of a first preset space, equally dividing the audio data in the first-level cache into a plurality of audio data blocks, wherein the size of each audio data block is smaller than the size of the residual capacity of the disk;
and writing one audio data block into the disk each time, uploading the audio data block to the server, deleting the audio data block in the disk after the uploading is successful, and writing the next audio data block until all the audio data blocks are uploaded to the server.
8. A video dating reporting system, comprising:
the audio intercepting module is used for intercepting audio data in the video friend making process according to a first triggering condition;
the storage module is used for storing the audio data by adopting a second-level cache mechanism, so that the audio data stored in the first-level cache is the audio data in a preset time period before the current time;
the uploading module is used for uploading the audio data in the first-level cache to the server according to a second trigger condition;
wherein the upload module is further configured to:
when a second trigger condition is received, extracting character information in the audio data in the first-level cache;
matching the character information in the audio data with the character information in the database, wherein when the character information matched with the character information in the audio data exists in the database, the audio data belongs to the audio data needing to be reported, otherwise, the audio data belongs to the audio data not needing to be reported;
and uploading the audio data which need to be reported to a server, and not uploading the audio data which do not need to be reported to the server, so that the server analyzes the uploaded audio data to judge whether the opposite side is a malicious user.
9. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 7.
CN201710720446.5A 2017-08-21 2017-08-21 Method and system for reporting in video friend making Active CN107659842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710720446.5A CN107659842B (en) 2017-08-21 2017-08-21 Method and system for reporting in video friend making

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710720446.5A CN107659842B (en) 2017-08-21 2017-08-21 Method and system for reporting in video friend making

Publications (2)

Publication Number Publication Date
CN107659842A CN107659842A (en) 2018-02-02
CN107659842B true CN107659842B (en) 2020-02-07

Family

ID=61128543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710720446.5A Active CN107659842B (en) 2017-08-21 2017-08-21 Method and system for reporting in video friend making

Country Status (1)

Country Link
CN (1) CN107659842B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144444B (en) * 2018-07-24 2021-11-05 深圳微盐传媒科技有限公司 Method and device for displaying character information
CN109618198A (en) * 2018-12-10 2019-04-12 网易(杭州)网络有限公司 Live content reports method and device, storage medium, electronic equipment
CN114610199B (en) * 2022-03-21 2023-04-21 北京明略昭辉科技有限公司 Session message processing method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427350A (en) * 2013-08-29 2015-03-18 中兴通讯股份有限公司 Associated content processing method and system
CN104702671A (en) * 2015-02-06 2015-06-10 贵阳朗玛信息技术股份有限公司 Method and server for reporting information
CN105704005A (en) * 2014-11-28 2016-06-22 深圳市腾讯计算机系统有限公司 Malicious user reporting method and device, and reporting information processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9264159B2 (en) * 2009-12-10 2016-02-16 Mobitv, Inc. Distributed contribution of disparate interactive elements

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427350A (en) * 2013-08-29 2015-03-18 中兴通讯股份有限公司 Associated content processing method and system
CN105704005A (en) * 2014-11-28 2016-06-22 深圳市腾讯计算机系统有限公司 Malicious user reporting method and device, and reporting information processing method and device
CN104702671A (en) * 2015-02-06 2015-06-10 贵阳朗玛信息技术股份有限公司 Method and server for reporting information

Also Published As

Publication number Publication date
CN107659842A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
US11516248B2 (en) Security system for detection and mitigation of malicious communications
US11030311B1 (en) Detecting and protecting against computing breaches based on lateral movement of a computer file within an enterprise
US9729573B2 (en) Phishing campaign ranker
CN107659842B (en) Method and system for reporting in video friend making
US10110623B2 (en) Delaying phishing communication
CN111177779B (en) Database auditing method, device, electronic equipment and computer storage medium
CN108123933B (en) Information leakage automatic monitoring method and system based on internet big data
CN104125095A (en) System and method for monitoring event failure in real time
CN111931189B (en) API interface reuse risk detection method, device and API service system
CN111680008A (en) Log processing method and system, readable storage medium and intelligent device
Khan et al. Digital forensics and cyber forensics investigation: security challenges, limitations, open issues, and future direction
CN110830500B (en) Network attack tracking method and device, electronic equipment and readable storage medium
CN112333709A (en) Cross-network fraud association analysis method and system and computer storage medium
Vukadinovic Whatsapp forensics: Locating artifacts in web and desktop clients
CN105592137A (en) Application type identification method and device
US9749359B2 (en) Phishing campaign ranker
CN105530658A (en) Remote diagnosis method of wireless communication module, device and system
CN117201601A (en) Internet of things equipment access method, device, equipment and storage medium
CN104065617B (en) A kind of harassing and wrecking email processing method, device and system
KR102228021B1 (en) System for detecting illegal call using machine learning and control method thereof
US10110628B2 (en) Phishing source tool
CN111813811A (en) Telecommunication fraud early warning method, device, electronic equipment and medium
CN112989364A (en) Method, apparatus and computer program product for data simulation
CN115567283A (en) Identity authentication method, device, electronic equipment, system and storage medium
CN109726181B (en) Data processing method and data processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant