Summary of the invention
For disadvantages described above or the Improvement requirement of prior art, the invention provides the report of a kind of barrage
Method, client and server, its object is to by the artificial report according to user dynamic, on the one hand
Immediately report user is deleted the display of specific barrage, on the one hand by server to overall situation client and
Barrage filters rule and processes in violation of rules and regulations, thus solves prior art too late for the barrage response of report
Time or deal with technical problem improperly.
For achieving the above object, according to one aspect of the present invention, it is provided that a kind of barrage report method,
Comprise the following steps:
(1) barrage of user's report is obtained;
(2) report client process: report the client of described barrage by described barrage from barrage array
In remove and refresh display so that described barrage is not then displayed on video;And by the act of described barrage
Breath of notifying is committed to server;
(3) server process: described barrage is audited by server, when auditing result is described bullet
When curtain is violation barrage, carry out front-end processing and background process;Described front-end processing makes the broadcasting that calls request
The client of described video shields described barrage, and described background process makes server update barrage in violation of rules and regulations
Filter rule.
Preferably, described barrage report method, the barrage that its described user of acquisition reports is:
The client of report obtains the clicking operation that the barrage of video is carried out by user, according to click location,
Determine barrage;Pop-up shows described barrage content, obtains the report obtaining described barrage after user confirms
Information.
Preferably, described barrage report method, its described report information includes that barrage content, barrage are sent out
The person of sending, barrage informant, report time and/or report source.
Preferably, described barrage report method, its described front-end processing is:
Send the broadcast deleting described barrage so that the client receiving described broadcast shields described bullet
Curtain.
Preferably, described barrage report method, its described background process is:
The report information of described barrage is added to violation barrage database, according to the database after updating
Optimize barrage filtering rule.
According to another aspect of the present invention, it is provided that a kind of barrage report client, including:
Report acquisition module, for obtaining the barrage of user's report;
Report processing module, after obtaining barrage report information at report acquisition module, by described bullet
Curtain removes from barrage array and refreshes display so that described barrage is not then displayed on video;
Broadcast reception module, for receive server send delete barrage broadcast so that described extensively
Broadcast the barrage specified not appear on video.
Preferably, described barrage report client, its described report acquisition module, for obtaining regarding
The clicking operation that the barrage of frequency is carried out, after showing barrage content and obtaining user's confirmation, obtains described bullet
Curtain report information and submit to server.
It is another aspect of this invention to provide that provide a kind of barrage report server, including:
Auditing module, for receiving the report information of the barrage that barrage report client is submitted to, and is carried out
Examination & verification judges whether described barrage is violation barrage;
Pre-processing module, for when auditing module judges described barrage as barrage in violation of rules and regulations so that request
The client playing described video shields described barrage;
Background processing module, for when auditing module judges described barrage as barrage in violation of rules and regulations, updating clothes
Business device barrage in violation of rules and regulations filters rule.
Preferably, described barrage report server, it is described that its described pre-processing module is used for sending deletion
The broadcast of barrage.
Preferably, described barrage report server, its described background processing module is for by described barrage
Report information add to violation barrage database, filter rule according to the data base optimization barrage after updating
Then.
In general, by the contemplated above technical scheme of the present invention compared with prior art, due to
The present invention takes client and server asynchronous process to be reported the method for barrage, it is possible to obtains and rings in time
Answer user to report the corresponding barrage of shielding, avoid erroneous judgement simultaneously, effectively reduce barrage erroneous judgement impact in violation of rules and regulations and carry
The beneficial effect of high Consumer's Experience.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing
And embodiment, the present invention is further elaborated.Should be appreciated that described herein specifically
Embodiment only in order to explain the present invention, is not intended to limit the present invention.Additionally, it is disclosed below
Just may be used as long as technical characteristic involved in each embodiment of the present invention does not constitutes conflict each other
To be mutually combined.
The information object that indication barrage of the present invention, i.e. user send, including barrage numbering, barrage
Content, sender's attribute, according to website needs, can increase such as other attributes such as transmission times.
The barrage report method that the present invention provides, comprises the following steps:
(1) barrage of user's report is obtained;
The described barrage obtaining user's report, the client being specially report obtains user's bullet to video
The clicking operation that curtain is carried out, according to click location, determines barrage;Pop-up shows described barrage content,
Obtain the report information obtaining described barrage after user confirms.
Described report information includes: barrage content, barrage numbering, barrage sender, barrage informant,
Report time, report source.
(2) report client process: report the client of described barrage by described barrage from barrage array
In remove and refresh display so that described barrage is not then displayed on video;And by the act of described barrage
Breath of notifying is committed to server;
(3) server process: described barrage is audited by server, when auditing result is described bullet
When curtain is violation barrage, carry out front-end processing and background process;Described front-end processing makes the broadcasting that calls request
The client of described video shields described barrage, and described background process makes server update barrage in violation of rules and regulations
Filter rule.
Described front-end processing particularly as follows: send delete described barrage broadcast so that receive described extensively
The client broadcast shields described barrage.
Described back-end processing particularly as follows: the report information of described barrage is added to violation barrage database,
According to the data base optimization barrage filtering rule after updating.
Described barrage filtering rule can use keyword to filter and/or machine learning classification is formulated.Described
Keyword includes that the violation word in barrage content, barrage sender, barrage informant and/or report come
Source.Such as, machine learning classification is carried out for violation word, for barrage filtering rule;Delete this bullet
Curtain sender send barrage, delete this barrage informant report all barrages, delete this report come
All barrages that source sends.
The barrage report client that the present invention provides, including:
Report acquisition module, for obtaining the barrage of user's report, specifically, obtains the bullet to video
The clicking operation that curtain is carried out, after showing barrage content and obtaining user's confirmation, obtains the act of described barrage
Notify breath submit to server;
Described report information includes: barrage content, barrage numbering, barrage sender, barrage informant,
Report time, report source.
Report processing module, after obtaining barrage report information at report acquisition module, by described bullet
Curtain removes from barrage array and refreshes display so that described barrage is not then displayed on video;
Broadcast reception module, for receive server send delete barrage broadcast so that described extensively
Broadcast the barrage specified not appear on video.
The barrage report server that the present invention provides, including:
Auditing module, for receiving the report information of the barrage that barrage report client is submitted to, and is carried out
Examination & verification judges whether described barrage is violation barrage;
Pre-processing module, for when auditing module judges described barrage as barrage in violation of rules and regulations so that request
The client playing described video shields described barrage;
Described pre-processing module, is preferred for sending the broadcast deleting described barrage;
Background processing module, for when auditing module judges described barrage as barrage in violation of rules and regulations, updating clothes
Business device barrage in violation of rules and regulations filters rule.
Described background processing module, is preferred for adding to violation barrage the report information of described barrage
Database, according to the data base optimization barrage filtering rule after updating.
Described barrage filtering rule can use keyword to filter and/or machine learning classification is formulated.Described
Keyword includes that the violation word in barrage content, barrage sender, barrage informant and/or report come
Source.Such as, machine learning classification is carried out for violation word, for barrage filtering rule;Delete this bullet
Curtain sender send barrage, delete this barrage informant report all barrages, delete this report come
All barrages that source sends.
It is below embodiment:
A kind of report method of barrage, comprises the following steps:
(1) barrage of user's report is obtained: be connected with server foundation by Socket communication protocol
After get barrage information, by barrage information by UITableView (iOS system control) display exist
On client screen, user clicks on, after seeing, the barrage wanting report, and client ejects Option Box requirement
User confirms, described Option Box comprises the ID sending this barrage information and barrage content, user
Decide whether to report this barrage, it is to avoid the maloperation of user.User confirms to report described barrage, visitor
Family end obtains the report information of described barrage, including barrage content, barrage numbering, barrage sender,
Barrage informant, report time, report source.Report source, refers to live room when live,
Ordinary video can be that barrage sends IP etc. when playing.Barrage informant, if being not logged in, is recorded as sky.
If for unconfirmed, then closing the Option Box of ejection, terminate.
(2) report client process: report the client of described barrage by described barrage from barrage array
In remove and refresh display so that described barrage is not then displayed on video;The information of record is passed through
Socket agreement is mourned in silence and is sent to background server, adds queue pending messages after failure to, sends out next time
Detecting whether message queue has unsuccessful information last time when sending, if had, resending.
Barrage display uses the mode of control multiplexing, and operating the most frequently or refresh frequently will not
Other clients are produced impact.Client does not audit the barrage reported, directly shields display, from
And ensure to should be timely, transfer to backstage to carry out the process of big data.
(3) server process: described barrage is audited by server, when auditing result is described bullet
When curtain is violation barrage, carry out front-end processing and background process;Described front-end processing makes the broadcasting that calls request
The client of described video shields described barrage, and described background process makes server update barrage in violation of rules and regulations
Filter rule.
Barrage is audited by server, thus evades malice report or report by mistake, causes barrage by mistake
Delete, it is ensured that the enjoyment of barrage sender, thus improve Consumer's Experience.Carry out at server end simultaneously
After examination & verification, just carrying out pre-treatment so that client shielding barrage in violation of rules and regulations, the impact of fall erroneous judgement reduces.
Described front-end processing is particularly as follows: send the broadcast deleting described barrage, and described broadcast includes in violation of rules and regulations
Barrage is numbered, and the client receiving described broadcast shields this barrage.
Described back-end processing particularly as follows: the report information of described barrage is added to violation barrage database,
According to the data base optimization barrage filtering rule after updating.
Described barrage filtering rule can use keyword to filter and machine learning classification is formulated.Described key
Word includes the violation word in barrage content, barrage sender, barrage informant and/or report source.
Machine learning classification is carried out for keyword, forms new barrage filtering rule.
A kind of barrage report client, including:
Report acquisition module, for obtaining the barrage of user's report, specifically, obtains the bullet to video
The clicking operation that curtain is carried out, after showing barrage content and obtaining user's confirmation, obtains the act of described barrage
Notify breath submit to server;Described report information includes: barrage content, barrage numbering, barrage
Sender, barrage informant, report time, report source.
Report processing module, after obtaining barrage report information at report acquisition module, by described bullet
Curtain removes from barrage array and refreshes display so that described barrage is not then displayed on video;
Broadcast reception module, for receive server send delete barrage broadcast, according to described extensively
Broadcast middle violation barrage numbering, shield the barrage that described barrage makes described broadcast specify and do not appear in video
On.
The barrage report server that the present invention provides, including:
Auditing module, for receiving the report information of the barrage that barrage report client is submitted to, and is carried out
Manual examination and verification judge whether described barrage is violation barrage;
Pre-processing module, for when auditing module judges described barrage as barrage in violation of rules and regulations so that request
The client playing described video shields described barrage;
Described pre-processing module, for sending the broadcast deleting described barrage, described broadcast includes described
The numbering of barrage;
Background processing module, for the report information of described barrage is added to violation barrage database,
According to the data base optimization barrage filtering rule after updating.
Described barrage filtering rule can use keyword to filter and machine learning classification is formulated.Described key
Word includes the violation word in barrage content, barrage sender, barrage informant and/or report source.
Machine learning classification is carried out for keyword, forms new barrage filtering rule.
As it will be easily appreciated by one skilled in the art that and the foregoing is only presently preferred embodiments of the present invention,
Not in order to limit the present invention, all made within the spirit and principles in the present invention any amendment, etc.
With replacement and improvement etc., should be included within the scope of the present invention.