WO2019024477A1 - Bullet screen data display method and apparatus, electronic device, and readable storage medium - Google Patents

Bullet screen data display method and apparatus, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2019024477A1
WO2019024477A1 PCT/CN2018/075484 CN2018075484W WO2019024477A1 WO 2019024477 A1 WO2019024477 A1 WO 2019024477A1 CN 2018075484 W CN2018075484 W CN 2018075484W WO 2019024477 A1 WO2019024477 A1 WO 2019024477A1
Authority
WO
WIPO (PCT)
Prior art keywords
background
barrage
live broadcast
barrage data
connection channel
Prior art date
Application number
PCT/CN2018/075484
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 WO2019024477A1 publication Critical patent/WO2019024477A1/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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/485End-user interface for client configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software

Definitions

  • the present invention relates to the field of Internet mobile video live broadcast, and in particular, to a barrage data display method, device, electronic device and readable storage medium.
  • the barrage displayed in the video is an important tool for people to interact.
  • the live video client can realize the display of the barrage in the video through the interaction between the background of the client and the front end of the client.
  • this method requires the client background program to work together with the client front-end program to realize the display of the barrage. This greatly reduces the operability of the client when displaying the barrage and the efficiency of the display of the barrage.
  • an object of the present invention includes providing a barrage data display method, apparatus, electronic device, and readable storage medium to effectively improve at least one of the above disadvantages.
  • an embodiment of the present invention provides a method for displaying a barrage data, the method being applied to a client, where the client includes a front end and a background.
  • the method includes: obtaining, by the background, a connection signal between the target live broadcasts, and creating a first connection channel connecting the front end; the background registering a port object of the calling program to the first connection channel, and sending the server
  • the barrage data is sent to the front end through the first connection channel; the front end invokes the background program according to the port object to display the barrage data.
  • the embodiment of the present invention provides a first possible implementation manner of the first aspect, wherein the step of acquiring a connection signal between the target live broadcasts and creating a first connection channel connecting the front end includes:
  • the background monitors the connection signal of the target live broadcast room
  • the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
  • the embodiment of the present invention provides the second possible implementation manner of the first aspect, where the front end includes multiple live rooms, the front end A connection signal is generated when the live broadcast room is loaded, and the front end selects at least one live broadcast room from the plurality of live broadcast rooms as a target live broadcast room, and the background acquires a connection signal between the target live broadcasts, and creates a connection signal connecting the front end.
  • the steps of the first connecting channel include:
  • the background determines a connection signal between the current live broadcasts
  • connection signal between the current live broadcasts is a live broadcast signal of the target live broadcast
  • the background creates a first connection channel that connects the front end to establish a connection between the background and the target live broadcast.
  • the embodiment of the present invention provides a third possible implementation manner of the first aspect, where the live broadcast room is pre-configured with corresponding identification information;
  • the obtaining, by the background, the connection signal of the target live broadcast, and the step of creating the first connection channel connecting the front end includes:
  • the identification information of the current live broadcast is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room;
  • the background creates a first connection channel connecting the front end.
  • the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the first
  • the steps for connecting channels include:
  • the background generation network transport socket object registers the network transport socket object into the first connection channel, wherein the network transport socket object is configured to view the port object in the Serialized in the first connection channel.
  • the embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein the front end is according to the port object
  • the steps of calling the background program to display the barrage data include:
  • the front end acquires the port object registered in the first connection channel
  • the barrage display control of the front end acquires the port object, so that the barrage display control invokes the background program according to the port object to display the barrage data acquired by the front end.
  • the embodiment of the present invention provides a sixth possible implementation manner of the first aspect, wherein the front end of the barrage Before the step of displaying the control to obtain the port object, the method further includes:
  • the front end creates a barrage display control configured to display the barrage data, and sets a page attribute of the barrage display control;
  • the front end sets a query attribute of the barrage display control to enable the barrage display control to establish communication with the background through the query attribute.
  • the embodiment of the present invention provides a seventh possible implementation manner of the first aspect, wherein the port object Pre-configured with a corresponding associated signal, the associated signal is configured to, when the front end acquires the barrage data, call back the program in the background by an associated signal in the barrage data, and send the server to the barrage Before the step of transmitting the data to the front end through the first connection channel, the method further includes:
  • the background matches the barrage data with an associated signal in the port object
  • the background sends the barrage data to the front end through the first connection channel, so that the front end acquires the bullet data.
  • the embodiment of the present invention provides an eighth possible implementation manner of the first aspect, wherein the The method for obtaining the port object by the front-end barrage display control includes:
  • the front end sets a download path of the port object in the barrage display control
  • the front end creates a second connection channel connecting the barrage display control, so that the barrage display control acquires the port object according to the download path and the second connection channel.
  • the embodiment of the present invention provides the tenth possible implementation manner of the first aspect, wherein the front end invokes the background according to the port object.
  • the program further includes:
  • the front end acquires the barrage data
  • the front end invokes the background program through the port object, and sends the barrage data to the background through the first connection channel.
  • the embodiment of the present invention provides the eleventh possible implementation manner of the first aspect, wherein the port object includes a method for transmitting a barrage data,
  • the step of the front end calling the program in the background by the port object, and sending the barrage data to the background through the first connection channel includes:
  • the front end determines a method for transmitting a barrage data corresponding to the port object
  • an embodiment of the present invention provides a barrage data display device, where the device is applied to a client, and the client includes a front end and a background.
  • the device includes: a creation module, a sending module, and a display module.
  • the creating module is configured to obtain a connection signal between the target live broadcasts in the background, and create a first connection channel that connects the front end.
  • the sending module is configured to register, in the background, a port object of the calling program to the first connection channel, and send the barrage data sent by the server to the front end through the first connection channel.
  • the display module is configured to: the front end invokes the background program according to the port object to display the barrage data.
  • the embodiment of the present invention provides a first possible implementation manner of the second aspect, where the creating module includes: a listening unit and a creating unit;
  • the monitoring unit is configured to monitor, in the background, the connection signal of the target live broadcast room;
  • the creating unit is configured to: when the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
  • the embodiment of the present invention provides the second possible implementation manner of the second aspect, wherein the front end includes multiple live rooms, and the front end Generating a connection signal when the live broadcast room is loaded, the front end selects at least one live broadcast room from the plurality of live broadcast rooms as a target live broadcast room, the background acquires a connection signal of the target live broadcast, and the creation unit creates a connection.
  • the method for connecting the first connection channel of the front end includes:
  • the background determines a connection signal between the current live broadcasts
  • connection signal between the current live broadcasts is a live broadcast signal of the target live broadcast
  • the background creates a first connection channel that connects the front end to establish a connection between the background and the target live broadcast.
  • the embodiment of the present invention provides a third possible implementation manner of the second aspect, where the live broadcast room is pre-configured with corresponding identification information; And obtaining, by the background, a connection signal of the target live broadcast, where the creating unit creates a first connection channel that connects the front end includes:
  • the identification information of the current live broadcast is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room;
  • the background creates a first connection channel connecting the front end.
  • the embodiment of the present invention provides a fourth possible implementation manner of the second aspect, where the display module includes: acquiring unit and displaying unit;
  • the acquiring unit is configured to acquire, by the front end, the port object registered in the first connection channel;
  • the display unit is configured to acquire the port object by the barrage display control of the front end, so that the barrage display control invokes the background program according to the port object to acquire the bullet acquired by the front end Curtain data display.
  • the embodiment of the present invention provides a fifth possible implementation manner of the second aspect, wherein the display unit is at the front end Before the step of displaying the port object by the barrage display control, the display unit is further configured to:
  • the front end creates a barrage display control configured to display the barrage data, and sets a page attribute of the barrage display control;
  • the front end sets a query attribute of the barrage display control to enable the barrage display control to establish communication with the background through the query attribute.
  • the embodiment of the present invention provides a sixth possible implementation manner of the second aspect, wherein the port object is pre-configured
  • the associated signal is configured to: when the front end acquires the barrage data, call back the program in the background by using an associated signal in the barrage data, and pass the barrage data sent by the server Before the step of transmitting the first connection channel to the front end, the display unit is further configured to:
  • the background matches the barrage data with an associated signal in the port object
  • the background sends the barrage data to the front end through the first connection channel, so that the front end acquires the barrage data.
  • an embodiment of the present invention provides an electronic device including a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program The steps of the above method are implemented.
  • an embodiment of the present invention provides a computer readable storage medium having processor-executable non-volatile program code, the program code causing the processor to perform the method.
  • the background of the client obtains the connection signal when the target live broadcast is loaded, establishes a first connection channel to connect to the front end of the client, and registers the port object into the first connection channel.
  • the client's background sends the barrage data to the front end of the client through the first connection channel
  • the client's front end invokes the client background program according to the acquired port object to display the barrage data. Therefore, the front end of the client displays the barrage by calling the program in the background of the client, which greatly improves the operability of displaying the barrage and the work efficiency when displaying the barrage.
  • FIG. 1 is a schematic diagram showing interaction between a terminal device and a server in an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of a terminal device in an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for displaying a barrage data according to a first embodiment of the present invention
  • step S100 is a sub-flowchart of step S100 in a method for displaying a barrage data according to a first embodiment of the present invention
  • FIG. 5 is a sub-flow diagram of step S300 in a method for displaying a barrage data according to a first embodiment of the present invention
  • FIG. 6 is a functional block diagram of a barrage data display device according to a second embodiment of the present invention.
  • FIG. 7 is a functional block diagram of a module for creating a barrage data display device according to a second embodiment of the present invention.
  • FIG. 8 is a functional block diagram of a display module in a barrage data display device according to a second embodiment of the present invention.
  • FIG. 1 is a schematic diagram of interaction between the terminal device 10 and the server 11.
  • the server 11 is in communication with one or more terminal devices 10 via the network 12 for data communication or interaction.
  • the server 11 may be a web server, a database server, or the like.
  • the terminal device 10 may be a personal computer (PC), a tablet computer, a smart phone, a personal digital assistant (PDA), or the like.
  • the client can be installed in the terminal device 10, and the server 11 stores the barrage data.
  • the terminal device 10 acquires the barrage data sent by the server 11 through interaction with the server 11, and displays the barrage data in the display interface of the client.
  • the terminal device 10 also interacts with the server 11.
  • the terminal device 10 can transmit the barrage data input by the user into the client to the server 11 so that the server 11 distributes the barrage data to the other terminal devices 10.
  • FIG. 2 is a block diagram of the terminal device 10.
  • the terminal device 10 includes: a barrage data display device, a memory 101, a memory controller 102, a processor 103, a peripheral interface 104, an input and output unit 105, and a display unit 106.
  • the memory 101, the memory controller 102, the processor 103, the peripheral interface 104, the input and output unit 105, and the display unit 106 are electrically connected directly or indirectly to each other to implement data transmission or interaction.
  • the components can be electrically connected to one another via one or more communication buses or signal lines.
  • the barrage data display device includes at least one software function module that can be stored in the memory or in a Windows operating system of the terminal device 10 in the form of software or firmware.
  • the processor 103 is configured to execute an executable module stored in the memory 101, such as a software function module or a computer program included in the barrage data display device.
  • the memory 101 may be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like.
  • RAM random access memory
  • ROM read only memory
  • PROM programmable read-only memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the memory 101 is configured to store a program, and the processor 103 executes the program after receiving the execution instruction, and the method executed by the terminal device 10 defined by the process disclosed in any embodiment of the present invention may be applied to
  • the processor 103 is implemented by or by the processor 103.
  • the processor 103 can be an integrated circuit chip with signal processing capabilities.
  • the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP for short), and the like; or a digital signal processor (DSP) or an application specific integrated circuit ( ASICs, off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention.
  • the general purpose processor 103 can be a microprocessor or the processor can be any conventional processor or the like.
  • the peripheral interface 104 couples various input and output units 105 to the processor 103 and the memory 101.
  • the peripheral interface, processor, and memory controller can be implemented in a single chip. In other instances, they can be implemented by separate chips.
  • the input output unit 105 is configured to provide input to the user to enable user interaction with the data collection terminal.
  • the input and output unit may be, but not limited to, a mouse, a keyboard, and the like.
  • the display unit 106 provides an interactive interface, such as a user interface, or is configured to display image data to the user for reference between the mobile terminal and the user.
  • the display unit may be a liquid crystal display or a touch display.
  • a touch display it can be a capacitive touch screen or a resistive touch screen that supports single-point and multi-touch operations. Supporting single-point and multi-touch operations means that the touch display can sense the simultaneous touch operation from one or more positions on the touch display, and the touch operation is performed by the processor. Calculation and processing.
  • FIG. 3 shows a method flow of a method for displaying a barrage data according to a first embodiment of the present invention.
  • the method for displaying a barrage data is applied to a client to implement a background of a client and a front end of a client. Interaction between.
  • the background of the client may be the bottom layer of the client, which includes the logical control plane of the client.
  • the client's front end can be the client's interface presentation layer, which includes the client's control layout, hue, font, and execution control response.
  • the method flow of the barrage data display method includes: step S100, step S200, and step S300.
  • Step S100 The background acquires a connection signal between target live broadcasts, and creates a first connection channel that connects the front end.
  • the corresponding live room list can be displayed on the client.
  • the user first clicks to open the client installed on the terminal device, so that the terminal device can be loaded or invoked in the background to enable the terminal device to
  • the client displays a list of corresponding live rooms.
  • the loading display of the target live broadcast room generates a connection signal correspondingly, and the connection signal is a newConnection signal, and the background of the client can be judged by monitoring the connection signal. Whether the target live broadcast is loaded or not.
  • the background monitoring of the client obtains the connection signal
  • the background determines that the target live broadcast is loaded and displayed, and the background of the client establishes a first connection channel connecting the front end of the client according to the preset control program, so as to implement the client background and the client. End-end communication.
  • the first connection channel may be a QWebChannel object.
  • the live broadcast room may be pre-configured with corresponding identification information
  • the first connection connecting the front end is created by determining a connection signal between the target live broadcasts by determining the identification information of the target live broadcast room.
  • the identifier information of the current live broadcast is compared with the identifier information of the target live broadcast.
  • the identifier information of the current live broadcast is the identifier information of the target live broadcast
  • the background creates a first connection channel connecting the front end.
  • the background execution of the client obtains the connection signal of the target live broadcast and creates the first connection channel connecting the front end of the client, it can be implemented based on the QT framework.
  • the QT framework is an object-oriented development framework.
  • Step S200 The background registeres the port object of the calling program to the first connection channel, and sends the barrage data sent by the server to the front end through the first connection channel.
  • the client's background constructs a port class according to the preset control program, and the port class can be the RoomJsService class, and the port class inherits from the QObject for the front end of the client.
  • Callback background program to display the captured barrage data, or send the barrage data input by the user to the background through the callback background program.
  • the client's background can register the port object in the port class to the first connection channel by using the registerObject method.
  • the port object can be a RoomJsService object, and the registerObject method is configured to register the port object to the first connection channel.
  • the background of the client matches the barrage data with the associated signal in the port object, wherein the associated signal is the client_call_chat signal, which is configured to be acquired by the front end of the client.
  • the callback client backend program is implemented by the associated signal in the barrage data.
  • the background of the client registers the port object of the calling program to the first connection channel, and sends the barrage data sent by the server to the front end through the first connection channel, or can be implemented based on the QT framework.
  • Step S300 The front end invokes the background program according to the port object to display the barrage data.
  • the client object After the client object registers the port object to the first connection channel, and sends the barrage data to the front end of the client through the first connection channel, the front end of the client acquires the port object and the barrage data accordingly. If it is convenient for the front end of the client to display the barrage data, the client needs to create a barrage display control based on QML, wherein QML is a descriptive scripting language.
  • the client first creates a QML engine in QT, which is the QQmlApplicationEngine object, which is configured to create a subsequent barrage display control.
  • the client then obtains the context address in the QML engine and binds the context address to the QML engine, where the context address is the QQmlContext address, and the context address is configured to create a subsequent barrage display control.
  • the client binds the port object to the context corresponding to the context address of the QML engine, so that the function of the subsequently created barrage display control can pass the port object, and the first connection channel calls the client background program.
  • the client creates a barrage display control through the QML engine.
  • the barrage display control is the NativeWebView control, which can be configured to display the barrage data through the barrage display control.
  • the client can also set the basic properties of the barrage display control, for example, setting the ID of the barrage display control, setting the display position of the barrage display control on the front end of the client, and setting the barrage Shows the display size of the control on the client front end, and so on.
  • the client displays the page property of the control by displaying the page property of the barrage display to display the barrage display control to the front end of the client.
  • the page attribute is the page attribute, which is the script path address of a client front end, to pass the page attribute.
  • the barrage display controls are displayed to the front end of the client. Furthermore, in order to facilitate the display of the barrage display control with the client's background, the client can also set the query property of the barrage display control, and the query property is the query property.
  • the Barrage Display Control can establish background communication with the client by querying properties.
  • the client After the client completes the setting of various properties of the barrage display control, the client completes the creation of the barrage display control, and the barrage display control is also located at the front end of the client.
  • the front end of the client sends the obtained port object and the barrage data to the barrage display control, and the barrage display control of the client front end passes the first connection according to the display barrage data method in the port object.
  • the channel calls the program in the background of the client, and then the barrage data can be displayed in the barrage display control according to the called program.
  • the port object also includes the method of sending the barrage data, and the method of sending the barrage data is the sendRawBarrage method.
  • the front end of the client After the port object is obtained by the front end of the client, when the front end of the client obtains the barrage data input by the user, the front end of the client also calls the client background through the first connection channel according to the method of sending the barrage data in the port object.
  • the program according to the called program, can send the barrage data input by the user to the background of the client through the first connection channel, so that the client's background sends the barrage data input by the user to the server.
  • FIG. 4 shows a sub-flow of the method of step S100 in the method for displaying the barrage data provided by the first embodiment of the present invention.
  • step S100 includes: step S110 and step S120.
  • Step S110 The background monitors the connection signal between the target live broadcasts.
  • the background of the client starts to monitor the connection signal of the target live broadcast room, wherein the target live broadcast room monitored by the client's background may be any live broadcast room in the live broadcast list.
  • the client's background When the client is loaded and run on the terminal device, the client's background first creates a development interface object, that is, the QWebSocketServer object.
  • the development interface object is configured to connect to the network service of the client front end, that is, the WebSocket of the client front end.
  • the client's background call listener settings ie listen settings.
  • the client's background call listener setting is configured to listen for the connection signal obtained by the development interface object.
  • m_socketServer newQWebSocketServer(serverName,QWebSocketServer::NonSecureMode,this);
  • the client's background uses the signal and slot calculations to monitor the connection signals of the development interface objects according to the QT development mechanism. It can be understood that by developing the interface object and the network service connection of the client front end, when the client is loaded and run on the terminal device, the background of the client can be monitored through the development interface object to the front end of the client when loading the target live broadcast room. The resulting connection signal.
  • Step S120 When the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
  • the client's background obtains the connection signal generated by the target live broadcast during the loading by monitoring the development interface object.
  • the background of the client creates a first connection channel connecting the front end according to the preset control program.
  • the client's background builds a network transport socket class, the WebSocketTransport class.
  • the network transport socket class inherits from QWebChannelAbstractTransport, where QWebChannelAbstractTransport is the interface provided by QT, which is configured to establish the first connection channel and Communication between client front ends.
  • QWebChannelAbstractTransport is the interface provided by QT, which is configured to establish the first connection channel and Communication between client front ends.
  • the background of the client can generate a network socket pointer by using the return waiting connection method in the slot processing function handleConnection calculated by the slot according to the obtained connection signal.
  • the return waiting connection method is nextPendingConnection, which is configured to generate a pointer according to the connection signal acquired by the development interface object.
  • the network socket pointer is the QWebSocket pointer, which facilitates subsequent callbacks.
  • the client generates a network transport socket object according to the created network transport socket class initialization, and the network transport socket object is the WebSocketTransport object.
  • the client then binds the network socket pointer to the network transport socket object and registers the network transport socket object of the bound network socket pointer to the first connection channel created.
  • the network transmission socket object can realize the interaction between the background of the client and the front end of the client in the first connection channel.
  • the network transport socket object is configured to serialize the port object in the first connection channel, or serialize the client's front end callback program in the first connection channel, or send the client front end to the background.
  • the instruction is deserialized in the first connection channel.
  • WebSocketTransport*transport new WebSocketTransport(socket);
  • FIG. 5 shows a sub-flow of the method of step S300 in the method for displaying the barrage data provided by the first embodiment of the present invention.
  • step S300 includes: step S310 and step S320.
  • Step S310 The front end acquires the port object registered in the first connection channel.
  • the front end of the client After the front end of the client establishes a connection through the first connection channel and the background of the client, when the client's background registers the port object to the first connection channel, the front end of the client also acquires the port object through the transmission of the first connection channel.
  • Step S320 The front-end barrage display control acquires the port object, so that the barrage display control invokes the background program according to the port object to display the barrage data acquired by the front end.
  • the barrage display control of the front end of the client does not obtain the barrage display control. Therefore, the front end of the client needs to establish communication with the barrage display control, and the barrage display control can obtain the port object and the barrage data from the front end of the client.
  • the front end of the client is set in the barrage display control to set the download path of the port object on the front end of the client.
  • the download path is qwebchannel.js, which is configured to display the port object according to the download path to the front end of the client.
  • the front end of the client also creates a front end of the client and a second connection channel of the barrage display control, and the second connection channel may also be a QWebChannel object, which is configured to display the barrage display control through the second connection channel, according to the download path. Go to the front end of the client to download the port object.
  • the barrage display control After the barrage display control acquires the port object and the barrage data through the second connection channel, the barrage display control sends the control command to the second connection channel and the second connection channel according to the method of displaying the barrage data in the port object.
  • the client's background can implement the callback client's background program, and then display the number of the barrage in the barrage display control according to the callback program.
  • the background of the client obtains the connection signal when the target live broadcast is loaded, establishes a first connection channel to connect to the front end of the client, and registers the port object into the first connection channel.
  • the client's background sends the barrage data to the front end of the client through the first connection channel
  • the client's front end invokes the client background program according to the acquired port object to display the barrage data. Therefore, the front end of the client displays the barrage by calling the program in the background of the client, which greatly improves the operability of displaying the barrage and the work efficiency when displaying the barrage.
  • FIG. 6 is a functional block diagram of a barrage data display device 100 according to a second embodiment of the present invention.
  • the barrage data display device 100 includes a creation module 110, a sending module 120, and a display module 130.
  • the creating module 110 is configured to obtain a connection signal between the target live broadcasts in the background, and create a first connection channel that connects the front end.
  • the sending module 120 is configured to register, in the background, a port object of the calling program to the first connection channel, and send the barrage data sent by the server to the front end through the first connection channel.
  • the display module 130 is configured to: the front end invokes the background program according to the port object to display the barrage data.
  • the creating module 110 further includes: a listening unit 111 and a creating unit 112.
  • the monitoring unit 111 is configured to monitor the connection signal of the target live broadcast in the background.
  • the creating unit 112 is configured to: when the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
  • the display module 130 further includes: an obtaining unit 131 and a display unit 132.
  • the obtaining unit 131 is configured to: the front end acquires the port object registered in the first connection channel.
  • the display unit 132 is configured to acquire the port object by the barrage display control of the front end, so that the barrage display control invokes the background program according to the port object to acquire the Barrage data display.
  • the front end includes a plurality of live broadcast rooms, and the front end generates a connection signal when the live broadcast room is loaded, and the front end selects at least one live broadcast room from the plurality of live broadcast rooms as a target live broadcast.
  • the method for obtaining a connection signal between the target live broadcasts in the background, the method for the creation unit to create the first connection channel connecting the front end includes: determining, by the background, a connection signal between the current live broadcasts; The live broadcast signal of the target live broadcast determines that the current live broadcast room is the target live broadcast room; the background creates a first connection channel that connects the front end to establish a connection between the background and the target live broadcast room.
  • the live broadcast room is pre-configured with the corresponding identification information; the background obtaining the connection signal of the target live broadcast, and the method for the creation unit to create the first connection channel connecting the front end includes: acquiring the identification information of the current live broadcast; When the identification information of the live broadcast room is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room; the background creates a first connection channel that connects the front end.
  • the identification information of the live broadcast room is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room; the background creates a first connection channel that connects the front end.
  • the display unit is further configured to: before the step of the front-end barrage display control acquiring the port object, the display unit: the front end creates a barrage display control configured to display the barrage data, And setting a page attribute of the barrage display control; the front end setting a query attribute of the barrage display control, so that the barrage display control establishes communication with the background by using the query attribute.
  • the display unit the front end creates a barrage display control configured to display the barrage data, And setting a page attribute of the barrage display control; the front end setting a query attribute of the barrage display control, so that the barrage display control establishes communication with the background by using the query attribute.
  • the port object is pre-configured with a corresponding associated signal, and the associated signal is configured to, when the front end acquires the barrage data, call back the background program by using an associated signal in the barrage data,
  • the display unit is further configured to: the background matches the barrage data with an associated signal in the port object The background sends the barrage data to the front end through the first connection channel, so that the front end acquires the barrage data.
  • Embodiments of the present invention also provide a computer readable storage medium having processor-executable non-volatile program code, the program code causing the processor to perform the above-described barrographic data method.
  • An embodiment of the present invention further provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program.
  • a computer program product of a computer readable storage medium for executing a processor-executable non-volatile program code comprising a computer readable storage medium storing program code, the program code including instructions are available
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • the embodiments of the present invention provide a barrage data display method and apparatus, and a computer readable storage medium.
  • the barrage data display method is applied to the client, and the client includes a front end and a background.
  • the method includes: obtaining a connection signal of the target live broadcast in the background, and creating a first connection channel connecting the front end; the background registering the port object of the calling program to the first connection channel, and sending the barrage data sent by the server to the first connection channel to the The front end; the front end calls the background program based on the port object to display the barrage data.
  • the background of the client obtains the connection signal when the target live broadcast is loaded, establishes a first connection channel to connect to the front end of the client, and registers the port object into the first connection channel.
  • the client's background sends the barrage data to the front end of the client through the first connection channel
  • the client's front end invokes the client background program according to the acquired port object to display the barrage data. Therefore, the front end of the client displays the barrage by calling the program in the background of the client, which greatly improves the operability of displaying the barrage and the work efficiency when displaying the barrage.
  • the background of the client is connected to the connection signal when the target live broadcast is loaded, and the first connection channel is established to connect the front end of the client, and Register the port object to the first connection channel.
  • the client's background sends the barrage data to the front end of the client through the first connection channel
  • the client's front end invokes the client background program according to the acquired port object to display the barrage data. Therefore, the front end of the client displays the barrage by calling the program in the background of the client, which greatly improves the operability of displaying the barrage and the work efficiency when displaying the barrage.

Abstract

Provided are a bullet screen data display method and apparatus, and a computer-readable storage medium, which belong to the field of Internet mobile terminal video live broadcasting. The bullet screen data display method is applied to a client, and the client comprises a front end and a background. The method comprises: a background acquiring a connection signal of a target live broadcasting room and creating a first connection channel for connecting to a front end; the background registering a port object, which calls a program, to the first connection channel and sending, to the front end and by means of the first connection channel, bullet screen data sent by a server; and the front end displaying the bullet screen data according to the program, of the background, called by the port object. A front end of a client displays a bullet screen by calling a program of a background of the client, such that the operability when displaying the bullet screen and the working efficiency when displaying the bullet screen are greatly improved.

Description

弹幕数据展示方法、装置、电子设备及可读存储介质Barrage data display method, device, electronic device and readable storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年08月02日提交中国专利局的申请号为2017106510232、名称为“弹幕数据展示方法及装置、计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2017106510232, entitled "Ball Data Display Method and Apparatus, Computer Readable Storage Medium", filed on August 2, 2017, the entire contents of which are hereby incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及互联网移动端视频直播领域,具体而言,涉及一种弹幕数据展示方法、装置、电子设备及可读存储介质。The present invention relates to the field of Internet mobile video live broadcast, and in particular, to a barrage data display method, device, electronic device and readable storage medium.
背景技术Background technique
随着移动终端的快速发展,移动端视频直播行业越来越火爆,人们可通过移动终端上的视频直播客户端来观看自己所需的直播视频。With the rapid development of mobile terminals, the mobile video live broadcast industry is becoming more and more popular. People can watch the live video they need through the live video client on the mobile terminal.
观看直播视频时,视频中展示的弹幕是人们实现交互的重要工具。目前,视频直播客户端可通过客户端的后台与客户端的前端之间的交互来实现弹幕在视频中的展示。但该方式是需要客户端后台的程序与客户端前端的程序共同工作,才能够实现对弹幕的展示。从而极大的降低了客户端在展示弹幕时的可操作性,以及展示弹幕时的工作效率。When watching live video, the barrage displayed in the video is an important tool for people to interact. At present, the live video client can realize the display of the barrage in the video through the interaction between the background of the client and the front end of the client. However, this method requires the client background program to work together with the client front-end program to realize the display of the barrage. This greatly reduces the operability of the client when displaying the barrage and the efficiency of the display of the barrage.
发明内容Summary of the invention
有鉴于此,本发明的目的包括提供一种弹幕数据展示方法、装置、电子设备及可读存储介质,以有效改善上述缺陷中的至少一个。In view of the above, an object of the present invention includes providing a barrage data display method, apparatus, electronic device, and readable storage medium to effectively improve at least one of the above disadvantages.
本发明的实施例通过如下方式实现:Embodiments of the invention are implemented as follows:
第一方面,本发明实施例提供了一种弹幕数据展示方法,所述方法应用于客户端,所述客户端包括前端和后台。所述方法包括:所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道;所述后台将调用程序的端口对象注册到所述第一连接通道,并将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端;所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据。In a first aspect, an embodiment of the present invention provides a method for displaying a barrage data, the method being applied to a client, where the client includes a front end and a background. The method includes: obtaining, by the background, a connection signal between the target live broadcasts, and creating a first connection channel connecting the front end; the background registering a port object of the calling program to the first connection channel, and sending the server The barrage data is sent to the front end through the first connection channel; the front end invokes the background program according to the port object to display the barrage data.
结合第一方面,本发明实施例提供了第一方面的第一种可能的实施方式,其中,所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道的步骤包括:With reference to the first aspect, the embodiment of the present invention provides a first possible implementation manner of the first aspect, wherein the step of acquiring a connection signal between the target live broadcasts and creating a first connection channel connecting the front end includes:
所述后台监听所述目标直播间的所述连接信号;The background monitors the connection signal of the target live broadcast room;
当所述目标直播间被加载时,所述后台获取所述目标直播间的所述连接信号,并创建连接所述前端的所述第一连接通道。When the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
结合第一方面,或第一方面的第一种可能的实施方式,本发明实施例提供了第一方面的第二种可能的实施方式,其中,所述前端包括多个直播间,所述前端在所述直播间被加载时生成连接信号, 所述前端从所述多个直播间中选择至少一个直播间作为目标直播间,所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道的步骤包括:With reference to the first aspect, or the first possible implementation manner of the first aspect, the embodiment of the present invention provides the second possible implementation manner of the first aspect, where the front end includes multiple live rooms, the front end A connection signal is generated when the live broadcast room is loaded, and the front end selects at least one live broadcast room from the plurality of live broadcast rooms as a target live broadcast room, and the background acquires a connection signal between the target live broadcasts, and creates a connection signal connecting the front end. The steps of the first connecting channel include:
所述后台确定当前直播间的连接信号;The background determines a connection signal between the current live broadcasts;
在当前直播间的连接信号为所述目标直播间的直播信号时,确定当前直播间为所述目标直播间;When the connection signal between the current live broadcasts is a live broadcast signal of the target live broadcast, it is determined that the current live broadcast room is the target live broadcast room;
所述后台创建连接所述前端的第一连接通道,以建立所述后台与所述目标直播间的连接。The background creates a first connection channel that connects the front end to establish a connection between the background and the target live broadcast.
结合第一方面及其第一、二种可能的实施方式之一,本发明实施例提供了第一方面的第三种可能的实施方式,其中,所述直播间预先配置有对应的标识信息;所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道的步骤包括:With reference to the first aspect and one of the first and second possible implementation manners, the embodiment of the present invention provides a third possible implementation manner of the first aspect, where the live broadcast room is pre-configured with corresponding identification information; The obtaining, by the background, the connection signal of the target live broadcast, and the step of creating the first connection channel connecting the front end includes:
获取当前直播间的标识信息;Obtain identification information of the current live broadcast room;
在当前直播间的标识信息为所述目标直播间的标识信息时,确定当前直播间为所述目标直播间;When the identification information of the current live broadcast is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room;
所述后台创建连接所述前端的第一连接通道。The background creates a first connection channel connecting the front end.
结合第一方面及其第一、二、三种可能的实施方式之一,本发明实施例提供了第一方面的第四种可能的实施方式,其中,创建与所述前端的所述第一连接通道的步骤包括:In conjunction with the first aspect and one of the first, second, and third possible implementation manners, the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the first The steps for connecting channels include:
所述后台创建连接所述前端的所述第一连接通道;Creating, in the background, the first connection channel connecting the front end;
所述后台生成网络传输套接字对象,将所述网络传输套接字对象注册到所述第一连接通道中,其中,所述网络传输套接字对象配置成将所述端口对象在所述第一连接通道中序列化。The background generation network transport socket object registers the network transport socket object into the first connection channel, wherein the network transport socket object is configured to view the port object in the Serialized in the first connection channel.
结合第一方面及其第一、二、三、四种可能的实施方式之一,本发明实施例提供了第一方面的第五种可能的实施方式,其中,所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据的步骤包括:With reference to the first aspect and one of the first, second, third and fourth possible implementation manners, the embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein the front end is according to the port object The steps of calling the background program to display the barrage data include:
所述前端获取注册到所述第一连接通道中的所述端口对象;The front end acquires the port object registered in the first connection channel;
所述前端的弹幕展示控件获取所述端口对象,以使所述弹幕展示控件根据所述端口对象调用所述后台的程序来将所述前端获取的所述弹幕数据展示。The barrage display control of the front end acquires the port object, so that the barrage display control invokes the background program according to the port object to display the barrage data acquired by the front end.
结合第一方面及其第一、二、三、四、五种可能的实施方式之一,本发明实施例提供了第一方面的第六种可能的实施方式,其中,所述前端的弹幕展示控件获取所述端口对象的步骤之前,该方法还包括:With reference to the first aspect and one of the first, second, third, fourth and fifth possible embodiments, the embodiment of the present invention provides a sixth possible implementation manner of the first aspect, wherein the front end of the barrage Before the step of displaying the control to obtain the port object, the method further includes:
所述前端创建配置成展示所述弹幕数据的弹幕展示控件,并设置所述弹幕展示控件的页面属性;The front end creates a barrage display control configured to display the barrage data, and sets a page attribute of the barrage display control;
所述前端设定所述弹幕展示控件的查询属性,以使所述弹幕展示控件通过所述查询属性建立与所述后台的通信。The front end sets a query attribute of the barrage display control to enable the barrage display control to establish communication with the background through the query attribute.
结合第一方面及其第一、二、三、四、五、六种可能的实施方式之一,本发明实施例提供了第一方面的第七种可能的实施方式,其中,所述端口对象预先配置有对应的关联信号,所述关联信号配置成当所述前端获取到所述弹幕数据时,以通过弹幕数据中的关联信号回调所述后台的程序,在将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端的步骤之前,该方法还包括:With reference to the first aspect and one of the first, second, third, fourth, fifth and sixth possible implementation manners, the embodiment of the present invention provides a seventh possible implementation manner of the first aspect, wherein the port object Pre-configured with a corresponding associated signal, the associated signal is configured to, when the front end acquires the barrage data, call back the program in the background by an associated signal in the barrage data, and send the server to the barrage Before the step of transmitting the data to the front end through the first connection channel, the method further includes:
所述后台将所述弹幕数据与所述端口对象中的关联信号相匹配;The background matches the barrage data with an associated signal in the port object;
所述后台将所述弹幕数据通过所述第一连接通道发送至所述前端,以使所述前端获取到所述弹 幕数据。The background sends the barrage data to the front end through the first connection channel, so that the front end acquires the bullet data.
结合第一方面及其第一、二、三、四、五、六、七种可能的实施方式之一,本发明实施例提供了第一方面的第八种可能的实施方式,其中,所述前端的弹幕展示控件获取所述端口对象的方法包括:With reference to the first aspect and one of the first, second, third, fourth, fifth, sixth, and seventh possible implementation manners, the embodiment of the present invention provides an eighth possible implementation manner of the first aspect, wherein the The method for obtaining the port object by the front-end barrage display control includes:
所述前端在所述弹幕展示控件中设置所述端口对象的下载路径;The front end sets a download path of the port object in the barrage display control;
所述前端创建连接所述弹幕展示控件的第二连接通道,以使所述弹幕展示控件根据所述下载路径和所述第二连接通道获取所述端口对象。The front end creates a second connection channel connecting the barrage display control, so that the barrage display control acquires the port object according to the download path and the second connection channel.
结合第一方面及其第一至九种可能的实施方式之一,本发明实施例提供了第一方面的第十种可能的实施方式,其中,所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据的步骤之后,还包括:With reference to the first aspect and one of the first to the nine possible embodiments, the embodiment of the present invention provides the tenth possible implementation manner of the first aspect, wherein the front end invokes the background according to the port object. After the procedure of displaying the barrage data, the program further includes:
所述前端获取所述弹幕数据;The front end acquires the barrage data;
所述前端通过所述端口对象调用所述后台的程序,将所述弹幕数据通过所述第一连接通道发送至所述后台。The front end invokes the background program through the port object, and sends the barrage data to the background through the first connection channel.
结合第一方面及其第一至十种可能的实施方式之一,本发明实施例提供了第一方面的第十一种可能的实施方式,其中,所述端口对象包括发送弹幕数据方法,所述前端通过所述端口对象调用所述后台的程序,将所述弹幕数据通过所述第一连接通道发送至所述后台的步骤包括:With reference to the first aspect and one of the first to ten possible implementation manners, the embodiment of the present invention provides the eleventh possible implementation manner of the first aspect, wherein the port object includes a method for transmitting a barrage data, The step of the front end calling the program in the background by the port object, and sending the barrage data to the background through the first connection channel includes:
所述前端确定与所述端口对象对应的发送弹幕数据方法;The front end determines a method for transmitting a barrage data corresponding to the port object;
通过所述第一连接通道调用所述后台;Calling the background through the first connection channel;
根据所述发送弹幕数据方法,将所述弹幕数据通过所述第一连接通道发送至所述后台,以使所述后台将所述弹幕数据发送至所述服务器。第二方面,本发明实施例提供了一种弹幕数据展示装置,所述装置应用于客户端,所述客户端包括前端和后台。所述装置包括:创建模块、发送模块和展示模块。所述创建模块,配置成所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道。所述发送模块,配置成所述后台将调用程序的端口对象注册到所述第一连接通道,并将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端。所述展示模块,配置成所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据。And sending the barrage data to the background through the first connection channel according to the method for transmitting a barrage data, so that the background sends the barrage data to the server. In a second aspect, an embodiment of the present invention provides a barrage data display device, where the device is applied to a client, and the client includes a front end and a background. The device includes: a creation module, a sending module, and a display module. The creating module is configured to obtain a connection signal between the target live broadcasts in the background, and create a first connection channel that connects the front end. The sending module is configured to register, in the background, a port object of the calling program to the first connection channel, and send the barrage data sent by the server to the front end through the first connection channel. The display module is configured to: the front end invokes the background program according to the port object to display the barrage data.
结合第二方面,本发明实施例提供了第二方面的第一种可能的实施方式,其中,所述创建模块包括:监听单元和创建单元;With reference to the second aspect, the embodiment of the present invention provides a first possible implementation manner of the second aspect, where the creating module includes: a listening unit and a creating unit;
所述监听单元,配置成所述后台监听所述目标直播间的所述连接信号;The monitoring unit is configured to monitor, in the background, the connection signal of the target live broadcast room;
所述创建单元,配置成当所述目标直播间被加载时,所述后台获取所述目标直播间的所述连接信号,并创建连接所述前端的所述第一连接通道。The creating unit is configured to: when the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
结合第二方面,或第二方面的第一种可能的实施方式,本发明实施例提供了第二方面的第二种可能的实施方式,其中,所述前端包括多个直播间,所述前端在所述直播间被加载时生成连接信号,所述前端从所述多个直播间中选择至少一个直播间作为目标直播间,所述后台获取目标直播间的连 接信号,所述创建单元创建连接所述前端的第一连接通道的方法包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, the embodiment of the present invention provides the second possible implementation manner of the second aspect, wherein the front end includes multiple live rooms, and the front end Generating a connection signal when the live broadcast room is loaded, the front end selects at least one live broadcast room from the plurality of live broadcast rooms as a target live broadcast room, the background acquires a connection signal of the target live broadcast, and the creation unit creates a connection. The method for connecting the first connection channel of the front end includes:
所述后台确定当前直播间的连接信号;The background determines a connection signal between the current live broadcasts;
在当前直播间的连接信号为所述目标直播间的直播信号时,确定当前直播间为所述目标直播间;When the connection signal between the current live broadcasts is a live broadcast signal of the target live broadcast, it is determined that the current live broadcast room is the target live broadcast room;
所述后台创建连接所述前端的第一连接通道,以建立所述后台与所述目标直播间的连接。The background creates a first connection channel that connects the front end to establish a connection between the background and the target live broadcast.
结合第二方面及其第一、二种可能的实施方式之一,本发明实施例提供了第二方面的第三种可能的实施方式,其中,所述直播间预先配置有对应的标识信息;所述后台获取目标直播间的连接信号,所述创建单元创建连接所述前端的第一连接通道的方法包括:With reference to the second aspect and one of the first and second possible implementation manners, the embodiment of the present invention provides a third possible implementation manner of the second aspect, where the live broadcast room is pre-configured with corresponding identification information; And obtaining, by the background, a connection signal of the target live broadcast, where the creating unit creates a first connection channel that connects the front end includes:
获取当前直播间的标识信息;Obtain identification information of the current live broadcast room;
在当前直播间的标识信息为所述目标直播间的标识信息时,确定当前直播间为所述目标直播间;When the identification information of the current live broadcast is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room;
所述后台创建连接所述前端的第一连接通道。The background creates a first connection channel connecting the front end.
结合第二方面及其第一、二、三种可能的实施方式之一,本发明实施例提供了第二方面的第四种可能的实施方式,其中,所述展示模块包括:获取单元和展示单元;With reference to the second aspect and one of the first, second, and third possible implementation manners, the embodiment of the present invention provides a fourth possible implementation manner of the second aspect, where the display module includes: acquiring unit and displaying unit;
所述获取单元,配置成所述前端获取注册到所述第一连接通道中的所述端口对象;The acquiring unit is configured to acquire, by the front end, the port object registered in the first connection channel;
所述展示单元,配置成所述前端的弹幕展示控件获取所述端口对象,以使所述弹幕展示控件根据所述端口对象调用所述后台的程序来将所述前端获取的所述弹幕数据展示。The display unit is configured to acquire the port object by the barrage display control of the front end, so that the barrage display control invokes the background program according to the port object to acquire the bullet acquired by the front end Curtain data display.
结合第二方面及其第一、二、三、四种可能的实施方式之一,本发明实施例提供了第二方面的第五种可能的实施方式,其中,所述展示单元在所述前端的弹幕展示控件获取所述端口对象的步骤之前,所述展示单元还被配置成:With reference to the second aspect and one of the first, second, third and fourth possible implementation manners, the embodiment of the present invention provides a fifth possible implementation manner of the second aspect, wherein the display unit is at the front end Before the step of displaying the port object by the barrage display control, the display unit is further configured to:
所述前端创建被配置成展示所述弹幕数据的弹幕展示控件,并设置所述弹幕展示控件的页面属性;The front end creates a barrage display control configured to display the barrage data, and sets a page attribute of the barrage display control;
所述前端设定所述弹幕展示控件的查询属性,以使所述弹幕展示控件通过所述查询属性建立与所述后台的通信。The front end sets a query attribute of the barrage display control to enable the barrage display control to establish communication with the background through the query attribute.
结合第二方面及其第一、二、三、四、五种可能的实施方式之一,本发明实施例提供了第二方面的第六种可能的实施方式,其中,所述端口对象预先配置有对应的关联信号,所述关联信号配置成当所述前端获取到所述弹幕数据时,以通过弹幕数据中的关联信号回调所述后台的程序,在将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端的步骤之前,所述展示单元还被配置成:With reference to the second aspect and one of the first, second, third, fourth and fifth possible implementation manners, the embodiment of the present invention provides a sixth possible implementation manner of the second aspect, wherein the port object is pre-configured Correspondingly, the associated signal is configured to: when the front end acquires the barrage data, call back the program in the background by using an associated signal in the barrage data, and pass the barrage data sent by the server Before the step of transmitting the first connection channel to the front end, the display unit is further configured to:
所述后台将所述弹幕数据与所述端口对象中的关联信号相匹配;The background matches the barrage data with an associated signal in the port object;
所述后台将所述弹幕数据通过所述第一连接通道发送至所述前端,以使所述前端获取到所述弹幕数据。The background sends the barrage data to the front end through the first connection channel, so that the front end acquires the barrage data.
第三方面,本发明实施例提供了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device including a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program The steps of the above method are implemented.
第四方面,本发明实施例提供了一种具有处理器可执行的非易失的程序代码的计算机可读存储介质,所述程序代码使所述处理器执行所述方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium having processor-executable non-volatile program code, the program code causing the processor to perform the method.
本发明实施例的有益效果包括:Advantageous effects of embodiments of the present invention include:
客户端的后台通过获取到目标直播间加载时的连接信号,建立第一连接通道来连接客户端的前端,并将端口对象注册到第一连接通道中。客户端的后台在将弹幕数据通过第一连接通道发送至客户端的前端后,客户端的前端则根据获取到的端口对象来调用客户端后台的程序以将弹幕数据进行展示。因此,客户端的前端通过调用客户端后台的程序来展示弹幕,其极大的提高了展示弹幕时的可操作性,以及展示弹幕时的工作效率。The background of the client obtains the connection signal when the target live broadcast is loaded, establishes a first connection channel to connect to the front end of the client, and registers the port object into the first connection channel. After the client's background sends the barrage data to the front end of the client through the first connection channel, the client's front end invokes the client background program according to the acquired port object to display the barrage data. Therefore, the front end of the client displays the barrage by calling the program in the background of the client, which greatly improves the operability of displaying the barrage and the work efficiency when displaying the barrage.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。The above described objects, features, and advantages of the invention will be apparent from the description and appended claims appended claims
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It should be understood that the following drawings show only certain embodiments of the present invention, and therefore It should be seen as a limitation on the scope, and those skilled in the art can obtain other related drawings according to these drawings without any creative work.
图1示出了本发明实施例中终端设备与服务器的交互示意图;FIG. 1 is a schematic diagram showing interaction between a terminal device and a server in an embodiment of the present invention;
图2示出了本发明实施例中终端设备的结构框图;2 is a block diagram showing the structure of a terminal device in an embodiment of the present invention;
图3示出了本发明第一实施例提供的一种弹幕数据展示方法的流程图;FIG. 3 is a flowchart of a method for displaying a barrage data according to a first embodiment of the present invention; FIG.
图4示出了本发明第一实施例提供的一种弹幕数据展示方法中步骤S100的子流程图;4 is a sub-flowchart of step S100 in a method for displaying a barrage data according to a first embodiment of the present invention;
图5示出了本发明第一实施例提供的一种弹幕数据展示方法中步骤S300的子流程图;FIG. 5 is a sub-flow diagram of step S300 in a method for displaying a barrage data according to a first embodiment of the present invention;
图6示出了本发明第二实施例提供的一种弹幕数据展示装置的功能模块图;6 is a functional block diagram of a barrage data display device according to a second embodiment of the present invention;
图7示出了本发明第二实施例提供的一种弹幕数据展示装置中创建模块的功能模块图;7 is a functional block diagram of a module for creating a barrage data display device according to a second embodiment of the present invention;
图8示出了本发明第二实施例提供的一种弹幕数据展示装置中展示模块的功能模块图。FIG. 8 is a functional block diagram of a display module in a barrage data display device according to a second embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of the embodiments of the invention, which are generally described and illustrated in the figures herein, may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the invention in the claims All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures. Therefore, once an item is defined in one figure, it is not necessary to further define and explain it in the subsequent figures. The terms "first", "second", etc. are used only to distinguish a description, and are not to be construed as indicating or implying a relative importance.
如图1所示,图1是终端设备10与服务器11进行交互的示意图。所述服务器11通过网络12与一个或多个终端设备10进行通信连接,以进行数据通信或交互。所述服务器11可以是网络服务器、数据库服务器等。所述终端设备10可以是个人电脑(personal computer,PC)、平板电脑、智能手机、个人数字助理(personal digital assistant,PDA)等。本实施例中客户端可安装在所述终端设备10中,服务器11中存储有弹幕数据。终端设备10通过与服务器11的交互,获取服务器11发送的弹幕数据,并在客户端的显示界面中将弹幕数据展示。终端设备10也通过与服务器11的交互,。终端设备10可将用户输入到客户端中的弹幕数据发送至服务器11,以便服务器11将该弹幕数据分发至其他终端设备10。As shown in FIG. 1, FIG. 1 is a schematic diagram of interaction between the terminal device 10 and the server 11. The server 11 is in communication with one or more terminal devices 10 via the network 12 for data communication or interaction. The server 11 may be a web server, a database server, or the like. The terminal device 10 may be a personal computer (PC), a tablet computer, a smart phone, a personal digital assistant (PDA), or the like. In this embodiment, the client can be installed in the terminal device 10, and the server 11 stores the barrage data. The terminal device 10 acquires the barrage data sent by the server 11 through interaction with the server 11, and displays the barrage data in the display interface of the client. The terminal device 10 also interacts with the server 11. The terminal device 10 can transmit the barrage data input by the user into the client to the server 11 so that the server 11 distributes the barrage data to the other terminal devices 10.
请参阅图2,图2是终端设备10的方框示意图。所述终端设备10包括:弹幕数据展示装置、存储器101、存储控制器102、处理器103、外设接口104、输入输出单元105、显示单元106。Please refer to FIG. 2. FIG. 2 is a block diagram of the terminal device 10. The terminal device 10 includes: a barrage data display device, a memory 101, a memory controller 102, a processor 103, a peripheral interface 104, an input and output unit 105, and a display unit 106.
所述存储器101、存储控制器102、处理器103、外设接口104、输入输出单元105、显示单元106,各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。所述弹幕数据展示装置包括至少一个可以软件或固件(firmware)的形式存储于所述存储器中或固化在所述终端设备10的Windows操作系统中的软件功能模块。所述处理器103配置成执行存储器101中存储的可执行模块,例如所述弹幕数据展示装置包括的软件功能模块或计算机程序。The memory 101, the memory controller 102, the processor 103, the peripheral interface 104, the input and output unit 105, and the display unit 106 are electrically connected directly or indirectly to each other to implement data transmission or interaction. For example, the components can be electrically connected to one another via one or more communication buses or signal lines. The barrage data display device includes at least one software function module that can be stored in the memory or in a Windows operating system of the terminal device 10 in the form of software or firmware. The processor 103 is configured to execute an executable module stored in the memory 101, such as a software function module or a computer program included in the barrage data display device.
其中,存储器101可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。其中,存储器101配置成存储程序,所述处理器103在接收到执行指令后,执行所述程序,后续本发明实施例任一实施例揭示的过程定义的终端设备10所执行的方法可以应用于处理器103中,或者由处理器103实现。The memory 101 may be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like. The memory 101 is configured to store a program, and the processor 103 executes the program after receiving the execution instruction, and the method executed by the terminal device 10 defined by the process disclosed in any embodiment of the present invention may be applied to The processor 103 is implemented by or by the processor 103.
处理器103可以是一种集成电路芯片,具有信号的处理能力。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器103可以是微处理器或者该处理器也可以是任何常规的处理 器等。The processor 103 can be an integrated circuit chip with signal processing capabilities. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP for short), and the like; or a digital signal processor (DSP) or an application specific integrated circuit ( ASICs, off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. The general purpose processor 103 can be a microprocessor or the processor can be any conventional processor or the like.
所述外设接口104将各种输入输出单元105耦合至处理器103以及存储器101。在一些实施例中,外设接口,处理器以及存储控制器可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。The peripheral interface 104 couples various input and output units 105 to the processor 103 and the memory 101. In some embodiments, the peripheral interface, processor, and memory controller can be implemented in a single chip. In other instances, they can be implemented by separate chips.
输入输出单元105配置成提供给用户输入数据实现用户与数据采集终端的交互。所述输入输出单元可以是,但不限于,鼠标和键盘等。The input output unit 105 is configured to provide input to the user to enable user interaction with the data collection terminal. The input and output unit may be, but not limited to, a mouse, a keyboard, and the like.
显示单元106在所述移动终端与用户之间提供一个交互界面,例如用户操作界面,或配置成显示图像数据给用户参考。在本实施例中,所述显示单元可以是液晶显示器或触控显示器。若为触控显示器,其可为支持单点和多点触控操作的电容式触控屏或电阻式触控屏等。支持单点和多点触控操作是指触控显示器能感应到来自该触控显示器上一个或多个位置处同时产生的触控操作,并将该感应到的触控操作交由处理器进行计算和处理。The display unit 106 provides an interactive interface, such as a user interface, or is configured to display image data to the user for reference between the mobile terminal and the user. In this embodiment, the display unit may be a liquid crystal display or a touch display. For a touch display, it can be a capacitive touch screen or a resistive touch screen that supports single-point and multi-touch operations. Supporting single-point and multi-touch operations means that the touch display can sense the simultaneous touch operation from one or more positions on the touch display, and the touch operation is performed by the processor. Calculation and processing.
请参阅图3,图3示出了本发明第一实施例提供的一种弹幕数据展示方法的方法流程,该弹幕数据展示方法应用于客户端,以实现客户端的后台和客户端的前端之间的交互。本实施例中,客户端的后台可以是客户端的底层,其包括客户端的逻辑控制层面。客户端的前端可以是客户端的界面展示层,其包括客户端的控件布局、色调、字体和执行控件响应等。Referring to FIG. 3, FIG. 3 shows a method flow of a method for displaying a barrage data according to a first embodiment of the present invention. The method for displaying a barrage data is applied to a client to implement a background of a client and a front end of a client. Interaction between. In this embodiment, the background of the client may be the bottom layer of the client, which includes the logical control plane of the client. The client's front end can be the client's interface presentation layer, which includes the client's control layout, hue, font, and execution control response.
可选的,弹幕数据展示方法的方法流程包括:步骤S100、步骤S200和步骤S300。Optionally, the method flow of the barrage data display method includes: step S100, step S200, and step S300.
步骤S100:所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道。Step S100: The background acquires a connection signal between target live broadcasts, and creates a first connection channel that connects the front end.
通过用户的操控,客户端上可显示相应的直播间列表,例如,用户首先点击打开终端设备上安装的客户端,使得终端设备通过加载的方式或者调用在后台运行的该客户端的方式,以使该客户端显示相应的直播间列表。用户点击客户端所显示的直播间列表界面上的操作按钮,以使客户端显示直播间列表对应的目标直播间。当客户端在界面上加载显示相应的目标直播间时,该目标直播间的加载显示会相应的产生一个连接信号,该连接信号即为newConnection信号,进而客户端的后台能够通过监听该连接信号来判断该目标直播间是否被加载显示。当客户端的后台监听获取到该连接信号时,后台判定该目标直播间被加载显示,进而客户端的后台根据预设控制程序来建立连接客户端前端的第一连接通道,以实现客户端后台和客户端前端的通信。其中,第一连接通道可以为QWebChannel对象。Through the user's manipulation, the corresponding live room list can be displayed on the client. For example, the user first clicks to open the client installed on the terminal device, so that the terminal device can be loaded or invoked in the background to enable the terminal device to The client displays a list of corresponding live rooms. The user clicks the operation button on the live broadcast list interface displayed by the client, so that the client displays the target live broadcast room corresponding to the live broadcast list. When the client loads and displays the corresponding target live broadcast room on the interface, the loading display of the target live broadcast room generates a connection signal correspondingly, and the connection signal is a newConnection signal, and the background of the client can be judged by monitoring the connection signal. Whether the target live broadcast is loaded or not. When the background monitoring of the client obtains the connection signal, the background determines that the target live broadcast is loaded and displayed, and the background of the client establishes a first connection channel connecting the front end of the client according to the preset control program, so as to implement the client background and the client. End-end communication. The first connection channel may be a QWebChannel object.
在一种具体实施方式中,所述直播间可以预先配置有对应的标识信息,通过确定目标直播间的标识信息所述后台获取目标直播间的连接信号,在创建连接所述前端的第一连接通道时,可以先获取当前直播间的标识信息。将当前直播间的标识信息与预先确定的目标直播间的标识信息进行比对, 在当前直播间的标识信息为所述目标直播间的标识信息时,确定当前直播间为所述目标直播间。所述后台创建连接所述前端的第一连接通道。In a specific implementation manner, the live broadcast room may be pre-configured with corresponding identification information, and the first connection connecting the front end is created by determining a connection signal between the target live broadcasts by determining the identification information of the target live broadcast room. When the channel is used, you can obtain the identification information of the current live broadcast. The identifier information of the current live broadcast is compared with the identifier information of the target live broadcast. When the identifier information of the current live broadcast is the identifier information of the target live broadcast, it is determined that the current live broadcast room is the target live broadcast room. The background creates a first connection channel connecting the front end.
需要说明的是,客户端的后台执行获取目标直播间的连接信号,并创建连接客户端前端的第一连接通道时,可基于QT框架来实现。其中,QT框架为面向对象的开发框架。It should be noted that when the background execution of the client obtains the connection signal of the target live broadcast and creates the first connection channel connecting the front end of the client, it can be implemented based on the QT framework. Among them, the QT framework is an object-oriented development framework.
步骤S200:所述后台将调用程序的端口对象注册到所述第一连接通道,并将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端。Step S200: The background registeres the port object of the calling program to the first connection channel, and sends the barrage data sent by the server to the front end through the first connection channel.
当客户端的后台建立连接客户端前端的第一连接通道后,客户端的后台根据预设控制程序构建一个端口类,端口类可以为RoomJsService类,该端口类继承于QObject,以用于客户端的前端通过回调后台的程序来展示获取到的弹幕数据,或通过回调后台的程序来将用户输入的弹幕数据发送至后台。此时,客户端的后台可采用registerObject方法将端口类中的端口对象注册到第一连接通道中。其中,端口对象可以为RoomJsService对象,而registerObject方法配置成将端口对象注册到第一连接通道中。After the client's background establishes the first connection channel connecting the client front end, the client's background constructs a port class according to the preset control program, and the port class can be the RoomJsService class, and the port class inherits from the QObject for the front end of the client. Callback background program to display the captured barrage data, or send the barrage data input by the user to the background through the callback background program. At this point, the client's background can register the port object in the port class to the first connection channel by using the registerObject method. The port object can be a RoomJsService object, and the registerObject method is configured to register the port object to the first connection channel.
可选的,上段所述的方式可通过如下示例方式实现:Optionally, the manner described in the preceding paragraph can be implemented by the following example:
m_webChannel->registerObject(name,object);m_webChannel->registerObject(name,object);
此外,当客户端的网络模块收到服务器发送的弹幕数据时,客户端的后台将弹幕数据与端口对象中的关联信号匹配,其中,关联信号即为client_call_chat信号,其配置成当客户端的前端获取到弹幕数据,以通过弹幕数据中的关联信号来实现回调客户端后台的程序。建立对弹幕数据的匹配后,客户端的后台再将该弹幕数据通过第一连接通道发送至客户端的前端,以使客户端的前端获取到该弹幕数据。In addition, when the network module of the client receives the barrage data sent by the server, the background of the client matches the barrage data with the associated signal in the port object, wherein the associated signal is the client_call_chat signal, which is configured to be acquired by the front end of the client. To the barrage data, the callback client backend program is implemented by the associated signal in the barrage data. After the matching of the barrage data is established, the background of the client sends the barrage data to the front end of the client through the first connection channel, so that the front end of the client obtains the barrage data.
可选的,上段所述的方式可通过如下示例方式实现:Optionally, the manner described in the preceding paragraph can be implemented by the following example:
connect(m_roomMessageClient,SIGNAL(chatMessageReceived(constQString&)),m_jsService,SIGNAL(client_call_chat(constQString&)),Qt::QueuedConnection);Connect(m_roomMessageClient, SIGNAL(chatMessageReceived(constQString&)), m_jsService, SIGNAL(client_call_chat(constQString&)), Qt::QueuedConnection);
需要说明的是,客户端的后台将调用程序的端口对象注册到第一连接通道,并将服务器发送的弹幕数据也通过第一连接通道发送至前端,也可基于QT框架来实现。It should be noted that the background of the client registers the port object of the calling program to the first connection channel, and sends the barrage data sent by the server to the front end through the first connection channel, or can be implemented based on the QT framework.
步骤S300:所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据。Step S300: The front end invokes the background program according to the port object to display the barrage data.
客户端的后台将端口对象注册到第一连接通道后,以及将弹幕数据通过第一连接通道发送至客户端的前端,客户端的前端则相应的获取到端口对象和弹幕数据。若便于客户端的前端能够实现展示该弹幕数据,客户端需要基于QML创建一个弹幕展示控件,其中,QML为一种描述性的脚本语言。After the client object registers the port object to the first connection channel, and sends the barrage data to the front end of the client through the first connection channel, the front end of the client acquires the port object and the barrage data accordingly. If it is convenient for the front end of the client to display the barrage data, the client needs to create a barrage display control based on QML, wherein QML is a descriptive scripting language.
作为一种方式,客户端首先在QT中创建一个QML引擎,该QML引擎即为 QQmlApplicationEngine对象,其配置成对后续弹幕展示控件的创建。As a way, the client first creates a QML engine in QT, which is the QQmlApplicationEngine object, which is configured to create a subsequent barrage display control.
可选的,上段所述的方式可通过如下示例方式实现:Optionally, the manner described in the preceding paragraph can be implemented by the following example:
m_engine=new QQmlApplicationEngine(this);M_engine=new QQmlApplicationEngine(this);
客户端再获取QML引擎中的上下文地址,并将该上下文地址与QML引擎绑定,其中,上下文地址即为QQmlContext地址,该上下文地址配置成后续的弹幕展示控件的创建。The client then obtains the context address in the QML engine and binds the context address to the QML engine, where the context address is the QQmlContext address, and the context address is configured to create a subsequent barrage display control.
可选的,上段所述的方式可通过如下示例方式实现:Optionally, the manner described in the preceding paragraph can be implemented by the following example:
QQmlContext*context=m_engine->rootContext();QQmlContext*context=m_engine->rootContext();
另外,客户端将端口对象绑定到QML引擎的上下文地址所对应的上下文中,以便于后续创建的弹幕展示控件的功能可通过端口对象,由第一连接通道通过调用客户端后台的程序来实现。In addition, the client binds the port object to the context corresponding to the context address of the QML engine, so that the function of the subsequently created barrage display control can pass the port object, and the first connection channel calls the client background program. achieve.
此外,客户端通过QML引擎中创建一个弹幕展示控件,该弹幕展示控件即为NativeWebView控件,其可配置成客户端的前端通过弹幕展示控件来展示弹幕数据。创建该弹幕展示控件后,客户端还可以设置该弹幕展示控件的基本属性,例如,设置弹幕展示控件的ID,设置弹幕展示控件在客户端前端上的显示位置,以及设置弹幕展示控件在客户端前端上的显示大小等。客户端通过设置弹幕展示控件的页面属性,以将弹幕展示控件展示到客户端的前端,其中,页面属性即为page属性,其为一个客户端前端的脚本路径地址,以通过该页面属性将弹幕展示控件展示到客户端的前端。再者,为便于弹幕展示控件能够与客户端的后台实现通信,客户端还可以设置弹幕展示控件的查询属性,查询属性即为query属性。弹幕展示控件可以通过查询属性来建立和客户端的后台通信。In addition, the client creates a barrage display control through the QML engine. The barrage display control is the NativeWebView control, which can be configured to display the barrage data through the barrage display control. After creating the barrage display control, the client can also set the basic properties of the barrage display control, for example, setting the ID of the barrage display control, setting the display position of the barrage display control on the front end of the client, and setting the barrage Shows the display size of the control on the client front end, and so on. The client displays the page property of the control by displaying the page property of the barrage display to display the barrage display control to the front end of the client. The page attribute is the page attribute, which is the script path address of a client front end, to pass the page attribute. The barrage display controls are displayed to the front end of the client. Furthermore, in order to facilitate the display of the barrage display control with the client's background, the client can also set the query property of the barrage display control, and the query property is the query property. The Barrage Display Control can establish background communication with the client by querying properties.
当客户端完成对弹幕展示控件的各种属性的设置后,客户端即完成了对弹幕展示控件的创建,且该弹幕展示控件也位于客户端的前端。此时,客户端的前端将获取到的端口对象和弹幕数据均发送到该弹幕展示控件中,客户端前端的该弹幕展示控件根据端口对象中的展示弹幕数据方法,通过第一连接通道去调用客户端后台的程序,进而根据调用的程序便能够将该弹幕数据在弹幕展示控件中展示。After the client completes the setting of various properties of the barrage display control, the client completes the creation of the barrage display control, and the barrage display control is also located at the front end of the client. At this time, the front end of the client sends the obtained port object and the barrage data to the barrage display control, and the barrage display control of the client front end passes the first connection according to the display barrage data method in the port object. The channel calls the program in the background of the client, and then the barrage data can be displayed in the barrage display control according to the called program.
需要说明的是,端口对象中还包括了发送弹幕数据方法,发送弹幕数据方法即为sendRawBarrage方法。端口对象被客户端的前端获取到后,当客户端的前端获取到用户输入的弹幕数据时,客户端的前端根据端口对象中的发送弹幕数据方法,也通过第一连接通道去调用客户端后台的程序,进而根据调用的程序便能够将用户输入的弹幕数据通过第一连接通道发送至客户端的后台,以使客户端的后台再将用户输入的弹幕数据发送给服务器。It should be noted that the port object also includes the method of sending the barrage data, and the method of sending the barrage data is the sendRawBarrage method. After the port object is obtained by the front end of the client, when the front end of the client obtains the barrage data input by the user, the front end of the client also calls the client background through the first connection channel according to the method of sending the barrage data in the port object. The program, according to the called program, can send the barrage data input by the user to the background of the client through the first connection channel, so that the client's background sends the barrage data input by the user to the server.
请参阅图4,图4示出了本发明第一实施例提供的一种弹幕数据展示方法中步骤S100的方法子流程。Referring to FIG. 4, FIG. 4 shows a sub-flow of the method of step S100 in the method for displaying the barrage data provided by the first embodiment of the present invention.
可选的,步骤S100的方法子流程包括:步骤S110和步骤S120。Optionally, the method sub-process of step S100 includes: step S110 and step S120.
步骤S110:所述后台监听所述目标直播间的所述连接信号。Step S110: The background monitors the connection signal between the target live broadcasts.
当客户端在终端设备上被加载运行时,客户端的后台便开始监听目标直播间的连接信号,其中,客户端的后台所监听的目标直播间可以为直播间列表中的任意直播间。When the client is loaded and run on the terminal device, the background of the client starts to monitor the connection signal of the target live broadcast room, wherein the target live broadcast room monitored by the client's background may be any live broadcast room in the live broadcast list.
客户端在终端设备上被加载运行时,客户端的后台首先创建一个开发接口对象,即QWebSocketServer对象。开发接口对象配置成连接客户端前端的网络服务,即客户端前端的WebSocket。此时,客户端的后台调用监听设置,即listen设置。客户端的后台调用监听设置配置成监听开发接口对象所获取到的连接信号。When the client is loaded and run on the terminal device, the client's background first creates a development interface object, that is, the QWebSocketServer object. The development interface object is configured to connect to the network service of the client front end, that is, the WebSocket of the client front end. At this point, the client's background call listener settings, ie listen settings. The client's background call listener setting is configured to listen for the connection signal obtained by the development interface object.
可选的,上段所述的方式可通过如下示例方式实现:Optionally, the manner described in the preceding paragraph can be implemented by the following example:
m_socketServer=newQWebSocketServer(serverName,QWebSocketServer::NonSecureMode,this);m_socketServer=newQWebSocketServer(serverName,QWebSocketServer::NonSecureMode,this);
if(!m_socketServer->listen(QHostAddress::LocalHost,port))If(!m_socketServer->listen(QHostAddress::LocalHost,port))
{qFatal("Failed to open web socket server.");}{qFatal("Failed to open web socket server.");}
客户端的后台根据QT的开发机制,采用信号和槽计算来监听开发接口对象的连接信号。可以理解到,通过开发接口对象和客户端前端的网络服务连接,当客户端在终端设备上被加载运行时,客户端的后台便能够通过开发接口对象监听到客户端的前端在加载目标直播间时所产生的连接信号。The client's background uses the signal and slot calculations to monitor the connection signals of the development interface objects according to the QT development mechanism. It can be understood that by developing the interface object and the network service connection of the client front end, when the client is loaded and run on the terminal device, the background of the client can be monitored through the development interface object to the front end of the client when loading the target live broadcast room. The resulting connection signal.
可选的,上段所述的方式可通过如下示例方式实现:Optionally, the manner described in the preceding paragraph can be implemented by the following example:
connect(m_socketServer,SIGNAL(newConnection()),this,SLOT(handleConnection()));Connect(m_socketServer,SIGNAL(newConnection()),this,SLOT(handleConnection()));
步骤S120:当所述目标直播间被加载时,所述后台获取所述目标直播间的所述连接信号,并创建连接所述前端的所述第一连接通道。Step S120: When the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
当目标直播间被加载时,客户端的后台则通过对开发接口对象的监听而获取目标直播间在加载时所产生的连接信号。此时,客户端的后台根据预设控制程序创建连接前端的第一连接通道。When the target live broadcast is loaded, the client's background obtains the connection signal generated by the target live broadcast during the loading by monitoring the development interface object. At this time, the background of the client creates a first connection channel connecting the front end according to the preset control program.
可选的,上段所述的方式可通过如下示例方式实现:Optionally, the manner described in the preceding paragraph can be implemented by the following example:
m_webChannel=new QWebChannel(this)m_webChannel=new QWebChannel(this)
与此同时,客户端的后台构建一个网络传输套接字类,即WebSocketTransport类,该网络传输套接字类继承于QWebChannelAbstractTransport,其中,QWebChannelAbstractTransport为QT所提供的接口,其配置成建立第一连接通道和客户端前端之间的交流。此时,客户端的后台可以根据获取到的连接信号,在槽计算的槽处理函数handleConnection中,采用返回等待连接方法生成一个网络套接指针。其中,返回等待连接方法即为nextPendingConnection,其配置成根据开发接口对象所获取的连接信号来生成一个指针。网络套接指针即为QWebSocket指针,其可便于后续的回调。客户端根据创建的网络传输套接字类初始化生成一个网络传输套接字对象,网络传输套接字对象即为WebSocketTransport对象。客户端再将网络套接指针绑定到网络传输套接字对象中,并将该绑定网络 套接指针的网络传输套接字对象注册到创建的第一连接通道中。其中,网络传输套接字对象注册到第一连接通道中后,网络传输套接字对象可实现客户端的后台和客户端的前端在第一连接通道中的交互。例如,网络传输套接字对象配置成将端口对象在第一连接通道中序列化,或将客户端的前端回调后台的程序在第一连接通道中序列化,或也将客户端的前端发送至后台的指令在第一连接通道中反序列化。At the same time, the client's background builds a network transport socket class, the WebSocketTransport class. The network transport socket class inherits from QWebChannelAbstractTransport, where QWebChannelAbstractTransport is the interface provided by QT, which is configured to establish the first connection channel and Communication between client front ends. At this time, the background of the client can generate a network socket pointer by using the return waiting connection method in the slot processing function handleConnection calculated by the slot according to the obtained connection signal. The return waiting connection method is nextPendingConnection, which is configured to generate a pointer according to the connection signal acquired by the development interface object. The network socket pointer is the QWebSocket pointer, which facilitates subsequent callbacks. The client generates a network transport socket object according to the created network transport socket class initialization, and the network transport socket object is the WebSocketTransport object. The client then binds the network socket pointer to the network transport socket object and registers the network transport socket object of the bound network socket pointer to the first connection channel created. After the network transmission socket object is registered in the first connection channel, the network transmission socket object can realize the interaction between the background of the client and the front end of the client in the first connection channel. For example, the network transport socket object is configured to serialize the port object in the first connection channel, or serialize the client's front end callback program in the first connection channel, or send the client front end to the background. The instruction is deserialized in the first connection channel.
可选的,上段所述的方式可通过如下示例方式实现:Optionally, the manner described in the preceding paragraph can be implemented by the following example:
QWebSocket*socket=m_socketServer->nextPendingConnection();QWebSocket*socket=m_socketServer->nextPendingConnection();
WebSocketTransport*transport=new WebSocketTransport(socket);WebSocketTransport*transport=new WebSocketTransport(socket);
m_webChannel->connectTo(transport)m_webChannel->connectTo(transport)
请参阅图5,图5示出了本发明第一实施例提供的一种弹幕数据展示方法中步骤S300的方法子流程。Referring to FIG. 5, FIG. 5 shows a sub-flow of the method of step S300 in the method for displaying the barrage data provided by the first embodiment of the present invention.
可选的,步骤S300的方法子流程包括:步骤S310和步骤S320。Optionally, the method sub-process of step S300 includes: step S310 and step S320.
步骤S310:所述前端获取注册到所述第一连接通道中的所述端口对象。Step S310: The front end acquires the port object registered in the first connection channel.
客户端的前端通过第一连接通道和客户端的后台建立连接后,当客户端的后台将端口对象注册到第一连接通道,通过第一连接通道的传输,客户端的前端也相应的获取到该端口对象。After the front end of the client establishes a connection through the first connection channel and the background of the client, when the client's background registers the port object to the first connection channel, the front end of the client also acquires the port object through the transmission of the first connection channel.
步骤S320:所述前端的弹幕展示控件获取所述端口对象,以使所述弹幕展示控件根据所述端口对象调用所述后台的程序来将所述前端获取的所述弹幕数据展示。Step S320: The front-end barrage display control acquires the port object, so that the barrage display control invokes the background program according to the port object to display the barrage data acquired by the front end.
客户端的前端获取到端口对象后,客户端的前端的弹幕展示控件却并未获取到该弹幕展示控件。因此,需要客户端的前端建立与弹幕展示控件的通信,弹幕展示控件才能够从客户端的前端获取端口对象和弹幕数据。After the front end of the client obtains the port object, the barrage display control of the front end of the client does not obtain the barrage display control. Therefore, the front end of the client needs to establish communication with the barrage display control, and the barrage display control can obtain the port object and the barrage data from the front end of the client.
作为一种方式,客户端的前端设置在弹幕展示控件中设置该端口对象在客户端前端的下载路径。其中,下载路径即为qwebchannel.js,其配置成弹幕展示控件根据该下载路径去客户端的前端下载该端口对象。此时,客户端的前端还创建一个客户端的前端和弹幕展示控件的第二连接通道,第二连接通道也可以为QWebChannel对象,其配置成弹幕展示控件通过该第二连接通道,根据下载路径去客户端的前端下载该端口对象。当弹幕展示控件通过第二连接通道获取到端口对象和弹幕数据后,弹幕展示控件根据端口对象中展示弹幕数据方法,通过第二连接通道和第二连接通道将控制指令至发送至客户端的后台,便能够实现回调客户端的后台的程序,进而根据该回调的程序将弹幕数在弹幕展示控件中展示。As a way, the front end of the client is set in the barrage display control to set the download path of the port object on the front end of the client. The download path is qwebchannel.js, which is configured to display the port object according to the download path to the front end of the client. At this time, the front end of the client also creates a front end of the client and a second connection channel of the barrage display control, and the second connection channel may also be a QWebChannel object, which is configured to display the barrage display control through the second connection channel, according to the download path. Go to the front end of the client to download the port object. After the barrage display control acquires the port object and the barrage data through the second connection channel, the barrage display control sends the control command to the second connection channel and the second connection channel according to the method of displaying the barrage data in the port object. The client's background can implement the callback client's background program, and then display the number of the barrage in the barrage display control according to the callback program.
客户端的后台通过获取到目标直播间加载时的连接信号,建立第一连接通道来连接客户端的前端,并将端口对象注册到第一连接通道中。客户端的后台在将弹幕数据通过第一连接通道发送至客 户端的前端后,客户端的前端则根据获取到的端口对象来调用客户端后台的程序以将弹幕数据进行展示。因此,客户端的前端通过调用客户端后台的程序来展示弹幕,其极大的提高了展示弹幕时的可操作性,以及展示弹幕时的工作效率。The background of the client obtains the connection signal when the target live broadcast is loaded, establishes a first connection channel to connect to the front end of the client, and registers the port object into the first connection channel. After the client's background sends the barrage data to the front end of the client through the first connection channel, the client's front end invokes the client background program according to the acquired port object to display the barrage data. Therefore, the front end of the client displays the barrage by calling the program in the background of the client, which greatly improves the operability of displaying the barrage and the work efficiency when displaying the barrage.
请参阅图6,为本发明第二实施例提供的一种弹幕数据展示装置100的功能模块图,该弹幕数据展示装置100包括:创建模块110、发送模块120和展示模块130。FIG. 6 is a functional block diagram of a barrage data display device 100 according to a second embodiment of the present invention. The barrage data display device 100 includes a creation module 110, a sending module 120, and a display module 130.
所述创建模块110,配置成所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道。The creating module 110 is configured to obtain a connection signal between the target live broadcasts in the background, and create a first connection channel that connects the front end.
所述发送模块120,配置成所述后台将调用程序的端口对象注册到所述第一连接通道,并将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端。The sending module 120 is configured to register, in the background, a port object of the calling program to the first connection channel, and send the barrage data sent by the server to the front end through the first connection channel.
所述展示模块130,配置成所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据。The display module 130 is configured to: the front end invokes the background program according to the port object to display the barrage data.
请参阅图7,在本发明第二实施例中,创建模块110还包括:监听单元111和创建单元112。Referring to FIG. 7, in the second embodiment of the present invention, the creating module 110 further includes: a listening unit 111 and a creating unit 112.
所述监听单元111,配置成所述后台监听所述目标直播间的所述连接信号。The monitoring unit 111 is configured to monitor the connection signal of the target live broadcast in the background.
所述创建单元112,配置成当所述目标直播间被加载时,所述后台获取所述目标直播间的所述连接信号,并创建连接所述前端的所述第一连接通道。The creating unit 112 is configured to: when the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
请参阅图8,在本发明第二实施例中,展示模块130还包括:获取单元131和展示单元132。Referring to FIG. 8 , in the second embodiment of the present invention, the display module 130 further includes: an obtaining unit 131 and a display unit 132.
所述获取单元131,配置成所述前端获取注册到所述第一连接通道中的所述端口对象。The obtaining unit 131 is configured to: the front end acquires the port object registered in the first connection channel.
所述展示单元132,配置成所述前端的弹幕展示控件获取所述端口对象,以使所述弹幕展示控件根据所述端口对象调用所述后台的程序来将所述前端获取的所述弹幕数据展示。The display unit 132 is configured to acquire the port object by the barrage display control of the front end, so that the barrage display control invokes the background program according to the port object to acquire the Barrage data display.
在一种实施方式中,所述前端包括多个直播间,所述前端在所述直播间被加载时生成连接信号,所述前端从所述多个直播间中选择至少一个直播间作为目标直播间,所述后台获取目标直播间的连接信号,所述创建单元创建连接所述前端的第一连接通道的方法包括:所述后台确定当前直播间的连接信号;在当前直播间的连接信号为所述目标直播间的直播信号时,确定当前直播间为所述目标直播间;所述后台创建连接所述前端的第一连接通道,以建立所述后台与所述目标直播间的连接。详细的,可参见上述方法实施例的描述。In an embodiment, the front end includes a plurality of live broadcast rooms, and the front end generates a connection signal when the live broadcast room is loaded, and the front end selects at least one live broadcast room from the plurality of live broadcast rooms as a target live broadcast. The method for obtaining a connection signal between the target live broadcasts in the background, the method for the creation unit to create the first connection channel connecting the front end includes: determining, by the background, a connection signal between the current live broadcasts; The live broadcast signal of the target live broadcast determines that the current live broadcast room is the target live broadcast room; the background creates a first connection channel that connects the front end to establish a connection between the background and the target live broadcast room. For details, refer to the description of the above method embodiments.
所述直播间预先配置有对应的标识信息;所述后台获取目标直播间的连接信号,所述创建单元创建连接所述前端的第一连接通道的方法包括:获取当前直播间的标识信息;在当前直播间的标识信息为所述目标直播间的标识信息时,确定当前直播间为所述目标直播间;所述后台创建连接所述前端的第一连接通道。详细的,可参见上述方法实施例的描述。所述展示单元在所述前端的弹幕展示控件获取所述端口对象的步骤之前,所述展示单元还被配置成:所述前端创建被配置成展示所述弹幕数据的弹幕展示控件,并设置所述弹幕展示控件的页面属性;所述前端设定所述弹幕展示控件 的查询属性,以使所述弹幕展示控件通过所述查询属性建立与所述后台的通信。详细的,可参见上述方法实施例的描述。The live broadcast room is pre-configured with the corresponding identification information; the background obtaining the connection signal of the target live broadcast, and the method for the creation unit to create the first connection channel connecting the front end includes: acquiring the identification information of the current live broadcast; When the identification information of the live broadcast room is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room; the background creates a first connection channel that connects the front end. For details, refer to the description of the above method embodiments. The display unit is further configured to: before the step of the front-end barrage display control acquiring the port object, the display unit: the front end creates a barrage display control configured to display the barrage data, And setting a page attribute of the barrage display control; the front end setting a query attribute of the barrage display control, so that the barrage display control establishes communication with the background by using the query attribute. For details, refer to the description of the above method embodiments.
所述端口对象预先配置有对应的关联信号,所述关联信号配置成当所述前端获取到所述弹幕数据时,以通过弹幕数据中的关联信号回调所述后台的程序,在将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端的步骤之前,所述展示单元还被配置成:所述后台将所述弹幕数据与所述端口对象中的关联信号相匹配;所述后台将所述弹幕数据通过所述第一连接通道发送至所述前端,以使所述前端获取到所述弹幕数据。详细的,可参见上述方法实施例的描述。The port object is pre-configured with a corresponding associated signal, and the associated signal is configured to, when the front end acquires the barrage data, call back the background program by using an associated signal in the barrage data, Before the step of transmitting the barrage data to the front end through the first connection channel, the display unit is further configured to: the background matches the barrage data with an associated signal in the port object The background sends the barrage data to the front end through the first connection channel, so that the front end acquires the barrage data. For details, refer to the description of the above method embodiments.
需要说明的是,由于所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It should be noted that, as will be apparent to those skilled in the art, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above may refer to the corresponding process in the foregoing method embodiment, where No longer.
本发明实施例还提供了具有处理器可执行的非易失的程序代码的计算机可读存储介质,所述程序代码使所述处理器执行上述弹幕数据方法。Embodiments of the present invention also provide a computer readable storage medium having processor-executable non-volatile program code, the program code causing the processor to perform the above-described barrographic data method.
本发明实施例还提供了一种电子设备,该电子设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述方法实施例中所述的方法的步骤。An embodiment of the present invention further provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program The steps of the method described in the above method embodiments are implemented.
本发明实施例所提供的进行处理器可执行的非易失的程序代码的计算机可读存储介质的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。A computer program product of a computer readable storage medium for executing a processor-executable non-volatile program code, comprising a computer readable storage medium storing program code, the program code including instructions are available For the implementation of the method in the foregoing method embodiment, refer to the method embodiment, and details are not described herein again.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计 算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
综上所述,本发明实施例提供了一种弹幕数据展示方法及装置、计算机可读存储介质。其中,弹幕数据展示方法应用于客户端,客户端包括前端和后台。方法包括:后台获取目标直播间的连接信号,创建连接前端的第一连接通道;后台将调用程序的端口对象注册到第一连接通道,并将服务器发送的弹幕数据通过第一连接通道发送至前端;前端根据端口对象调用后台的程序以展示弹幕数据。In summary, the embodiments of the present invention provide a barrage data display method and apparatus, and a computer readable storage medium. Among them, the barrage data display method is applied to the client, and the client includes a front end and a background. The method includes: obtaining a connection signal of the target live broadcast in the background, and creating a first connection channel connecting the front end; the background registering the port object of the calling program to the first connection channel, and sending the barrage data sent by the server to the first connection channel to the The front end; the front end calls the background program based on the port object to display the barrage data.
客户端的后台通过获取到目标直播间加载时的连接信号,建立第一连接通道来连接客户端的前端,并将端口对象注册到第一连接通道中。客户端的后台在将弹幕数据通过第一连接通道发送至客户端的前端后,客户端的前端则根据获取到的端口对象来调用客户端后台的程序以将弹幕数据进行展示。因此,客户端的前端通过调用客户端后台的程序来展示弹幕,其极大的提高了展示弹幕时的可操作性,以及展示弹幕时的工作效率。The background of the client obtains the connection signal when the target live broadcast is loaded, establishes a first connection channel to connect to the front end of the client, and registers the port object into the first connection channel. After the client's background sends the barrage data to the front end of the client through the first connection channel, the client's front end invokes the client background program according to the acquired port object to display the barrage data. Therefore, the front end of the client displays the barrage by calling the program in the background of the client, which greatly improves the operability of displaying the barrage and the work efficiency when displaying the barrage.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的弹幕数据展示方法、装置、电子设备及计算机可读存储介质,客户端的后台通过获取到目标直播间加载时的连接信号,建立第一连接通道来连接客户端的前端,并将端口对象注册到第一连接通道中。客户端的后台在将弹幕数据通过第一连接通道发送至客户端的前端后,客户端的前端则根据获取到的端口对象来调用客户端后台的程序以将弹幕数据进行展示。因此,客户端的前端通过调用客户端后台的程序来展示弹幕,其极大的提高了展示弹幕时的可操作性,以及展示弹幕时的工作效率。The method for displaying the data of the barrage data, the electronic device and the computer readable storage medium provided by the embodiment of the present invention, the background of the client is connected to the connection signal when the target live broadcast is loaded, and the first connection channel is established to connect the front end of the client, and Register the port object to the first connection channel. After the client's background sends the barrage data to the front end of the client through the first connection channel, the client's front end invokes the client background program according to the acquired port object to display the barrage data. Therefore, the front end of the client displays the barrage by calling the program in the background of the client, which greatly improves the operability of displaying the barrage and the work efficiency when displaying the barrage.

Claims (20)

  1. 一种弹幕数据展示方法,其特征在于,所述方法应用于客户端,所述客户端包括前端和后台,所述方法包括:A method for displaying a barrage data, wherein the method is applied to a client, the client includes a front end and a background, and the method includes:
    所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道;The background obtains a connection signal of the target live broadcast, and creates a first connection channel that connects the front end;
    所述后台将调用程序的端口对象注册到所述第一连接通道,并将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端;The background registeres the port object of the calling program to the first connection channel, and sends the barrage data sent by the server to the front end through the first connection channel;
    所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据。The front end invokes the background program according to the port object to display the barrage data.
  2. 根据权利要求1所述的弹幕数据展示方法,其特征在于,所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道的步骤包括:The barrage data display method according to claim 1, wherein the step of acquiring a connection signal between the target live broadcasts in the background, and creating a first connection channel connecting the front ends comprises:
    所述后台监听所述目标直播间的所述连接信号;The background monitors the connection signal of the target live broadcast room;
    当所述目标直播间被加载时,所述后台获取所述目标直播间的所述连接信号,并创建连接所述前端的所述第一连接通道。When the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
  3. 根据权利要求1或2任意一项所述的弹幕数据展示方法,其特征在于,所述前端包括多个直播间,所述前端在所述直播间被加载时生成连接信号,所述前端从所述多个直播间中选择至少一个直播间作为目标直播间,所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道的步骤包括:The barrage data display method according to any one of claims 1 to 2, wherein the front end comprises a plurality of live rooms, and the front end generates a connection signal when the live room is loaded, the front end Selecting at least one live broadcast room as the target live broadcast room, the background obtaining the connection signal of the target live broadcast, and the step of creating the first connection channel connecting the front end includes:
    所述后台确定当前直播间的连接信号;The background determines a connection signal between the current live broadcasts;
    在当前直播间的连接信号为所述目标直播间的直播信号时,确定当前直播间为所述目标直播间;When the connection signal between the current live broadcasts is a live broadcast signal of the target live broadcast, it is determined that the current live broadcast room is the target live broadcast room;
    所述后台创建连接所述前端的第一连接通道,以建立所述后台与所述目标直播间的连接。The background creates a first connection channel that connects the front end to establish a connection between the background and the target live broadcast.
  4. 根据权利要求1或2任意一项所述的弹幕数据展示方法,其特征在于,所述直播间预先配置有对应的标识信息;所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通道的步骤包括:The barrage data display method according to any one of claims 1 to 2, wherein the live broadcast room is pre-configured with corresponding identification information; the background obtains a connection signal between target live broadcasts, and creates a connection to the front end The steps of the first connection channel include:
    获取当前直播间的标识信息;Obtain identification information of the current live broadcast room;
    在当前直播间的标识信息为所述目标直播间的标识信息时,确定当前直播间为所述目标直播间;When the identification information of the current live broadcast is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room;
    所述后台创建连接所述前端的第一连接通道。The background creates a first connection channel connecting the front end.
  5. 根据权利要求1至4任意一项所述的弹幕数据展示方法,其特征在于,创建与所述前端的所述第一连接通道的步骤包括:The barrage data display method according to any one of claims 1 to 4, wherein the step of creating the first connection channel with the front end comprises:
    所述后台创建连接所述前端的所述第一连接通道;Creating, in the background, the first connection channel connecting the front end;
    所述后台生成网络传输套接字对象,将所述网络传输套接字对象注册到所述第一连接通道中,其中,所述网络传输套接字对象配置成将所述端口对象在所述第一连接通道中序列化。The background generation network transport socket object registers the network transport socket object into the first connection channel, wherein the network transport socket object is configured to view the port object in the Serialized in the first connection channel.
  6. 根据权利要求1所述的弹幕数据展示方法,其特征在于,所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据的步骤包括:The barrage data display method according to claim 1, wherein the step of the front end calling the background program according to the port object to display the barrage data comprises:
    所述前端获取注册到所述第一连接通道中的所述端口对象;The front end acquires the port object registered in the first connection channel;
    所述前端的弹幕展示控件获取所述端口对象,以使所述弹幕展示控件根据所述端口对象调用所述后台的程序来将所述前端获取的所述弹幕数据展示。The barrage display control of the front end acquires the port object, so that the barrage display control invokes the background program according to the port object to display the barrage data acquired by the front end.
  7. 根据权利要求6所述的弹幕数据展示方法,其特征在于,所述前端的弹幕展示控件获取所述端口对象的步骤之前,该方法还包括:The method of displaying a barrage data according to claim 6, wherein before the step of displaying the port object by the front-end barrage display control, the method further comprises:
    所述前端创建配置成展示所述弹幕数据的弹幕展示控件,并设置所述弹幕展示控件的页面属性;The front end creates a barrage display control configured to display the barrage data, and sets a page attribute of the barrage display control;
    所述前端设定所述弹幕展示控件的查询属性,以使所述弹幕展示控件通过所述查询属性建立与所述后台的通信。The front end sets a query attribute of the barrage display control to enable the barrage display control to establish communication with the background through the query attribute.
  8. 根据权利要求6所述的弹幕数据展示方法,其特征在于,所述端口对象预先配置有对应的关联信号,所述关联信号配置成当所述前端获取到所述弹幕数据时,以通过弹幕数据中的关联信号回调所述后台的程序,在将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端的步骤之前,该方法还包括:The barrage data display method according to claim 6, wherein the port object is pre-configured with a corresponding associated signal, and the associated signal is configured to pass when the front end acquires the barrage data. The associated signal in the barrage data is used to call back the program in the background. Before the step of transmitting the barrage data sent by the server to the front end through the first connection channel, the method further includes:
    所述后台将所述弹幕数据与所述端口对象中的关联信号相匹配;The background matches the barrage data with an associated signal in the port object;
    所述后台将所述弹幕数据通过所述第一连接通道发送至所述前端,以使所述前端获取到所述弹幕数据。The background sends the barrage data to the front end through the first connection channel, so that the front end acquires the barrage data.
  9. 根据权利要求6所述的弹幕数据展示方法,其特征在于,所述前端的弹幕展示控件获取所述端口对象的方法包括:The barrage data display method according to claim 6, wherein the method for acquiring the port object by the front-end barrage display control comprises:
    所述前端在所述弹幕展示控件中设置所述端口对象的下载路径;The front end sets a download path of the port object in the barrage display control;
    所述前端创建连接所述弹幕展示控件的第二连接通道,以使所述弹幕展示控件根据所述下载路径和所述第二连接通道获取所述端口对象。The front end creates a second connection channel connecting the barrage display control, so that the barrage display control acquires the port object according to the download path and the second connection channel.
  10. 根据权利要求1至9任意一项所述的弹幕数据展示方法,其特征在于,所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据的步骤之后,还包括:The method for displaying a barrage data according to any one of claims 1 to 9, wherein after the step of calling the background program to display the barrage data according to the port object, the front end further comprises:
    所述前端获取所述弹幕数据;The front end acquires the barrage data;
    所述前端通过所述端口对象调用所述后台的程序,将所述弹幕数据通过所述第一连接通道发送至所述后台。The front end invokes the background program through the port object, and sends the barrage data to the background through the first connection channel.
  11. 根据权利要求6所述的弹幕数据展示方法,其特征在于,所述端口对象包括发送弹幕数据方法,所述前端通过所述端口对象调用所述后台的程序,将所述弹幕数据通过所述第一连接通道发送至所述后台的步骤包括:The barrage data display method according to claim 6, wherein the port object comprises a method for transmitting a barrage data, and the front end calls the background program by the port object to pass the barrage data The step of sending the first connection channel to the background includes:
    所述前端确定与所述端口对象对应的发送弹幕数据方法;The front end determines a method for transmitting a barrage data corresponding to the port object;
    通过所述第一连接通道调用所述后台;Calling the background through the first connection channel;
    根据所述发送弹幕数据方法,将所述弹幕数据通过所述第一连接通道发送至所述后台,以使所述后台将所述弹幕数据发送至所述服务器。And sending the barrage data to the background through the first connection channel according to the method for transmitting a barrage data, so that the background sends the barrage data to the server.
  12. 一种弹幕数据展示装置,其特征在于,所述装置应用于客户端,所述客户端包括前端和后台,所述装置包括:创建模块、发送模块和展示模块;A barrage data display device, wherein the device is applied to a client, the client includes a front end and a background, and the device includes: a creation module, a sending module, and a display module;
    所述创建模块,配置成所述后台获取目标直播间的连接信号,创建连接所述前端的第一连接通 道;The creating module is configured to obtain a connection signal between the target live broadcasts in the background, and create a first connection channel that connects the front end;
    所述发送模块,配置成所述后台将调用程序的端口对象注册到所述第一连接通道,并将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端;The sending module is configured to register, in the background, a port object of the calling program to the first connection channel, and send the barrage data sent by the server to the front end through the first connection channel;
    所述展示模块,配置成所述前端根据所述端口对象调用所述后台的程序以展示所述弹幕数据。The display module is configured to: the front end invokes the background program according to the port object to display the barrage data.
  13. 根据权利要求12所述的弹幕数据展示装置,其特征在于,所述创建模块包括:监听单元和创建单元;The barrage data display device according to claim 12, wherein the creation module comprises: a monitoring unit and a creation unit;
    所述监听单元,配置成所述后台监听所述目标直播间的所述连接信号;The monitoring unit is configured to monitor, in the background, the connection signal of the target live broadcast room;
    所述创建单元,配置成当所述目标直播间被加载时,所述后台获取所述目标直播间的所述连接信号,并创建连接所述前端的所述第一连接通道。The creating unit is configured to: when the target live broadcast room is loaded, the background acquires the connection signal of the target live broadcast room, and creates the first connection channel that connects the front end.
  14. 根据权利要求12或13任意一项所述的弹幕数据展示装置,其特征在于,所述前端包括多个直播间,所述前端在所述直播间被加载时生成连接信号,所述前端从所述多个直播间中选择至少一个直播间作为目标直播间,所述后台获取目标直播间的连接信号,所述创建单元创建连接所述前端的第一连接通道的方法包括:The barrage data display device according to any one of claims 12 or 13, wherein the front end comprises a plurality of live rooms, and the front end generates a connection signal when the live room is loaded, the front end Selecting at least one live broadcast room as the target live broadcast room, the background obtaining the connection signal of the target live broadcast, and the method for the creation unit to create the first connection channel connecting the front end includes:
    所述后台确定当前直播间的连接信号;The background determines a connection signal between the current live broadcasts;
    在当前直播间的连接信号为所述目标直播间的直播信号时,确定当前直播间为所述目标直播间;When the connection signal between the current live broadcasts is a live broadcast signal of the target live broadcast, it is determined that the current live broadcast room is the target live broadcast room;
    所述后台创建连接所述前端的第一连接通道,以建立所述后台与所述目标直播间的连接。The background creates a first connection channel that connects the front end to establish a connection between the background and the target live broadcast.
  15. 根据权利要求12或13任意一项所述的弹幕数据展示装置,其特征在于,所述直播间预先配置有对应的标识信息;所述后台获取目标直播间的连接信号,所述创建单元创建连接所述前端的第一连接通道的方法包括:The barrage data display device according to any one of claims 12 or 13, wherein the live broadcast room is pre-configured with corresponding identification information; the background obtains a connection signal between target live broadcasts, and the creation unit creates The method for connecting the first connection channel of the front end includes:
    获取当前直播间的标识信息;Obtain identification information of the current live broadcast room;
    在当前直播间的标识信息为所述目标直播间的标识信息时,确定当前直播间为所述目标直播间;When the identification information of the current live broadcast is the identification information of the target live broadcast room, it is determined that the current live broadcast room is the target live broadcast room;
    所述后台创建连接所述前端的第一连接通道。The background creates a first connection channel connecting the front end.
  16. 根据权利要求12所述的弹幕数据展示装置,其特征在于,所述展示模块包括:获取单元和展示单元;The barrage data display device according to claim 12, wherein the display module comprises: an acquisition unit and a display unit;
    所述获取单元,配置成所述前端获取注册到所述第一连接通道中的所述端口对象;The acquiring unit is configured to acquire, by the front end, the port object registered in the first connection channel;
    所述展示单元,配置成所述前端的弹幕展示控件获取所述端口对象,以使所述弹幕展示控件根据所述端口对象调用所述后台的程序来将所述前端获取的所述弹幕数据展示。The display unit is configured to acquire the port object by the barrage display control of the front end, so that the barrage display control invokes the background program according to the port object to acquire the bullet acquired by the front end Curtain data display.
  17. 根据权利要求1所述的弹幕数据展示装置,其特征在于,所述展示单元在所述前端的弹幕展示控件获取所述端口对象的步骤之前,所述展示单元还被配置成:The barrage data display device according to claim 1, wherein the display unit is further configured to: before the step of acquiring the port object by the barrage display control of the front end, the display unit is further configured to:
    所述前端创建被配置成展示所述弹幕数据的弹幕展示控件,并设置所述弹幕展示控件的页面属性;The front end creates a barrage display control configured to display the barrage data, and sets a page attribute of the barrage display control;
    所述前端设定所述弹幕展示控件的查询属性,以使所述弹幕展示控件通过所述查询属性建立与所述后台的通信。The front end sets a query attribute of the barrage display control to enable the barrage display control to establish communication with the background through the query attribute.
  18. 根据权利要求1所述的弹幕数据展示装置,其特征在于,所述端口对象预先配置有对应的 关联信号,所述关联信号配置成当所述前端获取到所述弹幕数据时,以通过弹幕数据中的关联信号回调所述后台的程序,在将服务器发送的弹幕数据通过所述第一连接通道发送至所述前端的步骤之前,所述展示单元还被配置成:The barrage data display device according to claim 1, wherein the port object is pre-configured with a corresponding associated signal, and the associated signal is configured to pass when the front end acquires the barrage data. The associated signal in the barrage data is used to call back the program in the background. Before the step of transmitting the barrage data sent by the server to the front end through the first connection channel, the display unit is further configured to:
    所述后台将所述弹幕数据与所述端口对象中的关联信号相匹配;The background matches the barrage data with an associated signal in the port object;
    所述后台将所述弹幕数据通过所述第一连接通道发送至所述前端,以使所述前端获取到所述弹幕数据。The background sends the barrage data to the front end through the first connection channel, so that the front end acquires the barrage data.
  19. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现上述权利要求1至11任一项所述的方法的步骤。An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program to implement the above claim 1 The method of any of the methods of any of the preceding claims.
  20. 一种具有处理器可执行的非易失的程序代码的计算机可读存储介质,其特征在于,所述程序代码使所述处理器执行所述权利要求1-11任一所述方法。A computer readable storage medium having processor-executable non-volatile program code, wherein the program code causes the processor to perform the method of any of claims 1-11.
PCT/CN2018/075484 2017-08-02 2018-02-06 Bullet screen data display method and apparatus, electronic device, and readable storage medium WO2019024477A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710651023.2A CN107396199B (en) 2017-08-02 2017-08-02 Barrage method for exhibiting data and device, computer readable storage medium
CN201710651023.2 2017-08-02

Publications (1)

Publication Number Publication Date
WO2019024477A1 true WO2019024477A1 (en) 2019-02-07

Family

ID=60343608

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/075484 WO2019024477A1 (en) 2017-08-02 2018-02-06 Bullet screen data display method and apparatus, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN107396199B (en)
WO (1) WO2019024477A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396199B (en) * 2017-08-02 2018-08-03 武汉斗鱼网络科技有限公司 Barrage method for exhibiting data and device, computer readable storage medium
CN107911708B (en) * 2017-11-09 2022-04-05 腾讯数码(天津)有限公司 Barrage display method, live broadcast method and related devices
CN110324229B (en) * 2018-03-30 2022-04-12 武汉斗鱼网络科技有限公司 Bullet screen server connection method, client and readable storage medium
CN108712662A (en) * 2018-03-30 2018-10-26 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for video playing
CN109275014B (en) * 2018-09-13 2021-09-07 武汉斗鱼网络科技有限公司 Bullet screen linking method and mobile terminal
CN109831673B (en) * 2018-12-29 2021-06-18 北京字节跳动网络技术有限公司 Live broadcast room data processing method, device, equipment and storage medium
CN110347380B (en) * 2019-07-18 2023-08-29 中国联合网络通信集团有限公司 Front-end and back-end development method and device
CN111064972A (en) * 2019-11-28 2020-04-24 湖北工业大学 Live video control method based on IPV9
CN112651045A (en) * 2020-12-30 2021-04-13 北京奇艺世纪科技有限公司 Bullet screen data processing method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105992026A (en) * 2015-02-11 2016-10-05 无锡掌睿星软件技术有限公司 Method and device for displaying barrage comment information
CN106060632A (en) * 2016-05-31 2016-10-26 武汉斗鱼网络科技有限公司 System and method of controlling bullet screen in program field
US20160366466A1 (en) * 2014-07-07 2016-12-15 Le Holdings(Beijing)Co., Ltd. Method for displaying bullet screen of video, and electronic device
CN106331761A (en) * 2016-08-26 2017-01-11 北京小米移动软件有限公司 Live broadcast list display method and apparatuses
CN107396199A (en) * 2017-08-02 2017-11-24 武汉斗鱼网络科技有限公司 Barrage method for exhibiting data and device, computer-readable recording medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602098A (en) * 2015-01-04 2015-05-06 深圳市同洲电子股份有限公司 Video barrage display method and equipment thereof
CN105187891A (en) * 2015-09-09 2015-12-23 上海微令信息科技有限公司 Transparent-browser-based video comment screen display system and method and device with system
CN106648283B (en) * 2015-11-02 2019-08-13 腾讯科技(北京)有限公司 A kind of barrage information processing method and server
CN105898377A (en) * 2015-12-11 2016-08-24 乐视网信息技术(北京)股份有限公司 User terminal, server and danmaku loading method and system
CN105847939A (en) * 2016-05-12 2016-08-10 乐视控股(北京)有限公司 Bullet screen play method, bullet screen play device and bullet screen play system
CN105959127A (en) * 2016-06-28 2016-09-21 武汉斗鱼网络科技有限公司 Mobile terminal virtual gift effect showing method and device
CN106535003A (en) * 2016-09-28 2017-03-22 乐视控股(北京)有限公司 Bullet screen information processing method, device and system
CN106358068B (en) * 2016-10-10 2023-12-19 郭海波 System and method for solving network live broadcast drawing by big data
CN106899877A (en) * 2017-03-16 2017-06-27 武汉斗鱼网络科技有限公司 barrage sending method and device
CN106993234A (en) * 2017-03-22 2017-07-28 北京潘达互娱科技有限公司 Barrage display methods and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160366466A1 (en) * 2014-07-07 2016-12-15 Le Holdings(Beijing)Co., Ltd. Method for displaying bullet screen of video, and electronic device
CN105992026A (en) * 2015-02-11 2016-10-05 无锡掌睿星软件技术有限公司 Method and device for displaying barrage comment information
CN106060632A (en) * 2016-05-31 2016-10-26 武汉斗鱼网络科技有限公司 System and method of controlling bullet screen in program field
CN106331761A (en) * 2016-08-26 2017-01-11 北京小米移动软件有限公司 Live broadcast list display method and apparatuses
CN107396199A (en) * 2017-08-02 2017-11-24 武汉斗鱼网络科技有限公司 Barrage method for exhibiting data and device, computer-readable recording medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Implementing Communication of QT and HTML Page", LIUYEZ123, 13 January 2016 (2016-01-13) *
"Implementing Desktop Barrage Program by QT (9) --- Implementation of server end", ZEROFLY2, 23 March 2016 (2016-03-23) *

Also Published As

Publication number Publication date
CN107396199B (en) 2018-08-03
CN107396199A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
WO2019024477A1 (en) Bullet screen data display method and apparatus, electronic device, and readable storage medium
US10200523B2 (en) Wireless communication system
US20170235435A1 (en) Electronic device and method of application data display therefor
CN110012328B (en) Method and device for interacting with smart television
US10496245B2 (en) Method for interactive response and apparatus thereof
WO2020207085A1 (en) Method and device for information sharing, electronic device, and storage medium
CN110020293B (en) Multimedia data display method, device and storage medium
US20160249321A1 (en) Method of synchronizing notification messages for electronic devices and electronic devices
US10506400B2 (en) Data download method and apparatus
US20230015800A1 (en) A method, apparatus, medium and electronic device for configuring a gift list in a live broadcast room
CN111343048A (en) Pressure testing method and device, computer device and storage medium
WO2017193926A1 (en) Data transmission method and device
CN107102800A (en) The display methods of message and the electronic equipment for showing message
CN112486620A (en) Cross-process off-screen rendering method and device, electronic equipment and storage medium
US11579948B2 (en) Application programming interface for web page and visualization generation
CN112637619B (en) Live broadcast overhead message determining method, device, equipment and storage medium
WO2018184360A1 (en) Method for acquiring and providing information and related device
CN106095886B (en) Data processing method and device
CN110569097B (en) Information display method and device
WO2020224302A1 (en) User information processing method, apparatus, electronic device, and computer storage medium
CN112274910A (en) Virtual key configuration method, virtual key method and related device
US20200126147A1 (en) Order prompting method and device
WO2023046105A1 (en) Message sending method and apparatus and electronic device
US10540136B2 (en) Faster frame buffer rendering over a network
CN112272223B (en) Application running method and device, server and computer readable storage medium

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: 18840233

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18840233

Country of ref document: EP

Kind code of ref document: A1