CN113709025A - Message display method and device, storage medium and computer equipment - Google Patents

Message display method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN113709025A
CN113709025A CN202110832790.XA CN202110832790A CN113709025A CN 113709025 A CN113709025 A CN 113709025A CN 202110832790 A CN202110832790 A CN 202110832790A CN 113709025 A CN113709025 A CN 113709025A
Authority
CN
China
Prior art keywords
message
conversation
bullet screen
important
user
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.)
Granted
Application number
CN202110832790.XA
Other languages
Chinese (zh)
Other versions
CN113709025B (en
Inventor
宋晓亮
田野
何世伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Luyi Technology Co ltd
Original Assignee
Chengdu Luyi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Luyi Technology Co ltd filed Critical Chengdu Luyi Technology Co ltd
Priority to CN202110832790.XA priority Critical patent/CN113709025B/en
Publication of CN113709025A publication Critical patent/CN113709025A/en
Application granted granted Critical
Publication of CN113709025B publication Critical patent/CN113709025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a message display method, a message display device, a storage medium and computer equipment, relates to the technical field of information, and mainly aims to improve the reach rate of important messages to users in a conversation process and simplify the operation process of viewing the messages by the users. The method comprises the following steps: responding to the monitored dialogue message, and judging whether the dialogue message is an important message; if the conversation message is an important message, performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message; and displaying the bullet screen message to a user. The invention is suitable for displaying the message.

Description

Message display method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for displaying a message, a storage medium, and a computer device.
Background
With the continuous development of society, various chat software is presented to facilitate the communication between people, and when the chat software is used for communication, a user can receive communication information by checking messages on the chat software.
At present, when someone sends a message to a user, an icon corresponding to chat software continuously flickers, and after the user sees the icon flickers, the user opens a message dialog box first, and then selects a friend who sends the message from the message dialog box to view the message. However, when the user is busy or is working more, the flickering icon is easily ignored, and the chat dialog box is not opened in time, so that some important messages can be missed by the user, the reaching rate of the important messages to the user is low, and in addition, for the chat software, the user needs to click and select for many times when checking the messages, the operation is complex, and the user experience is poor.
Disclosure of Invention
The invention provides a message display method, a message display device, a storage medium and computer equipment, which are mainly characterized in that important messages are displayed in a bullet screen mode, the reaching rate of the important messages to a user in a conversation process can be improved, and the operation process of checking the messages by the user can be simplified.
According to a first aspect of the present invention, there is provided a message display method, including:
responding to the monitored dialogue message, and judging whether the dialogue message is an important message;
if the conversation message is an important message, performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message;
and displaying the bullet screen message to a user.
According to a second aspect of the present invention, there is provided a message presentation apparatus comprising:
the judging unit is used for responding to the monitored dialogue message and judging whether the dialogue message is an important message;
the processing unit is used for performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message if the conversation message is an important message;
and the display unit is used for displaying the bullet screen message to a user.
According to a third aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
responding to the monitored dialogue message, and judging whether the dialogue message is an important message;
if the conversation message is an important message, performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message;
and displaying the bullet screen message to a user.
According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
responding to the monitored dialogue message, and judging whether the dialogue message is an important message;
if the conversation message is an important message, performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message;
and displaying the bullet screen message to a user.
According to the message display method, the message display device, the storage medium and the computer equipment, compared with the current mode that a user opens a message dialog box according to icon flicker and selects a friend sending a message from the message dialog box to check the message, the method judges whether the dialog message is an important message or not by responding to the monitored dialog message, if the dialog message is the important message, carries out bullet screen formatting treatment on the dialog message to generate bullet screen message corresponding to the dialog message, and finally displays the bullet screen message to the user, so that the dialog message is directly displayed to the user in a bullet screen mode by judging whether the monitored dialog message is the important message or not, if the dialog message is the important message, the important message can be prevented from being omitted by the user because the chat dialog box is not opened instantly, and the touch rate of the important message to the user in the dialog process is improved, meanwhile, the dialog message is directly displayed to the user in a bullet screen mode, so that the operation process of viewing the dialog message by the user can be simplified, and the user experience is enhanced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart illustrating a message presentation method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another message presentation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating a message presentation apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another message presentation apparatus provided in the embodiment of the present invention;
fig. 5 shows a physical structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
At present, a user opens a message dialog box according to icon flashing, and selects a mode of viewing messages by friends sending messages from the message dialog box, which causes a low reaching rate of important messages to the user, and also causes a complex operation process of viewing messages by the user.
In order to solve the above problem, an embodiment of the present invention provides a message display method, as shown in fig. 1, where the method includes:
101. in response to listening for a conversation message, a determination is made as to whether the conversation message is an important message.
The conversation message is a message sent to the user through the chat software, such as a message sent to the user through the QQ and the WeChat, and the important message is a message that the user needs to know in time and respond at the first time. In order to overcome the defects that the access rate of important messages to a user is low and the message viewing process is too complex in the prior art, the bullet screen display device in the embodiment of the invention can monitor the conversation messages, and if the monitored conversation messages are the important messages, the conversation messages are displayed to the user in a bullet screen mode, so that the important messages can be prevented from being omitted because the user does not open a message dialog box in time, the access rate of the important messages to the user in the chat software conversation process is improved, meanwhile, the operation process of viewing the conversation messages by the user can be simplified, and the user experience is enhanced. The embodiment of the invention is mainly applied to a scene of displaying the dialog messages in a bullet screen mode, and the execution main body of the embodiment of the invention is a device or equipment capable of displaying the bullet screen of the messages, and can be specifically arranged at one side of a client or a server.
For the embodiment of the invention, chat software needing monitoring can be preset, and the barrage device can be automatically started to monitor the conversation information received by the chat software after a user logs in the chat software, for example, the user presets the barrage device to monitor QQ software in advance, the barrage device can monitor the QQ software after the user logs in the QQ software, when the barrage device monitors that a person sends a message to the user through the QQ software, whether the message is an important message or not can be judged, and if the message is the important message, the message is displayed to the user in a barrage mode.
Further, for a specific process of determining whether a dialog message is an important message, the method includes: responding to the monitored conversation message, and determining a chat friend or a chat group which sends the conversation message; if the chat friend or the chat group is a target friend or a target group, judging that the conversation message is the important message, wherein the target friend or the target group is a preset friend or group needing to be displayed in a barrage mode on the sent message.
Specifically, the user may select a target friend or a target group in the bullet screen device in advance in the chat, and when the target friend or the target group sends a message to the user through the chat software, the bullet screen device determines that a conversation message sent by the target friend or the target group is an important message, and directly displays the conversation message to the user in a bullet screen manner, so as to prevent the user from missing the important message without opening the chat software. For example, a user sets a family group and a supervisor leader as a target group and a target friend in a barrage device in advance, the barrage device monitors the chat software after the user logs in the chat software, when a person is monitored to send a conversation message to the user, the chat friend or the chat group sending the conversation message is determined firstly, if the chat friend sending the conversation message is the supervisor leader or the conversation message comes from the family group, the conversation message is displayed to the user in a barrage mode, therefore, the important messages sent by the important friends and colleagues are directly displayed to the user in the barrage mode, the important messages are prevented from being omitted by the user due to busy work and the like, meanwhile, the operation steps of the user for viewing the conversation message are simplified, and the chat experience of the user is enhanced.
102. And if the conversation message is an important message, performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message.
The important message may be a text message, a file message, a picture message, and the like.
For the embodiment of the invention, because the size of the bullet screen is limited, after the conversation message is judged to be the important message, the conversation message needs to be processed into a format meeting the requirement of the bullet screen, so that the conversation message can be conveniently displayed in the form of the bullet screen in the follow-up process. Specifically, different manners of performing barrage formatting processing are different for different types of dialog messages, for example, if a dialog message is a text message, the text message may be directly displayed as a barrage message, but due to the limitation of a screen display area, if the length corresponding to the text message exceeds a certain length, a part of text in the text message needs to be folded or hidden; if the dialog message is a picture message or a file message, the picture message or the file message cannot be directly displayed due to the limited display area of the bullet screen, so that the received file message or the picture message needs to be cached locally, then a picture identifier or a file identifier corresponding to the picture message or the file message is determined, and the picture identifier or the file identifier is used as bullet screen information to be displayed to a user. Therefore, the embodiment of the invention can perform corresponding barrage formatting processing on the conversation message aiming at different conversation message types to generate barrage information meeting barrage display requirements.
103. And displaying the bullet screen message to a user.
For the embodiment of the present invention, in order to avoid missing important messages by a user and improve the reach rate of the important messages to the user, the important messages need to be displayed to the user in a bullet screen form, so that the user can see the important messages in time, and the format of the important messages seen by the user in the bullet screen can be [ name ]/[ head portrait ]: when important messages are displayed to a user in a bullet screen form, the user can directly reply the messages to the important messages on the bullet screen, can also select to return to a common dialog box for replying the messages, and can also select other operation options corresponding to the bullet screen messages to perform corresponding operations.
Compared with the current mode that a user opens a message dialog box according to icon flicker and selects a friend sending a message from the message dialog box to check the message, the message display method judges whether the dialog message is an important message or not by responding to the monitored dialog message, if the dialog message is the important message, carries out bullet screen formatting treatment on the dialog message to generate a bullet screen message corresponding to the dialog message, and finally displays the bullet screen message to the user, therefore, by judging whether the monitored dialog message is the important message or not, if the dialog message is the important message, the dialog message is directly displayed to the user in a bullet screen mode, thereby avoiding the omission of the important message due to the fact that the user does not open the chat dialog box instantly, improving the reaching rate of the important message to the user in the dialog process, meanwhile, the dialog message is directly displayed to the user in a bullet screen mode, so that the operation process of viewing the dialog message by the user can be simplified, and the user experience is enhanced.
Further, in order to better explain the process of the message presentation, as a refinement and extension of the foregoing embodiment, another message presentation method is provided in an embodiment of the present invention, as shown in fig. 2, where the method includes:
201. in response to listening for a conversation message, a determination is made as to whether the conversation message is an important message.
For the embodiment of the present invention, in order to determine whether the dialog message is an important message, step 201 specifically includes: responding to the monitored dialogue message, and detecting whether the dialogue message contains keywords or not by using a preset keyword library; and if the conversation message contains the keyword, judging that the conversation message is the important message. The preset keyword library is a pre-constructed word library and contains a large number of keywords such as immediate, urgent, important and the like.
Specifically, when the monitored conversation message is determined to be an important message, performing word segmentation processing on the conversation message by using a preset natural language model to obtain each word segmentation corresponding to the conversation message, wherein the preset natural language model can be a BERT model, then matching each word segmentation in the conversation message with each keyword in a preset keyword library respectively, and if a keyword matched with any word segmentation in each word segmentation exists in the preset keyword library, determining that the conversation message is the important message. For example, the preset keyword library includes keywords such as "reply immediately", "immediate", "important", "deadline", and the like, each participle corresponding to the dialog message is XX file/very important/important,/please/immediate/audit, and by matching the participle with each keyword, it can be found that the dialog message includes "important" and "immediate" keywords, so that it can be determined that the dialog message is important information and needs to be directly displayed to the user in a bullet screen form, thereby avoiding the user from missing important messages and improving the access rate of the important messages to the user.
202. If the conversation message is an important message and the conversation message is a text message, judging whether the text length corresponding to the text message is larger than a preset text length, and if so, folding the conversation message to obtain a bullet screen message corresponding to the conversation message.
The preset text length can be determined according to the size of the display area of the screen. For the embodiment of the present invention, if the dialog message to be displayed in the bullet screen form is a text message, when the length of the text corresponding to the text message exceeds the length acceptable by the bullet screen, that is, when the length of the text corresponding to the text message is greater than the preset length, the text in the text message that is greater than the preset length needs to be folded, so as to generate a bullet screen message corresponding to the text message, so as to display the folded text message to the user in the bullet screen form, for example, if the text message that needs to be displayed in the bullet screen includes 30 texts and the length of the text acceptable by the bullet screen is 20 texts, then the last 10 texts in the text message need to be folded, specifically > can be used to replace the last 10 texts in the text message, and in addition, the key information in the dialog message can be extracted, only the key information is displayed, and when the user clicks the key information, all the text content can be displayed.
Further, if the dialog message includes the privacy information or sensitive words of the user, the part of the content cannot be displayed on the screen in a bullet screen manner, so as to avoid revealing the privacy information of the user or causing other adverse effects, and based on this, before judging whether the text length corresponding to the text message is greater than the preset text length, the method includes: performing word segmentation processing on the text message to obtain each word segmentation corresponding to the text message, and detecting whether each word segmentation comprises a sensitive word or not by using a preset sensitive word bank; and if the sensitive word is contained, hiding the sensitive word contained in the text message. The preset sensitive word bank is a pre-constructed word bank, and a large number of sensitive words such as killers, robbers, abductions and the like are contained in the preset sensitive word bank.
Specifically, if the dialog message to be displayed on the bullet screen is a text message, firstly performing word segmentation processing on the text message to obtain each word segmentation corresponding to the text message, then detecting whether each word segmentation comprises a sensitive word in a sensitive word bank by using a preset sensitive word bank, if the text message contains the sensitive words in the sensitive word library, the sensitive words in the text message are hidden in the form of 'a' or mosaic, and then whether the text length corresponding to the text message after the sensitive words are hidden is larger than the preset text length is judged, if the length of the text is larger than the preset text length, the part of the conversation message with the hidden sensitive word, which is larger than the preset text length, needs to be folded to obtain the text message with the hidden sensitive word and the character message is folded, and finally the text message is displayed to the user in a bullet screen mode. It should be noted that, in the embodiment of the present invention, a manner of hiding the sensitive word in the text message is not limited to the form of an "or mosaic," and other symbols may also be used to hide the sensitive word.
For example, the text message to be displayed in the form of a bullet screen is that "a man robbes a bank, drives a unlicensed vehicle to run away after the man robbes the bank", that a word segmentation process is performed to obtain the words of "one/man/pair/certain/bank/go/robbed/that/man/robbed/back/stool/drive/one/unlicensed vehicle/run away", that then a preset sensitive word bank is used to detect whether the word bank includes the pre-run-away Setting sensitive words in a sensitive word bank, detecting to obtain word segments of ' robbery ' and ' escape ' appearing in the preset sensitive word bank, hiding the word segments of ' robbery ' and ' escape ' in the text message by using ' word segments, obtaining the text message after hiding as ' one man carries out hiding on a certain bank ', driving a unlicensed vehicle by the man after the man ', judging that the text length corresponding to the text message is 27 characters, if the preset text length accepted by a bullet screen is 20 characters, because 27 is more than 20, driving the text message ' one man to a certain bank, driving the next 7 characters of an unlicensed vehicle by the man ' to fold, specifically adopting > to replace the last 7 characters, finally obtaining the text message after hiding and folding processing as ' one man carries out folding processing on a certain bank, the man drives after the word > > ".
It should be noted that the text message may also include privacy information such as a phone number and an identification number, and in order to prevent the privacy information of the user from being leaked, the privacy information needs to be hidden. If the pre-constructed regular expression is:
/^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
the regular expression is used for identifying whether the text message contains privacy information in formats such as a mobile phone number, an identity card number and the like, if the fact that the dialogue message contains the privacy information of the user is detected, the privacy information is hidden, so that the privacy information is prevented from being displayed on a screen to cause leakage of the privacy information of the user, and when the user wants to check the information, the user can check the information through a dialogue box of the chat software.
203. If the conversation message is an important message and the conversation message is a file message, acquiring a file identifier corresponding to the file message, and determining the file identifier as the bullet screen message.
The file message may be a PDF document, a world document, an excel document, and the like.
For the embodiment of the present invention, since the document message is limited by the display area during the bullet screen display process, it is necessary to perform bullet screen formatting on the document message to obtain a bullet screen message corresponding to the document message, specifically, if the dialog message is a document message, the document message needs to be represented by a document identifier, the document identifier may be represented by [ FILE ] but not limited to [ FILE ], and the document identifier is determined as the bullet screen message, further, when the user clicks the document identifier, a corresponding frame is popped up, the frame is recorded with document attributes such as size, occupied space, document type, and the like of the document, and operation items such as downloading, saving, and previewing, and when the user wants to view the content in the document, the user clicks the preview option in the frame, and can view the content in the document, meanwhile, the user can click a download option in the picture frame to download the file to the local, open the file locally and check the content in the file.
204. If the conversation message is an important message and the conversation message is a picture message, obtaining a picture identifier corresponding to the picture message, and determining the picture identifier as the bullet screen message.
For the embodiment of the present invention, if the dialog message is a picture message, the picture message needs to be represented by a picture identifier, the picture identifier may specifically be represented by [ PIC ], but is not limited to be represented by [ PIC ], the picture identifier is determined as the bullet screen message, further, when a user clicks the picture identifier, a corresponding picture frame is popped up, picture attributes such as the size and the occupied space of the picture, and operation items such as downloading, saving, and previewing are recorded on the picture frame, when the user wants to view the content in the picture, the user clicks a preview option in the picture frame, and can view the content in the picture, and at the same time, the user can click a save option in the picture frame to save the picture locally, open the picture locally, and view the content in the picture.
205. And displaying the bullet screen message to a user.
For the embodiment of the present invention, in order to display the bullet screen information to the user, step 205 specifically includes: determining an animation display mode corresponding to the bullet screen information, and rendering the bullet screen information in the animation display mode; acquiring the current position information of the mouse in a display screen, and stopping the rendered barrage message at the corresponding position of the display screen based on the position information. The animation display mode comprises the steps of flying from the right side of the display screen to the left side, flying from the left side to the right side, flying from the middle of the display screen in a spiral mode and the like.
For the embodiment of the present invention, a user may set an animation display manner of a bullet screen message in a bullet screen device in advance, for example, set that bullet screen information flies from right to left, and correspondingly render bullet screen information in the animation display manner, meanwhile, in a process of displaying bullet screen information to the user, if a mouse is suspended on the bullet screen information, the rendered bullet screen information is parked at a position where the mouse is suspended, for example, in a process of flying bullet screen information from right to left of a display screen, when the bullet screen information flies to a middle position of the display screen, the user suspends the mouse on the bullet screen information, at this time, the bullet screen information is parked at the middle position of the display screen, that is, the position where the mouse is suspended, and if the mouse is not suspended on the bullet screen information, the bullet screen information is finally parked at the left side or the right side of the display screen.
Further, in order to facilitate a user to perform a corresponding operation on the bullet screen information, an operation option menu corresponding to the bullet screen information needs to be displayed, and based on this, the method includes: and responding to an operation event triggering the bullet screen information, and displaying an operation option menu corresponding to the bullet screen information so that a user can operate the bullet screen information based on the operation option menu. The operation option menu comprises options of direct reply, normal window recovery, file transmission and the like.
For the embodiment of the invention, after rendered bullet screen information is docked at a corresponding position, a user suspends a mouse on the docked bullet screen information, an operation menu is displayed on the bullet screen information, the operation menu comprises operation options such as direct reply, normal window recovery, file transmission and the like, if the user wants to directly reply the opposite side message on the bullet screen information, the direct reply of the conversation message is carried out after triggering the direct reply option, if the user wants to transmit the file to the opposite side, the file transmission option is triggered, and the user selects the corresponding file for transmission.
Compared with the current mode that a user opens a message dialog box according to icon flicker and selects a friend sending a message from the message dialog box to check the message, the method judges whether the dialog message is an important message or not by responding to the monitored dialog message, carries out barrage formatting processing on the dialog message if the dialog message is the important message, generates a barrage message corresponding to the dialog message, and finally displays the barrage message to the user, thereby directly displaying the dialog message to the user in the form of barrage by judging whether the monitored dialog message is the important message or not if the monitored dialog message is the important message, avoiding the omission of the important message due to the fact that the user does not open the chat dialog box instantly and improving the reaching rate of the important message to the user in the dialog process, meanwhile, the dialog message is directly displayed to the user in a bullet screen mode, so that the operation process of viewing the dialog message by the user can be simplified, and the user experience is enhanced.
Further, as a specific implementation of fig. 1, an embodiment of the present invention provides a message display apparatus, as shown in fig. 3, where the apparatus includes: a determination unit 31, a processing unit 32 and a presentation unit 33.
The determining unit 31 may be configured to determine whether the dialog message is an important message in response to monitoring the dialog message.
The processing unit 32 may be configured to perform barrage formatting processing on the dialog message to generate barrage information corresponding to the dialog message if the dialog message is an important message.
The display unit 33 may be configured to display the barrage message to the user.
In a specific application scenario, in order to generate a bullet screen message corresponding to the dialog message, as shown in fig. 4, the processing unit 32 includes a determining module 321, a first obtaining module 322, and a second obtaining module 323.
The determining module 321 may be configured to determine whether a text length corresponding to the text message is greater than a preset text length if the dialog message is a text message, and perform folding processing on the dialog message if the text length is greater than the preset text length to obtain a bullet screen message corresponding to the dialog message.
The first obtaining module 322 may be configured to, if the dialog message is a file message, obtain a file identifier corresponding to the file message, and determine the file identifier as the bullet screen message.
The second obtaining module 323 may be configured to, if the dialog message is a picture message, obtain a picture identifier corresponding to the picture message, and determine the picture identifier as the bullet screen message.
In a specific application scenario, in order to hide a sensitive word in a text message, the processing unit 32 further includes a word segmentation module 324 and a hiding module 325.
The word segmentation module 324 may be configured to perform word segmentation processing on the text message to obtain each word segmentation corresponding to the text message, and detect whether each word segmentation includes a sensitive word by using a preset sensitive word bank.
The hiding module 325 may be configured to hide the sensitive word included in the text message if the sensitive word is included.
In a specific application scenario, in order to determine whether the conversation message is an important message, the determining unit 31 may be specifically configured to determine a chat friend or a chat group that sends the conversation message in response to monitoring the conversation message; if the chat friend or the chat group is a target friend or a target group, judging that the conversation message is the important message, wherein the target friend or the target group is a preset friend or group needing to be displayed in a barrage mode on the sent message.
In a specific application scenario, in order to determine whether the dialog message is an important message, the determining unit 31 includes a detecting module 311 and a determining module 312.
The detecting module 311 may be configured to detect whether a dialog message includes a keyword by using a preset keyword library in response to monitoring the dialog message.
The determining module 312 may be configured to determine that the dialog message is the important message if the dialog message includes the keyword.
In a specific application scenario, in order to display the bullet screen information to the user, the display unit 33 includes a rendering module 331 and a docking module 332.
The rendering module 331 may be configured to determine an animation display mode corresponding to the bullet screen information, and render the bullet screen information in the animation display mode.
The docking module 332 may be configured to obtain current position information of the mouse in the display screen, and dock the rendered bullet screen message at a corresponding position of the display screen based on the position information.
In a specific application scenario, in order to perform a corresponding operation on the bullet screen information, the display unit 33 further includes a triggering module 333.
The triggering module 333 may be configured to, in response to an operation event that triggers the bullet screen information, display an operation option menu corresponding to the bullet screen information, so that a user operates the bullet screen information based on the operation option menu.
It should be noted that other corresponding descriptions of the functional modules related to the message display apparatus provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps: responding to the monitored dialogue message, and judging whether the dialogue message is an important message; if the conversation message is an important message, performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message; and displaying the bullet screen message to a user.
Based on the above embodiments of the method shown in fig. 1 and the apparatus shown in fig. 3, an embodiment of the present invention further provides an entity structure diagram of a computer device, as shown in fig. 5, where the computer device includes: a processor 41, a memory 42, and a computer program stored on the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43 such that when the processor 41 executes the program, the following steps are performed: responding to the monitored dialogue message, and judging whether the dialogue message is an important message; if the conversation message is an important message, performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message; and displaying the bullet screen message to a user.
According to the technical scheme, whether the conversation message is an important message or not is judged by responding to the monitored conversation message, if the conversation message is the important message, the conversation message is subjected to bullet screen formatting treatment, bullet screen messages corresponding to the conversation message are generated, and finally the bullet screen messages are displayed to the user.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for message presentation, comprising:
responding to the monitored dialogue message, and judging whether the dialogue message is an important message;
if the conversation message is an important message, performing barrage formatting processing on the conversation message to generate a barrage message corresponding to the conversation message;
and displaying the bullet screen message to a user.
2. The method according to claim 1, wherein the performing a bullet screen formatting process on the dialog message to generate a bullet screen message corresponding to the dialog message comprises:
if the dialog message is a text message, judging whether the text length corresponding to the text message is larger than a preset text length, if so, folding the dialog message to obtain a bullet screen message corresponding to the dialog message;
if the conversation message is a file message, acquiring a file identifier corresponding to the file message, and determining the file identifier as the bullet screen message;
and if the conversation message is a picture message, acquiring a picture identifier corresponding to the picture message, and determining the picture identifier as the bullet screen message.
3. The method of claim 2, wherein before the determining whether the text length corresponding to the text message is greater than a preset text length, the method further comprises:
performing word segmentation processing on the text message to obtain each word segmentation corresponding to the text message, and detecting whether each word segmentation comprises a sensitive word or not by using a preset sensitive word bank;
and if the sensitive word is contained, hiding the sensitive word contained in the text message.
4. The method of claim 1, wherein determining whether the conversation message is an important message in response to listening for conversation messages comprises:
responding to the monitored conversation message, and determining a chat friend or a chat group which sends the conversation message;
if the chat friend or the chat group is a target friend or a target group, judging that the conversation message is the important message, wherein the target friend or the target group is a preset friend or group needing to be displayed in a barrage mode on the sent message.
5. The method of claim 1, wherein determining whether the conversation message is an important message in response to listening for conversation messages comprises:
responding to the monitored dialogue message, and detecting whether the dialogue message contains keywords or not by using a preset keyword library;
and if the conversation message contains the keyword, judging that the conversation message is the important message.
6. The method of claim 1, wherein said presenting the barrage information to the user comprises:
determining an animation display mode corresponding to the bullet screen information, and rendering the bullet screen information in the animation display mode;
acquiring the current position information of the mouse in a display screen, and stopping the rendered barrage message at the corresponding position of the display screen based on the position information.
7. The method of claim 6, wherein after the docking the rendered barrage message at the corresponding location of the presentation screen based on the location information, the method further comprises:
and responding to an operation event triggering the bullet screen information, and displaying an operation option menu corresponding to the bullet screen information so that a user can operate the bullet screen information based on the operation option menu.
8. A message presentation device, comprising:
the judging unit is used for responding to the monitored dialogue message and judging whether the dialogue message is an important message;
the processing unit is used for performing barrage formatting processing on the conversation message to generate barrage information corresponding to the conversation message if the conversation message is the important message;
and the display unit is used for displaying the bullet screen message to a user.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
10. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by the processor.
CN202110832790.XA 2021-07-22 2021-07-22 Message display method and device, storage medium and computer equipment Active CN113709025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110832790.XA CN113709025B (en) 2021-07-22 2021-07-22 Message display method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110832790.XA CN113709025B (en) 2021-07-22 2021-07-22 Message display method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN113709025A true CN113709025A (en) 2021-11-26
CN113709025B CN113709025B (en) 2023-07-04

Family

ID=78650309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110832790.XA Active CN113709025B (en) 2021-07-22 2021-07-22 Message display method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN113709025B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2938994A1 (en) * 2008-11-24 2010-05-28 Orange France Multimedia service message processing method for telephone, involves detecting criteria satisfied by multimedia service message, creating short service message, and sending short service message to destination of multimedia service message
CN105451088A (en) * 2015-12-28 2016-03-30 福建新大陆通信科技股份有限公司 Method and system for implementing set-top box bullet screen information
WO2018000636A1 (en) * 2016-06-27 2018-01-04 乐视控股(北京)有限公司 Bullet-screen information processing method and apparatus
CN107807767A (en) * 2017-09-27 2018-03-16 努比亚技术有限公司 A kind of processing method of communication traffic, terminal and computer-readable recording medium
CN108206775A (en) * 2016-12-16 2018-06-26 腾讯科技(深圳)有限公司 Instant message push method, client, system
CN108347533A (en) * 2018-02-08 2018-07-31 上海爱优威软件开发有限公司 A kind of message display and answering method and terminal
CN108667714A (en) * 2018-03-26 2018-10-16 努比亚技术有限公司 Sending method, method of reseptance, mobile terminal and the storage medium of information
US20200021545A1 (en) * 2017-08-02 2020-01-16 Tencent Technology (Shenzhen) Company Limited Method, device and storage medium for interactive message in video page
CN111601141A (en) * 2020-04-30 2020-08-28 维沃移动通信有限公司 Barrage display method and device, electronic equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2938994A1 (en) * 2008-11-24 2010-05-28 Orange France Multimedia service message processing method for telephone, involves detecting criteria satisfied by multimedia service message, creating short service message, and sending short service message to destination of multimedia service message
CN105451088A (en) * 2015-12-28 2016-03-30 福建新大陆通信科技股份有限公司 Method and system for implementing set-top box bullet screen information
WO2018000636A1 (en) * 2016-06-27 2018-01-04 乐视控股(北京)有限公司 Bullet-screen information processing method and apparatus
CN108206775A (en) * 2016-12-16 2018-06-26 腾讯科技(深圳)有限公司 Instant message push method, client, system
US20200021545A1 (en) * 2017-08-02 2020-01-16 Tencent Technology (Shenzhen) Company Limited Method, device and storage medium for interactive message in video page
CN107807767A (en) * 2017-09-27 2018-03-16 努比亚技术有限公司 A kind of processing method of communication traffic, terminal and computer-readable recording medium
CN108347533A (en) * 2018-02-08 2018-07-31 上海爱优威软件开发有限公司 A kind of message display and answering method and terminal
CN108667714A (en) * 2018-03-26 2018-10-16 努比亚技术有限公司 Sending method, method of reseptance, mobile terminal and the storage medium of information
CN111601141A (en) * 2020-04-30 2020-08-28 维沃移动通信有限公司 Barrage display method and device, electronic equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汤天甜;陈卓;: "弹幕的传播效果及其影响研究", 重庆大学学报(社会科学版), no. 05, pages 178 - 184 *

Also Published As

Publication number Publication date
CN113709025B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
WO2020248955A1 (en) Content sharing method and electronic device
US10564824B1 (en) Initiating communications based on interactions with images
US9406157B2 (en) Concealing sensitive information on a display
WO2021254504A1 (en) Message display method and apparatus, and electronic device
CN106940641B (en) Notification message processing method and device
WO2017112681A1 (en) Method and system for communication in instant messaging application
US20080282356A1 (en) Methods and arrangements for detecting and managing viewability of screens, windows and like media
CN101484886A (en) Methods and apparatuses for dynamically sharing a portion of a display for application based screen sampling
US8996633B2 (en) Systems for providing emotional tone-based notifications for communications and related methods
US20180359207A1 (en) Suppressing the display of notifications on user devices based on user device activity
US20130246039A1 (en) System and method for enhanced screen copy
CN116541884A (en) Selective obfuscation of notifications
US9542365B1 (en) Methods for generating e-mail message interfaces
CN112114928B (en) Processing method and device for display page
CN107168974B (en) Display control method and device for displaying related content of item and message in social application
CN104935494A (en) Information processing method and device
CN105988790B (en) Information processing method, sending terminal and receiving terminal
WO2014131306A1 (en) Method and system for detecting network link
US9973462B1 (en) Methods for generating message notifications
CN107168661B (en) Display control method and electronic equipment
CN111290722A (en) Screen sharing method, device and system, electronic equipment and storage medium
CN112422735B (en) Information prompting method and device
CN113552989A (en) Screen recording method and device and electronic equipment
CN113709025B (en) Message display method and device, storage medium and computer equipment
CN111368329A (en) Message display method and device, electronic equipment and storage medium

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