CN106954094B - Processing method, device and the service terminal of barrage information - Google Patents
Processing method, device and the service terminal of barrage information Download PDFInfo
- Publication number
- CN106954094B CN106954094B CN201710170064.XA CN201710170064A CN106954094B CN 106954094 B CN106954094 B CN 106954094B CN 201710170064 A CN201710170064 A CN 201710170064A CN 106954094 B CN106954094 B CN 106954094B
- Authority
- CN
- China
- Prior art keywords
- barrage information
- information
- barrage
- module
- values
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 33
- 230000006870 function Effects 0.000 claims description 46
- 238000000034 method Methods 0.000 claims description 37
- 238000004891 communication Methods 0.000 claims description 10
- 238000005538 encapsulation Methods 0.000 claims description 3
- 239000003086 colorant Substances 0.000 claims 1
- 230000000007 visual effect Effects 0.000 abstract description 2
- 230000000694 effects Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 244000046052 Phaseolus vulgaris Species 0.000 description 10
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 10
- 235000006719 Cassia obtusifolia Nutrition 0.000 description 4
- 244000201986 Cassia tora Species 0.000 description 4
- 235000014552 Cassia tora Nutrition 0.000 description 4
- 238000012512 characterization method Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 101710203008 D-galactose-binding periplasmic protein Proteins 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 235000007926 Craterellus fallax Nutrition 0.000 description 1
- 240000007175 Datura inoxia Species 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Abstract
The present invention relates to Internet technical fields, more particularly to processing method, device and the service terminal of a kind of barrage information, the processing method and processing device of the barrage information is applied to service terminal, the processing method of the barrage information includes identifying the type of barrage information, barrage information includes key and the corresponding value of key, the all values of same type of barrage information are arranged to different patterns, all values for the barrage information for being arranged to different patterns are spliced.And then the barrage information presented with different patterns is obtained, so that colourful visual effect is presented in barrage information, improve the experience sense of user.
Description
Technical field
The present invention relates to Internet technical fields, in particular to processing method, device and the clothes of a kind of barrage information
Business terminal.
Background technique
Barrage is existing frequently-used function, and the use of barrage links up same subject convenient for different people, lets on
Discuss that the people of the theme feels more interesting, the experience sense of user is more preferable.But the single effect of existing barrage Informational Expression, no
With colourful appearance form, therefore provide a kind of processing barrage information, the shape for keeping barrage Informational Expression horn of plenty colorful
Formula is very necessary.
Summary of the invention
The purpose of the present invention is to provide a kind of processing methods of barrage information, keep the presentation of barrage information abundant more to realize
Color effect, improves the experience sense of user.
Another object of the present invention is to provide a kind of processing units of barrage information, keep the presentation of barrage information rich to realize
Rich colorful effect, improves the experience sense of user.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, it is applied to service terminal the embodiment of the invention provides a kind of processing method of barrage information, it is described
Service terminal is connect with client communication, which comprises
Identify the type of barrage information, the barrage information includes key and the corresponding value of the key;
The all values of the same type of barrage information are arranged to different patterns;
The all values for being arranged to the barrage information of different patterns are spliced.
Second aspect, the embodiment of the invention also provides a kind of processing units of barrage information, are applied to service terminal, institute
It states service terminal to connect with client communication, described device includes:
Type identification module, the type of barrage information, the barrage information include that key and the key are corresponding for identification
Value;
Pattern setup module, for all values of the same type of barrage information to be arranged to different patterns;
Splicing module, for splicing all values for being arranged to the barrage information of different patterns.
The third aspect, the embodiment of the invention also provides a kind of service terminal, the service terminal includes:
Memory;
Processor;And
The processing unit of the processing unit of barrage information, the barrage information is installed in the memory and including one
Or multiple software function modules executed by the processor, the processing unit of the barrage information include:
Type identification module, the type of barrage information, the barrage information include that key and the key are corresponding for identification
Value;
Pattern setup module, for all values of the same type of barrage information to be arranged to different patterns;
Splicing module, for splicing all values for being arranged to the barrage information of different patterns.
Processing method, device and the service terminal of a kind of barrage information provided in an embodiment of the present invention, the barrage information
Processing method and processing device is applied to service terminal, and the processing method of the barrage information includes identifying the type of barrage information, bullet
Curtain information includes key and the corresponding value of key, all values of same type of barrage information is arranged to different patterns, to setting
The all values for being set to the barrage information of different patterns are spliced.And then the barrage information presented with different patterns is obtained, so that
Colourful visual effect is presented in barrage information, improves the experience sense of user.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the structural schematic diagram of the application environment of service terminal provided in an embodiment of the present invention.
Fig. 2 shows a kind of structural schematic diagrams of service terminal provided in an embodiment of the present invention.
Fig. 3 shows a kind of flow chart of the processing method of barrage information provided in an embodiment of the present invention.
Fig. 4 shows the flow chart of the processing method of another barrage information provided in an embodiment of the present invention.
Fig. 5 shows the flow chart of the sub-step of the processing method of another barrage information provided in an embodiment of the present invention.
Fig. 6 shows the flow chart of the processing method of another barrage information provided in an embodiment of the present invention.
Fig. 7 shows a kind of functional module framework signal of the processing unit of barrage information provided in an embodiment of the present invention
Figure.
Fig. 8 shows the functional module framework signal of the processing unit of another barrage information provided in an embodiment of the present invention
Figure.
Fig. 9 shows the functional module framework signal of the processing unit of another barrage information provided in an embodiment of the present invention
Figure.
Diagram: 100- client;200- network;300- service terminal;The processing unit of 310- barrage information;320- storage
Device;330- processor;340- communication unit;311- type identification module;312- pattern setup module;313- splicing module;
321- type identification module;322- first obtains module;323- memory module;324- pattern setup module;325- splicing module;
331- content receiver module;332- second obtains module;333- package module;334- type identification module;335- first is obtained
Module;336- memory module;337- pattern setup module;338- splicing module;339- sending module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
It is applied in the processing method of barrage information provided in an embodiment of the present invention and the processing unit 310 of barrage information
In service terminal 300.Fig. 1 is please referred to, is the structural representation of the application environment of service terminal 300 provided in an embodiment of the present invention
Figure.Service terminal 300 is connect by network 200 with multiple client 100, which may be, but not limited to, platform
Formula computer or laptop, the client 100 may be, but not limited to, mobile terminal, such as mobile phone or other electronic equipments,
Such as computer.The application program of live streaming is installed, user can send bullet by the application program in client 100 in client 100
Curtain information is to service terminal 300, and service terminal 300 is by carrying out pattern processing to the barrage information received, by treated
Barrage information is sent to client 100, and the interface display of 100 respective live application program of client is made to go out colourful barrage
Information, and then improve the experience sense of user.
It referring to figure 2., is a kind of structural schematic diagram of service terminal 300 provided in an embodiment of the present invention.The service terminal
300 include processing unit 310, memory 320, processor 330 and the communication unit 340 of barrage information.
The memory 320, processor 330 and each element of communication unit 340 directly or indirectly electrically connect between each other
It connects, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or signal between each other
Line, which is realized, to be electrically connected.The processing unit 310 of the barrage information includes at least one can be with software or firmware (firmware)
Form be stored in memory 320 or be solidificated in the operating system (operating system, OS) of service terminal 300
Software function module.Processor 330 is for executing the executable module stored in memory 320, such as the processing of barrage information
Software function module and computer program that device 310 includes etc..
Wherein, memory 320 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 320 is for storing program, and processor 330 executes described program after receiving and executing instruction.Communication unit
340 for establishing the communication connection between service terminal 300 and client 100 by network 200, and for passing through the network
200 sending and receiving data.
Referring to figure 3., be a kind of barrage information provided in an embodiment of the present invention processing method flow chart, the barrage letter
The processing method of breath is applied to service terminal 300, and the processing method of the barrage information includes:
Step S110 identifies the type of barrage information.
The rule of identification barrage information type is preset in service terminal 300.Such as communicated to connect with the service terminal 300
The barrage information that sends of client 100 when being content of text, service terminal 300 will identify the type of the barrage information for text
This, and then text content is identified.Specifically, the barrage information content that client 100 is sent is " seeing lower equipment ",
" seeing lower equipment " is a text information, when service terminal 300 receives the barrage information, can identify that the barrage information is
Text information, and the barrage information is marked, can be as marked, but be not limited to, " type=chatmsg ", the label
The type for the barrage information that characterization service terminal 300 receives is text type.When service terminal 300 receives client 100
Send other kinds of barrage information when, will identify different types of barrage information and to different types of barrage think information into
Line flag.
The all values of the same type of barrage information are arranged to different patterns by step S120.
The barrage information includes key and the corresponding value of the key, and the barrage information content sent such as client 100 is " to see
The text information of lower equipment ", service terminal 300 will be handled the barrage information content received, and such as " txt sees lower dress
It is standby " to be added corresponding key " txt " before " seeing lower equipment " text information, the corresponding value of key " txt " is " seeing lower equipment ",
" txt " and " seeing lower equipment " together constitutes a key-value pair.One barrage information not only includes the barrage that client 100 is sent
The content of information, such as text information further include the user's registration information in the client 100 of the acquisition of service terminal 300, work as service
After terminal 300 gets user's registration information, user's registration information will be handled with the same way with the processing barrage information content,
The user's registration information may be, but not limited to, user's head portrait picture or grade.It therefore include multiple keys in a barrage information
Value pair, in other words, a barrage information is made of multiple key-value pairs.
Different patterns is arranged to all values of same type of barrage information, i.e., all values of barrage information are arranged
At different length and/or color, so that all values of barrage information show colourful effect.Specifically,
In the embodiment of the present invention, all values are obtained using chatbean function, but not limited to this, it can also be obtained using other functions
Take all values.Included, but are not limited to by the method for chatbea function acquired value: adding local picture addLocalPicture
() method adds network picture addNetWorkPicture () method, addition user identity addGroupBitmap () side
Method adds user's medal addTitleBitmap () method, adds user gradation addLeverBitmap () method, addition portion
Single cent word addText () method.It is set as not by all values of the SpannableStringBuilder class to barrage information again
Same length and/or color, such as style.append (text);style.setSpan(new ForegroundColorSpan
(color),style.length()-text.length(),style.length(),Spannable.SPAN_
EXCLUSIVE_EXCLUSIVE).Wherein, style is an object of SpannableStringBuilder class, when needs pair
When text information carries out pattern setting, by style.append (text) function, by text, this text information is added to
In style object, further by style.setSpan, (new ForegroundColorSpan (color) function setup should
The color of text text object, or by style.length ()-text.length () function setup to text information
Text addition pattern starting point and length, wherein Spannable.SPAN_EXCLUSIVE_EXCLUSIVE) function characterization should
The setting of pattern is only effective to current character, i.e., can be set to different pattern effects to different texts.It is readily comprehensible,
Identical setting can be carried out to the other values in barrage information, so that the barrage information content that client 100 is sent is in
Reveal colourful effect, improves customer experience sense.
Step S130 splices all values for being arranged to the barrage information of different patterns.
The all values for the barrage information for being arranged to different patterns are spliced, specifically,
Style.append () function in SpannableStringBuilder class, by append function by picture in barrage information
Or textual equivalent is successively added into style object, and then by the calling of chatbean function so that being arranged to different patterns
The all values of barrage information afterwards can be presented in respective interface.
Referring to figure 4., be another barrage information provided in an embodiment of the present invention processing method flow chart, the barrage
The processing method of information is applied to service terminal 300, and the processing method of the barrage information includes:
Step S210 identifies the type of barrage information.
The rule of identification barrage information type is preset in service terminal 300.Such as communicated to connect with the service terminal 300
The barrage information that sends of client 100 when being content of text, service terminal 300 will identify the type of the barrage information for text
This, and then text content is identified.Specifically, the barrage information content that client 100 is sent is " seeing lower equipment ",
" seeing lower equipment " is a text information, when service terminal 300 receives the barrage information, can identify that the barrage information is
Text information, and the barrage information is marked, can be as marked, but be not limited to, " type=chatmsg ", the label
The type for the barrage information that characterization service terminal 300 receives is text type.When service terminal 300 receives client 100
Send other kinds of barrage information when, will identify different types of barrage information and to different types of barrage think information into
Line flag.
Step S220 obtains the corresponding value of key described in different types of barrage information.
The barrage information includes key and the corresponding value of the key, and the barrage information content sent such as client 100 is " to see
The text information of lower equipment ", service terminal 300 will be handled the barrage information content received, and such as " txt sees lower dress
It is standby " to be added corresponding key " txt " before " seeing lower equipment " text information, the corresponding value of key " txt " is " seeing lower equipment ",
" txt " and " seeing lower equipment " together constitutes a key-value pair.One barrage information not only includes the barrage that client 100 is sent
The content of information, such as text information further include the user's registration information in the client 100 of the acquisition of service terminal 300, work as service
After terminal 300 gets user's registration information, user's registration information will be handled with the same way with the processing barrage information content,
The user's registration information may be, but not limited to, user's head portrait picture or grade.It therefore include multiple keys in a barrage information
Value pair, in other words, a barrage information is made of multiple key-value pairs.
In embodiments of the present invention, corresponding by key described in the different types of barrage information of javabean function acquisition
Value, but not limited to this, other function acquired value can also be passed through.Specifically, passing through the name that different javabean objects is arranged
Claim, such as giftbean obtains the corresponding value of the key by key in get method.Such as: giftBean.setSl
(targetMap.get("sl"));giftBean.setSnk(targetMap.get("snk")).Wherein, " sl " " snk " is
Key, which obtains the corresponding value of the key by get method, while the value of acquisition is stored in giftbean object
In.
It is single to be stored in same storage by step S230 for the corresponding value of all keys of the same type of barrage information
Member.
The storage unit is in a bean object, such as giftbean object.It should be noted that a type of barrage letter
The all values of breath are stored in a bean object, and in other words, different bean objects stores different types of barrage information,
Such as VMUTE (VideoMuteBean.class), GGBP (BoxGiftResultsBean.class).
All values in the same storage unit are arranged to different patterns by step S240.
Different patterns is arranged to all values of the barrage information stored in each bean object, it is abundant to realize
Colorful effect, to improve the experience sense of user.
Referring to figure 5., be another barrage information provided in an embodiment of the present invention processing method sub-step S240
Flow chart.
Step S241 obtains all values from the storage unit.
By chatbean function from corresponding bean object acquired value, specifically, being obtained by chatbean function
The method of value includes, but are not limited to: adding local picture addLocalPicture () method, adds network picture
AddNetWorkPicture () method adds user identity addGroupBitmap () method, adds user's medal
AddTitleBitmap () method adds user gradation addLeverBitmap () method, adds segment word addText ()
Method.
Each of all values value is arranged to different length and/or color by step S242.
SpannableStringBuilder class is passed sequentially through to each value that chatbean function obtains to believe barrage
The all values of breath are set as different length and/or color, such as style.append (text);style.setSpan(new
ForegroundColorSpan(color),style.length()-text.length(),style.length(),
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE).Wherein, style is the one of SpannableStringBuilder class
A object, when needing to carry out pattern setting to text information, by style.append (text) function, by this text of text
This information is added in style object, further passes through style.setSpan (new ForegroundColorSpan
(color) color of the function setup text text object, or pass through style.length ()-text.length () function
Starting point and length to text information text addition pattern is set, wherein Spannable.SPAN_EXCLUSIVE_
EXCLUSIVE) function characterize the pattern setting only it is effective to current character, i.e., different texts can be set to different
Pattern effect.It is readily comprehensible, identical setting can be carried out to the other values in barrage information, so that client 100
The barrage information content of transmission shows colourful effect, improves customer experience sense.
Step S250 splices all values for being arranged to the barrage information of different patterns.
The all values for the barrage information for being arranged to different patterns are spliced, specifically,
Style.append () function in SpannableStringBuilder class, by append function by picture in barrage information
Or textual equivalent is successively added into style object, and then by the calling of chatbean function so that being arranged to different patterns
The all values of barrage information afterwards can be presented in respective interface.
Fig. 6 is please referred to, is the flow chart of the processing method of another barrage information provided in an embodiment of the present invention, the barrage
The processing method of information is applied to service terminal 300, and the processing method of the barrage information includes:
Step S310 receives the barrage information content that the client is sent.
The content for the barrage information that client 100 is sent can be that text information such as " seeing lower equipment " is also possible to picture
Information.
Step S320 obtains the user's registration information of the client.
After the content for the barrage information that the client 100 that service terminal 300 receives is sent, client can be also obtained
100 user's registration information, the user's registration information may be, but not limited to, user's head portrait picture, user gradation etc..
Step S330 carries out the barrage information content and the user's registration information according to preset barrage agreement
Encapsulation, obtains barrage information.
The preset barrage information protocol has scheduled format, such as type:101, msg:type@=chatmsg/rid@
591839/ct@=1/uid@=46387962/nn@=consciousness love/txt@sees lower equipment.Wherein, the barrage information content is visitor
The information that family end 100 is sent to service terminal 300, such as text information " seeing lower equipment ", it is readily appreciated that, it can also be picture etc.
The information of other forms.Information when user's registration information is the application program in the user's registration client 100, such as user name
Claim " love of consciousness ".The barrage information content includes key and the corresponding value of the key, the barrage information sent such as client 100
Content be " seeing lower equipment " text information, service terminal 300 by the barrage information content received according to preset barrage
Agreement is handled, and such as " txt@sees lower equipment " adds corresponding key " txt ", key before " seeing lower equipment " text information
" txt " corresponding value is " seeing lower equipment ", and " txt " and " seeing lower equipment " together constitutes a key-value pair and " txt " and " see down
Pass through@connection between equipment ", it is readily appreciated that, each user's registration information also includes key and the corresponding value of the key.It presses
Multiple key-value pairs are packaged according to preset barrage information protocol, wherein separated between different key-value pairs by tiltedly scribing line,
And then obtain barrage information.
Step S340 identifies the type of barrage information.
The rule of identification barrage information type is preset in service terminal 300.Such as communicated to connect with the service terminal 300
The barrage information that sends of client 100 when being content of text, service terminal 300 will identify the type of the barrage information for text
This, and then text content is identified.Specifically, the barrage information content that client 100 is sent is " seeing lower equipment ",
" seeing lower equipment " is a text information, when service terminal 300 receives the barrage information, can identify that the barrage information is
Text information, and the barrage information is marked, can be as marked, but be not limited to, " type=chatmsg ", the label
The type for the barrage information that characterization service terminal 300 receives is text type.When service terminal 300 receives client 100
Send other kinds of barrage information when, will identify different types of barrage information and to different types of barrage think information into
Line flag.
Step S350 obtains the corresponding value of key described in different types of barrage information.
In embodiments of the present invention, corresponding by key described in the different types of barrage information of javabean function acquisition
Value, but not limited to this, other function acquired value can also be passed through.Specifically, passing through the name that different javabean objects is arranged
Claim, such as giftbean obtains the corresponding value of the key by key in get method.Such as: giftBean.setSl
(targetMap.get("sl"));giftBean.setSnk(targetMap.get("snk")).Wherein, " sl " " snk " is
Key, which obtains the corresponding value of the key by get method, while the value of acquisition is stored in giftbean object
In.
It is single to be stored in same storage by step S360 for the corresponding value of all keys of the same type of barrage information
Member.
The storage unit is in a bean object, such as giftbean object.It should be noted that a type of barrage letter
The all values of breath are stored in a bean object, and in other words, different bean objects stores different types of barrage information,
Such as VMUTE (VideoMuteBean.class), GGBP (BoxGiftResultsBean.class).In embodiments of the present invention,
Using the different types of barrage information of enumeration type definition, i.e., different types of bean object is determined by using enumeration type
The different types of barrage information of justice may insure that information does not repeat, and user can find the barrage of needs quickly through enumeration type
Type.It is all made of corresponding data encapsulation method simultaneously for each enumeration type, improves the dynamic of program code, when
It when needing to be modified different types of barrage information, can pointedly modify, improve the robustness of code skeleton.
All values in the same storage unit are arranged to different patterns by step S370.
By chatbean function from corresponding bean object acquired value, specifically, being obtained by chatbean function
The method of value includes, but are not limited to: adding local picture addLocalPicture () method, adds network picture
AddNetWorkPicture () method adds user identity addGroupBitmap () method, adds user's medal
AddTitleBitmap () method adds user gradation addLeverBitmap () method, adds segment word addText ()
Method.
SpannableStringBuilder class is passed sequentially through to each value that chatbean function obtains to believe barrage
The all values of breath are set as different length and/or color, such as style.append (text);style.setSpan(new
ForegroundColorSpan(color),style.length()-text.length(),style.length(),
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE).Wherein, style is the one of SpannableStringBuilder class
A object, when needing to carry out pattern setting to text information, by style.append (text) function, by this text of text
This information is added in style object, further passes through style.setSpan (new ForegroundColorSpan
(color) color of the function setup text text object, or pass through style.length ()-text.length () function
Starting point and length to text information text addition pattern is set, wherein Spannable.SPAN_EXCLUSIVE_
EXCLUSIVE) function characterize the pattern setting only it is effective to current character, i.e., different texts can be set to different
Pattern effect.It is readily comprehensible, identical setting can be carried out to the other values in barrage information, so that client 100
The barrage information content of transmission shows colourful effect, improves customer experience sense.
Step S380 splices all values for being arranged to the barrage information of different patterns.
The all values for the barrage information for being arranged to different patterns are spliced, specifically,
Style.append () function in SpannableStringBuilder class, by append function by picture in barrage information
Or textual equivalent is successively added into style object, and then by the calling of chatbean function so that being arranged to different patterns
The all values of barrage information afterwards can be presented in respective interface.
The all values for carrying out the spliced barrage information are sent to the client by step S390.
The barrage information after the completion of splicing is sent to client 100 by service terminal 300, to be in client 100
Reveal colourful display effect, to improve customer experience sense.
Fig. 7 is please referred to, is a kind of functional module framework of the processing unit 310 of barrage information provided in an embodiment of the present invention
Schematic diagram.The processing unit 310 of the barrage information is applied to service terminal 300, and the processing unit 310 of the barrage information includes:
Type identification module 311, the type of barrage information, the barrage information include that key and the key are corresponding for identification
Value.
In embodiments of the present invention, step S110 can be executed by type identification module 311.
Pattern setup module 312, for all values of the same type of barrage information to be arranged to different patterns.
In embodiments of the present invention, step S120 can be executed by pattern setup module 312.
Splicing module 313, for splicing all values for being arranged to the barrage information of different patterns.
In embodiments of the present invention, step S130 can be executed by splicing module 313.
Fig. 8 is please referred to, is the functional module frame of the processing unit 310 of another barrage information provided in an embodiment of the present invention
Structure schematic diagram, the processing unit 310 of the barrage information are applied to service terminal 300, and the processing unit 310 of the barrage information is wrapped
It includes:
Type identification module 321, the type of barrage information, the barrage information include that key and the key are corresponding for identification
Value.
In embodiments of the present invention, step S210 can be executed by type identification module 321.
First obtains module 322, for obtaining the corresponding value of key described in different types of barrage information.
In embodiments of the present invention, step S220 can be executed by the first acquisition module 322.
Memory module 323, for the corresponding value of all keys of the same type of barrage information to be stored in together
One storage unit.
In embodiments of the present invention, step S230 can be executed by memory module 323.
Pattern setup module 324, for all values in the same storage unit to be arranged to different patterns.
In embodiments of the present invention, step S240~S242 can be executed by pattern setup module 324.
Splicing module 325, for splicing all values for being arranged to the barrage information of different patterns.
In embodiments of the present invention, step S250 can be executed by splicing module 325.
Fig. 9 is please referred to, is the functional module frame of the processing unit 310 of another barrage information provided in an embodiment of the present invention
Structure schematic diagram, the processing unit 310 of the barrage information are applied to service terminal 300, and the processing unit 310 of the barrage information is wrapped
It includes:
Content receiver module 331, for receiving the content for the barrage information that the client is sent.
In embodiments of the present invention, step S310 can be executed by content receiver module 331.
Second obtains module 332, for obtaining the user's registration information of the client.
In embodiments of the present invention, step S320 can be executed by the second acquisition module 332.
Package module 333, for according to preset barrage agreement by the barrage information content and the user's registration
Information is packaged, and obtains barrage information.
In embodiments of the present invention, step S330 can be executed by package module 333.
Type identification module 334, the type of barrage information, the barrage information include that key and the key are corresponding for identification
Value.
In embodiments of the present invention, step S340 can be executed by type identification module 334.
First obtains module 335, for obtaining the corresponding value of key described in different types of barrage information.
In embodiments of the present invention, step S350 can be executed by the first acquisition module 335.
Memory module 336, for the corresponding value of all keys of the same type of barrage information to be stored in together
One storage unit.
In embodiments of the present invention, step S360 can be executed by memory module 336.
Pattern setup module 337, in all values in the same storage unit are arranged to different patterns.
In embodiments of the present invention, step S370 can be executed by pattern setup module 337.
Splicing module 338, for splicing all values for being arranged to the barrage information of different patterns.
In embodiments of the present invention, step S380 can be executed by splicing module 338.
Sending module 339, for all values for carrying out the spliced barrage information to be sent to the client.
In embodiments of the present invention, step S390 can be executed by sending module 339.
The processing unit 310 of barrage information has been described in detail in the processing method part of barrage information,
This is repeated no more.
In conclusion the present invention provides processing method, device and the service terminal of a kind of barrage information, the barrage information
Processing method, device be applied to service terminal.The processing method of the barrage information includes the barrage for receiving client and sending
The information content obtains the user's registration information of client, according to preset barrage information protocol to the barrage information content and use
Family registration information is packaged to obtain barrage information.The type for identifying barrage information, obtains the key of each barrage information type
Corresponding value, and it is stored in same storage unit.And then all values in same storage unit are arranged to different patterns, it will
The all values for being arranged to different patterns are spliced, and then spliced barrage information is sent to client, for client phase
The interface display answered.So that barrage information is showed effect with colourful through the invention, improves user experience.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (7)
1. a kind of processing method of barrage information is applied to service terminal, the service terminal is connect with client communication, special
Sign is, which comprises
Identify the type of barrage information, the barrage information includes key and the corresponding value of key;
Obtain the corresponding value of key described in different types of barrage information;
The corresponding value of all keys of the same type of barrage information is stored in same storage unit;
The all values of the same type of barrage information are arranged to different patterns, are specifically included: by the same storage
All values are arranged to different patterns in unit, further comprise: obtaining all values from the same storage unit;It will be described
Each of all values value is arranged to different length and/or different colors;
The all values for being arranged to the barrage information of different patterns are spliced.
2. the processing method of barrage information as described in claim 1, which is characterized in that it is described identification barrage information type it
Before further comprise the steps of:
Receive the barrage information content that the client is sent;
Obtain the user's registration information of the client;
The barrage information content and the user's registration information are packaged according to preset barrage agreement, obtain barrage
Information.
3. the processing method of barrage information as described in claim 1, which is characterized in that the method also includes:
The all values for carrying out the spliced barrage information are sent to the client.
4. a kind of processing unit of barrage information is applied to service terminal, the service terminal is connect with client communication, special
Sign is that described device includes:
Type identification module, the type of barrage information, the barrage information include key and the corresponding value of key for identification;
First obtains module, for obtaining the corresponding value of key described in different types of barrage information;
Memory module, it is single for the corresponding value of all keys of the same type of barrage information to be stored in same storage
Member;
Pattern setup module, for all values of the same type of barrage information to be arranged to different patterns, the sample
Formula setup module is also used to all values in the same storage unit being arranged to different patterns;
Splicing module, for splicing all values for being arranged to the barrage information of different patterns.
5. the processing unit of barrage information as claimed in claim 4, which is characterized in that described device further include:
Content receiver module, for receiving the content for the barrage information that the client is sent;
Second obtains module, for obtaining the user's registration information of the client;
Package module, for carrying out the barrage information content and the user's registration information according to preset barrage agreement
Encapsulation, obtains barrage information.
6. the processing unit of barrage information as claimed in claim 5, which is characterized in that described device further include:
Sending module is sent to the client for that will carry out the spliced barrage information.
7. a kind of service terminal, which is characterized in that the service terminal includes:
Memory;
Processor;And
The processing unit of barrage information, the processing unit of the barrage information are installed in the memory and including one or more
The processing unit of a software function module executed by the processor, the barrage information includes:
Type identification module, the type of barrage information, the barrage information include key and the corresponding value of key for identification;
First obtains module, for obtaining the corresponding value of key described in different types of barrage information;
Memory module, it is single for the corresponding value of all keys of the same type of barrage information to be stored in same storage
Member;
Pattern setup module, for all values of the same type of barrage information to be arranged to different patterns, the sample
Formula setup module is also used to all values in the same storage unit being arranged to different patterns;
Splicing module, for splicing all values for being arranged to the barrage information of different patterns.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710170064.XA CN106954094B (en) | 2017-03-21 | 2017-03-21 | Processing method, device and the service terminal of barrage information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710170064.XA CN106954094B (en) | 2017-03-21 | 2017-03-21 | Processing method, device and the service terminal of barrage information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106954094A CN106954094A (en) | 2017-07-14 |
CN106954094B true CN106954094B (en) | 2019-09-10 |
Family
ID=59472727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710170064.XA Active CN106954094B (en) | 2017-03-21 | 2017-03-21 | Processing method, device and the service terminal of barrage information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106954094B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108322807B (en) * | 2018-02-24 | 2021-09-07 | 武汉斗鱼网络科技有限公司 | Bullet screen display method and device |
CN109032724B (en) * | 2018-06-29 | 2022-06-24 | 武汉斗鱼网络科技有限公司 | Method, device, terminal and storage medium for processing user-defined bullet screen message |
CN109068170B (en) * | 2018-07-03 | 2021-11-09 | 武汉斗鱼网络科技有限公司 | Storage method, device, terminal and storage medium for barrage message |
CN108989902B (en) * | 2018-07-03 | 2020-10-16 | 武汉斗鱼网络科技有限公司 | Barrage message processing method and device, terminal and storage medium |
CN114257876A (en) * | 2020-09-25 | 2022-03-29 | 武汉斗鱼鱼乐网络科技有限公司 | Bullet screen display processing method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104967876A (en) * | 2014-09-30 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Pop-up information processing method and apparatus, and pop-up information display method and apparatus |
CN105554581A (en) * | 2015-12-11 | 2016-05-04 | 小米科技有限责任公司 | Method and device for bullet screen display |
CN105872653A (en) * | 2016-03-21 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Transmission method and device of barrage |
CN105939493A (en) * | 2016-03-30 | 2016-09-14 | 广州华多网络科技有限公司 | Video barrage display method and video barrage display device |
CN106028163A (en) * | 2016-05-19 | 2016-10-12 | 乐视控股(北京)有限公司 | Bullet curtain display method and device for client |
CN106101848A (en) * | 2016-06-08 | 2016-11-09 | 维沃移动通信有限公司 | A kind of barrage display packing and electronic equipment |
CN106303730A (en) * | 2016-07-28 | 2017-01-04 | 百度在线网络技术(北京)有限公司 | A kind of for providing the method and apparatus of combination barrage information |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8566876B2 (en) * | 2009-11-04 | 2013-10-22 | At&T Intellectual Property I, Lp | System and method for interacting with social networking in an internet protocol television system |
-
2017
- 2017-03-21 CN CN201710170064.XA patent/CN106954094B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104967876A (en) * | 2014-09-30 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Pop-up information processing method and apparatus, and pop-up information display method and apparatus |
CN105554581A (en) * | 2015-12-11 | 2016-05-04 | 小米科技有限责任公司 | Method and device for bullet screen display |
CN105872653A (en) * | 2016-03-21 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Transmission method and device of barrage |
CN105939493A (en) * | 2016-03-30 | 2016-09-14 | 广州华多网络科技有限公司 | Video barrage display method and video barrage display device |
CN106028163A (en) * | 2016-05-19 | 2016-10-12 | 乐视控股(北京)有限公司 | Bullet curtain display method and device for client |
CN106101848A (en) * | 2016-06-08 | 2016-11-09 | 维沃移动通信有限公司 | A kind of barrage display packing and electronic equipment |
CN106303730A (en) * | 2016-07-28 | 2017-01-04 | 百度在线网络技术(北京)有限公司 | A kind of for providing the method and apparatus of combination barrage information |
Also Published As
Publication number | Publication date |
---|---|
CN106954094A (en) | 2017-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106954094B (en) | Processing method, device and the service terminal of barrage information | |
CN107329861A (en) | A kind of multiplex roles method of testing and device | |
CN106209886B (en) | Web interface data encryption is endorsed method, apparatus and server | |
CN107395647A (en) | Checking system, method and apparatus | |
CN105049421A (en) | Authentication method based on use behavior characteristic of user, server, terminal, and system | |
CN105721462A (en) | Information pushing method and device | |
CN104765746B (en) | Data processing method and device for mobile communication terminal browser | |
CN107295095A (en) | The method and apparatus for pushing and showing advertisement | |
CN107506662B (en) | Information interaction method and device, computer readable network storage medium and terminal | |
US11244153B2 (en) | Method and apparatus for processing information | |
CN110392155B (en) | Notification message display and processing method, device and equipment | |
CN110659569A (en) | Electronic signature method, device, storage medium and electronic equipment | |
CN112631910A (en) | Front-end testing method and device, computer equipment and storage medium | |
KR101934413B1 (en) | Method and Device for Conducting Information Sharing Broadcast Based on Wi-Fi | |
CN106067897A (en) | Information-pushing method based on user terminal location and device | |
CN106886594A (en) | For the method and apparatus of exhibition information | |
CN105141632A (en) | Method and device used for checking pages | |
RU2016109614A (en) | SYSTEMS AND METHODS OF USE AND PROCESSING INFORMATION ABOUT DATA TAG CARRIERS | |
CN107332805B (en) | Method, device and system for detecting vulnerability | |
CN108334915A (en) | A kind of anti-fake and encryption method, electronic equipment and storage medium based on Quick Response Code | |
CN103532941B (en) | The method and device that the graphical page is presented under a kind of CGS patterns | |
US20160057250A1 (en) | Information terminal, access system, information processing method, and program | |
CN106888250A (en) | For method, the method and apparatus for representing push content realizing pushing | |
CN110427552A (en) | Be related to block chain thumbs up data recommendation method and its device | |
CN103678332A (en) | System, browser and method for displaying page |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240108 Address after: 430000, 6th Floor 610, No. 58 Guanggu Fourth Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province (Building 4, Changjiang Cultural and Creative Industry Park) Patentee after: Wuhan Rubber Film Network Technology Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |