CN109660869A - Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation - Google Patents

Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation Download PDF

Info

Publication number
CN109660869A
CN109660869A CN201710932700.8A CN201710932700A CN109660869A CN 109660869 A CN109660869 A CN 109660869A CN 201710932700 A CN201710932700 A CN 201710932700A CN 109660869 A CN109660869 A CN 109660869A
Authority
CN
China
Prior art keywords
sensitive word
barrage message
network request
word dictionary
dictionary
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.)
Pending
Application number
CN201710932700.8A
Other languages
Chinese (zh)
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 CN201710932700.8A priority Critical patent/CN109660869A/en
Publication of CN109660869A publication Critical patent/CN109660869A/en
Pending legal-status Critical Current

Links

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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements
    • 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/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • 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/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses barrage message screening method, storage medium, equipment and the systems of a kind of cooperation of multiterminal, are related to internet mobile terminal applicating developing technology field.It is saved this method comprises: the sensitive word that main broadcaster adds is sent to server by main broadcaster end, and obtains sensitive word dictionary from server and saved;User terminal obtains corresponding sensitive word dictionary when user enters direct broadcasting room;And when user will send barrage message, which is compared with sensitive word dictionary, if including sensitive word in the barrage message, user is forbidden to send this barrage message;When main broadcaster end often receives a barrage message, this barrage message can be compared with the sensitive word locally saved dictionary, if including sensitive word in the barrage message, the barrage message can be shielded.The present invention can transfer to the shielding processing of sensitive word barrage message user terminal and the cooperation of main broadcaster end to handle, and dramatically reduce the pressure of server, so that the service quality of server is high, user experience is good.

Description

Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation
Technical field
It is specifically that a kind of barrage of multiterminal cooperation disappears the present invention relates to internet mobile terminal applicating developing technology field Cease screen method, storage medium, equipment and system.
Background technique
With the rapid development of mobile terminals, the especially fast development of mobile terminal of mobile telephone, live streaming industry increasingly by It welcomes, many users like watching live streaming by mobile terminal device.During live streaming, between user and main broadcaster usually It can be realized by barrage text and be interacted with main broadcaster.And sent in treatment process in the barrage of live streaming, it will usually to some quick Feel word and carry out shielding processing, with the legal orderly network living broadcast environment of maintenance civilization.
The server currently, filtering sensitive words and verification mode in barrage transmission treatment process place one's entire reliance upon, i.e., individually Carry out filtering sensitive words and the verification of barrage content in server end: the every hair a piece of news of user, server require to take this Message compares whether this barrage includes sensitive word, compares require to be related to the various behaviour such as inquiry and operation judgement each time Make;Some mobile terminals APP (Application, application program) has more than one hundred million users, the thousands of items of daily barrage, this The Shielding plan of server of kind placing one's entire reliance upon undoubtedly will increase the pressure of server so that server can not load, Jin Erying Ring service quality, poor user experience.
Summary of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technique, a kind of barrage message screen of multiterminal cooperation is provided Method, storage medium, equipment and system are covered, the shielding processing of sensitive word barrage message can be transferred to user terminal and main broadcaster end to cooperate Processing, dramatically reduces the pressure of server, so that the service quality of server is high, user experience is good.
To achieve the above objectives, the technical solution adopted by the present invention is that: a kind of barrage message screening of multiterminal cooperation is provided Method, method includes the following steps:
The sensitive word for the hope shielding that main broadcaster adds is sent to server by S1, main broadcaster end;Server will receive sensitive word It saves into sensitive word dictionary;Main broadcaster end obtains the sensitive word dictionary and saves to main broadcaster end;
S2, user terminal are when user enters the direct broadcasting room of main broadcaster every time, from server by way of initiating network request Obtain the corresponding sensitive word dictionary of direct broadcasting room main broadcaster;
S3, when user will send barrage message, in barrage message that user terminal will send user and step S2 The sensitive word dictionary of acquisition is compared, if forbidding user to send out comprising the sensitive word in sensitive word dictionary in the barrage message Give this barrage message;
When S4, main broadcaster end often receive a barrage message, sensitive word that this barrage message and main broadcaster end are saved Dictionary is compared, if shielding the barrage message comprising the sensitive word in sensitive word dictionary in the barrage message.
Based on the above technical solution, step S2 specifically includes following below scheme:
S201, user terminal use network request tool-class when user enters the direct broadcasting room of main broadcaster every time InterfaceManager calls sensitive word to obtain interface function, which obtains interface function and be not necessarily to any parameter, works as net Network request feeds back to three readjustment parameters: the mistake of the error code parameter errorCode of network request, network request after initiating False information parameter errorMessage and the data data parameter of request;
The error code parameter errorCode for the network request that S202, basis are fed back to and the data data parameter of request Type, judge whether network request successful and whether data type correct, if network request success and data type is correct, Data data parameter is stored to user terminal.
Based on the above technical solution, in step S3 and step S4, barrage message and sensitive word dictionary are compared Clock synchronization uses efficient barrage searching algorithm, and the realization process of the efficient barrage searching algorithm is as follows:
All the elements of sensitive word dictionary are stored into an existing sensitive word array, the sensitive word array it is each The corresponding sensitive word of a element;
Current sensitive word array is successively traversed each in sensitive word dictionary using IOS without subscript traversal method A sensitive word;
Often traverse a sensitive word, the character string using IOS includes judgment method, by barrage message and the sensitive word into Whether row compares, judge comprising the sensitive word in the barrage message, if comprising directly stopping traversing and determining that this barrage disappears Breath includes the sensitive word in sensitive word dictionary;If do not included, continues the traversal of next sensitive word and compare.
The present invention also provides a kind of storage mediums, are stored thereon with computer program, the computer program is by processor The step of barrage message screening method of above-mentioned multiterminal cooperation is realized when execution.
The present invention also provides a kind of barrage message screening equipment of multiterminal cooperation, including memory, processor and are stored in The computer program run on memory and on the processor, the processor are realized when executing the computer program The step of stating the barrage message screening method of multiterminal cooperation.
The present invention also provides a kind of barrage message screening system of multiterminal cooperation, which includes be set to main broadcaster end quick Sense word dictionary founds module, sensitive word shroud module;And it is set to sensitive word dictionary acquisition module, the sensitive word taboo of user terminal Send out module;
The sensitive word dictionary is founded module and is used for: the sensitive word of the hope shielding of main broadcaster's addition is sent to server; Device to be serviced will receive sensitive word and save to sensitive word dictionary, obtain the sensitive word dictionary and save to main broadcaster end;
The sensitive word dictionary obtains module and is used for: when user enters the direct broadcasting room of main broadcaster every time, by initiating network The mode of request obtains the corresponding sensitive word dictionary of direct broadcasting room main broadcaster from server;
The sensitive word is prohibited hair module and is used for: when user will send barrage message, barrage that user will be sent Message is compared with the sensitive word dictionary of acquisition, if forbidding in the barrage message comprising the sensitive word in sensitive word dictionary User sends this barrage message;
The sensitive word shroud module is used for: when often receiving a barrage message, by this barrage message and main broadcaster end sheet The sensitive word dictionary that ground saves is compared, if comprising the sensitive word in sensitive word dictionary in the barrage message, by the barrage Message is shielded.
Based on the above technical solution, the sensitive word dictionary founds module and sends the sensitive word of addition and save quick Feel the detailed process of word dictionary are as follows: define a sensitive word and add function, which, which adds function, has a character string class The parameter KeyWord of type, parameter KeyWord are the sensitive word of the hope shielding of main broadcaster's addition;Whether judge parameter KeyWord It if it is empty then provides user for sky and plays frame prompt, prompt user that please don't add empty content, and interrupt addition sensitive word operation; If not empty, then sensitive word is sent to server using network request mode;When network request is sent successfully, server is successful Sensitive word will be received to save to a sensitive word dictionary, judge the whether existing number for being used to save sensitive word dictionary in local Group;If it does not exist, then an array dataArray is first created, then the sensitive word dictionary obtained from server is saved to the number In group dataArray;If existing, directly the sensitive word dictionary obtained from server is saved to existing array In dataArray.
Based on the above technical solution, it is quick accordingly to obtain direct broadcasting room main broadcaster for the sensitive word dictionary acquisition module Feel the detailed process of word dictionary are as follows:
When user enters the direct broadcasting room of main broadcaster every time, called using network request tool-class InterfaceManager quick Feel word and obtain interface function, which obtains interface function and be not necessarily to any parameter, feeds back to after network request is initiated Three readjustment parameters: the error message parameter of the error code parameter errorCode of network request, network request ErrorMessage and the data data parameter of request;
According to the error code parameter errorCode of the network request fed back to and the class of the data data parameter of request Type, judging network request, whether successful and data type is correct, should if network request is successful and data type is correct Data data parameter is stored to user terminal.
Based on the above technical solution, the sensitive word dictionary obtains module and is also used to: if sensitive word dictionary obtains Module had initiated network request, it is desirable to when initiating network request again, then by calling existing network request to cancel function First the network request initiated before is cancelled, then initiates a new network request.
Based on the above technical solution, the sensitive word prohibits hair module, the sensitive word shroud module disappears barrage When breath is compared with sensitive word dictionary, efficient barrage searching algorithm is used, the realization of the efficient barrage searching algorithm Process is as follows: all the elements of sensitive word dictionary are stored into an existing sensitive word array, the sensitive word array it is every The corresponding sensitive word of one element;Sensitivity is successively traversed without subscript traversal method using IOS to current sensitive word array Each of word dictionary sensitive word;A sensitive word is often traversed, the use of the character string of IOS includes judgment method, by barrage Whether message is compared with the sensitive word, judge comprising the sensitive word in the barrage message, if comprising directly stopping traversal And determine that this barrage message includes the sensitive word in sensitive word dictionary;If do not included, continue next sensitive word Traversal with compare.
The beneficial effects of the present invention are:
(1) in the present invention, the sensitive word that hope that main broadcaster add shields is sent to server preservation by main broadcaster end, and from clothes Business device obtains the sensitive word dictionary and is saved;User terminal obtains corresponding sensitive when user enters the direct broadcasting room of main broadcaster every time Word dictionary;And when user will send barrage message, the sensitive word dictionary of barrage message and acquisition that user will be sent It is compared, if forbidding user to send this barrage message comprising the sensitive word in sensitive word dictionary in the barrage message;It is main End is broadcast when often receiving a barrage message, this barrage message can be compared with the sensitive word locally saved dictionary, if this Include sensitive word in barrage message, then can shield the barrage message.
Compared with prior art, the filter operation of some sensitive words is placed on user terminal and main broadcaster end as far as possible by the present invention Processing dramatically reduces the pressure of server by user terminal and the cooperation of the multiterminal at main broadcaster end, so that the Service Quality of server Amount is high, user experience is good.
It (2), can be to addition when the sensitive word that the hope that main broadcaster adds shields is sent to server by main broadcaster end in the present invention Content carry out character string verification, do not allow for sending if it is null character string, due to adding a fault-tolerant processing so that The addition of sensitive word sends operation more rationally, effectively, avoids the transmission of invalid sensitive word.
(3) in the present invention, if user terminal had initiated network request, and user terminal is wanted to initiate network request again, meeting First the network request initiated before is cancelled, then initiates a new network request.In this manner it is possible to avoid because repeating to ask It asks, and causes to repeat to cause data redundancy from server pull data, operate redundancy.
It (4), can be to the sensitivity of server return when user terminal obtains corresponding sensitive word dictionary from server in the present invention Word dictionary data carry out the dual judgement of data type and error code, effectively can ensure to get by the double shield mechanism The correctness of sensitive word dictionary.
(5) in the present invention, when barrage message is compared with sensitive word dictionary, a kind of efficient barrage search is used Algorithm.It can be realized the comparison of progress sensitive word rapidly and efficiently using efficient barrage searching algorithm, once compare discovery barrage Include some sensitive word in message, then determines to need to prohibit hair or screen comprising the sensitive word in sensitive word dictionary in the barrage message It covers, without as traditional character string comparison mode, needing to carry out the character string of each sensitive word and barrage message It compares one by one, so that the search efficiency of filtering sensitive words has obtained significant increase, performance is more superior.
Detailed description of the invention
Fig. 1 is the flow chart of the barrage message screening method of multiterminal cooperation in the embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the barrage message screening equipment of multiterminal cooperation in the embodiment of the present invention;
Fig. 3 is the structural block diagram of the barrage message screening system of multiterminal cooperation in the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of barrage message screening method of multiterminal cooperation, and this method includes Following steps:
Step S1, the sensitive word for the hope shielding that main broadcaster adds is sent to server by main broadcaster end;Server will receive quick Sense word is saved into a sensitive word dictionary;Main broadcaster end obtains the sensitive word dictionary and saves to local.
In one embodiment, step S1 specifically includes following below scheme:
Step S101, main broadcaster end defines a sensitive word and adds function, such as addKeyword, which adds function tool There is the sensitive word for the hope shielding that the parameter KeyWord an of character string type, parameter KeyWord are main broadcaster's addition.
Step S102, using for judging whether character string is that empty function judge whether parameter KeyWord is sky, if Sky then provides user and plays frame prompt, prompts user that please don't add empty content, and interrupts addition sensitive word operation;If not empty, It is transferred to step S103.
Step S103, it is called using network request tool-class InterfaceManager and sends sensitive word connecing to server Mouthful, sensitive word is sent to server.It is understood that network request is sent and has a network request and send successfully Or the readjustment of failure, if sending failure, using the function for informing user's failure, such as ShowErrorMessageToastToWindow informs the reason of user's failure.
Step S104, when network request is sent successfully, server will successfully receive sensitive word and save to a sensitive word word Behind library, main broadcaster end judges the whether existing array for being used to save sensitive word dictionary in local;If it does not exist, then a number is first created Group dataArray, then will save from the sensitive word dictionary that server obtains into array dataArray;If existing, directly Connecing will save from the sensitive word dictionary that server obtains into existing array dataArray.By taking IOS system as an example, step In S104, when main broadcaster end creates array dataArray, alloc the and init function of IOS system offer can be used to realize.
In addition, can also include after step s 104 following behaviour: main broadcaster end will be from service for better user experience The sensitive word dictionary that device obtains is shown on current screen, and main broadcaster is facilitated to know which sensitive word oneself added.
Step S2, user terminal is when user enters the direct broadcasting room of main broadcaster every time, from clothes by way of initiating network request Business device obtains the corresponding sensitive word dictionary of direct broadcasting room main broadcaster.
It is understood that network request tool-class InterfaceManager can be used to call sensitive when practical operation Word obtains interface function to obtain the sensitive word dictionary of corresponding main broadcaster from server.The sensitive word obtains interface function without any Parameter can directly feed back to three readjustment parameters: the error code parameter of network request after network request is initiated ErrorCode, errorCode illustrate network request success for 0;The error message parameter errorMessage of network request, when ErrorMessage is by the description information of feedback request mistake when network request is unsuccessful;And the data data parameter of request, Data data parameter is exactly the content of sensitive word dictionary.Therefore, it then can determine whether that network is asked according to error code parameter errorCode The no success of Seeking Truth, if errorCode is 0 to illustrate network request success, if errorCode is not 0 to illustrate that network request is unsuccessful.
Specifically, in one embodiment, step S2 specifically includes following below scheme:
Step S201, user terminal uses network request tool-class when user enters the direct broadcasting room of main broadcaster every time InterfaceManager calls sensitive word to obtain interface function, which obtains interface function and be not necessarily to any parameter, works as net Network request feeds back to three readjustment parameters: the mistake of the error code parameter errorCode of network request, network request after initiating False information parameter errorMessage and the data data parameter of request, data data parameter are the interior of sensitive word dictionary Hold (can be text format).Or by taking IOS system as an example, in step S201, sensitive word obtains interface function, and IOS system can be used GetWordsFromService function under system is realized.
Step S202, according to the error code parameter errorCode of the network request fed back to the and data data of request The type of parameter judges whether network request is successful and whether data type is correct, if network request success and data type is just Really, then by data data parameter, i.e. the content of sensitive word dictionary is stored to user terminal.It is understood that in step S202, The mechanism that will do it data type and the dual judgement of error code, the sensitive word dictionary for ensuring to get by the double shield mechanism Correctness.
Further, in step S2, if user terminal had initiated network request, and user terminal is wanted initiation network again and is asked Asking (may not yet be responded due to server, i.e., also not get sensitive word dictionary from server;It is also likely to be that other reasons are wanted Network request is initiated again), then it will sent out before by calling existing network request to cancel function (such as cancel function) The network request risen is cancelled, i.e. the request of interruption current network;A new network request is initiated again.In this manner it is possible to avoid because Repetitive requests, and cause to repeat to cause data redundancy from server pull data, operate redundancy.
Step S3, when user will send barrage message, barrage message and step that user terminal will send user The sensitive word dictionary obtained in S2 is compared, if forbidding using comprising the sensitive word in sensitive word dictionary in the barrage message Family sends this barrage message.
In one embodiment, the sensitive word that user terminal will obtain in barrage message that user will send and step S2 When dictionary is compared, a kind of efficient barrage searching algorithm is used.Or by taking IOS system as an example, the efficient barrage search The realization process of algorithm is as follows:
Step 1, the storage of all the elements for the sensitive word dictionary that will acquire are into an existing sensitive word array, such as Array;The corresponding sensitive word of each element of sensitive word array Array.
Step 2, to current sensitive word array Array using IOS without subscript traversal method --- forin traversal, according to It is secondary to get each of sensitive word dictionary sensitive word.It is understood that IOS without subscript traversal method relative to having under The advantages of target traversal method be most efficiently, it is the fastest, the disadvantage is that not can know that this element in which of array position It sets, but this programme is not necessarily to know specifically in that position, so can reach efficient, quick using unsubscripted traversal method Extract the purpose of sensitive word.
Step 3 often traverses a sensitive word, then the use of the character string of IOS includes judgment method The barrage message that user will send is compared containsString with the sensitive word, judge be in the barrage message No includes the sensitive word, if comprising directly stopping traversing and determining that this barrage message includes the sensitivity in sensitive word dictionary Word then forbids user to send this barrage message;If do not included, return step 2 continues time of next sensitive word It goes through and compares.
It is understood that can be realized the comparison of progress sensitive word rapidly and efficiently using efficient barrage searching algorithm, Once comparing in discovery barrage message includes some sensitive word, then determine in the barrage message comprising the sensitivity in sensitive word dictionary Word and need to prohibit hair or shielding, without as traditional character string comparison mode, needing the character of each sensitive word String is compared one by one with barrage message, so that the search efficiency of filtering sensitive words has obtained significant increase, performance is more superior.
It should be noted that the IOS system example operation in above-mentioned steps is only an example, it is in others In system (such as in Android system), the specific implementation flow of each step, developer can actual function according to Android system, generation Situations such as code, interface, is specifically designed and is adjusted, herein with no restrictions.
Step S4, when main broadcaster end often receives a barrage message, by this barrage message and the sensitive word word that locally saves Library is compared, if shielding the barrage message comprising the sensitive word in sensitive word dictionary in the barrage message.
In one embodiment, the barrage message received is compared with the sensitive word dictionary locally saved at main broadcaster end When, be similarly using a kind of efficient barrage searching algorithm, the realization process of the efficient barrage searching algorithm is same as above, herein not It repeats.In addition, when being shielded the barrage message, the mode for directly falling the barrage message screening can be used in step S4 It is shielded;Can also be used by relevant sensitive word KeyWord using designated symbols (such as xx or * *) replace mode into Row shielding.
It is understood that in step S4 can also sensitive word comparison be carried out to every barrage message received at main broadcaster end, First is that further ensureing effective shielding of sensitive word to carry out secondary comparison shielding;Second is that in order to be directed to those without user (such as user terminal version is too low not to have sensitive word function of shielding to the barrage message of end shield;Or user be never have it is quick What the webpage version of sense word function of shielding was logged in;Or user terminal have sensitive word function of shielding and more because of sensitive word dictionary Newly can not effectively shield not in time), effective shielding at main broadcaster end can be played, to further effectively increase barrage sensitivity The reliability of word shielding processing.
The operation of S1~S4 is, it can be achieved that the barrage message screening that multiterminal cooperate through the above steps.Also, in aforesaid operations The filter operation of some sensitive words is placed on user terminal as far as possible and main broadcaster end is handled, passes through the multiterminal of user terminal and main broadcaster end Cooperation dramatically reduces the pressure of server, so that the service quality of server is high, user experience is good.
The barrage message screening method of corresponding above-mentioned multiterminal cooperation, the embodiment of the present invention also provide a kind of storage medium, It is stored thereon with computer program, the multiterminal cooperation in the various embodiments described above can be realized when which is executed by processor Barrage message screening method the step of.It should be noted that the storage medium includes USB flash disk, mobile hard disk, ROM (Read- Only Memory, read-only memory), RAM (Random Access Memory, random access memory), magnetic or disk Etc. the various media that can store program code.
In addition, shown in Figure 2, the barrage message screening method of corresponding above-mentioned multiterminal cooperation, the embodiment of the present invention is also There is provided a kind of barrage message screening equipment of multiterminal cooperation, including memory, processor and storage on a memory and can located The computer program run on reason device, the processor can be realized when executing computer program in the direct broadcasting room in the various embodiments described above The step of realizing the method for purchase commodity.
Shown in Figure 3, the embodiment of the present invention also provides a kind of barrage message screening system of multiterminal cooperation, the system packet It includes and is set to the sensitive word dictionary at main broadcaster end and founds module, sensitive word shroud module;And it is set to the sensitive word word of user terminal Library obtains module, sensitive word prohibits hair module.
Sensitive word dictionary is founded module and is used for: the sensitive word of the hope shielding of main broadcaster's addition is sent to server;Wait take Business device will receive sensitive word and save to a sensitive word dictionary, obtain the sensitive word dictionary and save to local.
Specifically, concrete operations process includes: to define a sensitive word addition function, which adds function tool There is the sensitive word for the hope shielding that the parameter KeyWord an of character string type, parameter KeyWord are main broadcaster's addition;Judgement Whether parameter KeyWord is sky, if it is empty, then provides user and plays frame prompt, prompt user that please don't add empty content, and interrupt Add sensitive word operation;If not empty, then sensitive word is sent to server using network request mode;When network request is sent Succeed, server will successfully receive sensitive word and save to a sensitive word dictionary, judge whether local is existing and be used to save The array of sensitive word dictionary;If it does not exist, then an array dataArray, then the sensitive word that will be obtained from server are first created Dictionary is saved into array dataArray;If existing, directly the sensitive word dictionary obtained from server is saved to existing Array dataArray in.
Sensitive word dictionary obtains module and is used for: when user enters the direct broadcasting room of main broadcaster every time, by initiating network request Mode from server obtain the corresponding sensitive word dictionary of direct broadcasting room main broadcaster.
Specifically, concrete operations process includes: to use network request when user enters the direct broadcasting room of main broadcaster every time Tool-class InterfaceManager calls sensitive word to obtain interface function, which obtains interface function and be not necessarily to any ginseng Number feeds back to three readjustment parameters: error code parameter errorCode, the network of network request after network request is initiated The error message parameter errorMessage of request and the data data parameter of request;According to the network request fed back to The type of error code parameter errorCode and the data data parameter of request judge whether network request successful and data class Whether type is correct, if network request is successful and data type is correct, data data parameter is stored to user terminal.
Further, in order to avoid because of repetitive requests, and cause to repeat to cause data redundancy from server pull data, Operate redundancy.In the present embodiment, the sensitive word dictionary obtains module and is also used to: if sensitive word dictionary obtains module and initiated Network request, it is desirable to, then first will before by calling existing network request to cancel function again when initiation network request The network request of initiation is cancelled, then initiates a new network request.
Sensitive word is prohibited hair module and is used for: when user will send barrage message, barrage message that user will be sent It is compared with the sensitive word dictionary of acquisition, if forbidding user comprising the sensitive word in sensitive word dictionary in the barrage message Send this barrage message.
Sensitive word shroud module is used for: when often receiving a barrage message, this barrage message and main broadcaster end being protected The sensitive word dictionary deposited is compared, if comprising the sensitive word in sensitive word dictionary in the barrage message, by the barrage message It is shielded.
Further, the sensitive word prohibits hair module, the sensitive word shroud module for barrage message and sensitive word dictionary When being compared, efficient barrage searching algorithm is used, the realization process of the efficient barrage searching algorithm is as follows:
All the elements of sensitive word dictionary are stored into an existing sensitive word array, the sensitive word array it is each The corresponding sensitive word of a element;
Current sensitive word array is successively traversed each in sensitive word dictionary using IOS without subscript traversal method A sensitive word;
Often traverse a sensitive word, the character string using IOS includes judgment method, by barrage message and the sensitive word into Whether row compares, judge comprising the sensitive word in the barrage message, if comprising directly stopping traversing and determining that this barrage disappears Breath includes the sensitive word in sensitive word dictionary;If do not included, continues the traversal of next sensitive word and compare.
It should be understood that system provided by the above embodiment realize multiterminal cooperation barrage message screening when, only with The division progress of above-mentioned each functional module, can be as needed and by above-mentioned function distribution by difference for example, in practical application Functional module complete, i.e., the internal structure of system is divided into different functional modules, with complete it is described above whole or Partial function.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention Within the scope of.
The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (10)

1. a kind of barrage message screening method of multiterminal cooperation, which is characterized in that method includes the following steps:
The sensitive word for the hope shielding that main broadcaster adds is sent to server by S1, main broadcaster end;Server will receive sensitive word preservation Into sensitive word dictionary;Main broadcaster end obtains the sensitive word dictionary and saves to main broadcaster end;
S2, user terminal are obtained by way of initiating network request from server when user enters the direct broadcasting room of main broadcaster every time The corresponding sensitive word dictionary of direct broadcasting room main broadcaster;
S3, when user will send barrage message, user terminal is obtained the barrage message that user will send and in step S2 Sensitive word dictionary be compared, if forbidding user to send this comprising the sensitive word in sensitive word dictionary in the barrage message Barrage message;
When S4, main broadcaster end often receive a barrage message, sensitive word dictionary that this barrage message and main broadcaster end are saved It is compared, if shielding the barrage message comprising the sensitive word in sensitive word dictionary in the barrage message.
2. the barrage message screening method of multiterminal as described in claim 1 cooperation, which is characterized in that step S2 specifically include with Lower process:
S201, user terminal use network request tool-class when user enters the direct broadcasting room of main broadcaster every time InterfaceManager calls sensitive word to obtain interface function, which obtains interface function and be not necessarily to any parameter, works as net Network request feeds back to three readjustment parameters: the mistake of the error code parameter errorCode of network request, network request after initiating False information parameter errorMessage and the data data parameter of request;
The class of the data data parameter of the error code parameter errorCode and request for the network request that S202, basis are fed back to Type, judging network request, whether successful and data type is correct, should if network request is successful and data type is correct Data data parameter is stored to user terminal.
3. the barrage message screening method of multiterminal cooperation as described in claim 1, it is characterised in that: step S3 and step S4 In, when barrage message is compared with sensitive word dictionary, efficient barrage searching algorithm is used, which calculates The realization process of method is as follows:
All the elements of sensitive word dictionary are stored into an existing sensitive word array, each member of the sensitive word array The corresponding sensitive word of element;
It is quick that each of sensitive word dictionary is successively traversed without subscript traversal method using IOS to current sensitive word array Feel word;
A sensitive word is often traversed, the use of the character string of IOS includes judgment method, barrage message and the sensitive word is compared It is right, judge whether comprising the sensitive word in the barrage message, if comprising directly stopping traversing and determining this barrage message package Sensitive word in dictionary containing sensitive word;If do not included, continues the traversal of next sensitive word and compare.
4. a kind of storage medium, is stored thereon with computer program, it is characterised in that: the computer program is executed by processor The step of any one of Shi Shixian the claims 1 to 3 the method.
5. a kind of barrage message screening equipment of multiterminal cooperation, including memory, processor and it is stored on the memory simultaneously The computer program run on the processor, it is characterised in that: the processor is realized when executing the computer program The step of any one of the claims 1 to 3 the method.
6. a kind of barrage message screening system of multiterminal cooperation, it is characterised in that: the system includes being set to the sensitivity at main broadcaster end Word dictionary founds module, sensitive word shroud module;And it is set to the sensitive word dictionary acquisition module of user terminal, sensitive word taboo hair Module;
The sensitive word dictionary is founded module and is used for: the sensitive word of the hope shielding of main broadcaster's addition is sent to server;Wait take Business device will receive sensitive word and save to sensitive word dictionary, obtain the sensitive word dictionary and save to main broadcaster end;
The sensitive word dictionary obtains module and is used for: when user enters the direct broadcasting room of main broadcaster every time, by initiating network request Mode obtain the corresponding sensitive word dictionary of direct broadcasting room main broadcaster from server;
The sensitive word is prohibited hair module and is used for: when user will send barrage message, barrage message that user will be sent It is compared with the sensitive word dictionary of acquisition, if forbidding user comprising the sensitive word in sensitive word dictionary in the barrage message Send this barrage message;
The sensitive word shroud module is used for: when often receiving a barrage message, this barrage message and main broadcaster end being protected The sensitive word dictionary deposited is compared, if comprising the sensitive word in sensitive word dictionary in the barrage message, by the barrage message It is shielded.
7. the barrage message screening system of multiterminal cooperation as claimed in claim 6, it is characterised in that: the sensitive word dictionary wound If module sends the sensitive word of addition and saves the detailed process of sensitive word dictionary are as follows:
A sensitive word addition function is defined, which adds the parameter KeyWord that function has a character string type, should Parameter KeyWord is the sensitive word of the hope shielding of main broadcaster's addition;
Judge whether parameter KeyWord is sky, if it is empty, then provides user and play frame prompt, prompt user that please don't add in blank Hold, and interrupts addition sensitive word operation;If not empty, then sensitive word is sent to server using network request mode;
When network request is sent successfully, server will successfully receive sensitive word and save to a sensitive word dictionary, judge local Whether existing it is used to save the array of sensitive word dictionary;If it does not exist, then an array dataArray is first created, then will be from The sensitive word dictionary that server obtains is saved into array dataArray;If existing, will directly be obtained from server Sensitive word dictionary is saved into existing array dataArray.
8. the barrage message screening system of multiterminal cooperation as claimed in claim 6, it is characterised in that: the sensitive word dictionary obtains Modulus block obtains the detailed process of the corresponding sensitive word dictionary of direct broadcasting room main broadcaster are as follows:
When user enters the direct broadcasting room of main broadcaster every time, sensitive word is called using network request tool-class InterfaceManager Interface function is obtained, which obtains interface function and be not necessarily to any parameter, feeds back to three after network request is initiated Adjust back parameter: the error code parameter errorCode of network request, network request error message parameter errorMessage, with And the data data parameter of request;
According to the error code parameter errorCode of the network request fed back to and the type of the data data parameter of request, sentence Whether whether successful and data type is correct for circuit network request, if network request is successful and data type is correct, by the data Data parameter is stored to user terminal.
9. the barrage message screening system of multiterminal cooperation as claimed in claim 6, which is characterized in that the sensitive word dictionary obtains Modulus block is also used to: if sensitive word dictionary obtains module and initiated network request, it is desirable to when initiating network request again, then lead to It crosses and existing network request is called to cancel function first for the network request initiated before cancellation, then initiate a new network Request.
10. the barrage message screening system that the multiterminal as described in any one of claim 6 to 9 cooperate, it is characterised in that: described When sensitive word prohibits hair module, barrage message is compared the sensitive word shroud module with sensitive word dictionary, use Efficient barrage searching algorithm, the realization process of the efficient barrage searching algorithm are as follows:
All the elements of sensitive word dictionary are stored into an existing sensitive word array, each member of the sensitive word array The corresponding sensitive word of element;
It is quick that each of sensitive word dictionary is successively traversed without subscript traversal method using IOS to current sensitive word array Feel word;
A sensitive word is often traversed, the use of the character string of IOS includes judgment method, barrage message and the sensitive word is compared It is right, judge whether comprising the sensitive word in the barrage message, if comprising directly stopping traversing and determining this barrage message package Sensitive word in dictionary containing sensitive word;If do not included, continues the traversal of next sensitive word and compare.
CN201710932700.8A 2017-10-10 2017-10-10 Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation Pending CN109660869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710932700.8A CN109660869A (en) 2017-10-10 2017-10-10 Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710932700.8A CN109660869A (en) 2017-10-10 2017-10-10 Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation

Publications (1)

Publication Number Publication Date
CN109660869A true CN109660869A (en) 2019-04-19

Family

ID=66108516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710932700.8A Pending CN109660869A (en) 2017-10-10 2017-10-10 Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation

Country Status (1)

Country Link
CN (1) CN109660869A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110139152A (en) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 Prohibit speech method, apparatus, electronic equipment and computer readable storage medium
CN110263276A (en) * 2019-06-14 2019-09-20 北京字节跳动网络技术有限公司 Message distributing method, device, equipment and storage medium
CN112565655A (en) * 2020-11-27 2021-03-26 Oppo广东移动通信有限公司 Video data yellow identification method and device, electronic equipment and storage medium
CN113242453A (en) * 2021-05-06 2021-08-10 深圳小湃科技有限公司 Barrage playing method, server and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516820A (en) * 2015-12-10 2016-04-20 腾讯科技(深圳)有限公司 Barrage interaction method and device
CN105872582A (en) * 2016-06-07 2016-08-17 武汉斗鱼网络科技有限公司 Live commenting saving method and device for live video
CN106028167A (en) * 2016-06-27 2016-10-12 乐视控股(北京)有限公司 Barrage display method and device
CN106209579A (en) * 2016-06-28 2016-12-07 武汉斗鱼网络科技有限公司 Barrage website chat process quickly generates the system and method for hyperlink
WO2017020663A1 (en) * 2015-07-31 2017-02-09 腾讯科技(深圳)有限公司 Live-comment video live broadcast method and apparatus, video source device, and network access device
CN106921868A (en) * 2017-03-07 2017-07-04 深圳创维数字技术有限公司 A kind of barrage dissemination method and device
CN106982377A (en) * 2017-03-29 2017-07-25 武汉斗鱼网络科技有限公司 barrage management method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017020663A1 (en) * 2015-07-31 2017-02-09 腾讯科技(深圳)有限公司 Live-comment video live broadcast method and apparatus, video source device, and network access device
CN105516820A (en) * 2015-12-10 2016-04-20 腾讯科技(深圳)有限公司 Barrage interaction method and device
CN105872582A (en) * 2016-06-07 2016-08-17 武汉斗鱼网络科技有限公司 Live commenting saving method and device for live video
CN106028167A (en) * 2016-06-27 2016-10-12 乐视控股(北京)有限公司 Barrage display method and device
CN106209579A (en) * 2016-06-28 2016-12-07 武汉斗鱼网络科技有限公司 Barrage website chat process quickly generates the system and method for hyperlink
CN106921868A (en) * 2017-03-07 2017-07-04 深圳创维数字技术有限公司 A kind of barrage dissemination method and device
CN106982377A (en) * 2017-03-29 2017-07-25 武汉斗鱼网络科技有限公司 barrage management method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110139152A (en) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 Prohibit speech method, apparatus, electronic equipment and computer readable storage medium
CN110263276A (en) * 2019-06-14 2019-09-20 北京字节跳动网络技术有限公司 Message distributing method, device, equipment and storage medium
CN110263276B (en) * 2019-06-14 2021-10-15 北京字节跳动网络技术有限公司 Message distribution method, device, equipment and storage medium
CN112565655A (en) * 2020-11-27 2021-03-26 Oppo广东移动通信有限公司 Video data yellow identification method and device, electronic equipment and storage medium
CN113242453A (en) * 2021-05-06 2021-08-10 深圳小湃科技有限公司 Barrage playing method, server and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109660869A (en) Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation
US10237158B2 (en) Broadcast interception method and apparatus of intelligent device
EP2320601B1 (en) Method and system for adapting a session timeout period
KR102131160B1 (en) Alarm information processing method and device, system, and computer storage medium
CN102387023A (en) Charging method and system used for cloud computing
CN104168517B (en) Into the method and system of direct broadcast band
CN108289060A (en) A kind of data processing method and device based on RPC service
CN106445745A (en) Terminal device and method for recovering factory settings
CN108243014B (en) Voice payment prompting processing method and device
EP3401862A1 (en) Data storage and service processing method and device
CN107480117A (en) Automate the restoration methods and device of page table list data
CN108270753B (en) Method and device for logging out user account
CN105635124A (en) Flow control method and device
US9135084B2 (en) Service provider class application scalability and high availability and processing prioritization using a weighted load distributor and throttle middleware
CN112235124B (en) Method and device for configuring pico-cell, storage medium and electronic device
CN107181747B (en) handle analytic system containing top-level node
CN112363841B (en) Application process searching and killing method and device, electronic equipment and storage medium
CN114153609A (en) Resource control method and device, electronic equipment and computer readable storage medium
CN117118814A (en) Cloud resource switching method, device, equipment and medium based on multi-cloud management platform
WO2021092448A1 (en) Managing shared applications at the edge of a content delivery network
CN108829397A (en) Screening rule is downloaded to the system and method in mobile device
CN104778084A (en) System switching method and device
CN105988949A (en) Terminal equipment and data interactive processing method and system
CN115277599B (en) Reflow method and device under current limiting scene, computer equipment and storage medium
CN113055465B (en) Micro-service dynamic updating method supporting transaction consistency

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190419