WO2019128631A1 - Message sending method and device, system, and message receiving method and device - Google Patents

Message sending method and device, system, and message receiving method and device Download PDF

Info

Publication number
WO2019128631A1
WO2019128631A1 PCT/CN2018/118863 CN2018118863W WO2019128631A1 WO 2019128631 A1 WO2019128631 A1 WO 2019128631A1 CN 2018118863 W CN2018118863 W CN 2018118863W WO 2019128631 A1 WO2019128631 A1 WO 2019128631A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
channel
encoded
cdn
chat
Prior art date
Application number
PCT/CN2018/118863
Other languages
French (fr)
Chinese (zh)
Inventor
童浩
曹珈
李锐
黄胜鲁
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019128631A1 publication Critical patent/WO2019128631A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6408Unicasting

Definitions

  • the present application relates to the field of communications, for example, to a message sending method and apparatus, system, and message receiving method and apparatus.
  • the current network chat system mainly includes: receiving, processing, storing, forwarding, and user information maintenance modules, and the full-duplex communication websocket, Transmission Control Protocol (TCP)/user is generally used between the chat system and the terminal.
  • TCP Transmission Control Protocol
  • Messages are exchanged in the form of a User Datagram Protocol (UDP) or a HyperText Transfer Protocol (HTTP); the development and maintenance of the above-mentioned interaction mode is large, and the amount of the terminal is increased on the system. The pressure is greater.
  • UDP User Datagram Protocol
  • HTTP HyperText Transfer Protocol
  • the embodiment of the present application provides a message sending method, device, system, and message receiving method and device, so as to at least improve the phenomenon that the development and maintenance of the interaction mode in the related art is large.
  • An embodiment of the present application provides a message sending method, which is applied to a chat system, and includes: acquiring an encoded message that is encoded according to a channel rule of a CDN, and sending the encoded message according to a tree path by using a CDN channel. To the terminal of the chat system.
  • the embodiment of the present application further provides a message receiving method, which is applied to a chat system, and includes: receiving, according to a tree path, an encoded message sent by using a CDN channel, where the encoded message includes: receiving, by the message processing system The received message is encoded according to the channel rules of the CDN; the encoded message is decoded.
  • a message receiving method which is applied to a chat system, and includes: receiving, according to a tree path, an encoded message sent by using a CDN channel, where the encoded message includes: receiving, by the message processing system The received message is encoded according to the channel rules of the CDN; the encoded message is decoded.
  • the embodiment of the present application further provides a message sending apparatus, which is applied to a chat system, and includes:
  • An encoding module configured to obtain an encoded message that is encoded according to a channel rule of the CDN for the received message
  • a sending module configured to send the encoded message to the terminal of the chat system according to a tree path through a CDN channel.
  • the embodiment of the present application further provides a message receiving apparatus, which is applied to a chat system, and includes:
  • the receiving module is configured to receive the encoded message sent by the CDN channel according to the tree path, where the encoded message includes: a message obtained by encoding a message received by the message processing system according to a channel rule of the CDN;
  • a decoding module is arranged to decode the encoded message.
  • the embodiment of the present application further provides a message sending system, which is applied to a chat system, and includes:
  • a message processing module configured to acquire, in the current chat system, an encoded message that is encoded according to a channel rule of the CDN, and send the encoded message to the chat system according to a tree path through a CDN channel. terminal;
  • the terminal is configured to decode the encoded message.
  • the embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, where the program is executed to perform the method described in any one of the above.
  • the embodiment of the present application further provides a processor configured to run a program, wherein the program executes the method described in any one of the above when running on the processor.
  • FIG. 1 is a flowchart of a method for sending a message according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for sending a message by using a multicast streaming protocol according to an embodiment of the present application
  • FIG. 3 is a flowchart of a message sending method using a unicast streaming protocol according to an embodiment of the present application
  • FIG. 4 is a flowchart of a method for pushing a whole network of a message using a multicast streaming media protocol according to an embodiment of the present application
  • FIG. 5 is a flowchart of a message network push method using a unicast streaming protocol according to an embodiment of the present application
  • FIG. 6 is a flowchart of a message receiving method according to an embodiment of the present application.
  • FIG. 7 is a structural block diagram of a message sending apparatus according to an embodiment of the present application.
  • FIG. 8 is a structural block diagram of a message receiving apparatus according to an embodiment of the present application.
  • FIG. 9 is a structural block diagram of a message sending system according to an embodiment of the present application.
  • FIG. 10 is a structural block diagram of a message processing module and a terminal according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a working process of a message sending system for transmitting intra-channel messages by using a multicast streaming protocol according to an embodiment of the present application;
  • FIG. 12 is a flowchart of a message sending system for transmitting intra-channel messages by using a multicast streaming protocol according to an embodiment of the present application
  • FIG. 13 is a schematic diagram of the operation of a message sending system for transmitting intra-channel messages by using a unicast streaming protocol according to an embodiment of the present application
  • FIG. 14 is a flowchart of a message sending system for transmitting intra-channel messages by using a unicast streaming protocol according to an embodiment of the present application
  • FIG. 15 is a schematic diagram of the operation of a message sending system for performing network-wide push using a multicast streaming media protocol according to an embodiment of the present application.
  • FIG. 16 is a flowchart of a message sending system for performing network-wide push using a multicast streaming protocol according to an embodiment of the present application
  • FIG. 17 is a schematic diagram of the operation of a message sending system for performing network-wide push using a unicast streaming protocol according to an embodiment of the present application.
  • FIG. 18 is a flowchart of a message sending system for performing network-wide push using a unicast streaming protocol according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a message sending method according to an embodiment of the present application. As shown in FIG. 1, the method includes: S100 and step S102.
  • step S100 an encoded message obtained by encoding the received message according to the channel rule of the CDN is acquired.
  • step S102 the encoded message is transmitted to the terminal of the chat system according to the tree path through the CDN channel.
  • the encoded message can be sent to the terminal of the chat system according to the tree path through the Content Delivery Network (CDN) channel. Therefore, the embodiment of the present application can improve the phenomenon that the development and maintenance of the interaction mode is large in the related art, and achieve the effect of reducing the system development cycle and the maintenance difficulty.
  • CDN Content Delivery Network
  • the CDN sends the encoded message to the terminal of the chat system in sequence according to the tree path, and the encoded message is sent along the tree path to the terminal of the chat system to be received in a single information flow, because There is one and only one information flow in the link of the message transmission (that is, the tree path). Therefore, the significant increase in the number of terminals does not increase the number of information streams generated by the server, so as to control the complexity of the message transmission network. Reduces the pressure on the server and the Central Processing Unit (CPU) from a large number of terminal messages.
  • CPU Central Processing Unit
  • the method in the embodiment of the present invention can reduce the cycle and difficulty of the system development by reducing the interaction between the terminal and the server, and can improve the utilization of the technology and the device to meet the interaction effect of the message in a complex application scenario such as a live broadcast. Moreover, since the CDN channel technology in the related art has formed certain industry specifications, the application of the CDN to the chat system in the embodiment of the present application may have good development efficiency.
  • the above terminal may include a personal computer (PC), a mobile phone PHONE, a set top box (STB), and the like.
  • PC personal computer
  • STB set top box
  • the message sending method in the embodiment of the present application is applicable to application scenarios such as one-to-one or one-to-many text chat, video barrage information, and live text chat, and any related messages including the above application scenarios.
  • the sent chat system is within the protection scope of the message sending method of the embodiment of the present application.
  • step S102 the encoded message is sent to the terminal of the chat system according to the tree path by using the CDN channel, including: using the CDN channel to adopt the streaming protocol according to one of the following to follow the tree path.
  • Terminals sent to the chat system unicast streaming protocol, multicast streaming protocol.
  • the unicast streaming protocol and the multicast streaming protocol are both the streaming media protocol in the CDN channel technology.
  • the unicast streaming protocol can be used to implement the message to be sent to each terminal in turn, or the multicast streaming protocol can be used to simultaneously send the message to multiple terminals in a certain channel.
  • a multicast streaming protocol can be adopted in the embodiment of the present application.
  • step S102 the encoded message is sent to the terminal of the chat system according to the tree path by using the CDN channel, including: sending the encoded message according to the tree path to the same in the chat system through the CDN channel.
  • the terminal in the chat channel or sent to a terminal located in a different chat channel within the chat system.
  • the live broadcast/video channel is allocated as a chat channel for real-time interaction between multiple terminals, and multiple terminals are You can watch live or video on this channel, or you can chat in real time through this channel.
  • the plurality of terminals in the chat channel may obtain the code stream channel of the chat channel from the CDN for sending and transmitting the message, and the terminal newly added to the chat channel may also obtain the code stream channel of the chat channel from the CDN.
  • the destination channel of the specific transmission of the encoded message is determined according to the channel information.
  • the channel information of the destination channel is generated and sent to the CDN in the process of sending the message, and the CDN sends the encoded message to the corresponding channel according to the channel information of the destination channel.
  • step S100 acquiring an encoded message that is encoded according to a channel rule of the CDN, includes: acquiring, after encoding the received at least one of the following messages according to a channel rule of the CDN.
  • Encoded message The received message sent by the terminal and the received system message pushed by the chat system.
  • system message pushed by the chat system is often pushed to multiple terminals in all chat channels in the chat system.
  • step S100 the encoded message obtained by encoding the received message according to the channel rule of the CDN is obtained, including: reviewing the content of the received message, and following the channel of the CDN by the approved message.
  • the rules are encoded.
  • the auditing content for reviewing the content of the received message may include whether there is a sensitive word and an audit that does not comply with relevant laws and regulations. For a message that has not passed the audit, the message needs to be returned to the terminal. Shows why the audit failed.
  • the method for transmitting a message in a channel by using a multicast streaming protocol includes: step S200, step S202 Step S204 and step S206.
  • step S200 the terminal enters the current chat channel, and acquires the code stream of the chat channel from the CDN.
  • the terminal sends the chat message
  • the terminal receives and preprocesses the chat message sent by the terminal and the channel information of the current channel.
  • step S202 the chat message sent by the terminal is pre-processed, that is, the audit process, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the chat message is approved, the chat message is encoded; If the chat message fails to be verified, the chat message and the reason for the audit failure are directly returned to the terminal, and the terminal prompts.
  • step S204 after the chat message passed by the audit is encoded according to the channel rule of the CDN, the encoded message is sent to the CDN.
  • step S206 the CDN sends the single information stream formed by the encoded message along the tree path to all the remaining terminals in the current chat channel along the tree path through the multicast streaming protocol.
  • FIG. 3 is a flowchart of a method for sending a message by using a unicast streaming protocol according to an embodiment of the present application.
  • the method for transmitting a message in a channel by using a unicast streaming protocol includes: step S208, step S210 Step S212 and step S214.
  • step S208 the terminal enters the current chat channel, and acquires the code stream of the chat channel from the CDN.
  • the terminal sends the chat message
  • the terminal receives and preprocesses the chat message sent by the terminal and the channel information of the current channel.
  • step S210 the chat message sent by the terminal is pre-processed, that is, the audit process, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the chat message is approved, the chat message is encoded; If the chat message fails to be verified, the chat message and the reason for the audit failure are directly returned to the terminal, and the terminal prompts.
  • step S212 after the chat message passed the audit is encoded according to the channel rule of the CDN, the encoded message is sent to the CDN.
  • step S214 the CDN sends the single information stream formed by the encoded message to the remaining channels in the current chat channel according to the channel information of the current channel along the tree path through the unicast streaming protocol.
  • FIG. 4 is a flowchart of a method for pushing a whole network of a message using a multicast streaming protocol according to an embodiment of the present application.
  • the method for performing network-wide push by using a multicast streaming protocol includes: Step S216, Step S218 Step S220 and step S222.
  • step S216 the chat system administrator inputs the push message to be pushed, and receives and preprocesses the push message and the channel information of the destination channel.
  • pre-processing that is, audit processing, is performed on the push message, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the push message is approved, the push message is encoded; if the push message is audited If it fails, the push message and the reason for the audit failure are directly returned to the system administrator and prompted.
  • step S220 after the push message for reviewing is encoded according to the channel rule of the CDN, the encoded message is sent to the CDN.
  • step S222 the CDN sends a single information stream formed by the encoded message along the tree path to all terminals in the destination chat channel along the tree path through the multicast streaming protocol, and the destination chat channel may be a chat system. All chat channels; when the encoded message is sent to all terminals in the chat system, it is pushed all over the network.
  • the method for performing network-wide push by using a unicast streaming protocol includes: step S224, step S226 Step S228 and step S230.
  • step S224 the chat system administrator inputs the push message to be pushed, and receives and preprocesses the push message and the channel information of the destination channel.
  • step S226 the push message is pre-processed, that is, the audit process, and the specific audit content includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the push message is approved, the push message is encoded; if the message is pushed If the audit fails, the push message and the reason for the audit failure are directly returned to the system administrator and prompted.
  • step S2228 after the push message for the review is encoded according to the channel rule of the CDN, the encoded message is sent to the CDN.
  • step S230 the CDN sends the single information stream formed by the encoded message along the tree path to all the terminals in the destination chat channel along the tree path through the unicast streaming protocol, and the destination chat channel may be the chat system. All chat channels; when the encoded message is sent to all terminals in the chat system, it is pushed all over the network.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods of various embodiments of the present application.
  • FIG. 6 is a flowchart of a message receiving method according to an embodiment of the present application. As shown in FIG. 6, the method includes : Step S104 and step S106.
  • step S104 the encoded message transmitted through the CDN channel is received in accordance with the tree path.
  • the encoded message includes: a message obtained by encoding a message received by the message processing system according to a channel rule of the CDN.
  • step S106 the encoded message is decoded.
  • the encoded message can be sent to the terminal of the chat system according to the tree path through the CDN channel. Therefore, the message receiving method provided by the present application can improve the phenomenon that the development and maintenance of the interactive mode is large in the related art, so as to achieve the effect of reducing the system development cycle and the maintenance difficulty.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods of various embodiments of the present application.
  • a message sending apparatus is further provided, which is applied to a chat system, and the apparatus is used to implement the foregoing embodiments and application embodiments, and details are not described herein.
  • the term "module” may implement a combination of at least one of software and hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 7 is a structural block diagram of a message sending apparatus according to an embodiment of the present application. As shown in FIG. 7, the apparatus includes: an encoding module 100 and a sending module 102.
  • the encoding module 100 is configured to obtain an encoded message that is encoded according to a channel rule of the CDN for the received message.
  • the sending module 102 is configured to send the encoded message to the terminal of the chat system according to the tree path through the CDN channel.
  • the encoded message can be sent to the terminal of the chat system according to the tree path through the CDN channel. Therefore, the technical solution of the present application can improve the phenomenon that the development and maintenance of the interactive mode is large in the related art, so as to achieve the effect of reducing the system development cycle and the maintenance difficulty.
  • the foregoing multiple modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the multiple modules are The form of any combination is located in a different processor.
  • a message receiving apparatus is further provided, which is applied to a chat system, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of at least one of software and hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 8 is a structural block diagram of a message receiving apparatus according to an embodiment of the present application. As shown in FIG. 8, the apparatus includes: a receiving module 104 and a decoding module 106.
  • the receiving module 104 is configured to receive the encoded message sent by the CDN channel according to the tree path, where the encoded message includes: a message obtained by encoding the message received by the message processing system according to the channel rule of the CDN.
  • the decoding module 106 is configured to decode the encoded message.
  • the encoded message can be sent to the terminal of the chat system according to the tree path through the CDN channel. Therefore, the message receiving apparatus provided by the present application can improve the phenomenon that the development and maintenance of the interactive mode is large in the related art, so as to achieve the effect of reducing the system development cycle and the maintenance difficulty.
  • the foregoing multiple modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the multiple modules are They are located in different processors in any combination.
  • FIG. 9 is a structural block diagram of a message sending system according to an embodiment of the present application. As shown in FIG. 9, the system includes : Message processing module 108 and terminal 110.
  • the message processing module 108 is configured to, in the current chat system, acquire an encoded message that is encoded according to a channel rule of the CDN, and a terminal that sends the encoded message to the chat system according to a tree path through a CDN channel. .
  • Terminal 110 is arranged to decode the encoded message.
  • the encoded message can be sent to the terminal of the chat system according to the tree path through the CDN channel. Therefore, the message sending system provided by the present application can improve the phenomenon that the development and maintenance of the interactive mode is large in the related art, so as to achieve the effect of reducing the system development cycle and the maintenance difficulty.
  • FIG. 10 is a structural block diagram of a message processing module and a terminal according to an embodiment of the present application.
  • the message processing module 108 includes a message receiving and pre-processing module 1080, and an encoding module 1082.
  • the message receiving and pre-processing module 1080 is configured to receive and pre-process the message, and the pre-processing includes reviewing the content of the received message, and the content of the review specifically includes whether there is a sensitive word and an information that does not comply with relevant laws and regulations.
  • the message passed by the audit is sent by the message receiving and pre-processing module 1080 to the encoding module 1082. For the message that has not passed the audit, the message needs to be returned to the terminal and the reason for the audit failure is displayed.
  • the encoding module 1082 is configured to encode the approved message according to the channel rules of the CDN.
  • the message sending system further includes a sending module 1100 and a receiving module 1102.
  • the sending module 1100 and the receiving module 1102 are both integrated in the terminal 110, and are used for the terminal to send a message and receive the message; the receiving module 1102 of the terminal is further connected with the decoding module. 1104. For decoding an encoded message.
  • FIG. 11 is a schematic diagram of the operation of a message sending system for transmitting intra-channel messages by using a multicast streaming protocol according to an embodiment of the present application
  • FIG. 12 is a message for transmitting intra-channel messages by using a multicast streaming media protocol according to an embodiment of the present application.
  • the working flow chart of the sending system, as shown in FIG. 11 and FIG. 12, the message sending system includes: Step S300 to Step S308 when the intra-channel message is sent by using the multicast streaming protocol.
  • step S300 the terminal enters the current chat channel, and acquires the code stream of the chat channel from the CDN.
  • the terminal sends the chat message
  • the terminal combines the message with the channel information of the current channel by the sending module, and then sends the message to the message receiving and pre-forming. Processing module.
  • step S302 the message receiving and pre-processing module pre-processes the chat message sent by the terminal, that is, the audit processing, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the chat message is approved, it is forwarded to The encoding module; if the chat message fails to be verified, the chat message and the reason for the audit failure are directly returned to the terminal, and the terminal prompts.
  • step S304 the encoding module encodes the passed chat message according to the channel rule of the CDN, and then sends the encoded message to the CDN.
  • step S306 the CDN sends the single information stream formed by the encoded message along the tree path to all the remaining terminals in the current chat channel according to the channel information through the multicast streaming protocol.
  • step S308 the terminal receives the message through the receiving module, and decodes the received message through the decoding module, and the terminal displays the decoded message.
  • FIG. 13 is a schematic diagram of the operation of a message sending system for transmitting intra-channel messages by using a unicast streaming protocol according to an embodiment of the present application
  • FIG. 14 is a message for transmitting intra-channel messages by using a unicast streaming protocol according to an embodiment of the present application.
  • the working flow chart of the sending system as shown in FIG. 13 and FIG. 14, the message sending system includes the following steps S310 to S318 when the intra-channel message is transmitted by using the unicast streaming protocol.
  • step S310 the terminal enters the current chat channel, and acquires the code stream of the chat channel from the CDN.
  • the terminal sends the chat message
  • the terminal combines the message with the channel information of the current channel through the sending module, and then sends the message to the message receiving and pre-forming. Processing module.
  • step S312 the message receiving and pre-processing module pre-processes the chat message sent by the terminal, that is, the audit processing, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the chat message is approved, it is forwarded to The encoding module; if the chat message fails to be verified, the chat message and the reason for the audit failure are directly returned to the terminal, and the terminal prompts.
  • step S314 the encoding module encodes the passed chat message according to the channel rule of the CDN, and then sends the encoded message to the CDN.
  • step S316 the CDN sends the single information stream formed by the encoded message to the remaining terminals in the current chat channel according to the channel information along the tree path through the unicast streaming protocol.
  • step S318 the terminal receives the message through the receiving module, and decodes the received message through the decoding module, and the terminal displays the decoded message.
  • FIG. 15 is a schematic diagram of the operation of a message sending system for performing network-wide push using a multicast streaming protocol according to an embodiment of the present application
  • FIG. 16 is a message sending system for performing network-wide push using a multicast streaming protocol according to an embodiment of the present application.
  • the message sending system includes the following steps S320 to S328 when the network is pushed by the multicast streaming protocol.
  • step S320 the chat system administrator inputs the push message to be pushed, and combines the push message and the channel information of the destination channel and sends the message to the message receiving and preprocessing module.
  • step S322 the message receiving and pre-processing module performs pre-processing on the push message, that is, the audit processing, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the push message is approved, it is forwarded to the encoding module; If the push message review fails, the push message and the reason for the audit failure are directly returned to the chat system administrator and prompted.
  • step S324 the encoding module encodes the pushed push message according to the channel rule of the CDN, and then sends the encoded message to the CDN.
  • step S326 the CDN sends a single information stream formed by the encoded message to all terminals in the destination channel according to the channel information along the tree path through the multicast streaming protocol, when the destination channel is all the chat channels in the chat system. At this time, the whole network push of the message can be realized.
  • step S328 the terminal receives the message through the receiving module, and decodes the received message through the decoding module, and the terminal displays the decoded message.
  • FIG. 17 is a schematic diagram of the operation of a message sending system for performing network-wide push using a unicast streaming protocol according to an embodiment of the present application
  • FIG. 18 is a message sending system for performing network-wide push using a unicast streaming protocol according to an embodiment of the present application.
  • the message sending system includes the following steps S330 to S338 when the unicast streaming protocol is used for network-wide push.
  • step S330 the chat system administrator inputs the push message to be pushed, and combines the push message and the channel information of the destination channel and sends the message to the message receiving and preprocessing module.
  • step S332 the message receiving and pre-processing module performs pre-processing on the push message, that is, the audit processing, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the push message is approved, it is forwarded to the encoding module; If the push message review fails, the push message and the reason for the audit failure are directly returned to the chat system administrator and prompted.
  • step S334 the encoding module encodes the pushed push message according to the channel rule of the CDN, and then sends the encoded message to the CDN.
  • step S336 the CDN sends the single information stream formed by the encoded message to all the terminals in the destination channel according to the channel information along the tree path through the unicast streaming protocol, when the destination channel is all the chat channels in the chat system. At this time, the whole network push of the message can be realized.
  • step S3308 the terminal receives the message through the receiving module, and decodes the received message through the decoding module, and the terminal displays the decoded message.
  • a storage medium comprising a stored program, wherein the program executes the method of any of the above.
  • the storage medium may be configured to be stored for executing a computer program comprising: step S1 and step S2.
  • step S1 an encoded message obtained by encoding the received message according to the channel rule of the CDN is acquired.
  • step S2 the encoded message is transmitted to the terminal of the chat system in accordance with the tree path through the CDN channel.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk a magnetic disk
  • optical disk a variety of media that can store program code.
  • processor being arranged to run a program, wherein the program is executed while performing the method of any of the above.
  • the processor may be arranged to perform the following steps S3 and S4 by a computer program.
  • step S3 an encoded message obtained by encoding the received message according to the channel rule of the CDN is acquired.
  • step S4 the encoded message is transmitted to the terminal of the chat system by the CDN channel according to the tree path.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a message sending method and device, a system, and a message receiving method and device, the message sending method comprising: acquiring a coded message which is for a received message and which is coded according to a channel rule of a content delivery network (CDN); and by means of a CDN channel, sending the coded message to a terminal of a chat system according to a tree path.

Description

消息发送方法及装置、系统、消息接收方法及装置Message transmitting method and device, system, message receiving method and device
本申请要求在2017年12月29日提交中国专利局、申请号为201711476795.3的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, filed on Dec. 29, 2017, the entire filing date of
技术领域Technical field
本申请涉及通信领域,例如涉及一种消息发送方法及装置、系统、消息接收方法及装置。The present application relates to the field of communications, for example, to a message sending method and apparatus, system, and message receiving method and apparatus.
背景技术Background technique
随着互联网技术的迅猛发展,人与人之间的交流和信息传播的方式越发多样,不再拘泥于语音、短信、文字评论或者仅仅与相识之人之间进行交流,通过互联网我们可以与世界上任何角落的人进行交流,可以自由的发表意见,因此视频弹幕,文字直播、即时互动聊天软件的出现丰富了我们的交流方式。With the rapid development of Internet technology, the ways of communication and information dissemination between people are more diverse, no longer limited to voice, text messages, text comments or just to communicate with people who know each other. We can communicate with the world through the Internet. People from any corner of the city can communicate freely, so the video barrage, live text, and instant interactive chat software enrich the way we communicate.
当前的网络聊天系统主要包括:消息的接收处理、存储、转发、以及用户信息维护等模块,聊天系统和终端之间一般采用全双工通讯websocket,传输控制协议(Transmission Control Protocol,TCP)/用户数据报协议(User Datagram Protocol,UDP)或者超文本传输协议(HyperText Transfer Protocol,HTTP)等形式进行消息的交互;上述交互方式的开发和维护工作量较大,并且终端上线量越大对系统的压力则越大。The current network chat system mainly includes: receiving, processing, storing, forwarding, and user information maintenance modules, and the full-duplex communication websocket, Transmission Control Protocol (TCP)/user is generally used between the chat system and the terminal. Messages are exchanged in the form of a User Datagram Protocol (UDP) or a HyperText Transfer Protocol (HTTP); the development and maintenance of the above-mentioned interaction mode is large, and the amount of the terminal is increased on the system. The pressure is greater.
针对相关技术中,交互方式的开发和维护工作量较大的问题,相关技术中尚未提出有效的解决方案。In view of the related problems in the related art, the development and maintenance of the interactive mode is relatively large, and an effective solution has not been proposed in the related art.
发明内容Summary of the invention
本申请实施例提供了一种消息发送方法及装置、系统、消息接收方法及装置,以至少改善相关技术中交互方式的开发和维护工作量较大的现象。The embodiment of the present application provides a message sending method, device, system, and message receiving method and device, so as to at least improve the phenomenon that the development and maintenance of the interaction mode in the related art is large.
本申请实施例提供了一种消息发送方法,应用于聊天系统中,包括:获取对接收到的消息按照CDN的频道规则进行编码后的编码消息;通过CDN频道将所述编码消息按照树路径发送至所述聊天系统的终端。An embodiment of the present application provides a message sending method, which is applied to a chat system, and includes: acquiring an encoded message that is encoded according to a channel rule of a CDN, and sending the encoded message according to a tree path by using a CDN channel. To the terminal of the chat system.
本申请实施例还提供了一种消息接收方法,应用于聊天系统中,包括:按照树路径接收通过CDN频道发送的编码后的消息,其中,所述编码后的消息包括:对消息处理系统接收到的消息按照CDN的频道规则进行编码后所得到的消息;解码所述编码后的消息。The embodiment of the present application further provides a message receiving method, which is applied to a chat system, and includes: receiving, according to a tree path, an encoded message sent by using a CDN channel, where the encoded message includes: receiving, by the message processing system The received message is encoded according to the channel rules of the CDN; the encoded message is decoded.
本申请实施例还提供了一种消息发送装置,应用于聊天系统中,包括:The embodiment of the present application further provides a message sending apparatus, which is applied to a chat system, and includes:
编码模块,设置为获取对接收到的消息按照CDN的频道规则进行编码后的编码消息;An encoding module, configured to obtain an encoded message that is encoded according to a channel rule of the CDN for the received message;
发送模块,设置为通过CDN频道将所述编码消息按照树路径发送至所述聊天系统的终端。And a sending module, configured to send the encoded message to the terminal of the chat system according to a tree path through a CDN channel.
本申请实施例还提供了一种消息接收装置,应用于聊天系统中,包括:The embodiment of the present application further provides a message receiving apparatus, which is applied to a chat system, and includes:
接收模块,设置为按照树路径接收通过CDN频道发送的编码消息,其中,所述编码消息包括:对消息处理系统接收到的消息按照CDN的频道规则进行编码后所得到的消息;The receiving module is configured to receive the encoded message sent by the CDN channel according to the tree path, where the encoded message includes: a message obtained by encoding a message received by the message processing system according to a channel rule of the CDN;
解码模块,设置为解码所述编码消息。A decoding module is arranged to decode the encoded message.
本申请实施例还提供了一种消息发送系统,应用于聊天系统中,包括:The embodiment of the present application further provides a message sending system, which is applied to a chat system, and includes:
消息处理模块,设置为在当前的聊天系统中,获取对接收到的消息按照CDN的频道规则进行编码后的编码消息,以及通过CDN频道将所述编码消息按照树路径发送至所述聊天系统的终端;a message processing module, configured to acquire, in the current chat system, an encoded message that is encoded according to a channel rule of the CDN, and send the encoded message to the chat system according to a tree path through a CDN channel. terminal;
所述终端,设置为对所述编码消息进行解码。The terminal is configured to decode the encoded message.
本申请实施例还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述任一项所述的方法。The embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, where the program is executed to perform the method described in any one of the above.
本申请实施例还提供了一种处理器,所述处理器设置为运行程序,其中,所述程序在所述处理器上运行时执行上述任一项所述的方法。The embodiment of the present application further provides a processor configured to run a program, wherein the program executes the method described in any one of the above when running on the processor.
附图概述BRIEF abstract
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1是根据本申请实施例提供的消息发送方法的流程图;FIG. 1 is a flowchart of a method for sending a message according to an embodiment of the present application;
图2是根据本申请实施例提供的采用组播流媒体协议的消息发送方法的流程图;2 is a flowchart of a method for sending a message by using a multicast streaming protocol according to an embodiment of the present application;
图3是根据本申请实施例提供的采用单播流媒体协议的消息发送方法的流程图;3 is a flowchart of a message sending method using a unicast streaming protocol according to an embodiment of the present application;
图4是根据本申请实施例提供的采用组播流媒体协议的消息全网推送方法的流程图;4 is a flowchart of a method for pushing a whole network of a message using a multicast streaming media protocol according to an embodiment of the present application;
图5是根据本申请实施例提供的采用单播流媒体协议的消息全网推送方法的流程图;FIG. 5 is a flowchart of a message network push method using a unicast streaming protocol according to an embodiment of the present application; FIG.
图6是根据本申请实施例提供的消息接收方法的流程图;FIG. 6 is a flowchart of a message receiving method according to an embodiment of the present application;
图7是根据本申请实施例提供的消息发送装置的结构框图;FIG. 7 is a structural block diagram of a message sending apparatus according to an embodiment of the present application;
图8是根据本申请实施例提供的消息接收装置的结构框图;FIG. 8 is a structural block diagram of a message receiving apparatus according to an embodiment of the present application;
图9是根据本申请实施例提供的消息发送系统的结构框图;FIG. 9 is a structural block diagram of a message sending system according to an embodiment of the present application;
图10是根据本申请实施例提供的消息处理模块与终端的结构框图;FIG. 10 is a structural block diagram of a message processing module and a terminal according to an embodiment of the present application;
图11是根据本申请实施例的采用组播流媒体协议进行频道内消息发送的消息发送系统的工作示意图;11 is a schematic diagram of a working process of a message sending system for transmitting intra-channel messages by using a multicast streaming protocol according to an embodiment of the present application;
图12是根据本申请实施例的采用组播流媒体协议进行频道内消息发送的消息发送系统的工作流程图;FIG. 12 is a flowchart of a message sending system for transmitting intra-channel messages by using a multicast streaming protocol according to an embodiment of the present application; FIG.
图13是根据本申请实施例的采用单播流媒体协议进行频道内消息发送的消息发送系统的工作示意图;FIG. 13 is a schematic diagram of the operation of a message sending system for transmitting intra-channel messages by using a unicast streaming protocol according to an embodiment of the present application; FIG.
图14是根据本申请实施例的采用单播流媒体协议进行频道内消息发送的消息发送系统的工作流程图;14 is a flowchart of a message sending system for transmitting intra-channel messages by using a unicast streaming protocol according to an embodiment of the present application;
图15是根据本申请实施例的采用组播流媒体协议进行全网推送的消息发送系统的工作示意图;FIG. 15 is a schematic diagram of the operation of a message sending system for performing network-wide push using a multicast streaming media protocol according to an embodiment of the present application; FIG.
图16是根据本申请实施例的采用组播流媒体协议进行全网推送的消息发送系统的工作流程图;FIG. 16 is a flowchart of a message sending system for performing network-wide push using a multicast streaming protocol according to an embodiment of the present application; FIG.
图17是根据本申请实施例的采用单播流媒体协议进行全网推送的消息发送系统的工作示意图;FIG. 17 is a schematic diagram of the operation of a message sending system for performing network-wide push using a unicast streaming protocol according to an embodiment of the present application; FIG.
图18是根据本申请实施例的采用单播流媒体协议进行全网推送的消息发送系统的工作流程图。FIG. 18 is a flowchart of a message sending system for performing network-wide push using a unicast streaming protocol according to an embodiment of the present application.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present application will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是消息发送方法用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or Prioritization.
实施例1Example 1
根据本申请的一个实施例,提供了一种消息发送方法,应用于聊天系统中,图1是根据本申请实施例提供的消息发送方法的流程图,如图1所示,该方法包括:步骤S100和步骤S102。According to an embodiment of the present application, a message sending method is provided, which is applied to a chat system. FIG. 1 is a flowchart of a message sending method according to an embodiment of the present application. As shown in FIG. 1, the method includes: S100 and step S102.
在步骤S100中,获取对接收到的消息按照CDN的频道规则进行编码后的编码消息。In step S100, an encoded message obtained by encoding the received message according to the channel rule of the CDN is acquired.
在步骤S102中,通过CDN频道将所述编码消息按照树路径发送至聊天系统的终端。In step S102, the encoded message is transmitted to the terminal of the chat system according to the tree path through the CDN channel.
通过本申请,由于通过内容分发网络(Content Delivery Network,CDN)频道可将编码后的消息按照树路径发送至聊天系统的终端之中。因此,本申请实施例可以改善相关技术中,交互方式的开发和维护工作量较大的现象,达到降低系统开发周期以及维护难度的效果。Through the present application, the encoded message can be sent to the terminal of the chat system according to the tree path through the Content Delivery Network (CDN) channel. Therefore, the embodiment of the present application can improve the phenomenon that the development and maintenance of the interaction mode is large in the related art, and achieve the effect of reducing the system development cycle and the maintenance difficulty.
在一实施例中,CDN将编码消息按照树路径依次发送至聊天系统的终端的过程中,编码消息是以单一的信息流的方式沿树路径被发送给聊天系统中待接收消息的终端,由于消息传输的链路(即树路径)中有且仅有一份信息流,因此,终端数量的显著增加并不会增加服务器对应产生的信息流的数量,以在控制消息传输网络的复杂度的同时,减轻了大量的终端消息对于服务器和中央处理器(Central Processing Unit,CPU)的压力。In an embodiment, the CDN sends the encoded message to the terminal of the chat system in sequence according to the tree path, and the encoded message is sent along the tree path to the terminal of the chat system to be received in a single information flow, because There is one and only one information flow in the link of the message transmission (that is, the tree path). Therefore, the significant increase in the number of terminals does not increase the number of information streams generated by the server, so as to control the complexity of the message transmission network. Reduces the pressure on the server and the Central Processing Unit (CPU) from a large number of terminal messages.
本申请实施例中的方法通过减少终端与服务器的的交互,可以降低系统开发的周期和难度,并可提高技术、设备的利用率,以满足直播等复杂应用场景下消息的互动效果。并且,由于相关技术中的CDN频道技术已经形成了一定的行业规范,因此本申请实施例中将CDN运用于聊天系统的过程中可具有良好的开发效率。The method in the embodiment of the present invention can reduce the cycle and difficulty of the system development by reducing the interaction between the terminal and the server, and can improve the utilization of the technology and the device to meet the interaction effect of the message in a complex application scenario such as a live broadcast. Moreover, since the CDN channel technology in the related art has formed certain industry specifications, the application of the CDN to the chat system in the embodiment of the present application may have good development efficiency.
上述终端可以包括个人计算机(Personal Computer,PC)、手机PHONE、机顶盒(Set Top Box,STB)等。The above terminal may include a personal computer (PC), a mobile phone PHONE, a set top box (STB), and the like.
在一实施例中,本申请实施例中的消息发送方法适用于一对一或一对多文字聊天、视频弹幕信息、以及直播文字聊天等应用场景,包括上述应用场景在内的任何涉及消息发送的聊天系统均在本申请实施例的消息发送方法的保护范 围内。In an embodiment, the message sending method in the embodiment of the present application is applicable to application scenarios such as one-to-one or one-to-many text chat, video barrage information, and live text chat, and any related messages including the above application scenarios. The sent chat system is within the protection scope of the message sending method of the embodiment of the present application.
在一实施例中,在步骤S102中,通过CDN频道将所述编码消息按照树路径发送至聊天系统的终端,包括:通过CDN频道将所述编码消息采用以下之一的流媒体协议按照树路径发送至聊天系统的终端:单播流媒体协议、组播流媒体协议。In an embodiment, in step S102, the encoded message is sent to the terminal of the chat system according to the tree path by using the CDN channel, including: using the CDN channel to adopt the streaming protocol according to one of the following to follow the tree path. Terminals sent to the chat system: unicast streaming protocol, multicast streaming protocol.
在本实施例中,上述单播流媒体协议与组播流媒体协议均属于CDN频道技术中的流媒体协议,本申请实施例中的CDN频道在对于聊天系统中多个终端发送消息时,即可采用单播流媒体协议以实现消息依次发送至每一个终端中,也可通过组播流媒体协议以实现消息同时发送给某个频道内的多个终端。本申请实施例中可以采用组播流媒体协议。In this embodiment, the unicast streaming protocol and the multicast streaming protocol are both the streaming media protocol in the CDN channel technology. When the CDN channel in the embodiment of the present application sends a message to multiple terminals in the chat system, The unicast streaming protocol can be used to implement the message to be sent to each terminal in turn, or the multicast streaming protocol can be used to simultaneously send the message to multiple terminals in a certain channel. A multicast streaming protocol can be adopted in the embodiment of the present application.
在一实施例中,在步骤S102中,通过CDN频道将所述编码消息按照树路径发送至聊天系统的终端,包括:通过CDN频道将所述编码消息按照树路径发送至位于聊天系统内相同的聊天频道内的终端,或者,发送至位于聊天系统内不同的聊天频道内的终端。In an embodiment, in step S102, the encoded message is sent to the terminal of the chat system according to the tree path by using the CDN channel, including: sending the encoded message according to the tree path to the same in the chat system through the CDN channel. The terminal in the chat channel, or sent to a terminal located in a different chat channel within the chat system.
在本实施例中,当多个终端位于相同的直播频道、视频频道内观看直播或视频时,该直播/视频频道即被分配为多个终端之间进行实时交互的聊天频道,多个终端之间即可通过该频道收看直播或视频,也可通过该频道进行实时互动聊天。上述聊天频道内的多个终端可向CDN获取该聊天频道的码流通道,以用于消息的发送与传输,新加入该聊天频道内的终端亦可向CDN获取该聊天频道的码流通道。In this embodiment, when a plurality of terminals are located in the same live channel or video channel to watch a live broadcast or a video, the live broadcast/video channel is allocated as a chat channel for real-time interaction between multiple terminals, and multiple terminals are You can watch live or video on this channel, or you can chat in real time through this channel. The plurality of terminals in the chat channel may obtain the code stream channel of the chat channel from the CDN for sending and transmitting the message, and the terminal newly added to the chat channel may also obtain the code stream channel of the chat channel from the CDN.
编码消息的具体发送的目的频道是根据频道信息确定的,目的频道的频道信息在消息的发送过程中一并产生并发送给CDN,CDN根据上述目的频道的频道信息将编码消息发送给对应频道。The destination channel of the specific transmission of the encoded message is determined according to the channel information. The channel information of the destination channel is generated and sent to the CDN in the process of sending the message, and the CDN sends the encoded message to the corresponding channel according to the channel information of the destination channel.
在一实施例中,在步骤S100中,获取对接收到的消息按照CDN的频道规则进行编码后的编码消息,包括:获取对接收到的以下至少之一消息按照CDN的频道规则进行编码后的编码消息:接收到的终端发送的消息和接收到的聊天系统推送的系统消息。In an embodiment, in step S100, acquiring an encoded message that is encoded according to a channel rule of the CDN, includes: acquiring, after encoding the received at least one of the following messages according to a channel rule of the CDN. Encoded message: The received message sent by the terminal and the received system message pushed by the chat system.
在本实施例中,聊天系统推送的系统消息往往需推送给聊天系统内所有聊天频道内的多个终端。In this embodiment, the system message pushed by the chat system is often pushed to multiple terminals in all chat channels in the chat system.
在一实施例中,在步骤S100中,获取对接收到的消息按照CDN的频道规则进行编码后的编码消息,包括:对接收到的消息的内容进行审核,对审核通 过的消息按照CDN的频道规则进行编码。In an embodiment, in step S100, the encoded message obtained by encoding the received message according to the channel rule of the CDN is obtained, including: reviewing the content of the received message, and following the channel of the CDN by the approved message. The rules are encoded.
在本实施例中,对接收到的消息的内容进行审核的审核内容可以包括是否存在敏感词以及不符合相关法律法规的信息的审核,对于未通过审核的消息,需将该消息返回至终端并显示审核失败的原因。In this embodiment, the auditing content for reviewing the content of the received message may include whether there is a sensitive word and an audit that does not comply with relevant laws and regulations. For a message that has not passed the audit, the message needs to be returned to the terminal. Shows why the audit failed.
以下通过应用实例1至应用实例4对于本申请实施例中的消息发送方法进行详细说明。The message sending method in the embodiment of the present application is described in detail below by using the application example 1 to the application example 4.
应用实例1)Application example 1)
图2为根据本申请实施例的采用组播流媒体协议的消息发送方法的流程图,如图2所示,采用组播流媒体协议进行频道内的消息发送的方法包括:步骤S200、步骤S202、步骤S204以及步骤S206。2 is a flowchart of a method for sending a message using a multicast streaming protocol according to an embodiment of the present application. As shown in FIG. 2, the method for transmitting a message in a channel by using a multicast streaming protocol includes: step S200, step S202 Step S204 and step S206.
在步骤S200中,终端进入当前聊天频道,向CDN获取该聊天频道的码流,当该终端发送聊天消息时,对于该终端发送的聊天消息以及当前频道的频道信息进行接收与预处理。In step S200, the terminal enters the current chat channel, and acquires the code stream of the chat channel from the CDN. When the terminal sends the chat message, the terminal receives and preprocesses the chat message sent by the terminal and the channel information of the current channel.
在步骤S202中,对于终端发送的聊天消息进行预处理,即审核处理,审核内容包括是否存在敏感词以及不符合相关法律法规的信息;若聊天消息审核通过,则对于聊天消息进行编码处理;若聊天消息审核失败,则直接将聊天消息以及审核失败的原因返回给终端,终端予以提示。In step S202, the chat message sent by the terminal is pre-processed, that is, the audit process, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the chat message is approved, the chat message is encoded; If the chat message fails to be verified, the chat message and the reason for the audit failure are directly returned to the terminal, and the terminal prompts.
在步骤S204中,对于审核通过的聊天消息按照CDN的频道规则进行编码后,将编码消息发送给CDN。In step S204, after the chat message passed by the audit is encoded according to the channel rule of the CDN, the encoded message is sent to the CDN.
在步骤S206中,CDN通过组播流媒体协议将编码后的消息形成的单一的信息流沿树路径根据当前频道的频道信息同时发给当前聊天频道内的其余所有终端。In step S206, the CDN sends the single information stream formed by the encoded message along the tree path to all the remaining terminals in the current chat channel along the tree path through the multicast streaming protocol.
应用实例2)Application example 2)
图3为根据本申请实施例的采用单播流媒体协议的消息发送方法的流程图,如图3所示,采用单播流媒体协议进行频道内的消息发送的方法包括:步骤S208、步骤S210、步骤S212和步骤S214。FIG. 3 is a flowchart of a method for sending a message by using a unicast streaming protocol according to an embodiment of the present application. As shown in FIG. 3, the method for transmitting a message in a channel by using a unicast streaming protocol includes: step S208, step S210 Step S212 and step S214.
在步骤S208中,终端进入当前聊天频道,向CDN获取该聊天频道的码流,当该终端发送聊天消息时,对于该终端发送的聊天消息以及当前频道的频道信息进行接收与预处理。In step S208, the terminal enters the current chat channel, and acquires the code stream of the chat channel from the CDN. When the terminal sends the chat message, the terminal receives and preprocesses the chat message sent by the terminal and the channel information of the current channel.
在步骤S210中,对于终端发送的聊天消息进行预处理,即审核处理,审核内容包括是否存在敏感词以及不符合相关法律法规的信息;若聊天消息审核通 过,则对于聊天消息进行编码处理;若聊天消息审核失败,则直接将聊天消息以及审核失败的原因返回给终端,终端予以提示。In step S210, the chat message sent by the terminal is pre-processed, that is, the audit process, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the chat message is approved, the chat message is encoded; If the chat message fails to be verified, the chat message and the reason for the audit failure are directly returned to the terminal, and the terminal prompts.
在步骤S212中,对于审核通过的聊天消息按照CDN的频道规则进行编码后,将编码后的消息发送给CDN。In step S212, after the chat message passed the audit is encoded according to the channel rule of the CDN, the encoded message is sent to the CDN.
在步骤S214中,CDN通过单播流媒体协议将编码后的消息形成的单一的信息流沿树路径根据当前频道的频道信息依次发给当前聊天频道内的其余所有终端。In step S214, the CDN sends the single information stream formed by the encoded message to the remaining channels in the current chat channel according to the channel information of the current channel along the tree path through the unicast streaming protocol.
应用实例3)Application example 3)
图4为根据本申请实施例的采用组播流媒体协议的消息全网推送方法的流程图,如图4所示,采用组播流媒体协议进行全网推送的方法包括:步骤S216、步骤S218、步骤S220和步骤S222。FIG. 4 is a flowchart of a method for pushing a whole network of a message using a multicast streaming protocol according to an embodiment of the present application. As shown in FIG. 4, the method for performing network-wide push by using a multicast streaming protocol includes: Step S216, Step S218 Step S220 and step S222.
在步骤S216中,聊天系统管理员输入待推送的推送消息,对于推送消息以及目的频道的频道信息进行接收与预处理。In step S216, the chat system administrator inputs the push message to be pushed, and receives and preprocesses the push message and the channel information of the destination channel.
在步骤S218中,对于推送消息进行预处理,即审核处理,审核内容包括是否存在敏感词以及不符合相关法律法规的信息;若推送消息审核通过,则对于推送消息进行编码处理;若推送消息审核失败,则直接将推送消息以及审核失败的原因返回给系统管理员,并予以提示。In step S218, pre-processing, that is, audit processing, is performed on the push message, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the push message is approved, the push message is encoded; if the push message is audited If it fails, the push message and the reason for the audit failure are directly returned to the system administrator and prompted.
在步骤S220中,对于审核通过的推送消息按照CDN的频道规则进行编码后,将编码后的消息发送给CDN。In step S220, after the push message for reviewing is encoded according to the channel rule of the CDN, the encoded message is sent to the CDN.
在步骤S222中,CDN通过组播流媒体协议将编码后的消息形成的单一的信息流沿树路径根据目的频道的频道信息同时发给目的聊天频道内的所有终端,目的聊天频道可以是聊天系统内的所有聊天频道;当编码后的消息被发送给聊天系统内的所有终端时,即是进行全网推送。In step S222, the CDN sends a single information stream formed by the encoded message along the tree path to all terminals in the destination chat channel along the tree path through the multicast streaming protocol, and the destination chat channel may be a chat system. All chat channels; when the encoded message is sent to all terminals in the chat system, it is pushed all over the network.
应用实例4)Application example 4)
图5为根据本申请实施例的采用单播流媒体协议的消息全网推送方法的流程图,如图5所示,采用单播流媒体协议进行全网推送的方法包括:步骤S224、步骤S226、步骤S228和步骤S230。5 is a flowchart of a method for pushing a whole network of a message using a unicast streaming protocol according to an embodiment of the present application. As shown in FIG. 5, the method for performing network-wide push by using a unicast streaming protocol includes: step S224, step S226 Step S228 and step S230.
在步骤S224中,聊天系统管理员输入待推送的推送消息,对于推送消息以及目的频道的频道信息进行接收与预处理。In step S224, the chat system administrator inputs the push message to be pushed, and receives and preprocesses the push message and the channel information of the destination channel.
在步骤S226中,对于推送消息进行预处理,即审核处理,具体审核内容包括是否存在敏感词以及不符合相关法律法规的信息;若推送消息审核通过,则 对于推送消息进行编码处理;若推送消息审核失败,则直接将推送消息以及审核失败的原因返回给系统管理员,并予以提示。In step S226, the push message is pre-processed, that is, the audit process, and the specific audit content includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the push message is approved, the push message is encoded; if the message is pushed If the audit fails, the push message and the reason for the audit failure are directly returned to the system administrator and prompted.
在步骤S228中,对于审核通过的推送消息按照CDN的频道规则进行编码后,将编码后的消息发送给CDN。In step S228, after the push message for the review is encoded according to the channel rule of the CDN, the encoded message is sent to the CDN.
在步骤S230中,CDN通过单播流媒体协议将编码后的消息形成的单一的信息流沿树路径根据目的频道的频道信息依次发给目的聊天频道内的所有终端,目的聊天频道可以是聊天系统内的所有聊天频道;当编码后的消息被发送给聊天系统内的所有终端时,即是进行全网推送。In step S230, the CDN sends the single information stream formed by the encoded message along the tree path to all the terminals in the destination chat channel along the tree path through the unicast streaming protocol, and the destination chat channel may be the chat system. All chat channels; when the encoded message is sent to all terminals in the chat system, it is pushed all over the network.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请多个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods of various embodiments of the present application.
实施例2Example 2
根据本申请的另一个实施例,还提供了一种消息接收方法,应用于聊天系统中,图6是根据本申请实施例提供的消息接收方法的流程图,如图6所示,该方法包括:步骤S104和步骤S106。According to another embodiment of the present application, a message receiving method is also provided, which is applied to a chat system. FIG. 6 is a flowchart of a message receiving method according to an embodiment of the present application. As shown in FIG. 6, the method includes : Step S104 and step S106.
在步骤S104中,按照树路径接收通过CDN频道发送的编码后的消息。In step S104, the encoded message transmitted through the CDN channel is received in accordance with the tree path.
其中,编码后的消息包括:对消息处理系统接收到的消息按照CDN的频道规则进行编码后所得到的消息。The encoded message includes: a message obtained by encoding a message received by the message processing system according to a channel rule of the CDN.
在步骤S106中,解码编码后的消息。In step S106, the encoded message is decoded.
通过本申请实施例中的方法,由于通过CDN频道可将编码后的消息按照树路径发送至聊天系统的终端之中。因此,本申请提供的消息接收方法,可以改善相关技术中,交互方式的开发和维护工作量较大的现象,以达到降低系统开发周期以及维护难度的效果。Through the method in the embodiment of the present application, the encoded message can be sent to the terminal of the chat system according to the tree path through the CDN channel. Therefore, the message receiving method provided by the present application can improve the phenomenon that the development and maintenance of the interactive mode is large in the related art, so as to achieve the effect of reducing the system development cycle and the maintenance difficulty.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现 出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请多个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods of various embodiments of the present application.
实施例3Example 3
根据本申请的另一个实施例,还提供了一种消息发送装置,应用于聊天系统中,该装置用于实现上述实施例及应用实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和硬件中的至少之一的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。According to another embodiment of the present application, a message sending apparatus is further provided, which is applied to a chat system, and the apparatus is used to implement the foregoing embodiments and application embodiments, and details are not described herein. As used hereinafter, the term "module" may implement a combination of at least one of software and hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图7是根据本申请实施例提供的消息发送装置的结构框图,如图7所示,该装置包括:编码模块100和发送模块102。FIG. 7 is a structural block diagram of a message sending apparatus according to an embodiment of the present application. As shown in FIG. 7, the apparatus includes: an encoding module 100 and a sending module 102.
编码模块100,设置为获取对接收到的消息按照CDN的频道规则进行编码后的编码消息。The encoding module 100 is configured to obtain an encoded message that is encoded according to a channel rule of the CDN for the received message.
发送模块102,设置为通过CDN频道将所述编码消息按照树路径发送至聊天系统的终端。The sending module 102 is configured to send the encoded message to the terminal of the chat system according to the tree path through the CDN channel.
通过本申请实施例中的装置,由于通过CDN频道可将编码后的消息按照树路径发送至聊天系统的终端之中。因此,本申请的技术方案可以改善相关技术中,交互方式的开发和维护工作量较大的现象,以达到降低系统开发周期以及维护难度的效果。Through the apparatus in the embodiment of the present application, the encoded message can be sent to the terminal of the chat system according to the tree path through the CDN channel. Therefore, the technical solution of the present application can improve the phenomenon that the development and maintenance of the interactive mode is large in the related art, so as to achieve the effect of reducing the system development cycle and the maintenance difficulty.
需要说明的是,上述多个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述多个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the foregoing multiple modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the multiple modules are The form of any combination is located in a different processor.
实施例4Example 4
根据本申请的另一个实施例,还提供了一种消息接收装置,应用于聊天系统中,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和硬件中的至少之一的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。According to another embodiment of the present application, a message receiving apparatus is further provided, which is applied to a chat system, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again. As used hereinafter, the term "module" may implement a combination of at least one of software and hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图8是根据本申请实施例提供的消息接收装置的结构框图,如图8所示,该装置包括:接收模块104和解码模块106。FIG. 8 is a structural block diagram of a message receiving apparatus according to an embodiment of the present application. As shown in FIG. 8, the apparatus includes: a receiving module 104 and a decoding module 106.
接收模块104,设置为按照树路径接收通过CDN频道发送的编码消息,其 中,编码消息包括:对消息处理系统接收到的消息按照CDN的频道规则进行编码后所得到的消息。The receiving module 104 is configured to receive the encoded message sent by the CDN channel according to the tree path, where the encoded message includes: a message obtained by encoding the message received by the message processing system according to the channel rule of the CDN.
解码模块106,设置为解码编码后的消息。The decoding module 106 is configured to decode the encoded message.
通过本申请实施例中的装置,由于通过CDN频道可将编码消息按照树路径发送至聊天系统的终端之中。因此,本申请提供的消息接收装置,可以改善相关技术中,交互方式的开发和维护工作量较大的现象,以达到降低系统开发周期以及维护难度的效果。Through the apparatus in the embodiment of the present application, the encoded message can be sent to the terminal of the chat system according to the tree path through the CDN channel. Therefore, the message receiving apparatus provided by the present application can improve the phenomenon that the development and maintenance of the interactive mode is large in the related art, so as to achieve the effect of reducing the system development cycle and the maintenance difficulty.
在一实施例中,上述多个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述多个模块以任意组合的形式分别位于不同的处理器中。In an embodiment, the foregoing multiple modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the multiple modules are They are located in different processors in any combination.
实施例5Example 5
根据本申请的另一个实施例,还提供了一种消息发送系统,应用于聊天系统中,图9是根据本申请实施例提供的消息发送系统的结构框图,如图9所示,该系统包括:消息处理模块108和终端110。According to another embodiment of the present application, a message sending system is also provided, which is applied to a chat system. FIG. 9 is a structural block diagram of a message sending system according to an embodiment of the present application. As shown in FIG. 9, the system includes : Message processing module 108 and terminal 110.
消息处理模块108,设置为在当前的聊天系统中,获取对接收到的消息按照CDN的频道规则进行编码后的编码消息,以及通过CDN频道将所述编码消息按照树路径发送至聊天系统的终端。The message processing module 108 is configured to, in the current chat system, acquire an encoded message that is encoded according to a channel rule of the CDN, and a terminal that sends the encoded message to the chat system according to a tree path through a CDN channel. .
终端110,设置为对编码消息进行解码。 Terminal 110 is arranged to decode the encoded message.
通过本申请实施例中的系统,由于通过CDN频道可将编码后的消息按照树路径发送至聊天系统的终端之中。因此,本申请提供的一种消息发送系统可以改善相关技术中,交互方式的开发和维护工作量较大的现象,以达到降低系统开发周期以及维护难度的效果。Through the system in the embodiment of the present application, the encoded message can be sent to the terminal of the chat system according to the tree path through the CDN channel. Therefore, the message sending system provided by the present application can improve the phenomenon that the development and maintenance of the interactive mode is large in the related art, so as to achieve the effect of reducing the system development cycle and the maintenance difficulty.
图10是根据本申请实施例提供的消息处理模块与终端的结构框图,如图10所示,消息处理模块108包括消息接收与预处理模块1080,编码模块1082。FIG. 10 is a structural block diagram of a message processing module and a terminal according to an embodiment of the present application. As shown in FIG. 10, the message processing module 108 includes a message receiving and pre-processing module 1080, and an encoding module 1082.
消息接收与预处理模块1080,设置为对消息进行接收与预处理,预处理包括对接收到的消息的内容进行审核,审核内容具体包括是否存在敏感词以及不符合相关法律法规的信息的审核,审核通过的消息则由消息接收与预处理模块1080发送给编码模块1082,对于未通过审核的消息,需将该消息返回至终端并显示审核失败的原因。The message receiving and pre-processing module 1080 is configured to receive and pre-process the message, and the pre-processing includes reviewing the content of the received message, and the content of the review specifically includes whether there is a sensitive word and an information that does not comply with relevant laws and regulations. The message passed by the audit is sent by the message receiving and pre-processing module 1080 to the encoding module 1082. For the message that has not passed the audit, the message needs to be returned to the terminal and the reason for the audit failure is displayed.
编码模块1082,设置为对审核通过的消息按照CDN的频道规则进行编码。The encoding module 1082 is configured to encode the approved message according to the channel rules of the CDN.
此外,消息发送系统还包括有发送模块1100与接收模块1102,发送模块1100与接收模块1102均集成于终端110之中,用于终端发送消息以及接收消息;终端的接收模块1102还连接有解码模块1104,用于对编码消息进行解码。In addition, the message sending system further includes a sending module 1100 and a receiving module 1102. The sending module 1100 and the receiving module 1102 are both integrated in the terminal 110, and are used for the terminal to send a message and receive the message; the receiving module 1102 of the terminal is further connected with the decoding module. 1104. For decoding an encoded message.
以下通过应用实例对于本申请实施例中的消息发送系统的工作流程进行详细说明。The workflow of the message sending system in the embodiment of the present application is described in detail below through an application example.
应用实例1)Application example 1)
图11是根据本申请实施例的采用组播流媒体协议进行频道内消息发送的消息发送系统的工作示意图,图12是根据本申请实施例的采用组播流媒体协议进行频道内消息发送的消息发送系统的工作流程图,如图11与图12所示,消息发送系统在采用组播流媒体协议进行频道内消息发送时包括:步骤S300至步骤S308。11 is a schematic diagram of the operation of a message sending system for transmitting intra-channel messages by using a multicast streaming protocol according to an embodiment of the present application, and FIG. 12 is a message for transmitting intra-channel messages by using a multicast streaming media protocol according to an embodiment of the present application. The working flow chart of the sending system, as shown in FIG. 11 and FIG. 12, the message sending system includes: Step S300 to Step S308 when the intra-channel message is sent by using the multicast streaming protocol.
在步骤S300中,终端进入当前聊天频道,向CDN获取该聊天频道的码流,当该终端发送聊天消息时,终端通过发送模块将该消息和当前频道的频道信息组合后发送给消息接收与预处理模块。In step S300, the terminal enters the current chat channel, and acquires the code stream of the chat channel from the CDN. When the terminal sends the chat message, the terminal combines the message with the channel information of the current channel by the sending module, and then sends the message to the message receiving and pre-forming. Processing module.
在步骤S302中,消息接收与预处理模块对于终端发送的聊天消息进行预处理,即审核处理,审核内容包括是否存在敏感词以及不符合相关法律法规的信息;若聊天消息审核通过,则转发给编码模块;若聊天消息审核失败,则直接将聊天消息以及审核失败的原因返回给终端,终端予以提示。In step S302, the message receiving and pre-processing module pre-processes the chat message sent by the terminal, that is, the audit processing, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the chat message is approved, it is forwarded to The encoding module; if the chat message fails to be verified, the chat message and the reason for the audit failure are directly returned to the terminal, and the terminal prompts.
在步骤S304中,编码模块将审核通过的聊天消息按照CDN的频道规则进行编码后,将编码后的消息发送给CDN。In step S304, the encoding module encodes the passed chat message according to the channel rule of the CDN, and then sends the encoded message to the CDN.
在步骤S306中,CDN通过组播流媒体协议将编码后的消息形成的单一的信息流沿树路径根据频道信息同时发给当前聊天频道内的其余所有终端。In step S306, the CDN sends the single information stream formed by the encoded message along the tree path to all the remaining terminals in the current chat channel according to the channel information through the multicast streaming protocol.
在步骤S308中,终端通过接收模块接收消息,并通过解码模块对接收的消息进行解码,终端展示解码后的消息。In step S308, the terminal receives the message through the receiving module, and decodes the received message through the decoding module, and the terminal displays the decoded message.
应用实例2)Application example 2)
图13是根据本申请实施例的采用单播流媒体协议进行频道内消息发送的消息发送系统的工作示意图,图14是根据本申请实施例的采用单播流媒体协议进行频道内消息发送的消息发送系统的工作流程图,如图13与图14所示,消息发送系统在采用单播流媒体协议进行频道内消息发送时包括有如下步骤S310至步骤S318。FIG. 13 is a schematic diagram of the operation of a message sending system for transmitting intra-channel messages by using a unicast streaming protocol according to an embodiment of the present application, and FIG. 14 is a message for transmitting intra-channel messages by using a unicast streaming protocol according to an embodiment of the present application. The working flow chart of the sending system, as shown in FIG. 13 and FIG. 14, the message sending system includes the following steps S310 to S318 when the intra-channel message is transmitted by using the unicast streaming protocol.
在步骤S310中,终端进入当前聊天频道,向CDN获取该聊天频道的码 流,当该终端发送聊天消息时,终端通过发送模块将该消息和当前频道的频道信息组合后发送给消息接收与预处理模块。In step S310, the terminal enters the current chat channel, and acquires the code stream of the chat channel from the CDN. When the terminal sends the chat message, the terminal combines the message with the channel information of the current channel through the sending module, and then sends the message to the message receiving and pre-forming. Processing module.
在步骤S312中,消息接收与预处理模块对于终端发送的聊天消息进行预处理,即审核处理,审核内容包括是否存在敏感词以及不符合相关法律法规的信息;若聊天消息审核通过,则转发给编码模块;若聊天消息审核失败,则直接将聊天消息以及审核失败的原因返回给终端,终端予以提示。In step S312, the message receiving and pre-processing module pre-processes the chat message sent by the terminal, that is, the audit processing, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the chat message is approved, it is forwarded to The encoding module; if the chat message fails to be verified, the chat message and the reason for the audit failure are directly returned to the terminal, and the terminal prompts.
在步骤S314中,编码模块将审核通过的聊天消息按照CDN的频道规则进行编码后,将编码后的消息发送给CDN。In step S314, the encoding module encodes the passed chat message according to the channel rule of the CDN, and then sends the encoded message to the CDN.
在步骤S316中,CDN通过单播流媒体协议将编码后的消息形成的单一的信息流沿树路径根据频道信息依次发给当前聊天频道内的其余所有终端。In step S316, the CDN sends the single information stream formed by the encoded message to the remaining terminals in the current chat channel according to the channel information along the tree path through the unicast streaming protocol.
在步骤S318中,终端通过接收模块接收消息,并通过解码模块对接收的消息进行解码,终端展示解码后的消息。In step S318, the terminal receives the message through the receiving module, and decodes the received message through the decoding module, and the terminal displays the decoded message.
应用实例3)Application example 3)
图15是根据本申请实施例的采用组播流媒体协议进行全网推送的消息发送系统的工作示意图,图16是根据本申请实施例的采用组播流媒体协议进行全网推送的消息发送系统的工作流程图,如图15与图16所示,消息发送系统在采用组播流媒体协议进行全网推送时包括有如下步骤S320至步骤S328。15 is a schematic diagram of the operation of a message sending system for performing network-wide push using a multicast streaming protocol according to an embodiment of the present application, and FIG. 16 is a message sending system for performing network-wide push using a multicast streaming protocol according to an embodiment of the present application. As shown in FIG. 15 and FIG. 16, the message sending system includes the following steps S320 to S328 when the network is pushed by the multicast streaming protocol.
在步骤S320中,聊天系统管理员输入待推送的推送消息,并将推送消息以及目的频道的频道信息组合后发送给消息接收与预处理模块。In step S320, the chat system administrator inputs the push message to be pushed, and combines the push message and the channel information of the destination channel and sends the message to the message receiving and preprocessing module.
在步骤S322中,消息接收与预处理模块对于推送消息进行预处理,即审核处理,审核内容包括是否存在敏感词以及不符合相关法律法规的信息;若推送消息审核通过,则转发给编码模块;若推送消息审核失败,则直接将推送消息以及审核失败的原因返回给聊天系统管理员并予以提示。In step S322, the message receiving and pre-processing module performs pre-processing on the push message, that is, the audit processing, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the push message is approved, it is forwarded to the encoding module; If the push message review fails, the push message and the reason for the audit failure are directly returned to the chat system administrator and prompted.
在步骤S324中,编码模块将审核通过的推送消息按照CDN的频道规则进行编码后,将编码后的消息发送给CDN。In step S324, the encoding module encodes the pushed push message according to the channel rule of the CDN, and then sends the encoded message to the CDN.
在步骤S326中,CDN通过组播流媒体协议将编码后的消息形成的单一的信息流沿树路径根据频道信息同时发给目的频道中的所有终端,当目的频道为聊天系统内的所有聊天频道时,即可实现消息的全网推送。In step S326, the CDN sends a single information stream formed by the encoded message to all terminals in the destination channel according to the channel information along the tree path through the multicast streaming protocol, when the destination channel is all the chat channels in the chat system. At this time, the whole network push of the message can be realized.
在步骤S328中,终端通过接收模块接收消息,并通过解码模块对接收的消息进行解码,终端展示解码后的消息。In step S328, the terminal receives the message through the receiving module, and decodes the received message through the decoding module, and the terminal displays the decoded message.
应用实例4)Application example 4)
图17是根据本申请实施例的采用单播流媒体协议进行全网推送的消息发送系统的工作示意图,图18是根据本申请实施例的采用单播流媒体协议进行全网推送的消息发送系统的工作示意图,如图17与图18所示,消息发送系统在采用单播流媒体协议进行全网推送时包括有如下步骤S330至步骤S338。FIG. 17 is a schematic diagram of the operation of a message sending system for performing network-wide push using a unicast streaming protocol according to an embodiment of the present application, and FIG. 18 is a message sending system for performing network-wide push using a unicast streaming protocol according to an embodiment of the present application. As shown in FIG. 17 and FIG. 18, the message sending system includes the following steps S330 to S338 when the unicast streaming protocol is used for network-wide push.
在步骤S330中,聊天系统管理员输入待推送的推送消息,并将推送消息以及目的频道的频道信息组合后发送给消息接收与预处理模块。In step S330, the chat system administrator inputs the push message to be pushed, and combines the push message and the channel information of the destination channel and sends the message to the message receiving and preprocessing module.
在步骤S332中,消息接收与预处理模块对于推送消息进行预处理,即审核处理,审核内容包括是否存在敏感词以及不符合相关法律法规的信息;若推送消息审核通过,则转发给编码模块;若推送消息审核失败,则直接将推送消息以及审核失败的原因返回给聊天系统管理员并予以提示。In step S332, the message receiving and pre-processing module performs pre-processing on the push message, that is, the audit processing, and the content of the audit includes whether there is a sensitive word and information that does not comply with relevant laws and regulations; if the push message is approved, it is forwarded to the encoding module; If the push message review fails, the push message and the reason for the audit failure are directly returned to the chat system administrator and prompted.
在步骤S334中,编码模块将审核通过的推送消息按照CDN的频道规则进行编码后,将编码后的消息发送给CDN。In step S334, the encoding module encodes the pushed push message according to the channel rule of the CDN, and then sends the encoded message to the CDN.
在步骤S336中,CDN通过单播流媒体协议将编码后的消息形成的单一的信息流沿树路径根据频道信息依次发给目的频道中的所有终端,当目的频道为聊天系统内的所有聊天频道时,即可实现消息的全网推送。In step S336, the CDN sends the single information stream formed by the encoded message to all the terminals in the destination channel according to the channel information along the tree path through the unicast streaming protocol, when the destination channel is all the chat channels in the chat system. At this time, the whole network push of the message can be realized.
在步骤S338中,终端通过接收模块接收消息,并通过解码模块对接收的消息进行解码,终端展示解码后的消息。In step S338, the terminal receives the message through the receiving module, and decodes the received message through the decoding module, and the terminal displays the decoded message.
实施例6Example 6
根据本申请的另一个实施例,还提供了一种存储介质,存储介质包括存储的程序,其中,程序运行时执行上述任一项的方法。According to another embodiment of the present application, there is also provided a storage medium comprising a stored program, wherein the program executes the method of any of the above.
在一实施例中,上述存储介质可以被设置为存储用于执行计算机程序包括:步骤S1和步骤S2。In an embodiment, the storage medium may be configured to be stored for executing a computer program comprising: step S1 and step S2.
在步骤S1中,获取对接收到的消息按照CDN的频道规则进行编码后的编码消息。In step S1, an encoded message obtained by encoding the received message according to the channel rule of the CDN is acquired.
在步骤S2中,通过CDN频道将所述编码消息按照树路径发送至聊天系统的终端。In step S2, the encoded message is transmitted to the terminal of the chat system in accordance with the tree path through the CDN channel.
在一实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等多种可以存储程序代码的介质。In an embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk. A variety of media that can store program code.
实施例7Example 7
根据本申请的另一个实施例,还提供了一种处理器,处理器设置为运行程 序,其中,程序运行时执行上述任一项的方法。According to another embodiment of the present application, there is also provided a processor, the processor being arranged to run a program, wherein the program is executed while performing the method of any of the above.
在一实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤S3和步骤S4。In an embodiment, the processor may be arranged to perform the following steps S3 and S4 by a computer program.
在步骤S3中,获取对接收到的消息按照CDN的频道规则进行编码后的编码消息。In step S3, an encoded message obtained by encoding the received message according to the channel rule of the CDN is acquired.
在步骤S4中,通过CDN频道将所述编码消息按照树路径发送至聊天系统的终端。In step S4, the encoded message is transmitted to the terminal of the chat system by the CDN channel according to the tree path.
本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本申请的多个模块或多个步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成多个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above multiple modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into a plurality of integrated circuit modules, or a plurality of the modules or steps are fabricated as a single integrated circuit module. Thus, the application is not limited to any particular combination of hardware and software.

Claims (11)

  1. 一种消息发送方法,应用于聊天系统中,包括:A message sending method is applied to a chat system, including:
    获取对接收到的消息按照内容分发网络CDN的频道规则进行编码后的编码消息;Obtaining an encoded message that encodes the received message according to a channel rule of the content distribution network CDN;
    通过CDN频道将所述编码消息按照树路径发送至所述聊天系统的终端。The encoded message is sent to the terminal of the chat system by a CDN channel according to a tree path.
  2. 根据权利要求1所述的方法,其中,所述通过CDN频道将所述编码消息按照树路径发送至所述聊天系统的终端,包括:The method of claim 1, wherein the transmitting, by the CDN channel, the encoded message to the terminal of the chat system according to a tree path comprises:
    通过所述CDN频道将所述编码消息采用以下之一的流媒体协议按照树路径发送至所述聊天系统的终端:And transmitting, by using the CDN channel, the encoded message to a terminal of the chat system according to a tree path by using one of the following streaming media protocols:
    单播流媒体协议和组播流媒体协议。Unicast streaming protocol and multicast streaming protocol.
  3. 根据权利要求1所述的方法,其中,所述通过CDN频道将所述编码消息按照树路径发送至所述聊天系统的终端,包括:The method of claim 1, wherein the transmitting, by the CDN channel, the encoded message to the terminal of the chat system according to a tree path comprises:
    通过所述CDN频道将所述编码消息按照树路径发送至位于所述聊天系统内相同的聊天频道内的终端,或者,发送至位于所述聊天系统内不同的聊天频道内的终端。The encoded message is sent by the CDN channel to a terminal located in the same chat channel within the chat system according to a tree path, or to a terminal located in a different chat channel within the chat system.
  4. 根据权利要求1所述的方法,其中,所述获取对接收到的消息按照内容分发网络CDN的频道规则进行编码后的编码消息,包括:The method according to claim 1, wherein the obtaining the encoded message that is encoded according to the channel rule of the content distribution network CDN of the received message comprises:
    获取对接收到的以下至少之一消息按照CDN的频道规则进行编码后的编码消息:接收到的所述终端发送的消息和接收到的所述聊天系统推送的系统消息。Obtaining an encoded message that is encoded according to a channel rule of the CDN by receiving at least one of the following messages: the received message sent by the terminal and the received system message pushed by the chat system.
  5. 根据权利要求1所述的方法,其中,所述获取对接收到的消息按照CDN的频道规则进行编码后的编码消息,包括:The method according to claim 1, wherein the obtaining the encoded message that is encoded according to the channel rule of the CDN for the received message comprises:
    对所述接收到的消息的内容进行审核,对审核通过的消息按照所述CDN的频道规则进行编码。The content of the received message is reviewed, and the message passed for review is encoded according to the channel rule of the CDN.
  6. 一种消息接收方法,应用于聊天系统中,包括:A message receiving method is applied to a chat system, including:
    按照树路径接收通过内容分发网络CDN频道发送的编码消息,其中,所述编码消息包括:对消息处理系统接收到的消息按照CDN的频道规则进行编码后所得到的消息;Receiving, by the tree path, the encoded message sent by the content distribution network CDN channel, where the encoded message includes: a message obtained by encoding a message received by the message processing system according to a channel rule of the CDN;
    解码所述编码消息。Decoding the encoded message.
  7. 一种消息发送装置,应用于聊天系统中,包括:A message sending device is applied to a chat system, including:
    编码模块,设置为获取对接收到的消息按照内容分发网络CDN的频道规则进行编码后的编码消息;The encoding module is configured to obtain an encoded message that is encoded according to a channel rule of the content distribution network CDN for the received message;
    发送模块,设置为通过CDN频道将所述编码消息按照树路径发送至所述聊 天系统的终端。And a sending module, configured to send the encoded message to the terminal of the chat system by a CDN channel according to a tree path.
  8. 一种消息接收装置,应用于聊天系统中,包括:A message receiving device is applied to a chat system, including:
    接收模块,设置为按照树路径接收通过内容分发网络CDN频道发送的编码消息,其中,所述编码消息包括:对消息处理系统接收到的消息按照CDN的频道规则进行编码后所得到的消息;The receiving module is configured to receive the encoded message sent by the CDN channel of the content distribution network according to the tree path, where the encoded message includes: a message obtained by encoding a message received by the message processing system according to a channel rule of the CDN;
    解码模块,设置为解码所述编码消息。A decoding module is arranged to decode the encoded message.
  9. 一种消息发送系统,应用于聊天系统中,包括:A message sending system for use in a chat system, comprising:
    消息处理模块,设置为在当前的聊天系统中,获取对接收到的消息按照内容分发网络CDN的频道规则进行编码后的编码消息,以及通过CDN频道将所述编码消息按照树路径发送至所述聊天系统的终端;a message processing module, configured to acquire, in the current chat system, an encoded message that is encoded according to a channel rule of the content distribution network CDN, and send the encoded message to the The terminal of the chat system;
    所述终端,设置为对所述编码消息进行解码。The terminal is configured to decode the encoded message.
  10. 一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至5中任一项,或权利要求6所述的方法。A storage medium, the storage medium comprising a stored program, wherein the program is executed to perform the method of any one of claims 1 to 5, or the method of claim 6.
  11. 一种处理器,所述处理器设置为运行程序,其中,所述程序在所述处理器上运行时执行权利要求1至5中任一项,或权利要求6所述的方法。A processor, the processor being arranged to run a program, wherein the program, when run on the processor, performs any one of claims 1 to 5, or the method of claim 6.
PCT/CN2018/118863 2017-12-29 2018-12-03 Message sending method and device, system, and message receiving method and device WO2019128631A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711476795.3 2017-12-29
CN201711476795.3A CN108156531A (en) 2017-12-29 2017-12-29 Message method and device, system, message receival method and device

Publications (1)

Publication Number Publication Date
WO2019128631A1 true WO2019128631A1 (en) 2019-07-04

Family

ID=62462493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/118863 WO2019128631A1 (en) 2017-12-29 2018-12-03 Message sending method and device, system, and message receiving method and device

Country Status (2)

Country Link
CN (1) CN108156531A (en)
WO (1) WO2019128631A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156531A (en) * 2017-12-29 2018-06-12 中兴通讯股份有限公司 Message method and device, system, message receival method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060428A (en) * 2006-04-22 2007-10-24 深圳市瑞福特信息技术有限公司 A P2P network dispatching method
CN101267450A (en) * 2008-03-18 2008-09-17 上海大学 Multicast routing method for distributed network application layer based on network coding
CN102523298A (en) * 2011-12-22 2012-06-27 上海因特奈信息有限公司 Video acquiring and sharing system based on mobile terminal and process method thereof
US20170236077A1 (en) * 2016-02-16 2017-08-17 BitSight Technologies, Inc. Relationships among technology assets and services and the entities responsible for them
CN108156531A (en) * 2017-12-29 2018-06-12 中兴通讯股份有限公司 Message method and device, system, message receival method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140047049A1 (en) * 2012-08-07 2014-02-13 Milyoni, Inc. Methods and systems for linking and prioritizing chat messages
CN103986942B (en) * 2014-06-05 2017-05-24 北京赛维安讯科技发展有限公司 Data distribution system and method based on CDN (content distribution network)
CN106101851B (en) * 2016-07-01 2019-04-23 上海幻电信息科技有限公司 A kind of whole realization method and system of barrage service
CN107438201B (en) * 2017-07-06 2020-08-21 北京潘达互娱科技有限公司 Message processing system, method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060428A (en) * 2006-04-22 2007-10-24 深圳市瑞福特信息技术有限公司 A P2P network dispatching method
CN101267450A (en) * 2008-03-18 2008-09-17 上海大学 Multicast routing method for distributed network application layer based on network coding
CN102523298A (en) * 2011-12-22 2012-06-27 上海因特奈信息有限公司 Video acquiring and sharing system based on mobile terminal and process method thereof
US20170236077A1 (en) * 2016-02-16 2017-08-17 BitSight Technologies, Inc. Relationships among technology assets and services and the entities responsible for them
CN108156531A (en) * 2017-12-29 2018-06-12 中兴通讯股份有限公司 Message method and device, system, message receival method and device

Also Published As

Publication number Publication date
CN108156531A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN110768817B (en) Upgrading method and device for video networking terminal
CN103179431B (en) Under VDI environment, audio frequency and video are redirected and turn code separation method
CN102226944B (en) Audio mixing method and equipment thereof
CN103686210B (en) Method and system for achieving audio and video transcoding in real time
CN112738644B (en) Video stream transmission method and device based on WebRTC
CN113132376A (en) Media data processing method, device and system, electronic equipment and storage medium
CN103986966A (en) System and method for pushing smart television image to mobile terminal for display
CN107979763A (en) A kind of virtual reality device generation video, playback method, apparatus and system
CN114221909B (en) Data transmission method, device, terminal and storage medium
EP2645710A1 (en) Method for monitoring terminal through ip network and mcu
CN108235111B (en) Information sharing method and intelligent set top box
EP3399725B1 (en) Multimedia stream multicasting method and device
WO2019128631A1 (en) Message sending method and device, system, and message receiving method and device
CN116150540B (en) System and method for realizing one-key switching of exhibition item content based on meta universe and cloud platform
Zhao et al. A mobile real-time video system using RTMP
CN115208864B (en) Data transmission method, device, equipment, vehicle and storage medium
CN103959796B (en) The coding/decoding method joining method and device of digital video bit stream
CN110795008B (en) Picture transmission method and device and computer readable storage medium
CN103618659A (en) Reliable multicast method based on logic ring
CN113794931A (en) Video playing method and system and electronic equipment
CN110719435B (en) Method and system for carrying out terminal conference
CN110572367B (en) Method, system, server, device and storage medium for modifying terminal name
CN107277425A (en) A kind of server, meeting-place terminal and cloud meeting processing method
CN110365631B (en) Data processing method and video networking system
CN108377243B (en) Live streaming transmission method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18895912

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18895912

Country of ref document: EP

Kind code of ref document: A1