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

A method, device, terminal and storage medium for distributing barrage messages

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

Active Publication Date: 2020-10-16
WUHAN DOUYU NETWORK TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method, device, terminal, and storage medium for distributing bullet chat messages, so as to solve the problem of memory leaks caused by switching between live broadcasts during the distribution of bullet chat messages

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 method, device, terminal and storage medium for distributing barrage messages
  • A method, device, terminal and storage medium for distributing barrage messages
  • A method, device, terminal and storage medium for distributing barrage messages

Examples

Experimental program
Comparison scheme
Effect test

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 ...

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 embodiments of the invention disclose a method and an apparatus for distributing a bullet screen message, a terminal and a storage medium. The method comprises the following steps: in weak reference collection objects, sequentially traversing weak reference interface objects stored in a weak reference form in live broadcasting rooms, wherein the weak reference collection objects are constructed in a bullet screen distribution object; in non-empty weak reference interface objects, determining target weak reference interface objects being operated at present in a target live broadcasting room; and acquiring a target monitor interface object in the target weak reference interface objects, and according to the target monitor interface object, sending a bullet screen message in the bullet screen distribution object to the target live broadcasting room. By adopting the above technical solutions, the problem of memory leak of the bullet screen message due to switchover of a live broadcasting room in a distribution process is solved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of bullet chatting, and in particular, to a method, device, terminal and storage medium for distributing bullet chatting messages. Background technique [0002] With the development of the network interaction platform, more and more users communicate by logging into the network interaction platform. Among them, webcasting is a very popular application among users. Users can express their emotions by sending barrage while watching the live broadcast. Among them, the barrage service includes important functions such as user barrage reception, processing, and push. After the client receives the bullet chat message sent by the bullet chat server, it needs to distribute the bullet chat message to the live broadcast room where the client is running. [0003] When different types of live broadcast rooms are switched, the previous live broadcast room needs to execute the destroy function...

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/4788H04N21/431H04N21/2187H04N21/488
CPCH04N21/2187H04N21/4314H04N21/4788H04N21/4884
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