CN111343468A - Message processing method and device and electronic equipment - Google Patents
Message processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN111343468A CN111343468A CN202010089994.4A CN202010089994A CN111343468A CN 111343468 A CN111343468 A CN 111343468A CN 202010089994 A CN202010089994 A CN 202010089994A CN 111343468 A CN111343468 A CN 111343468A
- Authority
- CN
- China
- Prior art keywords
- target
- type
- message
- live broadcast
- broadcast room
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 29
- 238000012545 processing Methods 0.000 claims abstract description 58
- 230000003993 interaction Effects 0.000 claims abstract description 37
- 238000000034 method Methods 0.000 claims abstract description 31
- 230000000737 periodic effect Effects 0.000 claims abstract description 27
- 238000013459 approach Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 230000002452 interceptive effect Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 241000238557 Decapoda Species 0.000 description 1
- 239000000872 buffer Substances 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the disclosure provides a message processing method, a message processing device and electronic equipment, belonging to the technical field of data interaction, wherein the method comprises the following steps: receiving a new message of a target live broadcast room; determining a target type corresponding to the new message, wherein the target type is a real-time interaction type or a periodic interaction type; matching a corresponding target processing scheme for the new message according to the target type; and executing a target processing scheme corresponding to the new message to the client associated with the target live broadcast room. Through the scheme disclosed by the invention, the volume or the issuing frequency of the messages in the live broadcast room is reduced, and the outlet bandwidth is reduced.
Description
Technical Field
The present disclosure relates to the field of data interaction technologies, and in particular, to a message processing method and apparatus, and an electronic device.
Background
With the rapid development of the internet technology, multiple versions of the same APP application program are merged, so that the outlet bandwidth occupied by the APP application program is increased sharply, and the lower layer related to the outlet bandwidth is not as long as capacity expansion, so that the server network card providing the bandwidth service cannot meet the requirement of the increased bandwidth.
The ratio of pb (Protocol Buffers) data in the exit bandwidth is obvious, only the messages in the live broadcast room are in pb format, the returned api is json, the message volume is possibly too large, and the message quantity is possibly too large. The existing message processing scheme has the characteristic of message reading and amplifying, for example, a live broadcast room with 5 ten thousand people, a server side issues a pb data, and the pb data is amplified by 5 ten thousand times when the client side arrives.
Therefore, the existing message processing scheme has the technical problem that the message issuing quantity is large and the outlet bandwidth is increased.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a message processing method, a message processing apparatus, and an electronic device, which at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a message processing method, including:
receiving a new message of a target live broadcast room;
determining a target type corresponding to the new message, wherein the target type is a real-time interaction type or a periodic interaction type;
matching a corresponding target processing scheme for the new message according to the target type;
and executing a target processing scheme corresponding to the new message to the client associated with the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the periodic interaction type is any one of a data update type, a list update type, and a content addition type, and the target type corresponding to the new message is any one of the periodic interaction types;
the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room includes:
counting the updating data of all new messages of the target type in a preset period;
and when the preset period is finished, sending the update data of all new messages of the target type to the client associated with the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the new message of the data update type is an entrance increase and decrease message, a gift increase and decrease message, or a comment increase and decrease message of the target live broadcast room; and/or the presence of a gas in the gas,
the new message of the list updating type is a ranking list message or a gift list of the target live broadcast room; and/or the presence of a gas in the gas,
and the new message with the newly increased content is a comment content message or a barrage content message of the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the target type of the new message is the data update type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period includes:
when the preset period is over, calculating the current total number of the new messages of the target type;
and sending the current total number of the new messages of the target type to the client associated with the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the target type of the new message is a list update type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period includes:
and when the preset period is finished, sending new messages of all the target types newly added in the preset period to the client associated with the target live broadcast room.
According to a specific implementation manner of the embodiment of the disclosure, the target type of the new message is a content addition type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period includes:
and when the preset period is finished, sending a new message of the target type, which is received last before the preset period is finished, to a client associated with the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the target type corresponding to the new message is the real-time interaction type;
the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room includes:
determining content data and necessary display parameters of the new message;
and sending the content data and the necessary display parameters of the new message to a client associated with the target live broadcast room, so that the client correspondingly displays the content data and the necessary display parameters.
According to a specific implementation manner of the embodiment of the present disclosure, the necessary display parameter includes the client identifier for sending the new message.
In a second aspect, an embodiment of the present disclosure provides another message processing method, including:
the first client sends a new message related to the target live broadcast room to the server;
the server determines a target type of the new message, wherein the target type is a real-time interaction type or a periodic interaction type;
and the server matches a corresponding target processing scheme for the new message according to the target type, and executes the target processing scheme corresponding to the new message to the client associated with the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the periodic interaction type is any one of a data update type, a list update type, and a content addition type, and the target type corresponding to the new message is any one of the periodic interaction types;
the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room includes:
the server counts the update data of all the new messages of the target type in a preset period;
when the preset period is over, sending update data of all new messages of the target type to a client associated with the target live broadcast room;
after the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room, the method further includes:
and the client receives the update data of all new messages of the target type sent by the server when the preset period is ended.
In a third aspect, an embodiment of the present disclosure further provides a message processing apparatus, including:
the receiving module is used for receiving a new message of the target live broadcast room;
a determining module, configured to determine a target type corresponding to the new message, where the target type is a real-time interaction type or a periodic interaction type;
the matching module is used for matching a corresponding target processing scheme for the new message according to the target type;
and the execution module is used for executing a target processing scheme corresponding to the new message to the client associated with the target live broadcast room.
In a fourth aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the message processing method of any one of the preceding first/second aspects and implementations of the first/second aspect.
In a fifth aspect, the disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the message processing method in the first/second aspect or any implementation manner of the first/second aspect.
In a sixth aspect, the disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the message processing method of the first/second aspect or any implementation of the first/second aspect.
The message processing scheme in the embodiment of the disclosure includes: receiving a new message of a target live broadcast room; determining a target type corresponding to the new message, wherein the target type is a real-time interaction type or a periodic interaction type; matching a corresponding target processing scheme for the new message according to the target type; and executing a target processing scheme corresponding to the new message to the client associated with the target live broadcast room. Through the scheme disclosed by the invention, the volume or the issuing frequency of the messages in the live broadcast room is reduced, and the outlet bandwidth is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a message processing method according to an embodiment of the present disclosure;
fig. 2 is another partial flow chart of a message processing method according to an embodiment of the present disclosure;
fig. 3 is another partial flow chart of a message processing method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another message processing method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a message processing method. The message processing method provided by the embodiment can be executed by a computing device, the computing device can be implemented as software, or implemented as a combination of software and hardware, and the computing device can be integrated in a server, a terminal device and the like.
Referring to fig. 1, a message processing method provided in the embodiment of the present disclosure includes:
s101, receiving a new message of the target live broadcast room.
The message processing method provided by the embodiment is used for realizing message issuing processing based on a live broadcast room from a server to a client. The message referred to herein refers to a message such as non-TMQ or KAFKA, but refers to a comment message, a gift message, an approach message, a ranking list, a lighting, and the like, which a user sends to a public platform such as a live broadcast room through a client. The data interaction mode of the live broadcast room mainly comprises two modes, the client side realizes data reading and writing through the API interface, and the server issues the message to the client side. In this embodiment, a currently processed live broadcast room is defined as a target live broadcast room, a server corresponding to the target live broadcast room is used as an execution subject, and a process of issuing the received message to a client associated with the target live broadcast room by the server is explained. The client associated with the target live broadcast room can comprise an online client linked to the target live broadcast room, and comprises all clients capable of sending and receiving instant messages of the target live broadcast room.
S102, determining a target type corresponding to the new message, wherein the target type is a real-time interaction type or a periodic interaction type.
S103, matching a corresponding target processing scheme for the new message according to the target type.
The type of the new message received by the server may be various, including a message to be sent in real time, such as an instant comment message, or a bullet screen message with a higher priority, a gift message, etc., and such a message is defined as real-time interactive information. The messages received by the server can also comprise messages which can be updated discontinuously, such as messages of the number of approaches, the number of comments and the like, and the messages are defined as periodic interactive messages.
When receiving a new message of a target live broadcast room, the server may first determine a target type corresponding to the new message according to a data type, an attribute, or a sending interface parameter of the new message. Aiming at the real-time interactive messages, the server matches the message processing scheme issued to the client in real time, and aiming at the periodic interactive messages, the server matches the processing scheme which is periodically counted and issued to the client. Therefore, the timeliness of message issuing processing can be guaranteed, the total message issuing amount is reduced, and a message processing scheme is optimized.
And S104, executing a target processing scheme corresponding to the new message to the client associated with the target live broadcast room.
After matching the message processing schemes adapted to the different types of new messages, the server can execute the target processing scheme corresponding to the new message to the client associated with the target live broadcast room. This will be explained in more detail below in connection with different types of new messages.
According to a specific implementation manner of the embodiment of the present disclosure, the periodic interaction type is any one of a data update type, a list update type, and a content addition type, and the target type corresponding to the new message is any one of the periodic interaction types;
optionally, the new message of the data update type is an approach increase and decrease message, a gift increase and decrease message, or a comment increase and decrease message of the target live broadcast room; and/or the presence of a gas in the gas,
the new message of the list updating type is a ranking list message or a gift list of the target live broadcast room; and/or the presence of a gas in the gas,
and the new message with the newly increased content is a comment content message or a barrage content message of the target live broadcast room.
As shown in fig. 2, the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room in step S104 may include:
s201, counting the updating data of all new messages of the target type in a preset period;
s202, when the preset period is over, sending the update data of all new messages of the target type to the client associated with the target live broadcast room.
In this embodiment, the server presets a period for the periodic interactive information, and in the preset period, the server continuously counts the update data of all the new messages corresponding to the same target type, and sends the counted update data of all the new messages to the associated client when the preset period is over.
The statistical and transmitted update data is slightly different for different types of messages. The following will specifically explain the process of counting and issuing the update data by further combining three different types of new message processing schemes of periodic interaction type.
According to a specific implementation manner of the embodiment of the present disclosure, the target type of the new message is the data update type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period may include:
when the preset period is over, calculating the current total number of the new messages of the target type;
and sending the current total number of the new messages of the target type to the client associated with the target live broadcast room.
In this embodiment, for new messages of data update types such as an approach increase/decrease message, a gift increase/decrease message, or a comment increase/decrease message, the counted update data is the update number of the corresponding messages in the preset period, and the total number of the new messages of the corresponding data update types, that is, the total number of the approach, the gift increase/decrease, or the comment increase/decrease at the current time, at the end of the preset period is calculated and obtained, and the calculated current total number is sent to the client associated with the target live broadcast.
According to another specific implementation manner of the embodiment of the present disclosure, the target type of the new message is a list update type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period includes:
and when the preset period is finished, sending new messages of all the target types newly added in the preset period to the client associated with the target live broadcast room.
In this embodiment, for new messages in list update types such as a gift ranking list and a like ranking list of prawns, the counted update data are all the new messages in the preset period, and all the new messages are simultaneously sent to the client associated with the target live broadcast room when the preset period is over.
According to another specific implementation manner of the embodiment of the disclosure, the target type of the new message is a content addition type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period includes:
and when the preset period is finished, sending a new message of the target type, which is received last before the preset period is finished, to a client associated with the target live broadcast room.
In this embodiment, new messages with newly added content, such as comment content messages or barrage content messages, are counted, and the counted update data is the new message corresponding to the target type and received last before the preset period is ended, and the new message received last is sent to the client associated with the target live broadcast room when the preset period is ended.
For example, for a message for status update such as a leader board, frequency control may be considered, whether a parameter is covered is specified when the message is sent, frequency control is performed, only the first piece within 1 second is reserved, and other discards are not pulled by the client. The processing procedures of other kinds of messages are not illustrated.
The processing scheme provided by the embodiment for the different types of periodic interactive new messages periodically counts and issues the corresponding types of update data, and greatly reduces the number of messages issued by the server. It should be noted that the server may not only perform the preset periodic statistics and issuing processing operation when receiving a certain type of new message, but also perform the processing operation of periodically performing the periodic statistics and issuing update data on all types of new messages, so as to avoid situations such as missing or delayed messages.
According to a specific implementation manner of the embodiment of the present disclosure, the target type corresponding to the new message may also be the real-time interaction type;
as shown in fig. 3, the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room includes:
s301, determining content data and necessary display parameters of the new message;
s302, the content data and the necessary display parameters of the new message are sent to the client associated with the target live broadcast room, so that the client correspondingly displays the content data and the necessary display parameters.
In this embodiment, the message processing scheme for real-time interactive information is further defined. Specifically, when the server issues a new message, it first determines the content data of the new message and the necessary display parameters for indicating the identity of the sender of the content data. Optionally, the necessary display parameter includes an identifier of the client sending the new message. And then, the server only correspondingly sends the content data of the new message and the necessary display parameters to the client associated with the target live broadcast room, and does not need to issue other unnecessary attribute parameters, so that the total volume of the issued message is reduced.
For example, in the case of a compatible online client, the two-large data structure of the live broadcast room: room, user. The server can not bring the unnecessary display parameters such as room and the like which do not influence the display of the new message when sending the new message. The message volume can be reduced by field reduction, redundancy removal, reference to version fields, and the like.
Referring to fig. 4, a schematic flowchart of another message processing method provided in the embodiment of the present disclosure is shown. The message processing method provided by the present embodiment is different from the message processing method provided by the above-mentioned embodiments shown in fig. 1 to fig. 3 in that the message processing method of the present embodiment is applied to a message processing system, and the message processing system includes a server and at least one client. As shown in fig. 4, the message processing method may include:
s401, the first client sends a new message related to the target live broadcast room to a server;
s402, the server determines a target type of the new message, wherein the target type is a real-time interaction type or a periodic interaction type;
and S403, the server matches a corresponding target processing scheme for the new message according to the target type, and executes the target processing scheme corresponding to the new message to the client associated with the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the periodic interaction type is any one of a data update type, a list update type, and a content addition type, and the target type corresponding to the new message is any one of the periodic interaction types;
the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room includes:
the server counts the update data of all the new messages of the target type in a preset period;
when the preset period is over, sending update data of all new messages of the target type to a client associated with the target live broadcast room;
after the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room, the method further includes:
and the client receives the update data of all new messages of the target type sent by the server when the preset period is ended.
The method embodiment shown in fig. 4 may correspondingly execute the content in the method embodiment shown in fig. 1, and details of parts not described in detail in this embodiment refer to the content described in the method embodiment, which is not described herein again.
Corresponding to the above method embodiment, referring to fig. 5, the embodiment of the present disclosure further provides a message processing apparatus 50, including:
a receiving module 501, configured to receive a new message of a target live broadcast room;
a determining module 502, configured to determine a target type corresponding to the new message, where the target type is a real-time interaction type or a periodic interaction type;
a matching module 503, configured to match a corresponding target processing scheme for the new message according to the target type;
an executing module 504, configured to execute a target processing scheme corresponding to the new message to a client associated with the target live broadcast.
The apparatus shown in fig. 5 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 6, an embodiment of the present disclosure also provides an electronic device 60, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the message processing method of the foregoing method embodiments.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the message processing method in the foregoing method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the message processing method in the aforementioned method embodiments.
Referring now to FIG. 6, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, enable the electronic device to implement the schemes provided by the method embodiments.
Alternatively, the computer readable medium carries one or more programs, which when executed by the electronic device, enable the electronic device to implement the schemes provided by the method embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (11)
1. A message processing method, comprising:
receiving a new message of a target live broadcast room;
determining a target type corresponding to the new message, wherein the target type is a real-time interaction type or a periodic interaction type;
matching a corresponding target processing scheme for the new message according to the target type;
and executing a target processing scheme corresponding to the new message to the client associated with the target live broadcast room.
2. The method according to claim 1, wherein the periodic interaction type is any one of a data update type, a list update type and a content addition type, and the target type corresponding to the new message is any one of the periodic interaction types;
the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room includes:
counting the updating data of all new messages of the target type in a preset period;
and when the preset period is finished, sending the update data of all new messages of the target type to the client associated with the target live broadcast room.
3. The method of claim 2, wherein the new message of the data update type is an approach increase and decrease message, a gift increase and decrease message, or a comment increase and decrease message of the target live broadcast room; and/or the presence of a gas in the gas,
the new message of the list updating type is a ranking list message or a gift list of the target live broadcast room; and/or the presence of a gas in the gas,
and the new message with the newly increased content is a comment content message or a barrage content message of the target live broadcast room.
4. The method according to claim 2 or 3, wherein the target type of the new message is the data update type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period includes:
when the preset period is over, calculating the current total number of the new messages of the target type;
and sending the current total number of the new messages of the target type to the client associated with the target live broadcast room.
5. The method according to claim 2 or 3, wherein the target type of the new message is a list update type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period includes:
and when the preset period is finished, sending new messages of all the target types newly added in the preset period to the client associated with the target live broadcast room.
6. The method according to claim 2 or 3, wherein the target type of the new message is a content addition type;
the step of sending update data of all new messages of the target type to the client associated with the target live broadcast room at the end of the preset period includes:
and when the preset period is finished, sending a new message of the target type, which is received last before the preset period is finished, to a client associated with the target live broadcast room.
7. The method according to claim 1, wherein the target type corresponding to the new message is the real-time interaction type;
the step of executing the target processing scheme corresponding to the new message to the client associated with the target live broadcast room includes:
determining content data and necessary display parameters of the new message;
and sending the content data and the necessary display parameters of the new message to a client associated with the target live broadcast room, so that the client correspondingly displays the content data and the necessary display parameters.
8. The method of claim 7, wherein the required display parameters include an identification of the client sending the new message.
9. A message processing apparatus, comprising:
the receiving module is used for receiving a new message of the target live broadcast room;
a determining module, configured to determine a target type corresponding to the new message, where the target type is a real-time interaction type or a periodic interaction type;
the matching module is used for matching a corresponding target processing scheme for the new message according to the target type;
and the execution module is used for executing a target processing scheme corresponding to the new message to the client associated with the target live broadcast room.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the message processing method of any of preceding claims 1-8.
11. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the message processing method of any one of the preceding claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010089994.4A CN111343468A (en) | 2020-02-13 | 2020-02-13 | Message processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010089994.4A CN111343468A (en) | 2020-02-13 | 2020-02-13 | Message processing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111343468A true CN111343468A (en) | 2020-06-26 |
Family
ID=71185138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010089994.4A Pending CN111343468A (en) | 2020-02-13 | 2020-02-13 | Message processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111343468A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115334331A (en) * | 2022-08-23 | 2022-11-11 | 苏州青颖飞帆软件科技有限公司 | Communication method, equipment and storage medium for teaching live broadcast |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140289754A1 (en) * | 2010-04-14 | 2014-09-25 | Sven Riethmueller | Platform-independent interactivity with media broadcasts |
CN106792034A (en) * | 2017-02-10 | 2017-05-31 | 深圳创维-Rgb电子有限公司 | Live method and mobile terminal is carried out based on mobile terminal |
CN110086703A (en) * | 2018-01-26 | 2019-08-02 | 香港乐蜜有限公司 | A kind of method for message transmission and device based on Transmission Control Protocol |
CN110399367A (en) * | 2018-04-12 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Business data processing method, device, computer equipment and storage medium |
CN110727497A (en) * | 2019-10-22 | 2020-01-24 | 网易(杭州)网络有限公司 | Message display method and device |
-
2020
- 2020-02-13 CN CN202010089994.4A patent/CN111343468A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140289754A1 (en) * | 2010-04-14 | 2014-09-25 | Sven Riethmueller | Platform-independent interactivity with media broadcasts |
CN106792034A (en) * | 2017-02-10 | 2017-05-31 | 深圳创维-Rgb电子有限公司 | Live method and mobile terminal is carried out based on mobile terminal |
CN110086703A (en) * | 2018-01-26 | 2019-08-02 | 香港乐蜜有限公司 | A kind of method for message transmission and device based on Transmission Control Protocol |
CN110399367A (en) * | 2018-04-12 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Business data processing method, device, computer equipment and storage medium |
CN110727497A (en) * | 2019-10-22 | 2020-01-24 | 网易(杭州)网络有限公司 | Message display method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115334331A (en) * | 2022-08-23 | 2022-11-11 | 苏州青颖飞帆软件科技有限公司 | Communication method, equipment and storage medium for teaching live broadcast |
CN115334331B (en) * | 2022-08-23 | 2023-09-22 | 苏州青颖飞帆软件科技股份有限公司 | Communication method, equipment and storage medium for teaching live broadcast |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582310B (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN110300335B (en) | Message pushing method for virtual gift and electronic equipment | |
CN109510881A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files | |
CN111309406A (en) | Event processing method and device of application program and electronic equipment | |
CN114491098A (en) | Comment prompting method and device, electronic equipment, storage medium and program product | |
CN111309415B (en) | User Interface (UI) information processing method and device of application program and electronic equipment | |
CN113766303B (en) | Multi-screen interaction method, device, equipment and storage medium | |
CN111857518A (en) | Method and device for canceling image editing operation, electronic equipment and medium | |
CN110908752A (en) | Control setting method and device, electronic equipment and interaction system | |
CN111290861B (en) | Message processing method and device and electronic equipment | |
CN109218793A (en) | Video loading method, device, electronic equipment and computer readable storage medium | |
CN111641693B (en) | Session data processing method and device and electronic equipment | |
CN111343468A (en) | Message processing method and device and electronic equipment | |
CN111225255B (en) | Target video push playing method and device, electronic equipment and storage medium | |
CN112492399B (en) | Information display method and device and electronic equipment | |
CN111641691B (en) | Session message transmission method and device and electronic equipment | |
CN110851097B (en) | Control method, device, medium and electronic equipment for consistency of handwriting data | |
CN115562527A (en) | Comment information publishing method and device, electronic equipment and storage medium | |
CN112688793B (en) | Data packet obtaining method and device and electronic equipment | |
CN111641692B (en) | Session data processing method and device and electronic equipment | |
CN111625326A (en) | Task pipeline execution method and device and electronic equipment | |
CN110609728A (en) | Page generation method and device and electronic equipment | |
CN115079879B (en) | Live page display method, device, equipment, storage medium and program product | |
CN111259174B (en) | Multimedia transmission method, device, electronic equipment and medium | |
CN112019919B (en) | Video sticker adding method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200626 |