Summary of the invention
The embodiment of the invention discloses a kind of message display method, device and electronic equipment, it is possible to increase the display of message
Effect.
Embodiment of the present invention first aspect discloses a kind of message display method, including:
Receive the message to be presented that user sends;
According to the ID that described message to be presented is corresponding, it is judged that whether described message to be presented is that superuser disappears
Breath;
When described message to be presented is superuser message, to described match messages particular display mode to be presented;
The first image of described message to be presented, wherein, the first figure of described message to be presented is shown in message display district
As the image for generating after particular display mode described in described match messages to be presented.
In conjunction with embodiment of the present invention first aspect, at the first possible embodiment of embodiment of the present invention first aspect
In, the described ID corresponding according to described message to be presented, it is judged that whether described message to be presented is superuser message,
Including:
Send ID corresponding to described message to be presented to server, so that described server is marked according to described user
Know the type to described message to be presented to be identified, to obtain recognition result;
Receive the described recognition result that described server sends;
From described recognition result, inquire about whether described message to be presented is superuser message.
In conjunction with embodiment of the present invention first aspect, the embodiment that the second in embodiment of the present invention first aspect is possible
In, the described ID corresponding according to described message to be presented, it is judged that whether described message to be presented is superuser message,
Including:
Judge whether ID corresponding to described message to be presented meets default superuser feature;
If meeting, it is determined that described message to be presented is superuser message.
In conjunction with embodiment of the present invention first aspect, at the third possible embodiment of embodiment of the present invention first aspect
In, described to described match messages particular display mode to be presented, including one or more in situations below:
Described message to be presented carries out presetting the coupling of font;
Carry out described message to be presented presetting font color and/or the coupling of default font size;
Described message to be presented is loaded and presets frame;
The ID of correspondence is added in described message to be presented.
In conjunction with the first of embodiment of the present invention first aspect or first aspect to any one possible enforcement in the third
Mode, in the 4th kind of possible embodiment of embodiment of the present invention first aspect, described show in message display district described
First image of message to be presented, including:
First image of described message to be presented is slipped over message display district according to preset path and pre-set velocity.
In conjunction with the embodiment that the first or the second of embodiment of the present invention first aspect or first aspect are possible, at this
In 5th kind of possible embodiment of inventive embodiments first aspect, described method also includes:
When described message to be presented is not superuser message, described match messages to be presented is given tacit consent to exhibition method;
The second image of described message to be presented, wherein, the of described message to be presented is shown in described message display district
Two images are to give tacit consent to the image generated after exhibition method described in described match messages to be presented.
In conjunction with the 4th kind of possible embodiment of embodiment of the present invention first aspect, in embodiment of the present invention first aspect
The 6th kind of possible embodiment in, described the first image by described message to be presented is according to preset path and pre-set velocity
Slip over message display district, including:
When the first image of described message to be presented moves in advance according to preset path and pre-set velocity in message display district
Location is when putting, and controls after the first image of described message to be presented stops Preset Time according to described preset path and described presets
Speed slips over described message display district.
In conjunction with embodiment of the present invention first aspect, at the 7th kind of possible embodiment of embodiment of the present invention first aspect
In, described method also includes:
Judge whether the character length of described message to be presented exceedes predetermined threshold value;
When the character length of described message to be presented exceedes described predetermined threshold value, described message to be presented is split
Process, to obtain at least two strip message;
Wherein, described to described match messages particular display mode to be presented, including:
Described at least two strip message are mated particular display mode the most one by one, with at least two strips described in acquisition
The image of message;
Described the first image showing described message to be presented in message display district, including:
The image of at least two strip message described in showing in order in message display district.
Embodiment of the present invention second aspect discloses a kind of message display device, including:
Receive unit, for receiving the message to be presented that user sends;
First judging unit, for the ID corresponding according to described message to be presented, it is judged that described message to be presented
Whether it is superuser message;
Matching unit, is used for when described first judging unit judges that described message to be presented is superuser message,
To described match messages particular display mode to be presented;
Display unit, for showing the first image of described message to be presented in message display district, wherein, described to be presented
First image of message is the image generated after particular display mode described in described match messages to be presented.
In conjunction with embodiment of the present invention second aspect, at the first possible embodiment of embodiment of the present invention second aspect
In, described first judging unit includes:
Send subelement, for sending ID corresponding to described message to be presented to server, so that described service
The type of described message to be presented is identified by device according to described ID, to obtain recognition result;
Receive subelement, for receiving the described recognition result that described server sends;
Inquiry subelement, for inquiring about from described recognition result whether described message to be presented is superuser message.
In conjunction with embodiment of the present invention second aspect, the embodiment that the second in embodiment of the present invention second aspect is possible
In, described first judging unit includes:
Judgment sub-unit, for judging whether ID corresponding to described message to be presented meets default superuser
Feature;
Determine subelement, for judging that described ID meets described default privilege and uses when described judgment sub-unit
During the feature of family, determine that described message to be presented is superuser message.
In conjunction with embodiment of the present invention second aspect, at the third possible embodiment of embodiment of the present invention second aspect
In, described matching unit is to described match messages particular display mode to be presented, including one or more in situations below:
Described matching unit carries out presetting the coupling of font to described message to be presented;
Described message to be presented is carried out presetting font color and/or the coupling of default font size by described matching unit;
Described message to be presented is loaded and presets frame by described matching unit;
Described matching unit adds the ID of correspondence in described message to be presented.
In conjunction with the first of embodiment of the present invention second aspect or second aspect to any one possible enforcement in the third
Mode, in the 4th kind of possible embodiment of embodiment of the present invention second aspect, described display unit is in message display district
Show the mode of the first image of described message to be presented particularly as follows:
First image of described message to be presented is slipped over message according to preset path and pre-set velocity by described display unit
Show area.
In conjunction with the embodiment that the first or the second of embodiment of the present invention second aspect or second aspect are possible, at this
In 5th kind of possible embodiment of inventive embodiments second aspect,
Described matching unit, is additionally operable to when described first judging unit judges that described message to be presented is not for superuser
During message, described match messages to be presented is given tacit consent to exhibition method;
Described display unit, is additionally operable to show the second image of described message to be presented in described message display district, wherein,
Second image of described message to be presented is to give tacit consent to the image generated after exhibition method described in described match messages to be presented.
In conjunction with the 4th kind of possible embodiment of embodiment of the present invention second aspect, in embodiment of the present invention second aspect
The 6th kind of possible embodiment in, described display unit by the first image of described message to be presented according to preset path and
Pre-set velocity slip over message display district mode particularly as follows:
Described display unit when the first image of described message to be presented in message display district according to preset path with preset
When speed moves to precalculated position, the first image controlling described message to be presented stops after Preset Time according to described default road
Footpath and described pre-set velocity slip over described message display district.
In conjunction with embodiment of the present invention second aspect, at the 7th kind of possible embodiment of embodiment of the present invention second aspect
In, described device also includes:
Second judging unit, for judging whether the character length of described message to be presented exceedes predetermined threshold value;
Processing unit, for when described second judging unit, to judge that the character length of described message to be presented exceedes described
During predetermined threshold value, described message to be presented is carried out deconsolidation process, to obtain at least two strip message;
Described matching unit to the mode of described match messages particular display mode to be presented particularly as follows:
Described at least two strip message are mated particular display mode, to obtain by described matching unit the most one by one
State the image of at least two strip message;
Described display unit show in message display district the first image of described message to be presented mode particularly as follows:
Described display unit show in order in message display district described in the image of at least two strip message.
The embodiment of the present invention third aspect discloses a kind of electronic equipment, including: processor, memorizer, input equipment, defeated
Go out device and bus;Described processor, described memorizer, described input equipment and described output device are connected by described bus
And complete mutual communication;Described memorizer storage executable program code and data, described processor is described by reading
In memorizer storage executable program code run the program corresponding with described executable program code, for perform with
Lower step:
Trigger described input equipment and receive the message to be presented that user sends;
According to the ID that described message to be presented is corresponding, it is judged that whether described message to be presented is that superuser disappears
Breath;
When described message to be presented is superuser message, to described match messages particular display mode to be presented;
Trigger described output device and show the first image of described message to be presented in message display district, wherein, described in treat
The first image showing message is the image generated after particular display mode described in described match messages to be presented.
Embodiment of the present invention fourth aspect discloses a kind of storage medium, and wherein, this storage medium is used for storing application journey
Sequence, described application program is for operationally performing a kind of message display method disclosed in embodiment of the present invention first aspect.
The embodiment of the present invention the 5th aspect discloses a kind of application program, and wherein, this application program is for operationally holding
A kind of message display method disclosed in row embodiment of the present invention first aspect.
In the embodiment of the present invention, after receiving the message to be presented that user sends, can be according to this message pair to be presented
The ID answered judges whether this message to be presented is superuser message, when for superuser message, can treat this
Show match messages particular display mode, to obtain the image of this message to be presented, and show that this is to be presented in message display district
The image of message.Visible, implement the embodiment of the present invention, the type of message to be presented can be determined according to ID, and by spy
Power user message coupling particular display mode shows such that it is able to promotes the display effect of message, is effectively improved user's body
Test.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of protection of the invention.
The embodiment of the invention discloses a kind of message display method, device and electronic equipment, can be true according to ID
The type of fixed message to be presented, and superuser match messages particular display mode is shown such that it is able to promote message
Display effect, be effectively improved Consumer's Experience.It is described in detail individually below.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of message display method disclosed in the embodiment of the present invention.Wherein, should
Message display method can apply to can carry out on the electronic equipment that message shows, electronic equipment can include but not limited to move
Start machine, panel computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), movement mutually
The various kinds of equipment such as networked devices (Mobile Internet Device, MID).As it is shown in figure 1, this message display method can wrap
Include following steps:
101, the message to be presented that user sends is received.
In the embodiment of the present invention, client in real time or can receive, every specific duration, the message to be presented that user sends.
Client is considered as the application platform being mounted on electronic equipment, can be default installation in electronic equipment, it is also possible to
It it is the third-party application downloading installation on electronic equipment;Client can also regard the application on site accessed by electronic equipment as
Platform, the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, client may be used for video playback and/or watching video live broadcast content, and user can be
Register in client.When client is when carrying out video playback, the message to be presented of user's input can be received, such as barrage
Message, i.e. can receive the comment that user delivers for this video.Concrete, user can be received and input in the message of client
The message to be presented of window input.
102, according to the ID that this message to be presented is corresponding, it is judged that whether this message to be presented is that superuser disappears
Breath, the most then perform step 103;If it is not, then perform step 105.
In the embodiment of the present invention, after client receives this message to be presented, can obtain and send this message to be presented
The ID of user.Wherein, the ID of different user is different, and ID can include but not limited to user name, use
In the information such as account picture, sex, age, User Identity number (Identification is called for short ID), user's Quick Response Code extremely
Few one.
In the embodiment of the present invention, this message to be presented can be determined according to the ID that this message to be presented is corresponding
Type, wherein, the type of this message to be presented can include superuser message or domestic consumer's message etc..Message to be presented can
To classify according to user gradation, if superuser message can be the user that in client, user gradation is higher than predetermined level
The message sent, and domestic consumer's message can be that in client, the user of user gradation not higher than predetermined level is sent
Message;Message to be presented can also be classified according to age of user, if superuser message can be the age to be more than preset value
The message that sent of user, and the message that the user that domestic consumer's message can be age no more than preset value is sent;Treat
Show that message can also be classified according to user's sex, as superuser message can also is that what female user sent disappears
Breath, and domestic consumer's message can be the message that male user is sent;Message to be presented can also be carried out otherwise
Classification, as logged in the frequency height of client, sending the frequency height etc. of message, the embodiment of the present invention is not construed as limiting.
As the optional embodiment of one, step 102 is according to ID corresponding to this message to be presented, it is judged that this is treated
Show that whether message be that the detailed description of the invention of superuser message may comprise steps of:
11) send this message correspondence ID to be presented to server so that server according to this ID to this
The type of message to be presented is identified, to obtain recognition result;
12) recognition result that server sends is received;
13) from this recognition result, inquire about whether this message to be presented is superuser message.
In this embodiment, after client gets the ID that this message to be presented is corresponding, can be by this user
Mark sends to server, so that background server identifies the type of this message to be presented according to this ID.Work as user
When registering on the client, the log-on message transmission of user can be stored by client to server end, log-on message
Can include that user name, user cipher, user's head portrait, user's sex, user gradation and client that user inputs are user
The information such as the ID of generation, user's Quick Response Code, the embodiment of the present invention is not construed as limiting.
In this embodiment, server can be classified for different user in advance according to the log-on message of storage, and
The type of the message to be presented that different types of user sends is the most different.Such as, when server, the user of storage is divided into
When the high superuser of level and the low domestic consumer of grade, then the message to be presented that superuser sends is superuser message,
The message to be presented that domestic consumer sends is domestic consumer's message.When server is to be presented to this according to the ID received
After the type of message is identified and obtains recognition result, this recognition result can be returned to client, wherein, this identification is tied
The type of this message to be presented is carried in Guo.After client receives this recognition result, this recognition result can be solved
Analysis, to inquire about whether this message to be presented is superuser message or domestic consumer's message.
As the optional embodiment of one, step 102 is according to ID corresponding to this message to be presented, it is judged that this is treated
Show that whether message be that the detailed description of the invention of superuser message may comprise steps of:
14) judge whether ID corresponding to this message to be presented meets default superuser feature;
15) if meeting, it is determined that this message to be presented is superuser message.
In this embodiment, can pre-set superuser feature in client, this superuser feature can be wrapped
Include but be not limited at least in the information such as user name, user's head portrait, age of user, user's sex, ID, user's Quick Response Code
Kind.After client gets the ID that this message to be presented is corresponding, can by this ID and client in advance
The superuser feature arranged contrasts, to determine whether this ID is consistent with superuser feature, if being consistent, the most really
This message to be presented fixed is superuser message;If not being inconsistent, it is determined that this message to be presented is domestic consumer's message.
103, to this match messages particular display mode to be presented.
In the embodiment of the present invention, client can pre-set the type pass corresponding with exhibition method of message to be presented
System, wherein, exhibition method corresponding to different types of message to be presented can be different.Such as, superuser message correspondence is specific
Exhibition method, domestic consumer's message correspondence acquiescence exhibition method, wherein, particular display mode is different with acquiescence exhibition method.Visitor
Family end can be according to the type of this message to be presented, for the exhibition method that this match messages to be presented is corresponding.When judging that this is treated
Show when message is superuser message, can be to this match messages particular display mode to be presented, wherein, particular display mode
In contain the displaying pattern of the font type of message to be presented, font color, font size, outer rim type etc..According to spy
Determine after this message to be presented mated by exhibition method, the image after this match messages to be presented to be generated.
104, the first image of this message to be presented is shown in message display district.
In the embodiment of the present invention, the first image of this message to be presented can be this match messages particular display side to be presented
The image generated after formula.Specifically, can or first image of static state display this to be presented message dynamic in message display district.Its
In, message display district be on the video playback interface of client for showing the specific region of message to be presented, as accounted for
According to the region of the top 1/3rd at video playback interface, the region of lower section 1/3rd at video playback interface etc..
105, this match messages to be presented is given tacit consent to exhibition method.
In the embodiment of the present invention, when judging this message to be presented not for superuser message, it is believed that this waits to open up
Show that message is domestic consumer's message, now according to acquiescence exhibition method corresponding to domestic consumer's message, this to be presented can be disappeared
Breath mates, to obtain the image after mating.Wherein, acquiescence exhibition method can be the displaying side of default setting in client
Formula, is different from particular display mode.
106, the second image of this message to be presented is shown in message display district.
In the embodiment of the present invention, the second image of this message to be presented can be that this match messages to be presented gives tacit consent to displaying side
The image generated after formula.Specifically, can or second image of static state display this to be presented message dynamic in message display district.When
When within the same time period, client receives superuser message and domestic consumer's message, can press in same message display district
This superuser message and domestic consumer's message is shown respectively, as made superuser message and general according to the time order and function order received
Logical user message successively slips into this message display district, and successively skids off this message display district.Wherein, the displaying of superuser message
Mode is different from domestic consumer message, and the display time such as superuser message can be than the display time of domestic consumer message
Display image long, superuser message can be more obvious than domestic consumer message, and as added frame, font color highlights, font-weight
Or strengthen, it is also possible to add user's head portrait, background etc. is set.
In the method described by Fig. 1, after receiving the message to be presented that user sends, to be presented can disappear according to this
The ID that breath is corresponding judges whether this message to be presented is superuser message, when for superuser message, and can be right
In message display district, this match messages particular display mode to be presented, to obtain the first image after mating, and shows that this waits to open up
Show the first image of message;When this message to be presented is domestic consumer's message, this match messages to be presented can be given tacit consent to exhibition
Show mode, to obtain the second image after mating, and show the second image of this message to be presented in message display district.By reality
Execute the method described by Fig. 1, can determine the type of message to be presented according to ID, and to be presented disappear for different types of
Show after the exhibition method that breath coupling is different such that it is able to promote the display effect of message, be effectively improved Consumer's Experience.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of message display method disclosed in the embodiment of the present invention.Wherein,
This message display method can apply to can carry out on the electronic equipment that message shows.As in figure 2 it is shown, this message display method
May comprise steps of:
201, the message to be presented that user sends is received.
202, according to the ID that this message to be presented is corresponding, it is judged that whether this message to be presented is that superuser disappears
Breath, the most then perform step 203;If it is not, then perform step 209.
In the embodiment of the present invention, ID can include but not limited to user name, user's head portrait, sex, age, user
At least one in the information such as ID, user's Quick Response Code.
In the embodiment of the present invention, it is judged that this message to be presented be whether superuser message can be that user is marked by client
Know and send to server, server judge, then result is fed back to client;It can also be client self basis
The superuser feature pre-set is to detect whether this ID is consistent, to show whether this message to be presented is that privilege is used
Family message.
203, judge whether the character length of this message to be presented exceedes predetermined threshold value, the most then perform step 206;If
No, then perform step 204.
It is understood that step 202 can perform prior to step 203, it is also possible to after perform in step 203, it is also possible to
Execution Tong Bu with step 203, the embodiment of the present invention is not construed as limiting.
204, to this match messages particular display mode to be presented.
In the embodiment of the present invention, when the character length detecting this message to be presented is less than predetermined threshold value, Ke Yizhi
This message to be presented is mated by the particular display mode according to superuser message is corresponding that connects.
As the optional embodiment of one, the step 204 concrete reality to this match messages particular display mode to be presented
The mode of executing can include one or more in situations below:
21) this message to be presented carries out presetting the coupling of font;
22) carry out this message to be presented presetting font color and/or the coupling of default font size;
23) this message to be presented is loaded default frame;
24) in this message to be presented, add the ID of correspondence.
In this embodiment, client can be to be presented to disappear this to this match messages particular display mode to be presented
The font of breath is adjusted, as changed the type of font, font-weight, font inclination, increasing underscore etc.;Can be to this
The font color of message to be presented and/or the size of font are adjusted;Can be that this message to be presented is arranged frame, it is possible to
Background color is set so that this is added the message to be presented after frame;ID can also be added in this message to be presented, as
The mark such as user's name, user's head portrait is increased before this message to be presented.Particular display mode is carried out to superuser message
After joining so that the display form of superuser message is different from the display form of domestic consumer's message, with district in presentation style
Divide two kinds of message to be presented.
205, the first image of this message to be presented is shown in message display district.
In the embodiment of the present invention, after the first image of this message to be presented is this match messages particular display mode to be presented
The image generated.
Concrete, step 205 shows that in message display district the detailed description of the invention of the first image of this message to be presented can
To comprise the following steps:
25) the first image of this message to be presented is slipped over message display district according to preset path and pre-set velocity.
Wherein, when the first image of this message to be presented slip into message display district show time, this can be made to be presented
First image of message carries out roll display according to preset path in this message display district with pre-set velocity.Such as, this is to be presented
First image of message the most vertically rolls in message display district with certain speed or turns left from the right side horizontal rolling etc..
As the optional embodiment of one, step 25) by the first image of this message to be presented according to preset path and
Pre-set velocity slips over the detailed description of the invention in message display district and may comprise steps of:
26) move in advance according to preset path and pre-set velocity in message display district when the first image of this message to be presented
When location is put, slip over according to this preset path and pre-set velocity after controlling the first image stop Preset Time of this message to be presented
Message display district.
In this embodiment, when this message to be presented moves to precalculated position in message display district, this is to be presented
Message will stop in pre-position rolling, and stop Preset Time in pre-position.Wherein, precalculated position can be that this disappears
At the coboundary of breath show area (message as to be presented in this rolls from the bottom up), it is also possible to be at the left margin in this message display district
(message as to be presented in this turn left from the right side rolling), it is also possible to being the middle position etc. in this message display district, the present invention implements
Example is not construed as limiting.This precalculated position can also be the edge of a upper superuser message image, such as, when there being two or two
Above superuser message successively slips into message display district when rolling, when superuser message above arrives pre-determined bit
When putting stopping rolling, stopping also being rolled by superuser message below.Preset Time can be 2 seconds, 5 seconds etc..When default
Between after timing terminates, then this message to be presented continues to roll according to pre-set velocity before and preset path, until skidding off
This message display district.Stop superuser message in pre-position rolling Preset Time so that this superuser message
The display time is longer, facilitates user to read the content of this superuser message, improves Consumer's Experience.
206, this message to be presented is carried out deconsolidation process, to obtain at least two strip message.
In the embodiment of the present invention, judge that the character length of this message to be presented exceedes predetermined threshold value when performing step 203
Time, it is believed that this message to be presented is long, therefore this message to be presented can be carried out deconsolidation process, to split at least two
Strip message, and the character length of each strip message is all less than this predetermined threshold value.Optionally, it is also possible to be that this is to be presented
Message splits into multirow, i.e. carries out branch and shows, and the character length often gone is less than predetermined threshold value.
207, above-mentioned at least two strip message are mated particular display mode, the most one by one to obtain above-mentioned at least two
The image of strip message.
208, the image of above-mentioned at least two strip message is shown in order in message display district.
In the embodiment of the present invention, at least two strip message after splitting can be mated one by one by client according to fractionation order
Particular display mode, even if the displaying pattern of above-mentioned at least two strip message is identical, after having mated, it is possible to obtain above-mentioned at least
The image of two strip message, and show the image of above-mentioned at least two strip message according to fractionation order in message display district.Need
Illustrating, the attribute of at least two strip message obtained after fractionation is identical, as ID will be inherited jointly, and after fractionation
At least two strip message will show in message display district continuously, to ensure continuity and the readability of message.Such as, when
When Chinese message or foreign language message long, it is not necessary to be confined to a piece of news and show, many strips message can be divided to show, thus can
To improve the readability of message, and other message can be reduced slip into the waiting time in message display district.
In the embodiment of the present invention, the image of above-mentioned at least two strip message is equally according to preset path and pre-set velocity
Slip over message display district, and when the sub-message image slipped at first moves to precalculated position, will stop Preset Time, then after
Sub-message the most also will stay on the edge of previous sub-message image;At the end of Preset Time timing, the most all sons disappear
Breath will move on.Additionally, when next son message arrives precalculated position, can stay on Preset Time, and after it
Sub-message stop the most accordingly.
209, this match messages to be presented is given tacit consent to exhibition method.
210, the second image of this message to be presented is shown in message display district.
In the embodiment of the present invention, when performing step 202 and judging that this message to be presented is domestic consumer's message, can be right
Image after this match messages to be presented is given tacit consent to exhibition method and mated shows in message display district.Wherein, to be presented disappear
Second image of breath is the image generated after this match messages to be presented gives tacit consent to exhibition method.
In the embodiment of the present invention, show in message display district the second image of this message to be presented concrete can be by this
Second image of message to be presented slips over message display district according to default path and default speed.Wherein, default path is with default
Path can be identical, it is also possible to different, and default speed can be identical with pre-set velocity, it is also possible to different, the embodiment of the present invention
It is not construed as limiting.
In the embodiment of the present invention, in message display district, a plurality of message to be presented can be shown, i.e. in same broadcasting simultaneously
A plurality of message to be presented can be had in time period to roll in message display district.According to preset path in message display district
While pre-set velocity display superuser message, it is also possible to show that domestic consumer disappears according to default path and default speed
Breath, these message can slip into message display district one by one according to the time order and function order that client receives.Wherein, superuser
Message and domestic consumer message to represent form different, rolling path can be identical with rolling speed.When superuser message is rolled
When moving to precalculated position stopping rolling Preset Time, domestic consumer's message is unaffected, when Preset Time meter by continuation rolling
Time terminate after, superuser message by continuation roll.
In the embodiment of the present invention, before to domestic consumer's match messages acquiescence exhibition method, it is also possible to this common use
The character length of family message verifies, and when character length exceedes predetermined threshold value, can tear this domestic consumer's message open
Divisional processing, to split at least two strip message;Show in order after this little match messages acquiescence exhibition method the most respectively
In message display district.
Referring to Fig. 3, Fig. 3 is the interface schematic diagram that a kind of barrage message disclosed in the embodiment of the present invention shows.Such as Fig. 3 institute
Showing, client is a net cast application platform, the barrage message that privilege barrage is sent out by the superuser in this client,
I.e. superuser message;The barrage message that common barrage is sent out by the domestic consumer in this client, i.e. domestic consumer's message.Its
In, the grade of superuser is higher than the grade of domestic consumer.In same reproduction time section, privilege barrage and common barrage one
Rising and slip into screen (i.e. for showing the message display district of barrage message), wherein, privilege barrage has carried out adding frame and has processed, and at bullet
Add user name and user's head portrait before curtain message, and common barrage only with the addition of user name before barrage message, show shape
In formula, two kinds of barrage message is distinguished;Privilege barrage rolls with identical speed with common barrage, and
The path rolled is the most identical, is from the bottom up.When privilege barrage slides to the top edge in message display district, will determine to live, i.e. stop
Only roll Preset Time, and now common barrage is by unaffected, continues to slide up, until skidding off this message display district.When
At the end of Preset Time timing, this privilege barrage will continue to slide up with original speed and path, together with common barrage
Skid off message display district.In the embodiment of the present invention, privilege barrage and common barrage are shown in the same area, can subtract
The region that few barrage message takies, it is to avoid barrage message takies and block too much video playback area.Additionally, barrage message can
Roll with vertical, it is also possible to laterally roll, and privilege barrage and common barrage the most vertically roll here, and long in barrage message
Time, a point multirow shows, it is not necessary to be confined in a line, such that it is able to improve the reading experience of barrage message, reduces other barrages sliding
Enter the waiting time of screen.
In the embodiment of the present invention, by implementing the method described by Fig. 2, can determine to be presented according to ID
The type of message, and for showing after the different exhibition method of different types of match messages to be presented such that it is able to promote
The display effect of message, is effectively improved Consumer's Experience.
Referring to Fig. 4, Fig. 4 is the structural representation of a kind of message display device, Ke Yiyong disclosed in the embodiment of the present invention
In performing message display method disclosed in the embodiment of the present invention.As shown in Figure 4, this message display device may include that
Receive unit 401, for receiving the message to be presented that user sends.
In the embodiment of the present invention, receive unit 401 and in real time or the to be presented of user's transmission can be received every specific duration
Message.
First judging unit 402, for the ID corresponding according to this message to be presented, it is judged that this message to be presented is
No for superuser message.
In the embodiment of the present invention, receive after unit 401 receives message to be presented, can obtain further and send this and wait to open up
Show the ID of the user of message.Wherein, the ID of different user is different, and ID can include but not limited to use
At least one in the information such as name in an account book, user's head portrait, sex, age, ID, user's Quick Response Code.
In the embodiment of the present invention, the first judging unit 402 can come really according to the ID that this message to be presented is corresponding
The type of this message to be presented fixed, wherein, the type of this message to be presented can include that superuser message or domestic consumer disappear
Breath etc..Message to be presented can be classified according to user gradation, it is also possible to classifies according to age of user, it is also possible to according to
User's sex carries out classification etc., and the embodiment of the present invention is not construed as limiting.
Matching unit 403, is used for when the first judging unit 402 judges that this message to be presented is superuser message,
To this match messages particular display mode to be presented.
In the embodiment of the present invention, the type of message to be presented and the corresponding relation of exhibition method can be pre-set, wherein,
Exhibition method corresponding to different types of message to be presented can be different.
As the optional embodiment of one, the matching unit 403 tool to this match messages particular display mode to be presented
Body embodiment can include one or more in situations below::
Matching unit 403 carries out presetting the coupling of font to this message to be presented;
This message to be presented is carried out presetting font color and/or the coupling of default font size by matching unit 403;
This message to be presented is loaded and presets frame by matching unit 403;
Matching unit 403 adds the ID of correspondence in this message to be presented.
Display unit 404, for showing the first image of this message to be presented in message display district.
In the embodiment of the present invention, the first image of this message to be presented is that matching unit 403 is to this match messages to be presented
The image generated after particular display mode.
As the optional embodiment of one, display unit 404 shows the first of this message to be presented in message display district
The detailed description of the invention of image can be:
First image of this message to be presented is slipped over message display according to preset path and pre-set velocity by display unit 404
District.
As the optional embodiment of one, display unit 404 by the first image of this message to be presented according to default road
Footpath and pre-set velocity slip over the detailed description of the invention in message display district:
Display unit 404 works as the first image of this message to be presented in message display district according to preset path and pre-set velocity
Mobile to precalculated position time, control after the first image of this message to be presented stops Preset Time according to this preset path and preset
Speed slips over message display district.
As the optional embodiment of one, matching unit 403, it is also possible to for judging when the first judging unit 402
When this message to be presented is not superuser message, this match messages to be presented is given tacit consent to exhibition method.
Wherein, this acquiescence exhibition method is different from particular display mode, for showing that distinguishing superuser on pattern disappears
Breath and domestic consumer's message.
Correspondingly, display unit 404, it is also possible to for showing the second image of this message to be presented in message display district.
Wherein, the second image of message to be presented is that this match messages to be presented is given tacit consent to exhibition method by matching unit 403
The image of rear generation.
Seeing also Fig. 5, Fig. 5 is the structural representation of another kind of message display device disclosed in the embodiment of the present invention,
May be used for performing message display method disclosed in the embodiment of the present invention.Wherein, the message display device shown in Fig. 5 is at Fig. 4
On the basis of shown message display device, further optimization obtains.Compared with the message display device shown in Fig. 4, Fig. 5 institute
In the message display device shown, the first judging unit 402 may include that
Send subelement 4021, be used for sending this message correspondence ID to be presented to server, so that server root
According to this ID, the type of this message to be presented is identified, to obtain recognition result;
Receive subelement 4022, for receiving the recognition result that server sends;
Inquiry subelement 4023, for inquiring about from this recognition result whether this message to be presented is superuser message.
As the optional embodiment of one, the message display device shown in Fig. 5 can also include:
Second judging unit 405, for judging whether the character length of this message to be presented exceedes predetermined threshold value;
Processing unit 406, for when the second judging unit 405, to judge that the character length of this message to be presented exceedes default
During threshold value, this message to be presented is carried out deconsolidation process, to obtain at least two strip message.
Correspondingly, the detailed description of the invention of this match messages particular display mode to be presented can be by matching unit 403:
Above-mentioned at least two strip message are mated particular display mode by matching unit 403 the most one by one, on obtaining
State the image of at least two strip message;
Display unit 404 shows that in message display district the detailed description of the invention of the first image of this message to be presented is permissible
For:
Display unit 404 shows the image of above-mentioned at least two strip message in order in message display district.
Additionally, when the second judging unit 405 judges the character length of this message to be presented less than predetermined threshold value,
Join unit 403 to this match messages particular display mode to be presented, and in message display district, display unit 404 shows that this is to be presented
First image of message.
See also the structural representation that Fig. 6, Fig. 6 are the embodiment of the present invention another message display device disclosed,
May be used for performing message display method disclosed in the embodiment of the present invention.Wherein, the message display device shown in Fig. 6 is at Fig. 4
On the basis of shown message display device, further optimization obtains.Compared with the message display device shown in Fig. 4, Fig. 6 institute
In the message display device shown, the first judging unit 402 may include that
Judgment sub-unit 4024, for judging whether ID corresponding to this message to be presented meets default privilege and use
Family feature;
Determine subelement 4025, for judging that this ID meets default superuser when judgment sub-unit 4024
During feature, determine that this message to be presented is superuser message.
As the optional embodiment of one, the message display device shown in Fig. 6 can also include:
Second judging unit 405, for judging whether the character length of this message to be presented exceedes predetermined threshold value;
Processing unit 406, for when the second judging unit 405, to judge that the character length of this message to be presented exceedes default
During threshold value, this message to be presented is carried out deconsolidation process, to obtain at least two strip message.
Correspondingly, the detailed description of the invention of this match messages particular display mode to be presented can be by matching unit 403:
Above-mentioned at least two strip message are mated particular display mode by matching unit 403 the most one by one, on obtaining
State the image of at least two strip message;
Display unit 404 shows that in message display district the detailed description of the invention of the first image of this message to be presented is permissible
For:
Display unit 404 shows the image of above-mentioned at least two strip message in order in message display district.
Additionally, when the second judging unit 405 judges the character length of this message to be presented less than predetermined threshold value,
Join unit 403 to this match messages particular display mode to be presented, and in message display district, display unit 404 shows that this is to be presented
First image of message.
In the embodiment of the present invention, by implementing the message display device shown in Fig. 4 to Fig. 6, can be true according to ID
The type of fixed message to be presented, and for showing after the different exhibition method of different types of match messages to be presented, thus
The display effect of message can be promoted, be effectively improved Consumer's Experience.
Referring to Fig. 7, Fig. 7 is the structural representation of a kind of electronic equipment disclosed in the embodiment of the present invention, may be used for holding
Message display method disclosed in the row embodiment of the present invention.As it is shown in fig. 7, this electronic equipment 700 may include that at least one processes
Device 701, at least one input equipment 702, output device 703, memorizer 704, at least one communication bus 705 assembly such as grade.Its
In, communication bus 705 may be used for the connection communication realizing between these assemblies.It will be understood by those skilled in the art that in Fig. 7
The structure of the electronic equipment 700 illustrated is not intended that the restriction to the embodiment of the present invention, and it both can be busbar network, it is possible to
To be hub-and-spoke configuration, it is also possible to include that ratio illustrates more or less of parts, or combine some parts, or different parts
Arrange.Wherein:
Processor 701 is the control centre of electronic equipment 700, utilizes various interface and the whole electronic equipment of connection
The various piece of 700, is stored in the program in memorizer 704 and/or module by running or performing, and calls and be stored in
Data in reservoir 704, to perform the various functions of electronic equipment 700 and to process data.Processor 701 can be by integrated circuit
(Integrated Circuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, it is also possible to by connecting many
The encapsulation IC of identical function or difference in functionality and form.For example, processor 701 can only include central processing unit
(Central Processing Unit is called for short CPU), it is also possible to be CPU, digital signal processor (Digital Signal
Processor, is called for short DSP), graphic process unit (Graphic Processing Unit, be called for short GPU) and various control chip
Combination.In embodiments of the present invention, CPU can be single arithmetic core, it is also possible to include multioperation core.
Input equipment 702 can include the touch screen of standard, keyboard etc., it is also possible to includes line interface, wave point etc..
Output device 703 can include display screen, speaker etc., it is also possible to includes line interface, wave point etc..
Memorizer 704 can be used for storing application program and module, processor 701, input equipment 702 and output device
703 by calling the application program and module stored in memory 704, thus performs the various functions of electronic equipment 700
Apply and realize data and process.Memorizer 704 mainly includes program storage area and data storage area, wherein, program storage area
The application program etc. needed for operating system, at least one function can be stored;Data storage area can store according to electronic equipment 700
Use the data etc. created.In embodiments of the present invention, operating system can be android system, iOS system or
Windows operating system etc..
In the electronic equipment 700 shown in Fig. 7, processor 701 can call storage application journey in memory 704
Sequence, is used for performing following operation:
Trigger input equipment 702 and receive the message to be presented that user sends;
According to the ID that this message to be presented is corresponding, it is judged that whether this message to be presented is superuser message;
When this message to be presented is superuser message, to this match messages particular display mode to be presented;
Triggering output device 703 and show the first image of this message to be presented in message display district, wherein, this is to be presented disappears
First image of breath is the image generated after this match messages particular display mode to be presented.
As the optional embodiment of one, processor 701 is according to ID corresponding to this message to be presented, it is judged that should
Whether message to be presented is that the detailed description of the invention of superuser message can be:
Trigger output device 703 and send ID corresponding to this message to be presented to server so that server according to
The type of this message to be presented is identified by this ID, to obtain recognition result;
Trigger input equipment 702 and receive the recognition result that server sends;
From this recognition result, inquire about whether this message to be presented is superuser message.
As the optional embodiment of one, processor 701 is according to ID corresponding to this message to be presented, it is judged that should
Whether message to be presented is that the detailed description of the invention of superuser message can also be:
Judge whether ID corresponding to this message to be presented meets default superuser feature;
If meeting, it is determined that this message to be presented is superuser message.
As the optional embodiment of one, processor 701 is concrete to this match messages particular display mode to be presented
Embodiment can include one or more in situations below:
This message to be presented carries out presetting the coupling of font;
Carry out this message to be presented presetting font color and/or the coupling of default font size;
This message to be presented is loaded and presets frame;
The ID of correspondence is added in this message to be presented.
As the optional embodiment of one, processor 701 triggers output device 703 and shows that this waits to open up in message display district
The detailed description of the invention showing the first image of message can be:
Trigger output device 703 and first image of this message to be presented is slipped over message according to preset path and pre-set velocity
Show area.
As the optional embodiment of one, when processor 701 judges this message to be presented not for superuser message,
May call upon storage application program in memory 704, and perform following operation:
This match messages to be presented is given tacit consent to exhibition method;
Triggering output device 703 and show the second image of this message to be presented in message display district, wherein, this is to be presented disappears
Second image of breath is the image generated after this match messages to be presented gives tacit consent to exhibition method.
As the optional embodiment of one, processor 701 triggers output device 703 by the first figure of this message to be presented
As slipping over the detailed description of the invention in message display district according to preset path and pre-set velocity can be:
When the first image of this message to be presented moves to predetermined according to preset path and pre-set velocity in message display district
During position, trigger output device 703 control the first image of this message to be presented stop after Preset Time according to preset path and
Pre-set velocity slips over message display district.
As the optional embodiment of one, processor 701 may call upon storage application journey in memory 704
Sequence, and perform following operation:
Judge whether the character length of this message to be presented exceedes predetermined threshold value;
When the character length of this message to be presented exceedes predetermined threshold value, this message to be presented is carried out deconsolidation process, with
Obtain at least two strip message;
Wherein, the detailed description of the invention of this match messages particular display mode to be presented can be by processor 701:
Above-mentioned at least two strip message are mated particular display mode the most one by one, to obtain above-mentioned at least two strips
The image of message;
And processor 701 triggers the tool that output device 703 shows the first image of this message to be presented in message display district
Body embodiment can be:
Trigger output device 703 and show the image of above-mentioned at least two strip message in message display district in order.
Specifically, the electronic equipment introduced in the embodiment of the present invention can be implemented the present invention and combine disappearing of Fig. 1 or Fig. 2 introduction
Part or all of flow process in breath display packing embodiment.
In the embodiment of the present invention, by implementing the electronic equipment shown in Fig. 7, to be presented disappearing can be determined according to ID
The type of breath, and for showing after the different exhibition method of different types of match messages to be presented such that it is able to promote and disappear
The display effect of breath, is effectively improved Consumer's Experience.
In one embodiment there is disclosed a kind of storage medium, this storage medium is used for storing application program, application program
For operationally performing the message display method corresponding to Fig. 1 and Fig. 2.
In one embodiment there is disclosed a kind of application program, this application program is for operationally performing Fig. 1 and Fig. 2 institute
Corresponding message display method.
Module in all embodiments of the invention or submodule, can pass through universal integrated circuit, such as CPU, or pass through
ASIC (Application Specific Integrated Circuit, special IC) realizes.
It should be noted that for each embodiment of the method aforesaid, in order to be briefly described, therefore it is all expressed as one it be
The combination of actions of row, but those skilled in the art should know, and the present invention is not limited by described sequence of movement, because of
For according to the application, certain some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should
Knowing, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this Shen
Please be necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in certain embodiment
Part, may refer to the associated description of other embodiments.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit or subelement in embodiment of the present invention device can merge according to actual needs, divide and delete.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible
Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium
In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access
Memory, is called for short RAM) etc..
Above message display method a kind of disclosed in the embodiment of the present invention, device and electronic equipment are carried out detailed Jie
Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only
It is the method and core concept thereof being adapted to assist in and understanding the present invention;Simultaneously for one of ordinary skill in the art, according to this
Bright thought, the most all will change, and in sum, this specification content should not be managed
Solve as limitation of the present invention.