Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A barrage display method and device

A barrage and pre-display technology, applied in the field of Internet technology development, can solve the problem of serious memory consumption, achieve the effect of simplifying style change operations and enriching barrage styles

Active Publication Date: 2021-09-07
WUHAN DOUYU NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a bullet chatting display method and device, which can draw bullet chatting in the video area of ​​the terminal interface, and solve the existing problem of directly loading pictures in the bullet chatting, resulting in serious memory consumption

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A barrage display method and device
  • A barrage display method and device
  • A barrage display method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] refer to figure 1 , the implementation flowchart of the barrage display method provided by the embodiment of the present invention, including the following steps:

[0027] S101. After receiving the bullet chat message sent by the server, convert the bullet chat message into a bullet chat model.

[0028] The barrage message sent by the server refers to the information pushed by the server to the terminal user. In the real-time of the present invention, the information is barrage information. Optionally, it may also include requested resources, notifications, etc., the The server may be a platform server of a live broadcast platform, an application server of a video website, a resource server, and the like.

[0029] The received bullet chat messages are generally of string type, and the strings need to be simply sorted and classified, that is, the bullet chat messages are converted into bullet chat models.

[0030] Optionally, a bullet chatting model is constructed, whe...

Embodiment 2

[0040] exist figure 1 on the basis of figure 2 It shows the implementation flowchart of step S102, and S102 is the process of parsing the barrage model, which is described in detail as follows:

[0041] In S201, a dictionary is constructed. The method of constructing the dictionary is to use the alloc function to create, and use the init function to initialize, and create an empty dictionary at a time.

[0042] A dictionary is an unordered collection used to store key-element pairs, that is, the pairing of a key and a value. The key in the dictionary is unique. Given a key, the corresponding value can be quickly located. Optionally, it can be expressed in the form of a hash table or map in other programming languages ​​or program structures

[0043] In S202, a small dictionary is generated for each information type in the bullet chatting model. The bullet chatting model has classified the basic information of the bullet chatting. Here, according to the classification of th...

Embodiment 3

[0048] combine figure 1 , image 3 It shows the implementation flow chart of step S103, S103 is the barrage drawing process, which is described in detail as follows:

[0049]The data read from the dictionary can be used to set the text display. In S301, the display text is constructed. Specifically, the content of the text to be displayed in the dictionary is taken out, the text drawing position and drawing range are set, the display area width is set, and the display is set. Region shape, color, etc., the display text to be drawn in the embodiment of the present invention is a text structure containing text in a specific shape.

[0050] The purpose of obtaining context information in S302 is to obtain the information of the content to be displayed. Use UIGraphicsGetCurrentContext to obtain the context, use CGContextSaveGState to save the context function to save the context, use the CGContextSaveGState function to perform context conversion of transmission information, and u...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a barrage display method and device, which are used for drawing barrage on an online video watched by a user and displaying barrage information. The method provided by the present invention includes: after receiving the bullet chat message sent by the server, converting the bullet chat message into a bullet chat model; parsing the bullet chat model, and converting the parsed data into a dictionary; The data read in the dictionary, set the drawing parameters and drawing content, and draw the pre-display bullet chat in the bullet chat area in the video. In the embodiment of the present invention, the bullet chatting information is converted into a model, the data in the model is analyzed, and the bullet chatting is drawn according to the data, which overcomes the problem of excessive memory consumption caused by directly loading the pictures contained in the bullet chatting , which can save memory space and ensure the fluency of barrage and video playback.

Description

technical field [0001] The invention relates to the field of Internet technology development, in particular to a barrage display method and device. Background technique [0002] Due to its strong real-time interactivity, barrage has become one of the important technologies that video websites, especially live broadcast platforms, must master since it was introduced into video playback. Rich and colorful bullet screens can enhance the entertainment of videos and improve user experience, which requires video websites or live broadcast platforms to be able to meet the transmission and display of various styles of graphic content. [0003] Usually bullet chatting is displayed in the form of building rich text and loading pictures. Because the number of bullet chatting is very large in the actual live broadcast process, and if the picture style in bullet chatting messages is too complicated, if each bullet chatting information is Loading pictures will inevitably lead to serious ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/431H04N21/435H04N21/4788
CPCH04N21/4312H04N21/435H04N21/4788
Inventor 汪刚张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products