Method and apparatus for distributing bullet screen message, terminal and storage medium
A technology of message sending and barrage, applied in the field of barrage, can solve problems such as memory leaks, and achieve the effect of solving memory leaks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Benefits of technology
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] figure 1 It is a flow chart of a method for distributing bullet chat messages provided by Embodiment 1 of the present invention. The method can be executed by a device for distributing bullet chat messages. The device can be implemented by software and / or hardware. The device can be integrated In smart terminals such as mobile phones or tablets. see figure 1 , the method of this embodiment specifically includes:
[0059] S110. In the weak reference collection object, sequentially traverse the weak reference interface objects of the live broadcast room stored in the form of weak reference, wherein the weak reference collection object is constructed in the bullet chatting distribution object.
[0060] Among them, weak reference is a reference method with lower strength than soft reference. If an object has only weak references, its life cycle is shorter, so when the garbage collector scans the memory area it manages, the object will be recycled regardless of whether th...
Embodiment 2
[0082] figure 2 It is a flowchart of a method for distributing barrage messages provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment initializes the listener interface object corresponding to the live room, and initializes the listener interface object The process of converting an object into a weak reference interface object and storing it in a weak reference collection object is optimized, and explanations of terms that are the same as or corresponding to those in the above embodiments will not be repeated here. see figure 2 , the method provided in this embodiment includes:
[0083] S210. When it is detected that the live broadcast room is started, in the creation function of the class corresponding to the live broadcast room, obtain a bullet chatting distribution object of a preset bullet chatting distribution class.
[0084] When each live room starts, it will call the creation function onCreate of the life ...
Embodiment 3
[0119] image 3 A structural block diagram of an apparatus for distributing bullet chat messages provided by Embodiment 3 of the present invention, the apparatus includes: a weak reference interface object traversal module 310 , a target weak reference interface object determination module 320 and a bullet chat message distribution module 330 .
[0120] Among them, the weak reference interface object traversal module 310 is used to sequentially traverse the weak reference interface objects in the live room stored in the form of weak references in the weak reference collection object, wherein the weak reference collection object is in the bullet chatting distribution object Construct;
[0121] The target weak reference interface object determination module 320 is used to determine the target weak reference interface object of the currently running target live broadcast room from the weak reference interface objects that are not empty;
[0122] The bullet chat message ...
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