Summary of the invention
Aiming at the above defects or improvement requirements of the prior art, the present invention provides a kind of methods of barrage report, client
End and server, its object is to by dynamic according to the artificial report of user, one side deletes specific bullet to report user immediately
The display of curtain, on the one hand filters out rule to global client and violation barrage by server and handles, thus solve existing
Technology responds not in time or deals with improperly technical problem for the barrage of report.
To achieve the above object, according to one aspect of the present invention, a kind of barrage report method, including following step are provided
It is rapid:
(1) barrage of user's report is obtained;
(2) it reports client process: reporting that the barrage is removed and brushed from barrage array by the client of the barrage
New display, so that the barrage is not then displayed on video;And the report information of the barrage is committed to server;
(3) server process: server audits the barrage, is violation barrage when auditing result is the barrage
When, carry out front-end processing and background process;The front-end processing, which makes to call request, plays bullet described in client's end shield of the video
Curtain, the background process make server update violation barrage filter out rule.
Preferably, the barrage reports method, the barrage for obtaining user's report are as follows:
The client of report obtains the clicking operation that user carries out the barrage of video and determines barrage according to click location;
Pop-up shows the barrage content, obtains the report information that the barrage is obtained after user confirms.
Preferably, the barrage reports method, and the report information includes barrage content, barrage sender, barrage act
The person of report, report time, and/or report source.
Preferably, the barrage reports method, the front-end processing are as follows:
The broadcast for deleting the barrage is sent, so that receiving barrage described in client's end shield of the broadcast.
Preferably, the barrage reports method, the background process are as follows:
The report information of the barrage is added to violation barrage database, according to updated data base optimization barrage mistake
Filter rule.
Other side according to the invention provides a kind of barrage report client, comprising:
Report obtains module, for obtaining the barrage of user's report;
Processing module is reported, for obtaining after module obtains barrage report information in report, by the barrage from barrage number
Display is removed and refreshed in group, so that the barrage is not then displayed on video;
Broadcasting reception module, the broadcast of the deletion barrage for receiving server transmission, so that the bullet that the broadcast is specified
Curtain does not appear on video.
Preferably, the barrage reports client, and the report obtains module, for obtaining the barrage progress to video
Clicking operation, show barrage content and obtain user confirmation after, obtain the report information of the barrage and submit to server.
It is another aspect of this invention to provide that providing a kind of barrage report server, comprising:
Auditing module for receiving the report information for the barrage that barrage report client is submitted, and carries out audit and judges institute
State whether barrage is violation barrage;
Pre-processing module, for when auditing module judges the barrage for violation barrage, making to call request to play the view
Barrage described in client's end shield of frequency;
Background processing module, for updating server violation bullet when auditing module judges the barrage for violation barrage
Curtain filters out rule.
Preferably, the barrage reports server, and the pre-processing module is for sending the broadcast for deleting the barrage.
Preferably, the barrage reports server, and the background processing module is used for the report information of the barrage
It is added to violation barrage database, according to updated data base optimization barrage filtering rule.
In general, through the invention it is contemplated above technical scheme is compared with the prior art, since the present invention takes
Client and server asynchronous process can be obtained by the method for report barrage and be timely responded to the corresponding barrage of user's report shielding,
It avoids judging by accident simultaneously, the erroneous judgement of violation barrage, which is effectively reduced, to be influenced to improve the beneficial effect of user experience.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described below
Not constituting a conflict with each other can be combined with each other.
The information object that meaning barrage of the invention, i.e. user are sent, including barrage number, barrage content, sender
Attribute can increase such as other attributes of sending time according to website needs.
Barrage provided by the invention reports method, comprising the following steps:
(1) barrage of user's report is obtained;
The barrage for obtaining user's report, the client specially reported obtain the point that user carries out the barrage of video
Operation is hit, according to click location, determines barrage;Pop-up shows the barrage content, obtains the barrage after obtaining user's confirmation
Report information.
The report information includes: barrage content, barrage number, barrage sender, barrage informant, the report time, lifts
Offer source.
(2) it reports client process: reporting that the barrage is removed and brushed from barrage array by the client of the barrage
New display, so that the barrage is not then displayed on video;And the report information of the barrage is committed to server;
(3) server process: server audits the barrage, is violation barrage when auditing result is the barrage
When, carry out front-end processing and background process;The front-end processing, which makes to call request, plays bullet described in client's end shield of the video
Curtain, the background process make server update violation barrage filter out rule.
The front-end processing specifically: the broadcast for deleting the barrage is sent, so that receiving the client of the broadcast
Shield the barrage.
The back-end processing specifically: the report information of the barrage is added to violation barrage database, according to update
Data base optimization barrage filtering rule afterwards.
Keyword filtering can be used in the barrage filtering rule and/or machine learning classification is formulated.The keyword packet
Include violation word, barrage sender, barrage informant, and/or the report source in barrage content.For example, being carried out for violation word
Machine learning classification is used for barrage filtering rule;It deletes the barrage of barrage sender transmission, delete barrage informant report
All barrages, delete the report source sending all barrages.
Barrage provided by the invention reports client, comprising:
Report obtains module, for obtaining the barrage of user's report, specifically, obtains the click carried out to the barrage of video
Operation obtains the report information of the barrage and submits to server after showing barrage content and obtaining user's confirmation;
The report information includes: barrage content, barrage number, barrage sender, barrage informant, the report time, lifts
Offer source.
Processing module is reported, for obtaining after module obtains barrage report information in report, by the barrage from barrage number
Display is removed and refreshed in group, so that the barrage is not then displayed on video;
Broadcasting reception module, the broadcast of the deletion barrage for receiving server transmission, so that the bullet that the broadcast is specified
Curtain does not appear on video.
Barrage provided by the invention reports server, comprising:
Auditing module for receiving the report information for the barrage that barrage report client is submitted, and carries out audit and judges institute
State whether barrage is violation barrage;
Pre-processing module, for when auditing module judges the barrage for violation barrage, making to call request to play the view
Barrage described in client's end shield of frequency;
The pre-processing module is preferred for sending the broadcast for deleting the barrage;
Background processing module, for updating server violation bullet when auditing module judges the barrage for violation barrage
Curtain filters out rule.
The background processing module is preferred for for the report information of the barrage being added to violation barrage database, root
According to updated data base optimization barrage filtering rule.
Keyword filtering can be used in the barrage filtering rule and/or machine learning classification is formulated.The keyword packet
Include violation word, barrage sender, barrage informant, and/or the report source in barrage content.For example, being carried out for violation word
Machine learning classification is used for barrage filtering rule;It deletes the barrage of barrage sender transmission, delete barrage informant report
All barrages, delete the report source sending all barrages.
The following are embodiments:
A kind of report method of barrage, comprising the following steps:
(1) it obtains the barrage of user's report: getting barrage after establishing connection by Socket communication protocol and server
Barrage information is shown on client screen by information by UITableView (iOS system control), and user clicks after seeing
Want the barrage of report, client pops up Option Box and requires user's confirmation, and the Option Box includes to send this barrage information
User ID and barrage content, user decide whether to report this barrage, avoids the maloperation of user.User, which confirms, reports the bullet
Curtain, client obtain the report information of the barrage, including barrage content, barrage number, barrage sender, barrage informant,
Report time, report source.It reports source, refers to live streaming room in live streaming, ordinary video plays Shi Kewei barrage and sends IP
Deng.Barrage informant, is recorded as sky if being not logged in.
If closing the Option Box of pop-up for being confirmed, terminate.
(2) it reports client process: reporting that the barrage is removed and brushed from barrage array by the client of the barrage
New display, so that the barrage is not then displayed on video;The information of record is sent to backstage by Socket agreement silence
Server is added to queue pending messages after failure, whether detection message queue has last time failed information when next time sends,
If there is then retransmitting.
Barrage shows that by the way of control multiplexing, excessively frequently operation or frequent refresh will not be to other clients
End has an impact.Client does not audit the barrage reported, directly shielding display, thus guarantee to should in time, transfer to backstage into
The processing of row big data.
(3) server process: server audits the barrage, is violation barrage when auditing result is the barrage
When, carry out front-end processing and background process;The front-end processing, which makes to call request, plays bullet described in client's end shield of the video
Curtain, the background process make server update violation barrage filter out rule.
Server audits barrage, reports or accidentally reports to evade malice, causes barrage accidentally to be deleted, guarantee bullet
The enjoyment of curtain sender, to improve user experience.Simultaneously after server end is audited, pre-treatment is just carried out, so that objective
Family end shield violation barrage, the influence for dropping erroneous judgement reduce.
The front-end processing specifically: send the broadcast for deleting the barrage, the broadcast includes that violation barrage is numbered, and is connect
Receive client's end shield of broadcast barrage.
The back-end processing specifically: the report information of the barrage is added to violation barrage database, according to update
Data base optimization barrage filtering rule afterwards.
Keyword filtering can be used in the barrage filtering rule and machine learning classification is formulated.The keyword includes barrage
Violation word, barrage sender, barrage informant, and/or report source in content.Machine learning point is carried out for keyword
Class forms new barrage filtering rule.
A kind of barrage report client, comprising:
Report obtains module, for obtaining the barrage of user's report, specifically, obtains the click carried out to the barrage of video
Operation obtains the report information of the barrage and submits to server after showing barrage content and obtaining user's confirmation;The act
Breath of notifying includes: barrage content, barrage number, barrage sender, barrage informant, report time, report source.
Processing module is reported, for obtaining after module obtains barrage report information in report, by the barrage from barrage number
Display is removed and refreshed in group, so that the barrage is not then displayed on video;
Broadcasting reception module, the broadcast of the deletion barrage for receiving server transmission, according to violation bullet in the broadcast
Curtain number shields the barrage that the barrage makes the broadcast specified and does not appear on video.
Barrage provided by the invention reports server, comprising:
Auditing module for receiving the report information for the barrage that barrage report client is submitted, and carries out manual examination and verification and sentences
Whether the barrage that breaks is violation barrage;
Pre-processing module, for when auditing module judges the barrage for violation barrage, making to call request to play the view
Barrage described in client's end shield of frequency;
The pre-processing module, for sending the broadcast for deleting the barrage, the broadcast includes the number of the barrage;
Background processing module, for the report information of the barrage to be added to violation barrage database, after update
Data base optimization barrage filtering rule.
Keyword filtering can be used in the barrage filtering rule and machine learning classification is formulated.The keyword includes barrage
Violation word, barrage sender, barrage informant, and/or report source in content.Machine learning point is carried out for keyword
Class forms new barrage filtering rule.
As it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, not to
The limitation present invention, any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should all include
Within protection scope of the present invention.