Bullet screen display method and device
A bullet screen and pre-display technology, applied in the field of Internet technology development, can solve problems such as serious memory consumption, and achieve the effect of simplifying style change operations and enriching bullet screen styles.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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] to 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, an...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com