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

A barrage and message technology, applied in the barrage field, can solve problems such as memory leaks, and achieve the effect of avoiding memory leaks and improving distribution efficiency.

Active Publication Date: 2021-04-23
WUHAN DOUYU NETWORK TECH CO LTD
View PDF7 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 method, device, terminal, and storage medium for distributing bullet chat messages, which solves the problem of memory leaks on the basis of distributing bullet chat messages to live broadcast rooms that are running

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

[0048] 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 Among the devices installed with audio and video playback and / or live broadcast application software adapted to the Android system, typical user terminal devices such as mobile phones, tablet computers or smart TVs. see figure 1 , the method of this embodiment specifically includes:

[0049] S110. After the first live broadcast room is destroyed, if the activation instruction is received again, call the life cycle creation function of the first live broadcast room, and send the first identification information and the corresponding current first reference relationship to the bullet chat distribution object.

[0050] In this embodiment, "first" and "second" are only used to disti...

Embodiment 2

[0065] figure 2 It is a flow chart of a method for distributing barrage messages provided by Embodiment 2 of the present invention. This embodiment can be applied to switching between different types of live broadcast rooms. For different types of live rooms, on the basis of the above embodiments, after the first live room is destroyed, if a second live room of a different type from the first live room is started, the second live room will use its reference relationship Register directly to the preset key-value pair collection object, so that the reference relationship between the first live room and the second live room will be maintained in the barrage distribution object at the same time. Explanations of terms in this embodiment that are the same as or corresponding to those in the foregoing embodiments will not be repeated here. see figure 2 , the method provided in this embodiment includes:

[0066] S210. After the first live broadcast room is destroyed, if the secon...

Embodiment 3

[0082] In the implementation process of the above embodiment, if the next live room to be displayed is to be switched to the randomly deleted live room page, the barrage distribution object cannot find the reference of the live room to be displayed in the preset key-value pair collection object Relationship, barrage distribution cannot be performed. image 3 It is a flow chart of a method for distributing barrage messages provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above embodiments, adding the function of judging whether the deleted one in the above embodiments is the next live broadcast to be displayed The operation of the reference relationship between, such as image 3 As shown, the method includes:

[0083] S310. When the live broadcast room to be displayed receives the display instruction, send the third identification information of the live broadcast room to be displayed to the barrage distribution object.

[00...

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 embodiment of the invention discloses a barrage message distribution method, device, terminal and storage medium. The method includes: after the first live broadcast room is destroyed, if the activation instruction is received again, calling the life cycle creation function of the first live broadcast room, and sending the first identification information and the corresponding current first reference to the barrage distribution object relationship; the barrage distribution object replaces the historical reference relationship of the first live broadcast room stored in the preset key-value pair set object with the current first reference relationship according to the first identification information; wherein, the current first reference relationship inherits from the preset Set up the listener interface protocol, and the preset listener interface protocol includes the receiving method of the bullet chat message; the bullet chat distribution object distributes the bullet chat message to the first live broadcast by calling the receiving method of the bullet chat message based on the current first reference relationship between. By adopting the above technical solution, the problem of memory leak is solved on the basis of distributing the barrage messages to the running live broadcast room.

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] In order to ensure the distribution efficiency of the bullet chat message and the maintainability of the code, it is necessary to...

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/443H04N21/4788H04N21/488G06F12/02
CPCG06F12/0253H04N21/4435H04N21/4788H04N21/4884
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products