CN110971596A - Message monitoring method and device, electronic equipment and machine-readable storage medium - Google Patents

Message monitoring method and device, electronic equipment and machine-readable storage medium Download PDF

Info

Publication number
CN110971596A
CN110971596A CN201911167899.5A CN201911167899A CN110971596A CN 110971596 A CN110971596 A CN 110971596A CN 201911167899 A CN201911167899 A CN 201911167899A CN 110971596 A CN110971596 A CN 110971596A
Authority
CN
China
Prior art keywords
message
live broadcast
monitoring
application
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911167899.5A
Other languages
Chinese (zh)
Inventor
麦志英
廖卓杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN201911167899.5A priority Critical patent/CN110971596A/en
Publication of CN110971596A publication Critical patent/CN110971596A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information
    • H04L63/306Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information intercepting packet switched data communications, e.g. Web, Internet or IMS communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Abstract

The embodiment of the application provides a message monitoring method and device, electronic equipment and a machine-readable storage medium, and a monitoring interface which can be called by a WEB front-end engine is created in advance so that after an application message pushed by a server is received, message display is carried out in a live broadcast room of live broadcast application according to the application message. And finally, calling the monitoring interface through a WEB front-end engine so as to obtain the target live broadcast message monitored by the monitoring interface. Therefore, the WEB front-end engine can dynamically acquire the live broadcast message in the live broadcast room, and further can set the information in the loaded page according to the acquired live broadcast message, so that the live broadcast related information is displayed on the page.

Description

Message monitoring method and device, electronic equipment and machine-readable storage medium
Technical Field
The present application relates to the field of live broadcast technologies, and in particular, to a message monitoring method and apparatus, an electronic device, and a machine-readable storage medium.
Background
In the live broadcast application of the terminal equipment, the mode of running the front-end code to load the page is mainly realized in a browser process mode, but the browser process cannot be communicated with a live broadcast process in the live broadcast application. So that the front-end code cannot dynamically listen to the messages in the live broadcast room. Therefore, the front-end page loaded by the front-end code cannot display information based on the message condition of the live broadcast room.
Disclosure of Invention
The application aims to provide a message monitoring method, a message monitoring device, an electronic device and a machine readable storage medium, which can enable a WEB front-end engine to monitor and obtain live-air messages.
The embodiment of the application can be realized as follows:
in a first aspect, an embodiment provides a message monitoring method, which is applied to a terminal device in communication with a server, where a live application is installed in the terminal device, and the method includes:
receiving an application message pushed by the server, and displaying the message in a live broadcast room of the live broadcast application according to the application message;
monitoring a target live broadcast message in the live broadcast room through a pre-established monitoring interface;
and calling the monitoring interface through a WEB front-end engine to obtain the target live broadcast message monitored by the monitoring interface.
In an alternative embodiment, the method further comprises:
and setting display information of a front-end page of the live broadcast application according to the target live broadcast information through the WEB front-end engine.
In an alternative embodiment, the method further comprises:
setting an interface security domain name in a Software Development Kit (SDK) in advance so that a front-end page under the interface security domain name has the authority of calling a monitoring interface of the SDK;
and introducing the SDK into a front-end page under the interface security domain name.
In an alternative embodiment, the method further comprises:
acquiring the message type of the live broadcast message to be monitored by the WEB front-end engine;
and registering corresponding monitoring information in the SDK according to the message type.
In an optional embodiment, the step of listening to the target live broadcast message in the live broadcast room through a pre-created listening interface includes:
acquiring a message type contained in monitoring information registered in the SDK in advance;
and monitoring the target live broadcast message corresponding to the message type in the live broadcast room through a pre-established monitoring interface.
In an optional implementation manner, the receiving an application message pushed by the server, and performing message display in a live broadcast room of the live broadcast application according to the application message includes:
receiving the application message pushed by the server, and caching the received application message into a pre-established message queue;
and extracting the application message from the message queue according to the current live network state, and displaying the message in a live broadcast room of the live broadcast application according to the extracted application message.
In an optional embodiment, the step of setting, by the WEB front-end engine, presentation information of a front-end page of the live broadcast application according to the target live broadcast information includes:
counting target live broadcast messages monitored within a preset time length to obtain a counting result, wherein the target live broadcast messages comprise any one or combination of barrage messages, gift messages, anchor broadcast messages, live broadcast type messages, live broadcast room messages and watching user messages;
and setting display information on a front-end page of the live broadcast application according to the statistical result through the WEB front-end engine.
In an optional embodiment, the listening interface is a JSbridge interface specified by a Javascript bridge.
In a second aspect, an embodiment provides a message monitoring apparatus, which is applied to a terminal device in communication with a server, where a live application is installed on the terminal device, and the apparatus includes:
the receiving module is used for receiving the application message pushed by the server and displaying the message in a live broadcast room of the live broadcast application according to the application message;
the monitoring module is used for monitoring the target live broadcast message in the live broadcast room through a pre-established monitoring interface;
and the calling module is used for calling the monitoring interface through a WEB front-end engine so as to obtain the target live broadcast message monitored by the monitoring interface.
In a third aspect, embodiments provide an electronic device, including one or more storage media and one or more processors in communication with the storage media, where the one or more storage media store machine-executable instructions executable by the processors, and when the electronic device is running, the processors execute the machine-executable instructions to perform the message listening method described in any one of the foregoing embodiments.
In a fourth aspect, embodiments provide a machine-readable storage medium storing machine-executable instructions, which when executed implement the message listening method of any one of the foregoing embodiments.
The beneficial effects of the embodiment of the application include, for example:
according to the message monitoring method and device, the electronic device and the machine-readable storage medium, the monitoring interface which can be called by the WEB front-end engine is created in advance, so that after the application message pushed by the server is received, the message display is carried out in the live broadcast room of the live broadcast application according to the application message. And finally, calling the monitoring interface through a WEB front-end engine so as to obtain the target live broadcast message monitored by the monitoring interface. Therefore, the WEB front-end engine can dynamically acquire the live broadcast message in the live broadcast room, and further can set the information in the loaded page according to the acquired live broadcast message, so that the live broadcast related information is displayed on the page.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an application scenario of a message monitoring method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application;
fig. 3 is a flowchart of a message monitoring method according to an embodiment of the present application;
fig. 4 is another flowchart of a message monitoring method according to an embodiment of the present application;
fig. 5 is another flowchart of a message monitoring method according to an embodiment of the present application;
fig. 6 is a schematic view of a live display interface provided in an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a display of a front-end page according to an embodiment of the present application;
fig. 8 is a schematic interaction diagram between a terminal device and a server according to an embodiment of the present application;
fig. 9 is a functional block diagram of a message monitoring apparatus according to an embodiment of the present application.
Icon: 100-a terminal device; 110-a processor; 120-a memory; 130-peripheral interfaces; 140-a radio frequency module; 150-screen; 160-message monitoring means; 161-a receiving module; 162-a listening module; 163-calling module; 200-server.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
Fig. 1 is a schematic view of an application scenario of the message monitoring method according to the embodiment of the present application, where the application scenario includes a terminal device 100 and a server 200 in communication with the terminal device 100, and the terminal device 100 is installed with a live broadcast application. The server 200 may be one server 200, a cluster of multiple servers, or a cloud platform, the terminal device 100 may be a terminal device 100 such as a smart phone, a tablet computer, or a personal computer, and the live application may be an APP running on the smart terminal, or a website application running on the personal computer.
The terminal device 100 may be a terminal device 100 held by a main broadcast end or a terminal device 100 held by a client end in a live broadcast application process, the server 200 may be a background server 200 of the live broadcast application, and the server 200 communicates with the terminal device 100 to implement processing and interaction of live broadcast information generated in the live broadcast application process.
The terminal device 100 includes a WEB front-end engine capable of implementing page loading display, and the live broadcast application may load a page through the WEB front-end engine and render the loaded page on a display interface of the terminal device 100.
Fig. 2 shows a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application, where the electronic device may be the terminal device 100 described above. As shown in fig. 2, the terminal device 100 includes a processor 110, a memory 120, a peripheral interface 130, a radio frequency module 140, and a screen 150, which communicate with each other via one or more communication buses/signal lines.
The processor 110 may be a general-purpose processor, such as a Central Processing Unit (CPU), a Network Processor (NP), a microprocessor, or the like, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program according to the present disclosure. But also a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), or other Programmable logic device.
The memory 120 stores programs for executing the technical solution of the present application, and may also store an operating system and other key services. In particular, the program may include program code comprising computer operating instructions. More specifically, memory 120 may include read-only memory (ROM), other types of dynamic storage devices that may store information and instructions, disk storage, flash memory, and the like.
The peripheral interface 130 couples various input/output devices to the processor 110 as well as to the memory 120.
The rf module 140 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 140 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, and the like. The rf module 140 may communicate with various networks such as the internet, an intranet, a preset type of wireless network, or other devices through a preset type of wireless network. The preset types of wireless networks described above may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The Wireless network of the above-mentioned preset type may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), bluetooth, Wireless Fidelity (WiFi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n standards of the institute of electrical and electronics engineers), other protocols for mail, instant messaging and short messaging, and any other suitable Communication protocol.
The screen 150 provides both an output and an input interface between the terminal device 100 and the user. In particular, the screen 150 may display pages and video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. The screen 150 may be a touch screen for receiving user inputs, such as user clicks, swipes, and other gesture operations, so that the user interface objects respond to the user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of the display unit of the screen 150 include, but are not limited to, a liquid crystal display or a light emitting polymer display.
The processor 110 of the terminal device 100 executes the program stored in the memory 120 and invokes other devices, which can be used to implement the message monitoring method provided by the embodiment of the present application.
Referring to fig. 3, a flowchart of a message monitoring method according to an embodiment of the present application is shown, where the message monitoring method is applicable to the terminal device 100, and detailed steps of the message monitoring method are described as follows.
Step S310, receiving the application message pushed by the server 200, and performing message display in the live broadcast room of the live broadcast application according to the application message.
And step S320, monitoring the target live broadcast message in the live broadcast room through a pre-established monitoring interface.
And step S330, calling the monitoring interface through a WEB front-end engine to obtain the target live broadcast message monitored by the monitoring interface.
In the live broadcast process based on the live broadcast platform, various live broadcast messages can be generated, wherein the live broadcast messages comprise bullet screen messages, gift messages, subscription messages and the like, and the live broadcast messages are displayed in a live broadcast room. For example, when the anchor broadcasts in the live broadcast room, the audience sends the barrage information, the barrage information is processed by the server 200 and then sent to each terminal device 100 in the form of an application message, and the terminal device 100 displays the message in the live broadcast room according to the received barrage message. Or the spectator side may send a gift to the main broadcast live in the live broadcast room, and the gift message is processed by the server 200 and then sent to each terminal device 100 in the form of an application message, and is displayed in the live broadcast room through the terminal device 100.
In the live broadcast application, besides the main live broadcast room related information, the live broadcast application also comprises a front-end page loaded by a WEB front-end engine, and the front-end page can display the live broadcast related information, advertisement information and the like.
In this embodiment, the WEB front-end engine may be a JavaScript code engine, that is, a browser kernel. JavaScript, which is a client-side scripting language based on object and event driving and having relative security, is also a scripting language widely used for client-side Web development, and is often used to add dynamic functions to an HTML5 Web page, such as responding to various operations of a user, dynamically setting display information of the Web page, and the like.
In this embodiment, the WEB front-end engine may be responsible for interpreting WEB page syntax, including HTML, CSS (cascading style Sheets), JavaScript, and the like, and may implement rendering and displaying of a WEB page. In this embodiment, the WEB front-end engine may be a CEF (embedded program framework) based on google open source.
Because the live broadcast message display in the live broadcast room is a function in the live broadcast application, at present, no direct transparent transmission means is available for transmitting the message event of the WEB front-end engine to the live broadcast room process in the live broadcast application, that is, no existing universal two-way message communication channel exists between the WEB front-end engine and the live broadcast room process. Therefore, the WEB front-end engine for loading the front-end page cannot directly communicate with the live broadcast room process, and thus, the WEB front-end engine cannot set the display information of the front-end page based on the message in the live broadcast room.
At present, the setting of the display information in the front-end page is generally set based on information issued by a background server corresponding to the front-end page, that is, a message of a live broadcast room needs to be processed by the background server, and then issued to the terminal device 100, and the display information of the front-end page is set by the WEB front-end engine according to the issued information. In the prior art, a WEB front-end engine in the terminal device 100 cannot directly monitor a message in a live broadcast room, so that the terminal device 100 locally implements a mode of setting information on a front-end page based on the message in the live broadcast room.
In this embodiment, in order to enable the terminal device 100 to monitor the messages in the live broadcast room, the function of displaying information of the front-end page is set accordingly. Firstly, a monitoring interface can be created in advance, and the monitoring interface can run in a browser kernel and can be called by a WEB front-end engine. The listening interface may be an API interface of a Software Development Kit (SDK), and specifically may be a JSbridge interface specified by a Javascript bridge. The front-end page can call the monitoring interface by introducing the SDK into the front-end page and registering the monitoring function.
The created listening interface can listen to the message in the live broadcast room based on JSbridge technology. In this embodiment, when the request for initiating the monitoring message by calling the monitoring interface is triggered by the front-end page, the WEB front-end engine may receive the request and call the monitoring interface to establish a message channel with a live broadcast process of the live broadcast application. And monitoring the message channel through a monitoring interface, and transmitting a new message to a front-end page when the new message arrives in the message channel. That is, a message channel between the WEB front-end engine and the live broadcast process is established, and the message channel is monitored by using the monitoring interface, that is, the live broadcast message is monitored, and the front-end page is set by the monitored message.
Due to the diversity of messages in the live broadcast room, the target live broadcast messages in various types of live broadcast messages in the live broadcast room can be monitored according to the required message types during monitoring. For example, when the bullet screen related information needs to be displayed on the front-end page, the bullet screen information in the live broadcast information can be used as the target live broadcast information to monitor the bullet screen information in the live broadcast room, or if the gift related information in the live broadcast process needs to be displayed on the front-end page, the gift information in the live broadcast information can be used as the target live broadcast information to monitor the gift information in the live broadcast room.
Because the association between the WEB front-end engine and the monitoring interface is created in advance, the WEB front-end engine can call the monitoring interface, and therefore target live broadcast messages in a live broadcast room are obtained through monitoring of the monitoring interface.
On this basis, please refer to fig. 4, the message monitoring method provided in this embodiment further includes the following steps:
step S340, setting, by the WEB front-end engine, display information of a front-end page of the live broadcast application according to the target live broadcast message.
In this embodiment, the WEB front-end engine may set the display information of the front-end page according to the required target live broadcast message by creating a monitoring interface that can be called by the WEB front-end engine in advance and monitoring the live broadcast message in the live broadcast room through the monitoring interface. The related information is not required to be processed by the background server and then sent to the terminal device 100, and then the WEB front-end engine is used for setting the front-end page by using the information sent by the background server, so that the processing is complex and the processing burden of the background server is increased.
Before the monitoring function is actually used, information configuration needs to be performed in advance to set the calling authority of the front-end page to the monitoring interface, so that the front-end page is used for communication between the WEB front-end engine and the live broadcast room process. In addition, it is also necessary to register a related interception function in advance for subsequent interception of the live broadcast message of the corresponding information type. The following describes the procedures of configuring and registering the rights in advance.
Firstly, an interface security domain name needs to be set in a software development kit SDK in advance, so that all front-end pages under the interface security domain name have the authority to call a monitoring interface of the SDK. And, introducing SDK in the front page under the interface security domain name.
In addition, the message type of the live broadcast message to be monitored by the WEB front-end engine, such as a barrage message, a gift message, etc., needs to be obtained. And registering corresponding monitoring information in the SDK according to the type of the message to be monitored. The listening information includes the information related to the message type.
On the basis, when the monitoring interface which is created in advance is used to monitor the message in the live broadcast room formally, the message type contained in the monitoring information which is registered in the SDK in advance can be obtained, and then the target live broadcast message corresponding to the obtained message type in the live broadcast room is monitored through the monitoring interface which is created in advance.
In this embodiment, when acquiring the application message pushed by the server 200, the terminal device 100 may receive the application message through a message receiver, and the message receiver and the server 200 may perform long connection in a WebSocket manner to receive the application message pushed by the server 200.
The application message received by the message receiver is binary information, and in order to display the message in the live broadcast room according to the application message, the binary application message can be converted into the application message in a text form, and then the message display is performed in the live broadcast room according to the converted application message.
In implementation, when the received application message data is large due to network anomaly or small network bandwidth, the phenomena of message loss, incomplete display, stuck and the like may occur when the terminal device 100 displays the message.
Thus, the message receiver may alleviate the above problems to some extent based on a caching mechanism. Optionally, after acquiring the application message pushed by the server 200, the terminal device 100 caches the acquired application message in a message queue created in advance. And extracting the application message from the message queue according to the current live network state, and displaying the message in a live broadcast room of the live broadcast application according to the extracted application message.
The message Queue may be a quality of service (QoS) Queue, specifically, a First-in-First-out (FIFO) Queue, or a Priority Queue (PQ) Queue, a Customized Queue (CQ) Queue, or a Weighted Fair Queue (WFQ) Queue, etc.
The fifo queue is simple to implement, saves processing resources, and has a high processing speed, so in this embodiment, the fifo queue can be used for buffering application messages. Under the condition, the message receiver adds the received application message pushed by the server 200 into the message queue from the tail of the message queue, extracts the application message from the head of the message queue according to the live broadcast network state, and displays the message in the live broadcast room based on the extracted application message.
Optionally, under the condition that the current live broadcast network state is not good, the application message may be extracted from the message queue at a lower speed and displayed, and under the condition that the current live broadcast network state is good, the application message may be extracted from the message queue at a higher speed and displayed, and specifically, the extraction mode may be set correspondingly according to a requirement, which is not limited in this embodiment.
And monitoring the live broadcast message in the live broadcast room through the monitoring interface, and packaging the target live broadcast message into the target live broadcast message which can be executed by the Javascript code by the SDK when the WEB front-end engine calls the monitoring interface to obtain the target live broadcast message in the live broadcast room.
And after obtaining the target live broadcast message, the WEB front-end engine sets display information of a front-end page in the live broadcast application according to the target live broadcast message. Referring to fig. 5, optionally, when setting the display information of the front page, the following may be implemented.
Step S510, performing statistical processing on the target live broadcast message monitored within a preset duration to obtain a statistical result. The target live broadcast message comprises any one or combination of a bullet screen message, a gift message, a main broadcast message, a live broadcast type message, a live broadcast room message and a watching user message.
And step S520, setting display information on a front-end page of the live broadcast application through the WEB front-end engine according to the statistical result.
For example, when the front-end page needs to display the related situation about the barrage message in the live broadcast room, the display information on the front-end page can be set correspondingly by performing statistical analysis on the barrage message displayed in the live broadcast room within the preset duration. The preset duration may be, for example, an hour or a live session period, etc. The statistical analysis of the bullet screen messages within the preset duration may include analyzing words with higher frequency, such as words with frequency arranged in the top ten, appearing in the bullet screen messages generated within the preset duration. Or counting the time points of the bullet screen peak in the preset time length, for example, the number of the bullet screen messages generated at which time points is large.
So, when the higher frequency's that appears in the bullet screen message that shows in the analysis acquisition live broadcast room vocabulary, then can set up corresponding ranking information on the front end page to show the common vocabulary in the bullet screen message on the front end page, thereby show the user and like the vocabulary condition of using when bullet screen.
For another example, under the condition that the bullet screen peak time point is obtained through the analysis, the bullet screen peak time point and the live broadcast content corresponding to the time point can be displayed on the front-end page, so that the bullet screen peak of the audience at which time point can be visually displayed, and the specific live broadcast content condition at the time point can be visually displayed.
Referring to fig. 6 and 7, taking the terminal device 100 as a smart phone as an example, fig. 6 and 7 schematically illustrate a schematic diagram of monitoring a barrage message in a live broadcast room, so as to set display information of a front-end page according to the barrage message in the live broadcast room. For example, when the live content in the live broadcast room is live broadcast, the display interface of the live broadcast room is a live broadcast screen. In the process of anchor live broadcasting, if a viewer initiates a bullet screen message aiming at the live broadcasting content on a live broadcasting display interface, the bullet screen message is displayed on a live broadcasting picture. The bullet screen message may be a text message, an image message, an animation message, etc. Correspondingly, the related display of the barrage message in the live broadcast room can be carried out on a front-end page of the live broadcast application.
Therefore, the WEB front-end engine needs to monitor the bullet screen message in the live broadcast room, so as to load and display the bullet screen related information on the front-end page. And displaying the vocabulary row behavior example with more frequency in the bullet screen message in a period of time on the front-end page. The listening to the barrage message in the live room as shown in fig. 6 continues. The WEB front-end engine calls the monitoring interface to obtain the bullet screen message in the preset time period, obtains the vocabulary with the first five-digit appearance frequency through statistical analysis, and displays the vocabulary on the front-end page, as shown in fig. 7.
As another possible implementation manner, if it is required to display the related information of the gift message in the live broadcast room during the live broadcast on the front-end page, the gift message in the live broadcast room during the live broadcast or within the set time length can be monitored. The gift with the largest number of sending times in the live broadcast room can be obtained through statistical processing, or the gift with the first five sending times is sent, or the specific time point of sending the gift is sent.
Accordingly, the gift information with the largest number of sending times can be displayed on the front page, or a gift message ranking list is arranged to display the use conditions of various types of gifts, or the peak period of sending out the gifts and the live broadcast information of the peak period are displayed on the front page. In this way, the related information about the gift message in the live broadcast room can be visually displayed on the front page.
Regarding the target live broadcast message, such as the anchor message, the live broadcast type message, the live broadcast room message, the viewing user message, and the like, similarly, the above various messages can be analyzed and processed according to the information requirement to be displayed in the front-end page, and the display information on the front-end page can be set according to the processing result through the WEB front-end engine. Specifically, the setting may be performed according to actual requirements, and the embodiment is not particularly limited.
Referring to the timing chart shown in fig. 8, with reference to fig. 8, the overall flow of the message monitoring method provided in this embodiment is described below.
The message monitoring method mainly comprises two stages, wherein the first stage is a process of carrying out calling authority configuration and information registration in advance, and the second stage is a process of realizing live broadcast message monitoring in a live broadcast room in monitoring application.
In the process of performing the calling authority configuration and the information registration in advance, the user can run the live application on the terminal device 100 through the terminal device 100 and run the front-end code through the WEB front-end engine. The interface security domain name is set in the SDK, so that all front end pages under the interface security domain name have the authority of calling the monitoring interface of the SDK, and the SDK is introduced into the front end pages under the interface security domain name.
On the basis, according to the message type of the live broadcast message to be monitored by the WEB front-end engine, corresponding monitoring information is registered in the SDK, and the monitoring information contains the required message type.
In the process of monitoring the application, the user may initiate live broadcast information, such as barrage information, gift information, etc., for the corresponding live broadcast room through the terminal device 100. After the live broadcast information is processed by the server 200, a corresponding application message is obtained and sent to each terminal device 100. The message receiver in the terminal device 100 may receive the application message sent by the server 200, and perform message display in the live broadcast according to the application message. The SDK monitoring interface can monitor target live broadcast messages in a live broadcast room, and the WEB front-end engine can call the monitoring interface so as to obtain monitored live broadcast messages. And finally, the WEB front-end engine sets the display information of the front-end page according to the obtained live broadcast message.
To sum up, in the message monitoring scheme provided in this embodiment of the present application, in the live broadcast process, the terminal device 100 held by the anchor terminal or the terminal device 100 held by the audience terminal may receive the application message pushed by the server 200 through the message receiver, where the application message includes a bullet screen message, a gift message, and the like. And displaying the message in the live broadcast room according to the received application message. And the monitoring interface created in advance is used for monitoring the live broadcast message in the live broadcast room, and the WEB front-end engine can call the monitoring interface, so that the target live broadcast message monitored by the monitoring interface is obtained. And the WEB front-end engine can set the display information on the front-end page according to the obtained live broadcast message. Thus, the WEB front-end engine can dynamically set the display content of the front-end page based on the live broadcast messages in the live broadcast room.
Referring to fig. 9, in order to perform corresponding steps in the foregoing embodiment and various possible manners, an implementation manner of the message monitoring apparatus 160 is given below, and optionally, the message monitoring apparatus 160 may adopt the device structure of the electronic device shown in fig. 2. It should be noted that the basic principle and the generated technical effect of the message monitoring apparatus 160 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and corresponding contents in the above embodiments may be referred to. The message monitoring device 160 includes:
a receiving module 161, configured to receive the application message pushed by the server 200, and perform message display in a live broadcast room of the live broadcast application according to the application message. It is understood that the receiving module 161 may be configured to perform the step S310, and for a detailed implementation of the receiving module 161, reference may be made to the content related to the step S310.
And the monitoring module 162 is configured to monitor the target live broadcast message in the live broadcast room through a pre-created monitoring interface. It is understood that the listening module 162 can be used to perform the step S320, and the detailed implementation of the listening module 162 can refer to the above description related to the step S320.
The calling module 163 is configured to call the monitoring interface through a WEB front-end engine, so as to obtain a target live broadcast message monitored by the monitoring interface. It is understood that the calling module 163 can be used to execute the step S330, and for the detailed implementation of the calling module 163, reference can be made to the contents related to the step S330.
The message monitoring device 160 provided in the embodiment of the present application can execute the message monitoring method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.
Alternatively, the modules may be stored in the memory 120 shown in fig. 2 in the form of software or Firmware (Firmware) or be fixed in an Operating System (OS) of the electronic device, and may be executed by the processor 110 in fig. 2. Meanwhile, data, codes of programs, and the like required to execute the above-described modules may be stored in the memory 120.
Embodiments of the present application also provide a machine-readable storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform operations related to the message monitoring method provided in any of the embodiments of the present application.
To sum up, the message monitoring method, the message monitoring apparatus, the electronic device, and the machine-readable storage medium provided in the embodiment of the present application display a message in a live broadcast room of a live broadcast application according to an application message after receiving the application message pushed by the server 200 by creating a monitoring interface that can be called by the WEB front-end engine in advance. And finally, calling the monitoring interface through a WEB front-end engine so as to obtain the target live broadcast message monitored by the monitoring interface. Therefore, the WEB front-end engine can dynamically acquire the live broadcast message in the live broadcast room, and further can set the information in the loaded page according to the acquired live broadcast message, so that the live broadcast related information is displayed on the page.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (11)

1. A message monitoring method is applied to a terminal device which is communicated with a server, wherein the terminal device is provided with a live broadcast application, and the method comprises the following steps:
receiving an application message pushed by the server, and displaying the message in a live broadcast room of the live broadcast application according to the application message;
monitoring a target live broadcast message in the live broadcast room through a pre-established monitoring interface;
and calling the monitoring interface through a WEB front-end engine to obtain the target live broadcast message monitored by the monitoring interface.
2. The message listening method according to claim 1, wherein the method further comprises:
and setting display information of a front-end page of the live broadcast application according to the target live broadcast message through the WEB front-end engine.
3. The message listening method according to claim 2, wherein the method further comprises:
setting an interface security domain name in a Software Development Kit (SDK) in advance so that a front-end page under the interface security domain name has the authority of calling a monitoring interface of the SDK;
and introducing the SDK into a front-end page under the interface security domain name.
4. The message listening method according to claim 3, wherein the method further comprises:
acquiring the message type of the live broadcast message to be monitored by the WEB front-end engine;
and registering corresponding monitoring information in the SDK according to the message type.
5. The message monitoring method according to claim 4, wherein the step of monitoring the target live message in the live broadcast room through a pre-created monitoring interface comprises:
acquiring a message type contained in monitoring information registered in the SDK in advance;
and monitoring the target live broadcast message corresponding to the message type in the live broadcast room through a pre-established monitoring interface.
6. The message monitoring method according to claim 1, wherein the step of receiving the application message pushed by the server and displaying the message in a live broadcast room of the live broadcast application according to the application message comprises:
receiving the application message pushed by the server, and caching the received application message into a pre-established message queue;
and extracting the application message from the message queue according to the current live network state, and displaying the message in a live broadcast room of the live broadcast application according to the extracted application message.
7. The message monitoring method according to claim 2, wherein the step of setting, by the WEB front-end engine, presentation information of a front-end page of the live application according to the target live information includes:
counting target live broadcast messages monitored within a preset time length to obtain a counting result, wherein the target live broadcast messages comprise any one or combination of barrage messages, gift messages, anchor broadcast messages, live broadcast type messages, live broadcast room messages and watching user messages;
and setting display information on a front-end page of the live broadcast application according to the statistical result through the WEB front-end engine.
8. The message monitoring method according to claim 3, wherein the monitoring interface is a JSbridge interface specified by a Javascript bridge.js file in the SDK.
9. A message monitoring device is applied to a terminal device which is communicated with a server, wherein the terminal device is provided with a live broadcast application, and the device comprises:
the receiving module is used for receiving the application message pushed by the server and displaying the message in a live broadcast room of the live broadcast application according to the application message;
the monitoring module is used for monitoring the target live broadcast message in the live broadcast room through a pre-established monitoring interface;
and the calling module is used for calling the monitoring interface through a WEB front-end engine so as to obtain the target live broadcast message monitored by the monitoring interface.
10. An electronic device comprising one or more storage media and one or more processors in communication with the storage media, the one or more storage media storing processor-executable machine-executable instructions that, when executed by the electronic device, are executed by the processors to perform the message listening method of any one of claims 1-8.
11. A machine-readable storage medium having stored thereon machine-executable instructions which, when executed, implement the message listening method of any one of claims 1-8.
CN201911167899.5A 2019-11-25 2019-11-25 Message monitoring method and device, electronic equipment and machine-readable storage medium Pending CN110971596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911167899.5A CN110971596A (en) 2019-11-25 2019-11-25 Message monitoring method and device, electronic equipment and machine-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911167899.5A CN110971596A (en) 2019-11-25 2019-11-25 Message monitoring method and device, electronic equipment and machine-readable storage medium

Publications (1)

Publication Number Publication Date
CN110971596A true CN110971596A (en) 2020-04-07

Family

ID=70031564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911167899.5A Pending CN110971596A (en) 2019-11-25 2019-11-25 Message monitoring method and device, electronic equipment and machine-readable storage medium

Country Status (1)

Country Link
CN (1) CN110971596A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711689A (en) * 2020-06-16 2020-09-25 深圳市思迪信息技术股份有限公司 System for live broadcasting image and text in casting and watching system, equipment and storage medium
CN111741334A (en) * 2020-06-16 2020-10-02 广州酷狗计算机科技有限公司 Live broadcast data generation method, live broadcast data display method, device and equipment
CN112287643A (en) * 2020-09-01 2021-01-29 上海泛微软件有限公司 Message monitoring method, device, equipment and computer readable storage medium
CN113259704A (en) * 2021-05-19 2021-08-13 杭州米络星科技(集团)有限公司 Method, device and equipment for initializing live broadcast room and storage medium
CN113660533A (en) * 2021-07-16 2021-11-16 广州虎牙科技有限公司 Live broadcast data statistical method, electronic equipment and computer readable device
CN115190347A (en) * 2022-05-31 2022-10-14 北京达佳互联信息技术有限公司 Message processing method, message processing device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140189435A1 (en) * 2012-12-31 2014-07-03 Johnson Manuel-Devadoss System and method to extend the capabilities of a web browser of a web application issue root cause determination techniques
CN108959401A (en) * 2018-06-05 2018-12-07 腾讯科技(深圳)有限公司 A kind of method for monitoring and analyzing, system, server and storage medium that information is propagated
CN110086814A (en) * 2019-04-30 2019-08-02 广州酷狗计算机科技有限公司 A kind of method, apparatus and storage medium of data acquisition
CN110278464A (en) * 2019-07-01 2019-09-24 广州酷狗计算机科技有限公司 The method and apparatus for showing list

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140189435A1 (en) * 2012-12-31 2014-07-03 Johnson Manuel-Devadoss System and method to extend the capabilities of a web browser of a web application issue root cause determination techniques
CN108959401A (en) * 2018-06-05 2018-12-07 腾讯科技(深圳)有限公司 A kind of method for monitoring and analyzing, system, server and storage medium that information is propagated
CN110086814A (en) * 2019-04-30 2019-08-02 广州酷狗计算机科技有限公司 A kind of method, apparatus and storage medium of data acquisition
CN110278464A (en) * 2019-07-01 2019-09-24 广州酷狗计算机科技有限公司 The method and apparatus for showing list

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711689A (en) * 2020-06-16 2020-09-25 深圳市思迪信息技术股份有限公司 System for live broadcasting image and text in casting and watching system, equipment and storage medium
CN111741334A (en) * 2020-06-16 2020-10-02 广州酷狗计算机科技有限公司 Live broadcast data generation method, live broadcast data display method, device and equipment
CN111741334B (en) * 2020-06-16 2022-08-26 广州酷狗计算机科技有限公司 Live broadcast data generation method, live broadcast data display method, device and equipment
CN112287643A (en) * 2020-09-01 2021-01-29 上海泛微软件有限公司 Message monitoring method, device, equipment and computer readable storage medium
CN112287643B (en) * 2020-09-01 2023-01-24 上海泛微软件有限公司 Message monitoring method, device, equipment and computer readable storage medium
CN113259704A (en) * 2021-05-19 2021-08-13 杭州米络星科技(集团)有限公司 Method, device and equipment for initializing live broadcast room and storage medium
CN113259704B (en) * 2021-05-19 2023-06-09 杭州米络星科技(集团)有限公司 Live broadcast room initialization method, device, equipment and storage medium
CN113660533A (en) * 2021-07-16 2021-11-16 广州虎牙科技有限公司 Live broadcast data statistical method, electronic equipment and computer readable device
CN115190347A (en) * 2022-05-31 2022-10-14 北京达佳互联信息技术有限公司 Message processing method, message processing device, electronic equipment and storage medium
CN115190347B (en) * 2022-05-31 2024-01-02 北京达佳互联信息技术有限公司 Message processing method, message processing device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110971596A (en) Message monitoring method and device, electronic equipment and machine-readable storage medium
US20150262031A1 (en) Method And Apparatus For Identifying Picture
US20140149877A1 (en) Method and terminal device for displaying push message
CN111756917B (en) Information interaction method, electronic device and computer readable medium
US20170329565A1 (en) Information processing method, client, server, and computer-readable storage medium
CN109597538B (en) Display method, device and equipment of operable control and readable medium
CN106933839B (en) Page jump method and device
US20170093779A1 (en) Incorporating dynamic content in messaging applications
CN110209315B (en) Method and device for displaying characters in user interface, electronic equipment and storage medium
WO2015175143A1 (en) Self-destructing ad messages in messaging apps
CN107770380B (en) Information processing method and device
CN108965932B (en) Continuous wheat window display method and device
JP2011054174A (en) Sms-sponsored wap advertisement
US20140075341A1 (en) Providing Feedback for Screen Sharing
CN112653670A (en) Service logic vulnerability detection method, device, storage medium and terminal
CN106155468B (en) Alarm display method and terminal
CN112738050A (en) Integrating additional information into a telecommunications call
CN108933947B (en) Bullet screen display method and device
US20150156149A1 (en) Method and apparatus for sharing content from third party websites via messaging
CN110674481B (en) Account registration method, device, equipment and storage medium of application program
CN110069186B (en) Method and equipment for displaying operation interface of application
CN106294388B (en) Page display method and terminal
CN111382039A (en) Method, device, electronic equipment and storage medium for reporting user behavior event
CN111259287B (en) Page content display method and device, electronic equipment and storage medium
CN110083321B (en) Content display method and device, intelligent screen projection terminal and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200407

RJ01 Rejection of invention patent application after publication