CN107396199A - Barrage method for exhibiting data and device, computer-readable recording medium - Google Patents

Barrage method for exhibiting data and device, computer-readable recording medium Download PDF

Info

Publication number
CN107396199A
CN107396199A CN201710651023.2A CN201710651023A CN107396199A CN 107396199 A CN107396199 A CN 107396199A CN 201710651023 A CN201710651023 A CN 201710651023A CN 107396199 A CN107396199 A CN 107396199A
Authority
CN
China
Prior art keywords
barrage
backstage
client
interface channel
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710651023.2A
Other languages
Chinese (zh)
Other versions
CN107396199B (en
Inventor
徐超
朱剑琳
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710651023.2A priority Critical patent/CN107396199B/en
Publication of CN107396199A publication Critical patent/CN107396199A/en
Priority to PCT/CN2018/075484 priority patent/WO2019024477A1/en
Application granted granted Critical
Publication of CN107396199B publication Critical patent/CN107396199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

Real one kind that provides of the invention belongs to internet mobile terminal net cast field the embodiments of the invention provide a kind of barrage method for exhibiting data and device, computer-readable recording medium.Barrage method for exhibiting data is applied to client, and client includes front end and backstage.Method includes:Backstage obtains the connection signal of target direct broadcasting room, creates the first interface channel of connection front end;The port object (po) of caller is registered to the first interface channel by backstage, and the barrage data that server is sent are sent to front end by the first interface channel;Front end the program on backstage is called to show barrage data according to port object (po).The front end of client shows barrage by calling the program of client background, and it greatly improves operability during displaying barrage, and operating efficiency during displaying barrage.

Description

Barrage method for exhibiting data and device, computer-readable recording medium
Technical field
The present invention relates to internet mobile terminal net cast field, in particular to a kind of barrage method for exhibiting data And device, computer-readable recording medium.
Background technology
With the fast development of mobile terminal, mobile terminal net cast industry is more and more hot, and people can be by mobile whole Net cast client on end watches the live video needed for oneself.
When watching live video, barrage people shown in video realize the important tool of interaction.At present, net cast visitor Family end can pass through interacting to realize the displaying of barrage in video between the backstage of client and the front end of client.But the party Formula is the program cooperation for the program and client front end for needing client background, can realize the displaying to barrage.From And operability of the client when showing barrage is greatly reduced, and operating efficiency during displaying barrage.
The content of the invention
In view of this, it is an object of the invention to provide a kind of barrage method for exhibiting data and device, computer-readable deposit Storage media, to be effectively improved drawbacks described above.
Embodiments of the invention are realized in the following way:
In a first aspect, the embodiments of the invention provide a kind of barrage method for exhibiting data, methods described is applied to client, The client includes front end and backstage.Methods described includes:The backstage obtains the connection signal of target direct broadcasting room, the company of establishment Connect the first interface channel of the front end;The port object (po) of caller is registered to first interface channel by the backstage, And the barrage data for sending server are sent to the front end by first interface channel;The front end is according to the end The program on backstage described in mouthful object reference is to show the barrage data.
Second aspect, the embodiments of the invention provide a kind of barrage data display device, described device is applied to client, The client includes front end and backstage.Described device includes:Creation module, sending module and display module.The establishment mould Block, the connection signal of target direct broadcasting room is obtained for the backstage, create the first interface channel for connecting the front end.The hair Module is sent, the port object (po) of caller is registered to first interface channel for the backstage, and server is sent Barrage data sent by first interface channel to the front end.The display module, for the front end according to institute State port object (po) and call the program on the backstage to show the barrage data.
The third aspect, the embodiments of the invention provide a kind of meter for the non-volatile program code that can perform with processor Calculation machine readable storage medium storing program for executing, described program code make the computing device methods described.
The beneficial effect of the embodiment of the present invention is:
Compared with prior art, the backstage of client is by getting the company during loading of target direct broadcasting room for the embodiment of the present invention Signal is connect, establishes the first interface channel to connect the front end of client, and port object (po) is registered in the first interface channel.Visitor The backstage at family end is after barrage data to be sent to the front end to client by the first interface channel, the front end of client then basis The port object (po) got calls the program of client background so that barrage data to be shown.Therefore, the front end of client Barrage is shown by calling the program of client background, it greatly improves operability during displaying barrage, Yi Jizhan Show operating efficiency during barrage.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
What Fig. 1 showed terminal device and server in the embodiment of the present invention interacts schematic diagram;
Fig. 2 shows the structured flowchart of terminal device in the embodiment of the present invention;
Fig. 3 shows a kind of flow chart for barrage method for exhibiting data that first embodiment of the invention provides;
Fig. 4 shows the sub-process of step S100 in a kind of barrage method for exhibiting data that first embodiment of the invention provides Figure;
Fig. 5 shows the sub-process of step S300 in a kind of barrage method for exhibiting data that first embodiment of the invention provides Figure;
Fig. 6 shows a kind of functional block diagram for barrage data display device that second embodiment of the invention provides;
Fig. 7 shows the function mould of creation module in a kind of barrage data display device that second embodiment of the invention provides Block figure;
Fig. 8 shows the function mould of display module in a kind of barrage data display device that second embodiment of the invention provides Block figure.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Term " first ", " the Two " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
As shown in figure 1, Fig. 1 is the schematic diagram that terminal device 10 interacts with server 11.The server 11 passes through Network 12 is communicatively coupled with one or more terminal devices 10, to enter row data communication or interaction.The server 11 can To be the webserver, database server etc..The terminal device 10 can be PC (personal computer, PC), tablet personal computer, smart mobile phone, personal digital assistant (personal digital assistant, PDA) etc..The present embodiment Middle client can be arranged in the terminal device 10, and barrage data are stored with server 11.Terminal device 10 by with clothes The interaction of business device 11, the barrage data that server 11 is sent are obtained, and by barrage data display in the display interface of client. Terminal device 10 interacts also by with server 11,.User can be input to the barrage data in client by terminal device 10 Send to server 11, so that server 11 is by the barrage data distribution to other-end equipment 10.
Referring to Fig. 2, Fig. 2 is the block diagram of terminal device 10.The terminal device 10 includes:Barrage data display Device, memory 101, storage control 102, processor 103, Peripheral Interface 104, input-output unit 105, display unit 106。
It is the memory 101, storage control 102, processor 103, Peripheral Interface 104, input-output unit 105, aobvious Show unit 106, each element is directly or indirectly electrically connected between each other, to realize the transmission of data or interaction.For example, these Element can be realized by one or more communication bus or signal wire be electrically connected between each other.The barrage data display device The terminal can be stored in the memory or be solidificated in including at least one in the form of software or firmware (firmware) Software function module in the Windows operating system of equipment 10.The processor 103 is used to perform to store in memory 101 Executable module, such as the software function module or computer program that the barrage data display device includes.
Wherein, memory 101 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 101 is used for storage program, and the processor 103 performs described program, subsequently after execute instruction is received The method performed by terminal device 10 that the process that any embodiment of the embodiment of the present invention discloses defines can apply to processor In 103, or realized by processor 103.
Processor 103 can be a kind of IC chip, have the disposal ability of signal.Above-mentioned processor can be General processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made programmable Gate array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hardware components, can be with Realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor 103 can be micro- Processor or the processor can also be any conventional processors etc..
Various input-output units 105 are coupled to processor 103 and memory 101 by the Peripheral Interface 104.One In a little embodiments, Peripheral Interface, processor and storage control can be realized in one single chip.In some other example In, they can be realized by independent chip respectively.
Input-output unit 105 is used to be supplied to user input data to realize interacting for user and data collection station.Institute State input-output unit may be, but not limited to, mouse and keyboard etc..
Display unit 106 provides an interactive interface, such as user interface between the mobile terminal and user, Or referred to for display image data to user.In the present embodiment, the display unit can be liquid crystal display or touch-control Display.If touch control display, it can be the capacitance type touch control screen or electric resistance touch-control for supporting single-point and multi-point touch operation Screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense the one or more on the touch control display Opening position is with caused touch control operation, and the touch control operation that this is sensed transfers to processor to be calculated and handled.
First embodiment
Referring to Fig. 3, Fig. 3 shows a kind of method stream for barrage method for exhibiting data that first embodiment of the invention provides Journey, the barrage method for exhibiting data are applied to client, to realize the interaction between the backstage of client and the front end of client. In the present embodiment, the backstage of client can be the bottom of client, and it is the logic control aspect of client.Before client End can be the showing interface layer of client, and it is responded for the control layout of client, tone, font and control etc..
Specifically, the method flow of barrage method for exhibiting data includes:Step S100, step S200 and step S300.
Step S100:The backstage obtains the connection signal of target direct broadcasting room, creates the first connection for connecting the front end Passage.
Corresponding direct broadcasting room list can be shown by the manipulation of user, in client, for example, user first clicks on opening eventually The client installed in end equipment so that terminal device is by way of loading or is invoked at the client of running background Mode, so that the client shows corresponding direct broadcasting room list.User is clicked in the direct broadcasting room list interface shown by client Operation button so that client show direct broadcasting room list corresponding to target direct broadcasting room.When client on interface loaded and displayed During corresponding target direct broadcasting room, the loaded and displayed of the target direct broadcasting room can produce a connection signal, the connection signal accordingly As newConnection signals, and then the backstage of client can judge that the target is live by monitoring the connection signal Between whether be loaded display.When the connection signal obtained is monitored on the backstage of client, the target direct broadcasting room quilt is judged from the background Loaded and displayed, and then the first interface channel of connection client front end is established on the backstage of client according to pre-set control programs, To realize the communication of client background and client front end.Wherein, the first interface channel is QWebChannel objects.
It should be noted that the backstage of client performs the connection signal for obtaining target direct broadcasting room, and create connection client When holding the first interface channel of front end, it can be realized based on QT frameworks.Wherein, QT frameworks are the Development Framework of object-oriented.
Step S200:The port object (po) of caller is registered to first interface channel by the backstage, and will service The barrage data that device is sent are sent to the front end by first interface channel.
After the first interface channel of connection client front end is established on the backstage of client, the backstage of client is according to default Control program builds a port class, and port class is RoomJsService classes, the port Similar integral in QObject, for The front end of client shows the barrage data got by adjusting back the program on backstage, or by adjust back the program on backstage by The barrage data of user's input are sent to backstage.Now, the backstage of client can use registerObject methods by port Port object (po) in class is registered in the first interface channel.Wherein, port object (po) is RoomJsService objects, and RegisterObject methods are used to port object (po) being registered in the first interface channel.
Specifically, the mode described in epimere can be realized by following way of example:
m_webChannel->registerObject(name,object);
In addition, when the barrage data for receiving server transmission of the mixed-media network modules mixed-media of client, the backstage of client is by bullet Curtain data match with the correlation signal in port object (po), wherein, correlation signal is client_call_chat signals, and it is used for When the front end of client gets barrage data, to realize readjustment client background by the correlation signal in barrage data Program.After establishing matching to barrage data, the backstage of client again by the barrage data by the first interface channel send to The front end of client, so that the front end of client gets the barrage data.
Specifically, the mode described in epimere can be realized by following way of example:
connect(m_roomMessageClient,SIGNAL(chatMessageReceived(const QString&)),m_jsService,SIGNAL(client_call_chat(const QString&)),Qt:: QueuedConnection);
It should be noted that the port object (po) of caller is registered to the first interface channel by the backstage of client, and will The barrage data that server is sent are sent to front end also by the first interface channel, may be based on QT frameworks to realize.
Step S300:The front end program on the backstage is called to show the barrage number according to the port object (po) According to.
After port object (po) is registered to the first interface channel by the backstage of client, and barrage data are passed through first and connected Passage sends to the front end of client, the front end of client and then gets port object (po) and barrage data accordingly.If it is easy to visitor The front end at family end, which can be realized, shows the barrage data, and client needs to create a barrage displaying control based on QML, wherein, QML is a kind of descriptive script.
As a kind of mode, client creates a QML engine first in QT, and the QML engines are QQmlApplicationEngine objects, it is used for the establishment to follow-up barrage displaying control.
Specifically, the mode described in epimere can be realized by following way of example:
M_engine=new QQmlApplicationEngine (this);
Client obtains the context address in QML engines again, and the context address and QML engines are bound, wherein, Context address is QQmlContext addresses, and the context address is used for the establishment of follow-up barrage displaying control.
Specifically, the mode described in epimere can be realized by following way of example:
QQmlContext*context=m_engine->rootContext();
In addition, port object (po) is tied in the context corresponding to the context address of QML engines by client, in order to The function of the barrage displaying control subsequently created can be by port object (po), by the first interface channel by calling client background Program is realized.
In addition, client is by creating a barrage displaying control, the barrage displaying control in QML engines NativeWebView controls, it can be used for the front end of client to show barrage data by barrage displaying control.Create the bullet After curtain displaying control, client also sets up the base attribute of the barrage displaying control, for example, the ID of barrage displaying control, barrage Display location of the displaying control on client front end, and the display size of barrage displaying control on client front end etc.. Barrage displaying control is shown to the front end of client by setting the page properties of barrage displaying control by client, wherein, Page properties are page attributes, and it is the script path address of client front end, with by the page properties by barrage Displaying control is shown to the front end of client.Furthermore it can realize and communicate with the backstage of client for ease of barrage displaying control, Client also sets up the querying attributes of barrage displaying control, and querying attributes are query attributes.Barrage displaying control passes through inquiry Attribute establishes the background communication with client.
After client completes the setting to each attribute of barrage displaying control, client completes to be shown to barrage The establishment of control, and the barrage displaying control also is located at the front end of client.Now, the port that the front end of client will be got Object and barrage data are sent in the barrage displaying control, and the barrage displaying control of client front end is according to port object (po) In displaying barrage data method, go to call the program of client background by the first interface channel, and then according to the journey of calling Sequence just can show the barrage data in barrage displaying control.
Barrage data method is sent it should be noted that further comprises in port object (po), sending barrage data method is SendRawBarrage methods.After port object (po) is got by the front end of client, when the front end of client, to get user defeated During the barrage data entered, the transmission barrage data method of the front end of client in port object (po) is logical also by the first connection Road goes to call the program of client background, and then just the barrage data that user inputs can be passed through into first according to the program of calling Interface channel is sent to the backstage of client, so that the barrage data that user inputs are sent to service by the backstage of client again Device.
Referring to Fig. 4, Fig. 4 shows step in a kind of barrage method for exhibiting data that first embodiment of the invention provides S100 method sub-process.
Specifically, step S100 method sub-process includes:Step S110 and step S120.
Step S110:Monitor the connection signal of the target direct broadcasting room in the backstage.
When client is loaded operation on the terminal device, the backstage of client just begins listening for the company of target direct broadcasting room Signal is connect, wherein, the target direct broadcasting room that the backstage of client is monitored is any direct broadcasting room in direct broadcasting room list.
When client is loaded operation on the terminal device, the backstage of client creates a development interface object first, That is QWebSocketServer objects.Development interface object is used for the network service for connecting client front end, i.e. client front end WebSocket.Now, the Background scheduling of client, which is monitored, is set, i.e. listen is set.The Background scheduling of client is monitored and set Put for monitoring the connection signal accessed by development interface object.
Specifically, the mode described in epimere can be realized by following way of example:
M_socketServer=newQWebSocketServer (serverName, QWebSocketServer:: NonSecureMode,this);
if(!m_socketServer->listen(QHostAddress::LocalHost,port))
{qFatal("Failed to open web socket server.");}
The backstage of client is calculated to monitor the connection of development interface object according to QT developing mechanism using signal and groove Signal.It is understood that connected by development interface object with the network service of client front end, when client is in terminal device On when being loaded operation, the backstage of client just can be listened to caused by the front end of client by development interface object to be connected Connect signal.
Specifically, the mode described in epimere can be realized by following way of example:
connect(m_socketServer,SIGNAL(newConnection()),this,SLOT(handleCo nnection()));
Step S120:When the target direct broadcasting room is loaded, the backstage obtains the company of the target direct broadcasting room Signal is connect, and creates first interface channel for connecting the front end.
When target direct broadcasting room is loaded, the backstage of client to the monitoring for developing interface object then by obtaining target Direct broadcasting room caused connection signal in loading.Now, before the backstage of client just creates connection according to pre-set control programs First interface channel at end.
Specifically, the mode described in epimere can be realized by following way of example:
M_webChannel=new QWebChannel (this)
At the same time, the backstage of client builds a network transmission socket class, i.e. WebSocket Transport Class, the network transmission socket Similar integral in QWebChannelAbstractTransport, wherein, The interface that QWebChannelAbstractTransport is provided by QT, it is used for before establishing the first interface channel and client Exchange between end.Now, the backstage of client handles function according to the connection signal got in the groove that groove calculates In handleConnection, a network socket pointer is generated using connection method is returned to waiting for.Wherein, return to waiting for connecting Method is nextPending Connection, and it is used to generate one according to the connection signal acquired in development interface object Individual pointer.Network socket pointer is QWebSocket pointers, and it can be easy to follow-up readjustment.The net according to establishment of client Network transmission socket class initialization generates a network transmission socket object word, and network transmission socket object word is WebSocket Transport objects.Network socket pointer is tied in network transmission socket object word by client again, and will The network transmission socket object registration of the binding network socket pointer is into the first interface channel of establishment.Wherein, network passes After defeated socket object registration is into the first interface channel, network transmission socket object word can realize backstage and the client of client Interaction of the front end at end in the first interface channel.For example, network transmission socket object word is used to connect port object (po) first Connect in road and serialize, or the program on the front end readjustment backstage of client is serialized in the first interface channel, or also by visitor The front end at family end sends to the instruction on backstage the unserializing in the first interface channel.
Specifically, the mode described in epimere can be realized by following way of example:
QWebSocket*socket=m_socketServer->nextPendingConnection();
WebSocketTransport*transport=new WebSocketTransport (socket);
m_webChannel->connectTo(transport)
Referring to Fig. 5, Fig. 5 shows step in a kind of barrage method for exhibiting data that first embodiment of the invention provides S300 method sub-process.
Specifically, step S300 method sub-process includes:Step S310 and step S320.
Step S310:The front end obtains the port object (po) being registered in first interface channel.
After connection is established in the front end of client by the backstage of the first interface channel and client, when the backstage of client will Port object (po) is registered to the first interface channel, and by the transmission of the first interface channel, the front end of client is also got accordingly The port object (po).
Step S320:The barrage displaying control of the front end obtains the port object (po), so that the barrage displaying control The barrage data display for calling the program on the backstage according to the port object (po) to obtain the front end.
After the front end of client gets port object (po), the barrage displaying control of the front end of client does not get this but Barrage displaying control.Therefore, it is necessary to which the communication with barrage displaying control is established in the front end of client, barrage displaying control can Port object (po) and barrage data are obtained from the front end of client.
As a kind of mode, the front end of client, which is arranged in barrage displaying control, sets the port object (po) before client The download path at end.Wherein, download path is qwebchannel.js, and it is used for barrage displaying control according to the download path The front end of client is gone to download the port object (po).Now, the front end of client also creates front end and the barrage exhibition of client Show the second interface channel of control, the second interface channel is also QWebChannel objects, and it is used for barrage displaying control and passes through this Second interface channel, the front end of client is gone to download the port object (po) according to download path.When barrage displaying control passes through second After interface channel gets port object (po) and barrage data, barrage displaying control is according to displaying barrage data side in port object (po) Method, control instruction just can be realized back to sending to the backstage of client by the second interface channel and the second interface channel Adjust the program on the backstage of client, and then shown in barrage displaying control barrage number according to the program of the readjustment.
Second embodiment
A kind of referring to Fig. 6, functional module of the barrage data display device 100 provided for second embodiment of the invention Figure, the barrage data display device 100 include:Creation module 110, sending module 120 and display module 130.
The creation module 110, the connection signal of target direct broadcasting room is obtained for the backstage, create and connect the front end The first interface channel.
The sending module 120, the port object (po) of caller is registered to first connection for the backstage and led to Road, and the barrage data that server is sent are sent to the front end by first interface channel.
The display module 130, the program on the backstage is called to show according to the port object (po) for the front end The barrage data.
Referring to Fig. 7, in second embodiment of the invention, creation module 110 also includes:Monitoring unit 111 and establishment are single Member 112.
The monitoring unit 111, the connection signal of the target direct broadcasting room is monitored for the backstage.
The creating unit 112, for when the target direct broadcasting room is loaded, it is live that the backstage obtains the target Between the connection signal, and create first interface channel for connecting the front end.
Referring to Fig. 8, in second embodiment of the invention, display module 130 also includes:Acquiring unit 131 and displaying are single Member 132.
The acquiring unit 131, the port pair being registered in first interface channel is obtained for the front end As.
The display unit 132, the barrage displaying control for the front end obtains the port object (po), so that the bullet The barrage data exhibition that curtain displaying control according to the port object (po) calls the program on the backstage to obtain the front end Show.
It should be noted that due to it is apparent to those skilled in the art that, convenience and letter for description It is clean, the specific work process of the system of foregoing description, device and unit, it may be referred to corresponding in preceding method embodiment Journey, it will not be repeated here.
The computer-readable of non-volatile program code that the progress processor that the embodiment of the present invention is provided can perform is deposited The computer program product of storage media, including the computer-readable recording medium of program code is stored, described program code bag The instruction included can be used for performing the method described in previous methods embodiment, and specific implementation can be found in embodiment of the method, herein not Repeat again.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, can be with Realize by another way.Device embodiment described above is only schematical, for example, the division of the unit, Only a kind of division of logic function, can there is other dividing mode when actually realizing, in another example, multiple units or component can To combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or beg for The mutual coupling of opinion or direct-coupling or communication connection can be by some communication interfaces, device or unit it is indirect Coupling or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
In summary, the embodiments of the invention provide a kind of barrage method for exhibiting data and device, computer-readable storage Medium.Wherein, barrage method for exhibiting data is applied to client, and client includes front end and backstage.Method includes:Backstage obtains The connection signal of target direct broadcasting room, create the first interface channel of connection front end;Backstage is registered by the port object (po) of caller To the first interface channel, and the barrage data that server is sent are sent to front end by the first interface channel;Front end is according to end The program on mouthful object reference backstage is to show barrage data.
Connection signal when the backstage of client is loaded by getting target direct broadcasting room, establishes the first interface channel to connect The front end of client is connect, and port object (po) is registered in the first interface channel.The backstage of client passes through by barrage data First interface channel is sent to the front end of client, and client is then called in the front end of client according to the port object (po) got The program on backstage is held so that barrage data to be shown.Therefore, the front end of client by call the program of client background come Barrage is shown, it greatly improves operability during displaying barrage, and operating efficiency during displaying barrage.
The preferred embodiments of the present invention are these are only, are not intended to limit the invention, for those skilled in the art For member, the present invention can have various modifications and variations.Any modification within the spirit and principles of the invention, being made, Equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

1. a kind of barrage method for exhibiting data, it is characterised in that methods described is applied to client, and the client includes front end And backstage, methods described include:
The backstage obtains the connection signal of target direct broadcasting room, creates the first interface channel for connecting the front end;
The port object (po) of caller is registered to first interface channel, and the barrage number that server is sent by the backstage Sent according to by first interface channel to the front end;
The front end program on the backstage is called to show the barrage data according to the port object (po).
2. barrage method for exhibiting data according to claim 1, it is characterised in that the backstage obtains target direct broadcasting room Signal is connected, creates the first interface channel for connecting the front end, including:
Monitor the connection signal of the target direct broadcasting room in the backstage;
When the target direct broadcasting room is loaded, the backstage obtains the connection signal of the target direct broadcasting room, and creates Connect first interface channel of the front end.
3. barrage method for exhibiting data according to claim 2, it is characterised in that create described first with the front end Interface channel, including:
The backstage creates first interface channel with the front end;
The backstage generation network transmission socket object word, by the network transmission socket object registration to the described first connection In passage, wherein, network transmission socket object word is used for the port object (po) sequence in first interface channel Change.
4. barrage method for exhibiting data according to claim 1, it is characterised in that the front end is according to the port object (po) The program on the backstage is called to show the barrage data, including:
The front end obtains the port object (po) being registered in first interface channel;
The barrage displaying control of the front end obtains the port object (po), so that the barrage displaying control is according to the port pair The barrage data display for obtaining the front end as the program for calling the backstage.
5. barrage method for exhibiting data according to claim 4, it is characterised in that the barrage displaying control of the front end obtains The port object (po) is taken, including:
The front end sets the download path of the port object (po) in the barrage displaying control;
The front end creates the second interface channel for connecting the barrage displaying control, so that the barrage displaying control is according to institute State download path and second interface channel obtains the port object (po).
6. barrage method for exhibiting data according to claim 1, it is characterised in that the front end is according to the port object (po) After the program on the backstage is called to show the barrage data, in addition to:
The front end obtains the barrage data;
The front end calls the program on the backstage by the port object (po), and the barrage data are connected by described first Passage is sent to the backstage.
7. a kind of barrage data display device, it is characterised in that described device is applied to client, and the client includes front end And backstage, described device include:Creation module, sending module and display module;
The creation module, the connection signal of target direct broadcasting room is obtained for the backstage, create and connect the first of the front end Interface channel;
The sending module, the port object (po) of caller is registered to first interface channel for the backstage, and will The barrage data that server is sent are sent to the front end by first interface channel;
The display module, the program on the backstage is called to show the barrage according to the port object (po) for the front end Data.
8. barrage data display device according to claim 7, it is characterised in that the creation module includes:Monitor single Member and creating unit;
The monitoring unit, the connection signal of the target direct broadcasting room is monitored for the backstage;
The creating unit, for when the target direct broadcasting room is loaded, the backstage to obtain the institute of the target direct broadcasting room Connection signal is stated, and creates first interface channel for connecting the front end.
9. barrage data display device according to claim 7, it is characterised in that the display module includes:Obtain single Member and display unit;
The acquiring unit, the port object (po) being registered in first interface channel is obtained for the front end;
The display unit, the barrage displaying control for the front end obtains the port object (po), so that the barrage is shown The barrage data display that control according to the port object (po) calls the program on the backstage to obtain the front end.
A kind of 10. computer-readable recording medium for the non-volatile program code that can perform with processor, it is characterised in that Described program code makes any methods describeds of claim 1-6 described in the computing device.
CN201710651023.2A 2017-08-02 2017-08-02 Barrage method for exhibiting data and device, computer readable storage medium Active CN107396199B (en)

Priority Applications (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
PCT/CN2018/075484 WO2019024477A1 (en) 2017-08-02 2018-02-06 Bullet screen data display method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107396199A true CN107396199A (en) 2017-11-24
CN107396199B CN107396199B (en) 2018-08-03

Family

ID=60343608

Family Applications (1)

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

Country Status (2)

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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911708A (en) * 2017-11-09 2018-04-13 腾讯数码(天津)有限公司 Barrage display methods, live broadcasting method and relevant apparatus
CN108712662A (en) * 2018-03-30 2018-10-26 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for video playing
CN109275014A (en) * 2018-09-13 2019-01-25 武汉斗鱼网络科技有限公司 A kind of method and mobile terminal linking barrage
WO2019024477A1 (en) * 2017-08-02 2019-02-07 武汉斗鱼网络科技有限公司 Bullet screen data display method and apparatus, electronic device, and readable storage medium
CN109831673A (en) * 2018-12-29 2019-05-31 北京字节跳动网络技术有限公司 A kind of direct broadcasting room data processing method, device, equipment and storage medium
CN110324229A (en) * 2018-03-30 2019-10-11 武汉斗鱼网络科技有限公司 A kind of barrage server connection method, client and readable storage medium storing program for executing
CN110347380A (en) * 2019-07-18 2019-10-18 中国联合网络通信集团有限公司 Front and back end development approach and equipment
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 (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
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
CN106358068A (en) * 2016-10-10 2017-01-25 郭海波 System and method for solving network live drawing by big data
CN106535003A (en) * 2016-09-28 2017-03-22 乐视控股(北京)有限公司 Bullet screen information processing method, device and system
CN106648283A (en) * 2015-11-02 2017-05-10 腾讯科技(北京)有限公司 Pop-up screen information processing method and server
US20170171601A1 (en) * 2015-12-11 2017-06-15 Le Holdings (Beijing) Co., Ltd. Bullet screen loading method and electronic device
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016004859A1 (en) * 2014-07-07 2016-01-14 乐视网信息技术(北京)股份有限公司 Method and device for video barrage display
CN105992026A (en) * 2015-02-11 2016-10-05 无锡掌睿星软件技术有限公司 Method and device for displaying barrage comment information
CN106060632B (en) * 2016-05-31 2020-02-07 武汉斗鱼网络科技有限公司 System and method for controlling bullet screen of program site
CN106331761A (en) * 2016-08-26 2017-01-11 北京小米移动软件有限公司 Live broadcast list display method and apparatuses
CN107396199B (en) * 2017-08-02 2018-08-03 武汉斗鱼网络科技有限公司 Barrage method for exhibiting data and device, computer readable storage medium

Patent Citations (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
CN106648283A (en) * 2015-11-02 2017-05-10 腾讯科技(北京)有限公司 Pop-up screen information processing method and server
US20170171601A1 (en) * 2015-12-11 2017-06-15 Le Holdings (Beijing) Co., Ltd. Bullet screen loading method and electronic device
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
CN106358068A (en) * 2016-10-10 2017-01-25 郭海波 System and method for solving network live 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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019024477A1 (en) * 2017-08-02 2019-02-07 武汉斗鱼网络科技有限公司 Bullet screen data display method and apparatus, electronic device, and readable storage medium
CN107911708A (en) * 2017-11-09 2018-04-13 腾讯数码(天津)有限公司 Barrage display methods, live broadcasting method and relevant apparatus
CN107911708B (en) * 2017-11-09 2022-04-05 腾讯数码(天津)有限公司 Barrage display method, live broadcast method and related devices
CN108712662A (en) * 2018-03-30 2018-10-26 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for video playing
CN110324229A (en) * 2018-03-30 2019-10-11 武汉斗鱼网络科技有限公司 A kind of barrage server connection method, client and readable storage medium storing program for executing
CN109275014A (en) * 2018-09-13 2019-01-25 武汉斗鱼网络科技有限公司 A kind of method and mobile terminal linking barrage
CN109831673A (en) * 2018-12-29 2019-05-31 北京字节跳动网络技术有限公司 A kind of direct broadcasting room data processing method, device, equipment and storage medium
CN109831673B (en) * 2018-12-29 2021-06-18 北京字节跳动网络技术有限公司 Live broadcast room data processing method, device, equipment and storage medium
CN110347380A (en) * 2019-07-18 2019-10-18 中国联合网络通信集团有限公司 Front and back end development approach and equipment
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

Also Published As

Publication number Publication date
CN107396199B (en) 2018-08-03
WO2019024477A1 (en) 2019-02-07

Similar Documents

Publication Publication Date Title
CN107396199A (en) Barrage method for exhibiting data and device, computer-readable recording medium
CN107784086B (en) Webpage loading method, terminal equipment and computer readable storage medium
EP3531257A1 (en) Application interface management method and apparatus
CN109656807A (en) Interface mock test method, device, equipment and storage medium based on information security
CN108347532B (en) Function access method, device, terminal equipment and storage medium
CN103069413A (en) Customizing content displayed for a user based on user preferences of another user
CN108055320B (en) Processing method, terminal device and the computer readable storage medium of resource downloading
CN105163135B (en) Method for down loading, apparatus and system and the mobile terminal of Internet resources
CN107329991A (en) A kind of list access to web page and methods of exhibiting and its system
CN110245784A (en) A kind of method, apparatus and computer storage medium that meeting room is recommended
CN110096388A (en) A kind of method, apparatus and computer storage medium of data backup
WO2017113690A1 (en) Method and device for sharing multimedia information
CN104216698B (en) A kind of registration web page method and relevant apparatus
US20160196008A1 (en) Implementing desktops on a mobile terminal
CN106209607A (en) Subscription information methods of exhibiting and device
CN105488109A (en) Content item configuration method, device and system
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN107888663A (en) A kind of method of distribution of document, equipment and computer-readable medium
CN107423395A (en) Navigation data processing system
JP6751778B2 (en) Methods, electronic devices and storage media for realizing communication between business systems and multi-assembly
CN110286981A (en) The display methods and display system of the use state of virtual cloud desktop server
CN106598617A (en) Method for setting webpage shortcut, and electronic equipment
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN109791444A (en) Call method and apparatus, server and the terminal of input method
CN115951923B (en) Subscription event management method, display system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant