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

Active Publication Date: 2019-02-01
WUHAN DOUYU NETWORK TECH CO LTD
View PDF9 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

This technology allows listeners on an interactive television (TV) showroom to easily connect with their own devices without having them constantly worry about how much storage they have available for use or being able to access new content. It also ensures accurate correspondence between different components within the TV program guide database(DB). Additionally, this technology helps prevent data loss during switching times due to lack of spare battery power.

Problems solved by technology

The technical problem addressed in this patented technology relates to ensuring that both live broadcast sessions have an accurate correspondence with each other when switching from one session to another during playback or for maintenance purposes without causing any issues like data loss due to deletion operations on older versions of the media file being used instead of new ones.

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
  • Method and apparatus for distributing bullet screen message, terminal and storage medium
  • Method and apparatus for distributing bullet screen message, terminal and storage medium
  • Method and apparatus for distributing bullet screen message, terminal and storage medium

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

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

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