CN110475140A - Barrage data processing method, device, computer readable storage medium and computer equipment - Google Patents

Barrage data processing method, device, computer readable storage medium and computer equipment Download PDF

Info

Publication number
CN110475140A
CN110475140A CN201910730574.7A CN201910730574A CN110475140A CN 110475140 A CN110475140 A CN 110475140A CN 201910730574 A CN201910730574 A CN 201910730574A CN 110475140 A CN110475140 A CN 110475140A
Authority
CN
China
Prior art keywords
barrage
content
barrage data
type
configuration information
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
CN201910730574.7A
Other languages
Chinese (zh)
Other versions
CN110475140B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910730574.7A priority Critical patent/CN110475140B/en
Publication of CN110475140A publication Critical patent/CN110475140A/en
Application granted granted Critical
Publication of CN110475140B publication Critical patent/CN110475140B/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/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/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
    • H04N21/4316Generation 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 for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • 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

Abstract

This application involves a kind of barrage data processing method, device, computer readable storage medium and computer equipments, which comprises receives barrage data, the barrage data include barrage type;The object element of displaying required for determining the barrage type according to preset configuration information;Based on the barrage data content and the corresponding configuration information of the object element, the corresponding element content of the object element is parsed;Show parsing with the element content postponed.Scheme provided by the present application realizes the separation of barrage content and configuration information, allows terminal using unified configuration information parsing barrage data, improves the simplicity of barrage data processing.

Description

Barrage data processing method, device, computer readable storage medium and computer equipment
Technical field
It, can more particularly to a kind of barrage data processing method, device, computer this application involves field of computer technology Read storage medium and computer equipment.
Background technique
With the development of computer technology, the mode that people carry out communication exchange is more and more abundant, by the way of barrage The phenomenon that being commented on multimedia, carrying out exchange and interdynamic with other people is also more and more common.Terminal can be more in viewing by user The barrage data triggered when media are sent to server, are issued to other terminals by server, so that other terminal parsings Barrage data are simultaneously shown.
However, the corresponding barrage data of different multimedia scenes are not often identical, can be provided when terminal When multimedia scene is more, there are barrage data processing is many and diverse, the high problem of complexity.
Summary of the invention
Based on this, it is necessary to which the technical problem many and diverse for barrage data processing, complexity is high provides a kind of barrage data Processing method, device, computer readable storage medium and computer equipment.
A kind of barrage data processing method, comprising:
Barrage data are received, the barrage data include barrage type;
The object element of displaying required for determining the barrage type according to preset configuration information;
Based on the barrage data and the corresponding configuration information of the object element, the corresponding member of the object element is parsed Plain content;
Element content after showing parsing.
A kind of barrage data processing equipment, described device include:
Data reception module, for receiving barrage data, the barrage data include barrage type;
Element determining module, the target element for displaying required for determining the barrage type according to preset configuration information Element;
Parsing module parses the mesh for being based on the barrage data and the corresponding configuration information of the object element Mark the corresponding element content of element;
Display module, for showing the element content after parsing.
A kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor executes the step of barrage data processing method.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the calculating When machine program is executed by the processor, so that the processor is executed such as the step of barrage data processing method.
Above-mentioned barrage data processing method, device, computer readable storage medium and computer equipment include bullet receiving When the barrage data of curtain-like type, the object element of displaying required for barrage type is determined using preset configuration information, is based on bullet Curtain data and the corresponding configuration information of object element, the corresponding element content of parsing object element, and show the element after parsing Content.The separation that barrage content and configuration information may be implemented allows terminal using unified configuration information parsing barrage Data reduce the complexity of barrage data processing.
Detailed description of the invention
Fig. 1 is the applied environment figure of barrage data processing method in one embodiment;
Fig. 2 is the flow diagram of barrage data processing method in one embodiment;
Fig. 3 is the flow diagram that element content is obtained in one embodiment;
Fig. 4 is the flow diagram of barrage data processing method in one embodiment;
Fig. 5 is the schematic diagram for the element that barrage includes in one embodiment;
Fig. 6 is the flow diagram for carrying out touch control operation in one embodiment to element content;
Fig. 7 is the flow diagram of barrage data processing method in another embodiment;
Fig. 8 is the flow diagram of barrage data processing method in another embodiment;
Fig. 9 is the schematic diagram at video playing interface in one embodiment;
Figure 10 is the schematic diagram that barrage shows interface in another embodiment;
Figure 11 is the flow chart of barrage data processing method in one embodiment;
Figure 12 is the structural block diagram of barrage data processing equipment in one embodiment;
Figure 13 is the structural block diagram of barrage data processing equipment in another embodiment;
Figure 14 is the structural block diagram of barrage data processing equipment in another embodiment;
Figure 15 is the structural block diagram of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Fig. 1 is the applied environment figure of barrage data processing method in one embodiment.Referring to Fig.1, the barrage data processing Method is applied to barrage data processing system.The barrage data processing system includes terminal 110 and server 120.110 He of terminal Server 120 passes through network connection.Terminal 110 specifically can be terminal console or mobile terminal, and mobile terminal specifically can be with hand At least one of machine, tablet computer, laptop etc..Server 120 can use independent server either multiple clothes The server cluster of business device composition is realized.)
As shown in Fig. 2, in one embodiment, providing a kind of barrage data processing method.The present embodiment is mainly with this Method is applied to the terminal 110 in above-mentioned Fig. 1 to illustrate.Referring to Fig. 2, which specifically includes as follows Step:
S202, receives barrage data, and barrage data include barrage type.
Barrage data refer to that server is handed down to terminal data relevant to barrage, by being parsed to barrage data, The available barrage content for needing to show.Wherein, barrage refers to the comment subtitle shown when watching multimedia.Barrage can The comment content that inputs is generated when watching multimedia by user to be, and the behaviour that according to user's viewing multimedia when is triggered What work generated.Multimedia is the information representation mode of one or more compositions in audio, image, video etc. by text.
Specifically, terminal can receive user and watch the operation perhaps triggered in the comment inputted when multimedia and be sent to Server, server can generate corresponding barrage data according to the operation perhaps triggered in the comment, and being handed down to viewing should Multimedia terminal, terminal can receive the barrage data issued.Optionally, terminal can also comment on based on the received in perhaps The operation of triggering generates corresponding barrage data, and is issued to terminal by server.
Barrage data packet contains barrage type.Barrage type is by barrage data according to corresponding after the classification of barrage exhibition method Type.Terminal can determine corresponding barrage exhibition method according to the corresponding barrage type of barrage data.Optionally, multimedia Playing scene may include one or more barrage exhibition methods.For example, terminal can only show the comment that barrage data include Content;It can also show the comment content and the corresponding user identifier for sending terminal of the comment content that barrage data include; It can also show that the corresponding user identifier for sending terminal of the comment content, the user identifier are corresponding when showing comment content TIER icon etc..
In one embodiment, barrage data can be in real time from server acquisition, be also possible to be stored in advance in end The barrage data at end etc..Specifically, terminal can pull barrage data to server transmission during multimedia Request, this, which pulls request and is used to indicate server, issues the corresponding barrage data of the corresponding multimedia, so that terminal can connect Accept the barrage data of hair;Terminal can also obtain the corresponding barrage of the multimedia from server when caching or downloading multimedia Data, and barrage data are stored in terminal, so that the bullet of the corresponding caching of the multimedia can be will acquire when playing multimedia Curtain data.
S204, the object element of displaying required for determining barrage type according to preset configuration information.
Element refers to the object of composition barrage content.Barrage content, which refers to, to be needed to show content.For example, composition barrage content Element can be, but not limited to be comment content, user identifier, user gradation, background, at least one of sending time.It is optional Ground, element can also be including response messages corresponding to trigger action information, trigger action etc., it is not limited here.Wherein, it comments Refer to that the comment content that user inputs when watching multimedia, trigger action information refer to that user watches multimedia when institute by content The relevant information of the operation of triggering.Object element refers to the corresponding required element shown of barrage type.Needed for barrage type The object element to be shown can be one or more.Terminal can preset different barrage types pair according to practical application request The object element for the required displaying answered.
Preset configuration information is the barrage configuration information for being pre-stored within terminal.It is contained in preset configuration information every The object element shown required for one barrage type.Terminal can obtain the barrage type that barrage data include, and match from preset The corresponding required object element shown of the barrage type is obtained in confidence breath.
In one embodiment, preset configuration information can be developer's preset default configuration letter according to actual needs Breath;It can also be with the received configuration information set by user of terminal;It can also be the default that terminal sets developer according to user The configuration information etc. that configuration information determines after modifying.User terminal can repair preset configuration information as needed Change update, the object element of displaying required for terminal can determine barrage type according to updated preset configuration information.Its In, updating to the modification of preset configuration information may include increase to object element, modification, deletion and imitates to showing The setting etc. of fruit, it is not limited here.
S206 is based on barrage data and the corresponding configuration information of object element, the corresponding element content of parsing object element.
Element content is the corresponding particular content of element in barrage data.For example, element is user identifier, then corresponding member Plain content can be the pet name of specific user, user phone number or be head portrait of user etc.;Element is background, then Corresponding element content can be specific one or more picture, and element is comment content, then corresponding element content is hair The comment content etc. that the user that end obtains that makes arrangements for his funeral inputs.
The corresponding configuration information of object element is configuration information relevant to the object element.Optionally, object element Corresponding configuration information may include the acquisition modes of the corresponding element content of the object element.Terminal is based on barrage data and mesh The corresponding configuration information of element is marked, the corresponding element content of parsing object element, specifically, terminal can be according to object element pair The configuration information answered determines the acquisition modes of the corresponding element content of object element, is based on the acquisition modes and barrage data, obtains Take the corresponding element content of the object element.
In one embodiment, terminal can also include showing to the content of element content to the element content of object element The parsing of parameter.Specifically, the corresponding configuration information of object element can also include the content presentation parameter of element content.Terminal According to the corresponding configuration information of object element, the content presentation parameter of the corresponding element content of the object element can parse.Its In, content presentation parameter refers to characterisitic parameter of the element content when multimedia play interface is shown.
In one embodiment, preset configuration information contains the corresponding configuration information of each element, and terminal can be with After the object element shown required for having determined, the corresponding configuration information of determining object element is obtained, so that terminal can The corresponding element content of the object element is parsed based on barrage data configuration information corresponding with the object element determined.
S208, the element content after showing parsing.
Specifically, terminal is based on barrage data and the corresponding configuration information of object element, element corresponding to object element After Context resolution, element content is shown according to the result of parsing.
In one embodiment, the display area of element content is contained in barrage data, terminal can be from barrage data solution The corresponding displaying of element content is analysed, with the element content after the display area shows parsing.Optionally, the displaying of element content Region is also possible to be determined according to preset configuration information.Further, in one embodiment, terminal can be according to barrage type The acquisition modes for determining display area are obtained from barrage data or preset configuration information according to the acquisition modes of the display area Take the corresponding display area of element content, and then the element content after the display area shows parsing.
In one embodiment, terminal shows the element content after parsing according to the reception timing of barrage data.Barrage number According to reception timing refer to barrage data receiving time sequencing.Specifically, terminal can according to barrage data and The corresponding configuration information of determining object element will be in the element after parsing after the parsing of object element corresponding element content Appearance is shown according to the reception timing of the barrage data.Optionally, the element content after parsing can be showed in a reception Barrage data element content after, can also be showed in front of the element content of a received barrage data, herein not It limits.
In one embodiment, terminal parses the content presentation parameter of the corresponding element content of the object element, then terminal The element content can be shown according to the content presentation parameter.
Above-mentioned barrage data processing method can determine after receiving barrage data according to preset configuration information The object element shown required for the barrage type that barrage data include, it is corresponding with confidence based on barrage data and object element Breath, the corresponding element content of parsing object element, and the element content after parsing is shown.The barrage data processing method The separation for realizing barrage content and configuration information allows terminal using unified configuration information parsing barrage data, can To avoid the version information for needing synchronized update terminal when changing barrage pattern, the complexity of barrage data processing is reduced, Improve the simplicity of barrage data processing.Also, the separation of barrage content and configuration information, can be to avoid the number that server issues According to the corresponding data of all information comprising needing to show, cause the data volume of transmission big, the big problem of network overhead can subtract The data volume of few barrage data, improves the efficiency of barrage data transmission.
In one embodiment, step S206 includes: to determine object element institute according to the corresponding configuration information of object element The element type of category;Based on element type and barrage data, the corresponding element content of object element is obtained.
Element type is by element according to corresponding type after the attributive classification of element content.Element type includes text class Type, picture type.In some embodiments, element type may include sound-type etc..For example, user identifier is usually by counting The character string of at least one of word, letter and symbol character composition, then element type belonging to user identifier is text type; Optionally, if user identifier is user identifier image, element type belonging to user identifier is picture type;Background is usually It is made of picture, then element type belonging to background is picture type etc..The corresponding configuration information of element may include element Affiliated element type, terminal can determine element type belonging to object element according to the corresponding configuration information of object element.
The acquisition modes of the corresponding element content of different element types are usually different.The acquisition modes of element content There are many, for example, corresponding element content directly can be obtained from barrage data according to object element;It is also possible to comprehensive mesh The corresponding configuration information of mark element and barrage data obtain the corresponding element content of object element;It can also be according to object element The element content etc. obtained from server, it is not limited here.
Terminal is based on element type and barrage data, obtains the corresponding element content of object element.Specifically, terminal can be with The acquisition modes of element content are determined according to element type, and then are obtained from barrage data according to the acquisition modes of the element content Take the corresponding element content of object element.Optionally, the corresponding relationship of the acquisition modes of element type and element content can root It is set according to practical application request.For example, text type and the acquisition modes of the corresponding element content of picture type can be from bullet It is obtained in curtain data;The acquisition modes of the corresponding element content of sound-type can be from server request etc., herein not It limits.
In one embodiment, element type belonging to object element can be one or more.Specifically, work as target element When element type belonging to element is text type and picture type, then terminal can be according to the corresponding element content of text type Acquisition modes obtain the corresponding content of text of object element, and obtain according to the acquisition modes of the corresponding element content of picture type The corresponding image content of object element, the then corresponding content of text of the object element obtained and image content form the object element Corresponding element content.For example, comment content may include the content of text and image content of user's input, wherein in picture Hold the image that can be user's upload, is also possible to the expression etc. that user chooses.
In the present embodiment, element type belonging to object element is contained in preset configuration information, terminal determines mesh It, can be according in the type and the corresponding element of barrage data acquisition belonging to object element after marking element type belonging to element Hold, does not need that the simplicity of barrage data processing can be improved using different content acquisition modes for each element.
In one embodiment, when element type is text type, target element is obtained in the barrage data processing method The process of the corresponding element content of element, comprising: obtain field associated by object element;From barrage data, acquisition and target The corresponding content of text of field associated by element, using content of text as the corresponding element content of object element.
Field associated by object element refers to field associated with the element content of object element.Object element is closed The field of connection is equivalent to the value index of the corresponding element content of object element, can be with according to field associated by the object element Search the corresponding element content of the object element.
Field can be indicated by the character string of at least one of number, letter and symbol character composition.For example, with Field associated by the pet name of family can be expressed as nick;Field associated by comment content can be expressed as content;Background member Field associated by element can be expressed as background;If comprising two background elements, associated by two background elements Field can be expressed as background1 and background2 etc., it is not limited here.
Specifically, when element type be text type when, terminal is obtained from barrage data and the object element associated by The corresponding content of text of field, the content of text that will acquire is as the corresponding element content of object element.That is, bullet Curtain data, which contain, needs the content of text that shows, and when the element type of object element is text type, terminal can be from default Configuration information obtain field associated by object element, the field according to associated by object element obtains pair from barrage data The content of text answered, the corresponding element content of object element as required displaying.For example, when object element is in comment Hold, the corresponding field of comment content is content, if barrage data contain content: this is comment content;Then terminal can , from the corresponding content of text of barrage data acquisition i.e. " this is comment content ", to be incited somebody to action according to content field, " this is in comment Hold " as the corresponding element content of comment content.
Fig. 3 shows the flow chart that element content is obtained in one embodiment.As shown in figure 3, in one embodiment, when When element type is picture type, the process of the corresponding element content of object element, packet are obtained in the barrage data processing method It includes:
S302 obtains field associated by object element.
Field associated by object element refers to field associated with the element content of object element.Specifically, target The corresponding configuration information of element contains field associated by object element.Terminal can be from the corresponding configuration information of object element Field associated by middle acquisition object element.
S304, the field according to associated by object element obtain corresponding picture value from barrage data.
Terminal obtains field associated by object element, can be from barrage data according to field associated by the object element It is middle to obtain corresponding picture value.Specifically, terminal can be searched from barrage data by word associated by the object element The corresponding picture value of section.That is, barrage data and do not include the corresponding image content of the object element, and there is provided The value of the corresponding image content of object element.
S306 obtains picture corresponding with picture value, the picture that will acquire from the corresponding configuration information of object element As the corresponding element content of object element.
All pictures that the object element can be shown are contained in the corresponding configuration information of object element.These pictures with Picture value corresponds, terminal available figure corresponding with the picture value from the corresponding configuration information of object element Piece, the picture that will acquire is as the corresponding element content of object element.For example, when object element is user gradation, then user The corresponding configuration information of grade may include the corresponding picture of each user gradation, and barrage data can be with based on the received for terminal It determines the corresponding picture value of user gradation element, makees to obtain corresponding picture from the corresponding configuration information of user gradation For the corresponding element content of user gradation element.
In one embodiment, it may include background, icon such as user gradation figure that element type, which is the element of picture type, Mark, user's gender icon, user identifier image etc., it is not limited here.It may include in the preset configuration information of terminal each All pictures that a element can be shown.Optionally, in some embodiments, element type is corresponding to the element of picture type Element content can also directly be obtained from barrage data.Terminal can will belong to the member of picture type according to practical application Element is further distinguished.
Similarly, in some embodiments, element biggish for the data volume of content of text can also use picture category The corresponding element content acquisition modes of type.The content of text that element can be shown is prestored by terminal, and then according to barrage number The corresponding value of the element obtains corresponding content of text as the corresponding element of the element from preset configuration information in Content.
In one embodiment, terminal is according to acquisition figure corresponding with picture value in the corresponding configuration information of object element After piece, the picture can also be parsed according to the format of the picture.Wherein, the format of picture may include png (Portable Network Graphics, portable network figure) format, gifGIF (Graphics Interchange Format, graphic interchange format) format, webp (lossy compression predictive coding) format etc., it is not limited here.Different pictures The corresponding picture analysis mode of format is different.In general, the picture for including in the configuration information that terminal prestores is according to picture format It is saved after being compressed, terminal, can be corresponding according to the format of the picture after getting the corresponding picture of object element Picture analysis mode parse the picture, to show the picture.
It in the present embodiment, can be from barrage by distinguishing text type and picture type, the corresponding element of text type Corresponding content of text is obtained in data, the corresponding element of picture type can obtain picture value from barrage data, according to Picture value obtains corresponding image content from preset configuration information.Barrage data only need the element comprising needing to show The text data of content can greatly reduce the data volume of barrage data without carrying image data, reduce barrage number Network overhead when according to transmission.
As shown in figure 4, in one embodiment, the barrage data processing method provided includes:
S402, receives barrage data, and barrage data include barrage type.
S404, the object element of displaying required for determining barrage type according to preset configuration information.
S406 is based on barrage data and the corresponding configuration information of object element, obtains the corresponding element content of object element.
S408 determines the corresponding content presentation parameter of element content according to the corresponding configuration information of object element.
Content presentation parameter refers to parameter relevant to the displaying characteristic of element content.Preset configuration information may include The corresponding content presentation parameter of each element.Terminal determines that element content is corresponding according to the corresponding configuration information of object element Content presentation parameter, specifically, terminal can obtain the corresponding configuration information of object element from preset configuration information, thus The corresponding configuration information of parsing object element obtains the corresponding content presentation parameter of element content.
In one embodiment, the corresponding content presentation parameter of element content includes color, size and touch-control response message At least one of.Color refers to color of the element content when showing.Size is size of the element content when showing, can The size of selection of land, text can be specially the font size size of text;The size when size of picture is picture presentation.
Touch-control response message refers to the response message when receiving the touch control operation to element content.Touch-control response message It may include whether element content can be responded by touch-control, can also include response message corresponding to touch control operation.Optionally, no Same element can correspond to different touch-control response messages.For example, in one embodiment, in the preset configuration information of terminal, The corresponding touch-control response message of user gradation element, content element is touch-control without response;The corresponding touch-control response letter of user identifier Breath, which can be, shows the corresponding user interface of user identifier;It is also possible to show the corresponding account of user identifier in the form of a popup window Information etc., it is not limited here.
Terminal can preset the corresponding content presentation parameter of element content of different elements, so that it is determined that need to show The corresponding content presentation parameter of the element content of object element.
In one embodiment, there is a situation where that the corresponding content presentation parameter of different elements is identical.Terminal can To divide classification to element according to the content presentation parameter of use, the identical element of content presentation parameter is divided into same class Not, terminal only needs to save the corresponding content presentation parameter of the category, it is possible to reduce the data volume of the preset configuration information of terminal; Terminal can determine that the content of element content shows ginseng in the object element for determining that needs are shown according to the classification of object element Number.
S410 shows element content according to content presentation parameter.
Terminal shows element content according to content presentation parameter, and specifically, terminal can be rendered according to content presentation parameter Element content, to show corresponding element content on interface.
Table 1 shows the corresponding configuration information of element in one embodiment.Referring to table 1, it is i.e. close that table 1 provides 4 elements Claim element nick, comment content element content, user gradation element user_level_icon and background element noble- background;Element-type indicates the corresponding element type of element;In this embodiment, pet name element and comment content The corresponding element type of element is identical, and the corresponding element type of user gradation element and background element is different;Textcolor table Show the color of element content, textsize indicates the size of element content, and clickable indicates whether element content can be touched Control;Key indicates element field corresponding in barrage data;Value indicates the different corresponding pictures of picture value.Example Such as, if value of the corresponding nl field of background element noble-background in barrage data be 1, using bg1 as The corresponding element content of background element, if value of the nl field in barrage data is 2, using bg2 as the background element Corresponding element content.
The acquisition modes of the element content of element are contained in element arrangements information, further comprise the content exhibition of element content Show parameter.As shown in 1 content of table, the corresponding field of pet name element nick is nick, i.e. terminal can be from barrage data acquisition Element content of the corresponding content of text of nick field as pet name element;The corresponding content presentation parameter packet of pet name element nick Include: color ffffff, size 16 can be responded by touch-control;Terminal can be after having parsed element content, by element content It is ffffff according to color, size 16, and can be shown by the characteristic that touch-control responds.
1 element arrangements information of table
In above-described embodiment, the preset configuration information of terminal includes the corresponding element presentation parameter of element content.Terminal Based on barrage data and the corresponding configuration information of object element, can parse to obtain the corresponding element content of object element, and member The corresponding content presentation parameter of plain content, and element content is shown according to the content presentation parameter.It is used for different elements Different content presentation parameters, can be improved barrage data show when readability, enrich barrage data exhibition method.
Fig. 5 is the schematic diagram for the element that barrage includes in one embodiment.As shown in figure 5, in one embodiment, barrage User's pet name, comment 4 kinds of content, background and user gradation icon elements can be divided into, wherein broadcast for different videos Scene is put, the color and size when the color and size and comment content when user's pet name is shown are shown can be different.Terminal It can be set as needed user's pet name and comment on the color and size of content, the bandwagon effect of barrage data can be improved.Back Scape and the corresponding element content of user gradation icon are picture.Wherein, picture can use a variety of different picture formats, example Such as, picture format can be png format, gif format, webp format etc., it is not limited here.
As shown in fig. 6, showing the element content after parsing in one embodiment, in the barrage data processing method provided Later, further includes:
S602 receives the touch control operation for acting on shown element content.
Touch control operation is the operation for acting on the element content of displaying.Specifically, touch control operation can be to element content Cursor clicking operation;It is also possible to the clicking operation of predefined physical button;Or the work triggered according to voice messaging Touch control operation for the element content shown.Terminal can receive the touch control operation for acting on shown element content.
S604 obtains acted on element content and is directed to the touch-control response message that touch control operation generates.
Specifically, touch-control response message is that terminal parses the configuration information of object element.Terminal can obtain When taking the touch control operation to element content, the element content that parsing obtains is obtained according to the touch control operation and is produced for touch control operation Raw touch-control response message.
In one embodiment, it includes the element content of amplification displaying that touch-control response message, which can be, but not limited to, opens member Plain content is corresponding to be linked, replicates to element content;Show one of information relevant to the element content or a variety of.
In one embodiment, preset configuration information may include acting on the different touch control operations of element content to be produced Raw touch-control response message.Terminal is according to the available corresponding touch-control response message of the touch control operation for acting on element content. For example, the corresponding touch-control response message of the clicking operation for acting on user's pet name, which can be, shows the corresponding user of user's pet name Interface;The corresponding touch-control response message of cursor dwell operation for acting on user's pet name can be pop-up and show user's pet name Corresponding account information, the corresponding touch-control response message of double click operation for acting on user's pet name, which can be, shows that the user is close The history barrage etc. for claiming corresponding user terminal to send, it is not limited here.
S606 exports touch-control response message.
Terminal can export corresponding touch-control response message according to the touch control operation for acting on element content.Specifically, it touches Control response message contains touch-control response mode and touch-control response contents.The touch-control that terminal can include according to touching response message is rung Mode is answered to export touch-control response contents.For example, terminal can be with audio output if touch-control response message is output voice messaging Mode export specific voice messaging;If touch-control response message is output pictorial information or text information, touch-control responder Formula may include barrage is shown, figure layer is shown, opens new page displaying etc.;The touching that terminal can include according to touch-control response message It controls response mode and shows corresponding pictorial information or text information.
In one embodiment, when touch-control response message is chained address, step S606 can also include: acquisition target The corresponding touch-control of element shows interface;The information that showing interface chained address is linked is shown in touch-control.
Touch-control shows that interface can be pop-up and show interface, is also possible to receive provided by the application program of barrage data Interface;It can also be the interface etc. for the browser for including in the terminal for receiving barrage data.Preset configuration information may include The corresponding touch-control of element shows interface.Optionally, the corresponding touch-control of element shows that interface can be the showing interface according to user Habit determines, is also possible to show what interface determined according to barrage type set.Chained address refers to believes comprising Internet resources The webpage jump address of breath or the jump address of local resource information.For example, the corresponding chained address of user's pet name can be this The jump address of the corresponding user interface of user's pet name;The corresponding chained address of emotion icons can be the corresponding downloading of the expression Address;The corresponding chained address of user gradation icon can be the chained address etc. of the webpage comprising user gradation adjustment information.
For identity element, the chained address that element content is generated for touch control operation can be according to the configuration information of element And specific element content determines.For example, being directed to user's pet name element, the corresponding chained address of the element is user interface Jump address;For different element contents, corresponding chained address is different;Such as the element content " A of user's pet name element The chained address of user " corresponds to user's pet name for the jump address of the user interface of party A-subscriber, in the element of user's pet name element The chained address for holding " party B-subscriber " corresponds to the jump address for the user interface that user's pet name is party B-subscriber.
Specifically, terminal can be when reception acts on the touch control operation of shown element content, according to what is acted on The configuration information of object element belonging to element content and the element content determine the corresponding chained address of the touch control operation and Touch-control shows interface, shows the information that the showing interface chained address is linked in touch-control.
The touch control operation of shown element content is acted on by receiving, available acted on element content is directed to Touch-control response message caused by touch control operation, and then the touch-control response message is exported, it may be implemented between user and barrage Interactive operation;When touch-control response message is chained address, the corresponding touch-control of the available object element of terminal shows interface, In Touch-control shows the information that showing interface chained address is linked, i.e., shows showing interface chained address according to the touch-control of element setting The information linked can satisfy different showing interface demands.
In one embodiment, the process of the element content after parsing is shown in the data processing method provided, comprising: root The corresponding arrangement of elements sequence of barrage data is determined according to barrage type;By the element content after parsing according to arrangement of elements sequence into Row is shown.
The corresponding arrangement of elements sequence of barrage data refers in the element of the object element shown required for the barrage data Hold putting in order when showing.For example, the target element shown required for the barrage type for including according to barrage data determines Element includes user identifier, comment content and when user gradation icon, corresponding arrangement of elements sequence can be according to user identifier, User gradation icon, comment content are successively shown;It is also possible to according to user gradation icon, user identifier, comment content successively It shows;It can also be and successively shown according to comment content, user identifier, user gradation icon, it is not limited here.
In one embodiment, the object element of displaying required for terminal determines barrage type according to preset configuration information Afterwards, from needing to filter out the object element for needing to sort in the object element shown, whether the quantity of the object element filtered out It is 2 or 2 or more, if the quantity of object element is 2 or 2 or more, terminal can determine barrage according to barrage type The corresponding arrangement of elements sequence of data.
Preset configuration information may include the corresponding arrangement of elements sequence of each barrage type.Specifically, terminal exists After element content after showing parsing, the element of the corresponding object element of barrage type can be obtained from preset configuration information It puts in order, to be shown after being ranked up the corresponding element content of each object element according to arrangement of elements sequence.
In one embodiment, before the element content after parsing is shown by terminal according to arrangement of elements sequence, also The size of the display area of the corresponding element content of available each object element, so that the element content after parsing be pressed It is shown according to the size of arrangement of elements sequence and corresponding display area.Specifically, the size when element content is completely shown Less than preset display area size when, size when terminal can completely be shown according to element content carries out display area It is adaptively adjusted;Size when element content is shown completely greater than preset display area size when, terminal can be by The partial content in the element content is shown in display area according to the size of display area, and shows that can be used for triggering displaying is somebody's turn to do The control of the full content of element content.
It in the present embodiment, can be the corresponding arrangement of elements sequence of barrage Data Matching according to barrage type, thus Element content after parsing is shown according to arrangement of elements sequence, the displaying that can satisfy element in different barrages needs It asks, improves the bandwagon effect of barrage.
In one embodiment, determine that the corresponding arrangement of elements sequence of barrage data includes: according to bullet according to barrage type The corresponding configuration information of curtain-like type obtains the corresponding ranking value of each object element in barrage data;According to each target The corresponding ranking value of element determines arrangement of elements sequence.
Preset configuration information may include the corresponding configuration information of barrage type.In the corresponding configuration information of barrage type Prestore the corresponding ranking value of each object element.The relationship one of the object element for including in barrage type and ranking value is a pair of It answers.Ranking value can be indicated using number.Optionally, terminal can be bigger with predetermined order value, then puts in order more forward; Can be bigger with predetermined order value, then put in order more rearward, it is not limited here.
Terminal it is corresponding can to obtain each object element in barrage data according to the corresponding configuration information of barrage type Ranking value determines arrangement of elements sequence according to the corresponding ranking value of each object element.For example, matching when barrage type is corresponding Confidence breath is respectively user's pet name comprising object element and corresponding ranking value: 12, commenting on content: 5, user's gender icon: 7; If ranking value is bigger, put in order more forward, then the corresponding arrangement of elements sequence of the available barrage data of terminal is use The family pet name, user's gender icon and comment content are arranged successively.
Table 2 shows one embodiment and is hit by a bullet the corresponding configuration information of curtain-like type.The present embodiment is bigger with ranking value, then arranges Sequence is more forward to be illustrated.Referring to table 2, the barrage data shown required for the barrage data that barrage type is 1 include pet name member Plain nick, comment content element content, user gradation element user_level_icon and background element noble_ background;Terminal is according to user etc. according to the available arrangement of elements sequence of the corresponding ranking value of each object element Grade element, pet name element, comment content element are arranged successively.Wherein, the element content of background element noble_background It when showing as background, does not need to be ranked up displaying with other elements, corresponding ranking value is sky.Similarly, barrage class The arrangement of elements sequence that type is 2 is to be arranged successively according to user gradation element, pet name element, comment content element.
2 barrage type configuration information of table
In one embodiment, the corresponding configuration information of barrage type contains the target shown required for the barrage type Element, then in the barrage data processing method, terminal is after receiving barrage data, then the bullet that can include according to barrage data Curtain-like type obtains corresponding configuration information, the object element that is shown required for being determined according to the corresponding configuration information of barrage type and The corresponding arrangement of elements sequence of the barrage data.
In one embodiment, with the received barrage data of terminal be " danmutype ": 1, " content ": " I is interior Hold ", " nick ": " I is the pet name ", " lv ": " 2 ", " nl ": " 1 " }, configuration information is included matching for table 1 and table 2 by preset terminal Confidence breath, is illustrated the process of barrage data processing:
Firstly, the barrage type danmutype for including in the available barrage data of terminal is 1.
Then, terminal is available for 1 configuration information according to the offer barrage type of table 2, and barrage type is required when being 1 The object element of displaying includes pet name element nick, comment content element content, user gradation element user_level_ Icon and background element noble_background.
Then, the configuration information for the element that terminal is provided according to table 1 can be to the corresponding element content of each object element It is analyzed.
Specifically, terminal can obtain in corresponding element according to the corresponding field nick of pet name element from barrage data Hold be " I is the pet name ", and according to pet name element determine the corresponding content presentation parameter of the element content be font size be 16, Color is ffffff;Corresponding element content is obtained from barrage data according to the corresponding field content of comment content element For " I is content ", corresponding content presentation parameter is that font size is 16, and color is ffffff;Further, according to user It is 2 that the field of ranked element obtains corresponding picture value from barrage data, and first from user gradation according to the picture value It is picture icon2 that corresponding element content is obtained in the corresponding configuration information of element;The similarly element of available background element Content is picture bg1.
Then, terminal determines arrangement of elements sequence according to the corresponding ranking value of object element in the configuration information of barrage type Are as follows: user gradation element, pet name element, comment content element.
Then, it is shown in element according to the element content of parsing and corresponding content presentation parameter and arrangement of elements sequence Hold.
In above-described embodiment, need to arrange the ranking value of the object element shown by setting, according to each object element Ranking value determine barrage data arrangement of elements sequence, configuration information is simple, can flexibly control each barrage type pair The arrangement of elements sequence for the barrage data answered.
In one embodiment, the barrage data processing method provided includes:
S702, receives barrage data, and barrage data include barrage type.
S704, judges whether barrage type belongs to preset barrage type.
Preset barrage type refers to preset, does not need the barrage type being shown.Specifically, terminal can be with The filtering instructions to specified barrage type are received, specified barrage type is stored as preset barrage class according to the filtering instructions Type.For example, terminal can will need the barrage type comprising comment content in the element shown to be set as preset barrage type;Eventually End can also will need the barrage type in the element shown comprising trigger action information to be set as preset barrage type etc., herein Without limitation.Wherein, trigger action information can be present and send triggering information, expression transmission triggering information etc..
In one embodiment, terminal can show interface reception to the filtering instructions of specified barrage type, tool in barrage Body, barrage shows that interface can be shown in received barrage data, corresponding member in the barrage type for currently allowing to show Plain content, terminal can receive the touch control operation to element content, if touch control operation belongs to the corresponding touch control operation of filtering instructions, The barrage type of barrage data belonging to the element content is then stored as preset barrage type.
S706 detects whether barrage data include element if barrage type does not belong to preset barrage type.
If barrage type affiliation in preset barrage type, illustrates that the barrage data are the data for not needing to show, eventually End can be by the barrage data filtering, without subsequent processing.If barrage type does not belong to preset barrage type, say The bright barrage data are to need the data that show, then terminal does not filter the barrage data, can the barrage data carry out it is further Processing.
When determining that barrage type does not belong to preset barrage type, terminal, which can further detect in barrage data, is No includes element.Specifically, the received barrage data of terminal barrage data not necessarily for display.In general, not having to Element is not included in the barrage data of displaying, terminal can determine barrage number by whether including element in detection barrage data It, then can be further when determining barrage data is barrage data for display according to whether being barrage data for display Barrage data are analyzed to show corresponding element content;It is barrage data for display when determining barrage data not, then it can be with Barrage data are not carried out with the parsing of element content.Wherein, the barrage data for being not used in displaying may include signaling barrage data.
S708, if barrage data include element, displaying required for determining barrage type according to preset configuration information Object element.
S710 is based on barrage data and the corresponding configuration information of object element, the corresponding element content of parsing object element.
S712, the element content after showing parsing.
If barrage data include element, terminal can determine that the barrage data are barrage data for display, thus The object element of displaying required for determining barrage type according to preset configuration information, it is corresponding based on barrage data and object element Configuration information, the corresponding element content of parsing object element, and show the element content after parsing.
In above-described embodiment, the barrage data that terminal can receive are filtered, and filter out the barrage type for allowing to show, And include the barrage data of element, be adapted to different terminals barrage show demand, while avoid to not for show barrage Barrage data handled and expended the memory of terminal, the accuracy and efficiency of barrage data processing can be improved.
As shown in figure 8, in one embodiment, the barrage data processing method provided includes:
S802 receives barrage data at video playing interface, and barrage data include barrage type.
Terminal can be the different video playing interfaces that different video playing scenes provides.Video, which can be, passes through network The video obtained in real time is also possible to be cached in the video of terminal, can also be the video etc. of terminal real-time recording.Terminal is real-time The video playing interface of the video of recording may include record screen live streaming interface and camera live streaming interface.Terminal can be broadcast in video Interface is put, barrage data relevant to the video are received.
S804, the object element of displaying required for determining barrage type according to preset configuration information.
S806 is based on barrage data and the corresponding configuration information of object element, the corresponding element content of parsing object element.
S808 is determined in video playing interface for showing the display position of the element content after parsing.
The display position of the different corresponding barrages in video playing interface can be different, and video playing interface includes view Frequency play position, optionally, for show parsing after element content display position can independently of video playing position, Video playing position can be superimposed on.Terminal can be determined according to current video playing interface for showing the element after parsing The display position of content.
Optionally, in one embodiment, for showing that the display position of the element content after parsing can be and play The interface location for the terminal that the terminal of video is connected.The received barrage data in video playing interface can also be connected by other Terminal carry out parsing displaying.For example, terminal A when carrying out record screen live streaming, can be received and record in real time by the terminal B of connection The associated barrage data of the video of system, and displaying is parsed, it can be shown to avoid barrage and video record is impacted.
S810, the element content after the display position at video playing interface shows parsing.
Display position can be indicated by the way of coordinate position.Terminal is shown in the display position at video playing interface Element content after parsing, specifically, terminal can render the element content after parsing according to the coordinate of the display position Screen, with the element content after the display position shows parsing.
In one embodiment, for showing that the display position of the element content after parsing refers to the received barrage data Corresponding display position, i.e. terminal can distribute different display positions for different barrage data.Optionally, terminal can be with The barrage data corresponding displaying time is set, shows that the time of the element content after parsing reaches in the display position with barrage data To after showing the time, then stop showing the element content after the corresponding parsing of barrage data.
In one embodiment, for showing that the display position of the element content after parsing refers to for showing this in video The display position of the received whole barrage data of broadcast interface, then terminal can be according to the reception timing of barrage data in the display Position shows that the element content after the corresponding parsing of barrage data, the element content after parsing can be showed in a received bullet After the element content of curtain data, it can also be showed in front of the element content of a received barrage data, not limit herein It is fixed.Optionally, it is limited by the size of display position, it is corresponding that terminal can roll displaying according to the reception timing of barrage data Element content, can when receiving newest barrage data, by shown in display position parse after element content in, it is right The earliest element content of the receiving time for the barrage data answered removes the display position, to show newest received barrage data pair The element content answered.
In one embodiment, terminal is when the display position at video playing interface shows the element content after parsing, also It can receive the move to display position, mobile display position determined according to the move of display position, in movement Display position afterwards shows the element content after parsing.
Above-described embodiment can receive barrage data, by parse to barrage data in video playing interface Element content after to parsing, and determine for showing the display position of the element content after parsing in the video playing interface, Element content after the display position at video playing interface shows parsing, it can for different video playing interfaces, Element content after different position shows parsing, data handling procedure is simple and convenient, and bullet when video playing can be improved The bandwagon effect of curtain data.
Fig. 9 is the schematic diagram at video playing interface in one embodiment.As shown in figure 9, the video playing interface is to pass through The broadcast interface for the video that network obtains in real time.The video playing interface includes video playing position 902, and for showing solution The display position 904 of element content after analysis.Display position 904 illustrates barrage relevant to the video played;Wherein, barrage 906 with barrage 908 be the different types of two kinds of barrage data of barrage, the corresponding object element of barrage 906 include user gradation member Element, pet name element and comment content element;The corresponding object element of barrage 908 include user gradation element, background element and Trigger action information.Terminal can also receive the comment content in the input of input frame 910 at video playing interface, to generate correspondence Barrage data and each terminal for watching the video is issued to by server, in the display position at video playing interface 904 show corresponding element content.
In one embodiment, the barrage data processing method provided can be applied to the live streaming of record screen, camera live streaming etc. Main broadcaster's terminal;Also the vlewer terminals of viewing live streaming be can be applied to.It is broadcast live with the barrage data processing method applied to game For, main broadcaster's terminal can carry out record screen to interface while running game, and in real time regard the game that record screen obtains Frequency according to by server being sent to vlewer terminals, vlewer terminals in game replaying video data, can receive spectators according to Operation of the main broadcaster to perhaps being triggered in the comment of the inputs such as the operation of game, the situation of game in games video data, and send To server;Server can receive main broadcaster's terminal and pull request to barrage data, thus by corresponding barrage data distributing It gives main broadcaster's terminal, and receives and watch the vlewer terminals of the games video data request is pulled to barrage data, to will correspond to Barrage data distributing to vlewer terminals.
In this embodiment, the barrage data that server issues include barrage type and with the operation that perhaps triggers in comment Relevant information.Main broadcaster's terminal and vlewer terminals include preset configuration information, specifically, the available barrage number of main broadcaster's terminal According to comprising barrage type, that is, recorded game screen be broadcast live type, according to preset configuration information determine recorded game screen be broadcast live type needs The object element of displaying, and then element content is parsed according to barrage data and the corresponding configuration information of object element, it will be in element Hold the interface for being showed in main broadcaster's terminal;The barrage type that the available barrage data of vlewer terminals include watches game live streaming class Type, the object element of displaying required for determining viewing game live streaming type according to preset configuration information, and then according to barrage number Element content is parsed according to configuration information corresponding with object element, element content is showed in the interface of vlewer terminals.Such as Fig. 9 institute Vlewer terminals corresponding interface when the video playing interface shown can be game live streaming, video playing position 902 can show master The games video data of terminal recording is broadcast, display position 904 can show that server issues opposite with the games video data The element content for the barrage data answered.
Figure 10 is the schematic diagram that barrage shows interface in another embodiment.As shown in Figure 10, which shows that interface can The corresponding barrage of main broadcaster's terminal of recorded video shows interface when being game live streaming.Main broadcaster's terminal can record game video Barrage data corresponding with the games video data recorded are received by the terminal of connection when data, and according to preset display Position 1002 shows the element content after the parsing of barrage data.Wherein, the corresponding object element of received barrage 1004 includes close Claim element and comment content element.In this embodiment, interface and barrage show that interface may be at two ends of connection End can show interface comprising interface and barrage simultaneously at the interface of some embodiments, main broadcaster's terminal;Main broadcaster's terminal can also Interface is shown to switch interface and barrage according to the operation information for receiving main broadcaster.
Figure 11 is the flow chart of barrage data processing method in one embodiment.As shown in figure 11, in one embodiment, The barrage data processing method of offer includes:
S1102 receives barrage data at video playing interface, and barrage data include barrage type.
S1104, judges whether the barrage type does not belong to preset barrage type, if barrage type do not belong to it is default Barrage type, then enter step S1106.
S1106, detect barrage data in also whether include element, if barrage data include element, enter step 1108.
S1108, the object element of displaying required for determining barrage type according to preset configuration information.
S1110 determines element type belonging to object element according to the corresponding configuration information of object element;Work as element type When for text type, then step S1112 is jumped to;When element type is picture type, then step S1114 is jumped to.
S1112 obtains field associated by object element;From barrage data, obtain and word associated by object element The corresponding content of text of section, using content of text as the corresponding element content of object element.
S1114 obtains field associated by object element;The field according to associated by object element, from barrage data Obtain corresponding picture value;Picture corresponding with picture value is obtained from the corresponding configuration information of object element, will be obtained The picture taken is as the corresponding element content of object element.
S1116 determines the corresponding content presentation parameter of element content according to the corresponding configuration information of object element, in element Holding corresponding content presentation parameter includes at least one of color, size and touch-control response message.
S1118 obtains the corresponding row of each object element in barrage data according to the corresponding configuration information of barrage type Sequence value;Arrangement of elements sequence is determined according to the corresponding ranking value of each object element.
S1120 is determined in video playing interface for showing the display position of the element content after parsing.
S1122 shows element according to content presentation parameter and arrangement of elements sequence in the display position at video playing interface Content.
S1124 receives the touch control operation for acting on shown element content;Acted on element content is obtained for touching The touch-control response message that control operation generates, exports touch-control response message.
In embodiment provided by the present application, after receiving barrage data, barrage is determined according to preset configuration information The object element shown required for the barrage type that data include is based on barrage data and the corresponding configuration information of object element, The corresponding element content of object element is parsed, and the element content after parsing is shown.The barrage data processing method is real The separation for having showed barrage content and configuration information allows terminal using unified configuration information parsing barrage data, can be with The version information for needing synchronized update terminal when changing barrage pattern is avoided, the complexity of barrage data processing is reduced, mentions The simplicity of high data processing.Also, the separation of barrage content and configuration information, the data that can be issued to avoid server include The corresponding data of all information for needing to show cause the data volume of transmission big, the big problem of network overhead, it is possible to reduce barrage The data volume of data improves the efficiency of barrage data transmission.
Fig. 2-4,6-8,11 for barrage data processing method in one embodiment flow diagram.It should be understood that Although Fig. 2-4,6-8,11 flow chart in each step successively show that these steps are not according to the instruction of arrow The inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, there is no tight for the execution of these steps The sequence of lattice limits, these steps can execute in other order.Moreover, Fig. 2-4,6-8, at least part step in 11 It may include that perhaps these sub-steps of multiple stages or stage have been executed in synchronization to multiple sub-steps At, but can execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out, and It is that can be executed in turn or alternately at least part of the sub-step or stage of other steps or other steps.
Figure 12 is the structural block diagram of barrage data processing equipment in one embodiment.As shown in figure 12, in one embodiment In, which includes data reception module 1202, element determining module 1204,1206 and of parsing module Display module 1208.Wherein:
Data reception module 1202, for receiving barrage data, barrage data include barrage type.
Element determining module 1204, the target element for displaying required for determining barrage type according to preset configuration information Element.
Parsing module 1206 parses object element pair for being based on barrage data and the corresponding configuration information of object element The element content answered.
Display module 1208, for showing the element content after parsing.
Barrage data processing equipment provided by the embodiments of the present application, for receiving barrage data, according to preset configuration Information determines the object element shown required for the barrage type that barrage data include, corresponding based on barrage data and object element Configuration information, the corresponding element content of parsing object element, and the element content after parsing is shown.The barrage data Processing unit can parse barrage data using unified configuration information, realize the separation of barrage content and configuration information, can To reduce the complexity of barrage data processing, the simplicity of data processing is improved.Also, point of barrage content and configuration information From the corresponding data of all information that can be shown to avoid the data issued comprising needs cause the data volume of transmission big, network The big problem of expense, it is possible to reduce the data volume of barrage data improves the efficiency of barrage data transmission.
As shown in figure 13, in one embodiment, parsing module 1206 may include Context resolution unit 1262;Content solution Analysis unit 1262 is used to determine element type belonging to object element according to the corresponding configuration information of object element;Based on element class Type and barrage data obtain the corresponding element content of object element.
In the present embodiment, element type belonging to object element is contained in preset configuration information, terminal determines mesh It, can be according in the type and the corresponding element of barrage data acquisition belonging to object element after marking element type belonging to element Hold, does not need that the convenience of barrage data processing can be improved using different content acquisition modes for each element.
In one embodiment, Context resolution unit 1262 can also be used to obtain mesh when element type is text type Mark field associated by element;From barrage data, content of text corresponding with field associated by object element is obtained, it will Content of text is as the corresponding element content of object element.
In one embodiment, Context resolution unit 1262 can be also used for obtaining when element type is picture type Field associated by object element;The field according to associated by object element obtains corresponding picture from barrage data and takes Value;Picture corresponding with picture value is obtained from the corresponding configuration information of object element, the picture that will acquire is as target element The corresponding element content of element.
It in the above-described embodiments, can be from bullet by distinguishing text type and picture type, the corresponding element of text type Corresponding content of text is obtained in curtain data, the corresponding element of picture type can obtain picture value, root from barrage data Corresponding image content is obtained from preset configuration information according to picture value.Barrage data only need the member comprising needing to show The text data of plain content can greatly reduce the data volume of barrage data without carrying image data, reduce barrage Network overhead when data are transmitted.
In one embodiment, parsing module 1206 can also include presentation parameter resolution unit 1264, presentation parameter solution Analysis unit 1264 is used to determine the corresponding content presentation parameter of element content according to the corresponding configuration information of object element;Show mould Block 1208 can be also used for showing element content according to determining content presentation parameter.Wherein, the corresponding content exhibition of element content Show that parameter includes at least one of color, size and touch-control response message.
In above-described embodiment, the preset configuration information of terminal includes the corresponding element presentation parameter of element content.Terminal Based on barrage data and the corresponding configuration information of object element, can parse to obtain the corresponding element content of object element, and member The corresponding content presentation parameter of plain content, and element content is shown according to the content presentation parameter.It is used for different elements Different content presentation parameters, can be improved barrage data show when readability, enrich barrage data exhibition method.
In one embodiment, the barrage data processing equipment 1200 provided can also include touch-control respond module 1210, Touch-control respond module 1210 is for receiving the touch control operation for acting on shown element content;Obtain acted on element content The touch-control response message generated for touch control operation;Export touch-control response message.
The touch control operation of shown element content is acted on by receiving, available acted on element content is directed to Touch-control response message caused by touch control operation, and then the touch-control response message is exported, it may be implemented between user and barrage Interactive operation.
In one embodiment, touch-control respond module 1210 can be also used for when touch-control response message is chained address, It obtains the corresponding touch-control of object element and shows interface;The information that showing interface chained address is linked is shown in touch-control.
When touch-control response message is chained address, the corresponding touch-control of the available object element of terminal shows interface, In Touch-control shows the information that showing interface chained address is linked, i.e., shows showing interface chained address according to the touch-control of element setting The information linked can satisfy different showing interface demands.
As shown in figure 14, in one embodiment, the barrage data processing equipment 1200 provided can also include that element is suitable Sequence determining module 1212, order of elements determining module 1212 are used to determine the corresponding arrangement of elements of barrage data according to barrage type Sequentially;Display module 1208 can be also used for for the element content after parsing being shown according to arrangement of elements sequence.
It in the present embodiment, can be the corresponding arrangement of elements sequence of barrage Data Matching according to barrage type, thus Element content after parsing is shown according to arrangement of elements sequence, the displaying that can satisfy element in different barrages needs It asks, improves the bandwagon effect of barrage.
In one embodiment, order of elements determining module 1212 can be also used for corresponding with confidence according to barrage type Breath obtains the corresponding ranking value of each object element in barrage data;It is true according to the corresponding ranking value of each object element Determine arrangement of elements sequence.
In above-described embodiment, need to arrange the ranking value of the object element shown by setting, according to each object element Ranking value determine barrage data arrangement of elements sequence, configuration information is simple, can flexibly control each barrage type pair The arrangement of elements sequence for the barrage data answered.
In one embodiment, the barrage data processing equipment 1200 provided can also include 1214 He of barrage filtering module Show barrage determining module 1216.Barrage filtering module 1214 is for judging whether barrage type belongs to preset barrage class Type, if barrage type affiliation filters barrage data in preset barrage type;If showing, barrage determining module 1216 is used for bullet Curtain-like type does not belong to preset barrage type, then detects whether barrage data include element.
In above-described embodiment, the barrage data that terminal can receive are filtered, and filter out the barrage type for allowing to show, And include the barrage data of element, be adapted to different terminals barrage show demand, while avoid to not for show barrage Barrage data handled and expended the memory of terminal, the accuracy and efficiency of barrage data processing can be improved.
In one embodiment, data reception module 1202 can be also used for receiving barrage data at video playing interface; Display module 1208 can be also used for determining in video playing interface for showing the display position of the element content after parsing;In The display position at video playing interface shows the element content after parsing.
Above-described embodiment can receive barrage data, by parse to barrage data in video playing interface Element content after to parsing, and determine for showing the display position of the element content after parsing in the video playing interface, Element content after the display position at video playing interface shows parsing, it can for different video playing interfaces, Element content after different position shows parsing, data handling procedure is simple and convenient, and bullet when video playing can be improved The bandwagon effect of curtain data.
Figure 15 shows the internal structure chart of computer equipment in one embodiment.The computer equipment specifically can be figure Terminal 110 in 1.As shown in figure 15, it includes the place connected by system bus which, which includes the computer equipment, Manage device, memory, network interface, input unit and display screen.Wherein, memory includes non-volatile memory medium and interior storage Device.The non-volatile memory medium of the computer equipment is stored with operating system, can also be stored with computer program, the computer When program is executed by processor, processor may make to realize barrage data processing method.Meter can also be stored in the built-in storage Calculation machine program when the computer program is executed by processor, may make processor to execute barrage data processing method.Computer is set Standby display screen can be liquid crystal display or electric ink display screen, and the input unit of computer equipment can be display screen The touch layer of upper covering is also possible to the key being arranged on computer equipment shell, trace ball or Trackpad, can also be external Keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 15, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, barrage data processing equipment provided by the present application can be implemented as a kind of computer program Form, computer program can be run in computer equipment as shown in figure 15.Group can be stored in the memory of computer equipment At each program module of the barrage data processing equipment, for example, data reception module shown in Figure 12, element determining module, Parsing module and display module.It is described in this specification that the computer program that each program module is constituted executes processor Step in the barrage data processing method of each embodiment of the application.
For example, computer equipment shown in figure 15 can pass through the data in barrage data processing equipment as shown in figure 12 Receiving module executes step S202.Computer equipment can execute step S204 by element determining module.Computer equipment can lead to It crosses parsing module and executes step S206.Computer equipment can execute step S208 by display module.
In one embodiment, a kind of computer equipment, including memory and processor are provided, memory is stored with meter Calculation machine program, when computer program is executed by processor, so that the step of processor executes above-mentioned barrage data processing method.This The step of locating barrage data processing method can be the step in the barrage data processing method of above-mentioned each embodiment.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored with When sequence is executed by processor, so that the step of processor executes above-mentioned barrage data processing method.Barrage data processing side herein The step of method, can be the step in the barrage data processing method of above-mentioned each embodiment.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (15)

1. a kind of barrage data processing method, comprising:
Barrage data are received, the barrage data include barrage type;
The object element of displaying required for determining the barrage type according to preset configuration information;
Based on the barrage data and the corresponding configuration information of the object element, parse in the corresponding element of the object element Hold;
Element content after showing parsing.
2. the method according to claim 1, wherein described be based on the barrage data and the object element pair The configuration information answered parses the corresponding element content of the object element, comprising:
Element type belonging to the object element is determined according to the corresponding configuration information of the object element;
Based on the element type and the barrage data, the corresponding element content of the object element is obtained.
3. according to the method described in claim 2, it is characterized in that, when the element type be text type when, the acquisition The corresponding element content of the object element, comprising:
Obtain field associated by the object element;
From the barrage data, content of text corresponding with field associated by the object element is obtained, by the text This content is as the corresponding element content of the object element.
4. according to the method described in claim 2, it is characterized in that, when the element type be picture type when, the acquisition The corresponding element content of the object element, comprising:
Obtain field associated by the object element;
According to field associated by the object element, corresponding picture value is obtained from the barrage data;
Picture corresponding with the picture value is obtained from the corresponding configuration information of the object element, the picture that will acquire is made For the corresponding element content of the object element.
5. the method according to claim 1, wherein described be based on the barrage data and the object element pair The configuration information answered parses the corresponding element content of the object element, comprising:
Based on the barrage data and the corresponding configuration information of the object element, obtain in the corresponding element of the object element Hold;
The corresponding content presentation parameter of the element content is determined according to the corresponding configuration information of the object element;
The element content shown after parsing, comprising:
The element content is shown according to the content presentation parameter.
6. according to the method described in claim 5, it is characterized in that, the corresponding content presentation parameter of the element content includes face At least one of color, size and touch-control response message.
7. the method according to claim 1, wherein after the element content shown after parsing, further includes:
Receive the touch control operation for acting on shown element content;
It obtains acted on element content and is directed to the touch-control response message that the touch control operation generates;
Export the touch-control response message.
8. the method according to the description of claim 7 is characterized in that when touch-control response message be chained address when, the output The touch-control response message, comprising:
It obtains the corresponding touch-control of the object element and shows interface;
The information that chained address described in showing interface is linked is shown in the touch-control.
9. the method according to claim 1, wherein the element content shown after parsing, comprising:
The corresponding arrangement of elements sequence of the barrage data is determined according to the barrage type;
Element content after the parsing is shown according to the arrangement of elements sequence.
10. according to the method described in claim 9, it is characterized in that, described determine the barrage number according to the barrage type According to corresponding arrangement of elements sequence, comprising:
According to the corresponding configuration information of the barrage type, it is corresponding to obtain each described object element in the barrage data Ranking value;
The arrangement of elements sequence is determined according to the corresponding ranking value of object element described in each.
11. the method according to claim 1, wherein described determine the barrage according to preset configuration information Before the object element shown required for type, further includes:
Judge whether the barrage type belongs to preset barrage type;
If the barrage type does not belong to the preset barrage type, detect whether the barrage data include element;
If barrage data include element, execute it is described the barrage type is determined according to preset configuration information required for displaying Object element operation.
12. method according to any one of claim 1 to 11, which is characterized in that the reception barrage data, comprising:
At video playing interface, barrage data are received;
The element content shown after parsing, comprising:
It determines in the video playing interface for showing the display position of the element content after the parsing;
Element content after the display position at the video playing interface shows the parsing.
13. a kind of barrage data processing equipment, which is characterized in that described device includes:
Data reception module, for receiving barrage data, the barrage data include barrage type;
Element determining module, the object element for displaying required for determining the barrage type according to preset configuration information;
Parsing module parses the target element for being based on the barrage data and the corresponding configuration information of the object element The corresponding element content of element;
Display module, for showing the element content after parsing.
14. a kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor is executed such as the step of any one of claims 1 to 12 the method.
15. a kind of computer equipment, including memory and processor, the memory is stored with computer program, the calculating When machine program is executed by the processor, so that the processor is executed such as any one of claims 1 to 12 the method Step.
CN201910730574.7A 2019-08-08 2019-08-08 Bullet screen data processing method and device, computer readable storage medium and computer equipment Active CN110475140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910730574.7A CN110475140B (en) 2019-08-08 2019-08-08 Bullet screen data processing method and device, computer readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910730574.7A CN110475140B (en) 2019-08-08 2019-08-08 Bullet screen data processing method and device, computer readable storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN110475140A true CN110475140A (en) 2019-11-19
CN110475140B CN110475140B (en) 2022-09-02

Family

ID=68511673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910730574.7A Active CN110475140B (en) 2019-08-08 2019-08-08 Bullet screen data processing method and device, computer readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110475140B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083551A (en) * 2019-12-17 2020-04-28 腾讯科技(深圳)有限公司 Barrage rendering method and device, computer readable storage medium and computer equipment
CN111163359A (en) * 2019-12-31 2020-05-15 腾讯科技(深圳)有限公司 Bullet screen generation method and device and computer readable storage medium
CN111953923A (en) * 2020-08-19 2020-11-17 腾讯科技(深圳)有限公司 Network conference processing method and device, electronic equipment and storage medium
CN112188275A (en) * 2020-09-21 2021-01-05 北京字节跳动网络技术有限公司 Bullet screen generation method, bullet screen generation device, bullet screen generation equipment and storage medium
CN113905280A (en) * 2020-07-06 2022-01-07 腾讯科技(深圳)有限公司 Bullet screen information display method, device, equipment and storage medium
CN114296604A (en) * 2021-12-14 2022-04-08 咪咕音乐有限公司 Bullet screen information display method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847939A (en) * 2016-05-12 2016-08-10 乐视控股(北京)有限公司 Bullet screen play method, bullet screen play device and bullet screen play system
CN105916043A (en) * 2016-04-19 2016-08-31 乐视控股(北京)有限公司 Barrage control method and device
CN106210849A (en) * 2016-06-27 2016-12-07 乐视控股(北京)有限公司 A kind of barrage information processing method and device
CN106204168A (en) * 2016-09-07 2016-12-07 广州爱九游信息技术有限公司 Commodity barrage display system, unit and method
CN108322807A (en) * 2018-02-24 2018-07-24 武汉斗鱼网络科技有限公司 A kind of barrage methods of exhibiting and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105916043A (en) * 2016-04-19 2016-08-31 乐视控股(北京)有限公司 Barrage control method and device
CN105847939A (en) * 2016-05-12 2016-08-10 乐视控股(北京)有限公司 Bullet screen play method, bullet screen play device and bullet screen play system
CN106210849A (en) * 2016-06-27 2016-12-07 乐视控股(北京)有限公司 A kind of barrage information processing method and device
CN106204168A (en) * 2016-09-07 2016-12-07 广州爱九游信息技术有限公司 Commodity barrage display system, unit and method
CN108322807A (en) * 2018-02-24 2018-07-24 武汉斗鱼网络科技有限公司 A kind of barrage methods of exhibiting and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083551A (en) * 2019-12-17 2020-04-28 腾讯科技(深圳)有限公司 Barrage rendering method and device, computer readable storage medium and computer equipment
CN111163359A (en) * 2019-12-31 2020-05-15 腾讯科技(深圳)有限公司 Bullet screen generation method and device and computer readable storage medium
CN111163359B (en) * 2019-12-31 2021-01-05 腾讯科技(深圳)有限公司 Bullet screen generation method and device and computer readable storage medium
CN113905280A (en) * 2020-07-06 2022-01-07 腾讯科技(深圳)有限公司 Bullet screen information display method, device, equipment and storage medium
CN113905280B (en) * 2020-07-06 2023-12-01 腾讯科技(深圳)有限公司 Barrage information display method, device, equipment and storage medium
CN111953923A (en) * 2020-08-19 2020-11-17 腾讯科技(深圳)有限公司 Network conference processing method and device, electronic equipment and storage medium
CN112188275A (en) * 2020-09-21 2021-01-05 北京字节跳动网络技术有限公司 Bullet screen generation method, bullet screen generation device, bullet screen generation equipment and storage medium
CN114296604A (en) * 2021-12-14 2022-04-08 咪咕音乐有限公司 Bullet screen information display method, device, equipment and medium

Also Published As

Publication number Publication date
CN110475140B (en) 2022-09-02

Similar Documents

Publication Publication Date Title
US20230230306A1 (en) Animated emoticon generation method, computer-readable storage medium, and computer device
CN110475140A (en) Barrage data processing method, device, computer readable storage medium and computer equipment
CN108924622B (en) Video processing method and device, storage medium and electronic device
CN110456956A (en) Screenshot method, device, computer equipment and storage medium
CN112969097B (en) Content playing method and device, and content commenting method and device
CN103902057B (en) Webpage input method and device for mobile terminal device
CN104145265A (en) Systems and methods involving features of seach and/or search integration
CN109660854A (en) Video recommendation method, device, equipment and storage medium
CN114697721B (en) Bullet screen display method and electronic equipment
CN113536172B (en) Encyclopedia information display method and device and computer storage medium
CN112866783A (en) Comment interaction method and device and electronic equipment
CN115237301B (en) Method and device for processing barrage in interactive novel
CN110019800A (en) Distribute content processing method, device, computer equipment and storage medium
CN113727039B (en) Video generation method and device, electronic equipment and storage medium
CN113438532B (en) Video processing method, video playing method, video processing device, video playing device, electronic equipment and storage medium
CN115086747A (en) Information processing method and device, electronic equipment and readable storage medium
CN110166345A (en) Resource sharing method, resource acquiring method, device and storage medium
CN115437736A (en) Method and device for recording notes
CN114245193A (en) Display control method and device and electronic equipment
WO2022183967A1 (en) Video picture display method and apparatus, and device, medium and program product
CN108983992A (en) A kind of candidate item methods of exhibiting and device with punctuation mark
CN116033094A (en) Video editing method and device
CN117348777A (en) Barrage-based voting task processing method, barrage-based voting task processing device, computer equipment and medium
CN115209219A (en) Video processing method and device and electronic equipment
CN114816933A (en) Method and device for generating note with watch, readable storage medium and electronic equipment

Legal Events

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