CN109062650A - Barrage message distributing method, device, equipment and storage medium - Google Patents
Barrage message distributing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109062650A CN109062650A CN201810864347.9A CN201810864347A CN109062650A CN 109062650 A CN109062650 A CN 109062650A CN 201810864347 A CN201810864347 A CN 201810864347A CN 109062650 A CN109062650 A CN 109062650A
- Authority
- CN
- China
- Prior art keywords
- barrage
- message
- function
- barrage message
- distribution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of barrage message distributing method, device, equipment and storage mediums.This method comprises: distribution target object obtains agreement according to barrage distributor object and barrage message, distribution protocol object is determined;When detecting that upper target barrage Message Processing is completed, distribute target object using message identifier list as function input parameters, function is obtained by distribution protocol object reference barrage message, so that barrage distributor object callback barrage message obtains function, obtain function return value, wherein, it is that barrage distributor object is inherited barrage message acquisition agreement and obtained that barrage message, which obtains function,;If function return value is not empty object, distributes target object for function return value and be determined as current goal barrage message.Through the above technical solutions, realizing the through formula distribution of barrage message, barrage message distribution efficiency is improved.It keeps the Distribution status of barrage message synchronous with processing status simultaneously, improves the stability of distribution target object.
Description
Technical field
The present embodiments relate to computer technology more particularly to a kind of barrage message distributing method, device, equipment and deposit
Storage media.
Background technique
In the audio and video playing/live streaming application software for such as struggling against fish, barrage message can be largely used.In general, these bullets
Curtain message is to be distributed to each distribution target pair needed using barrage message one by one by audio and video playing/live streaming application software
As, such as view object, service controller object or data management system object.
By taking view object as an example, for being installed on audio and video playing/live streaming application software of android system, to each
The mode of a view object distribution barrage message be according to view level adduction relationship chain layer by layer by barrage message transmission extremely
Target view object.Referring to Fig. 1, if a view being located in third view layer 104 needs to get barrage message 101,
So the barrage message 101 needs first to be transferred to first view layer 102, then passed by first view layer 102 according to adduction relationship chain
It is handed to the second view layer 103, and third view layer 104 is finally transferred to by the second view layer 103 again, so that point of barrage message
Hair process is complicated, and time-consuming, low efficiency.And in above process, even if in first view layer 102 and the second view layer 103
View object do not need the barrage message, must also receive and transmit the barrage message, undoubtedly will cause system resource
Waste.In addition, above-mentioned barrage message distribution operation triggers in real time, that is, triggering executes barrage when receiving new barrage message
Message distribution.If receiving in the view object of barrage message has the barrage message handled, which is just needed
A plurality of barrage message is handled simultaneously, and the service logic inside view object can be made to complicate, be readily incorporated multithreading problem.
In short, there are distribution procedures for ways of distribution of the existing barrage message in audio and video playing/live streaming application software
Complexity distributes low efficiency and easily causes the unstable problem of barrage distribution target object process performance.
Summary of the invention
The embodiment of the present invention provides a kind of barrage message distributing method, device, equipment and storage medium, to realize that barrage disappears
The through formula distribution of breath, simplifies barrage message distribution process, improves barrage message distribution efficiency.It keeps in barrage distributor simultaneously
The Distribution status of barrage message is synchronous with the processing status of barrage message in distribution target object, improves the property of distribution target object
Stabilizability.
In a first aspect, the embodiment of the invention provides a kind of barrage message distributing methods, comprising:
Distribute target object and obtain agreement according to barrage distributor object and barrage message, determines distribution protocol object;
When detecting that upper target barrage Message Processing is completed, the distribution target object is with message identifier list
Function input parameters obtain function by the distribution protocol object reference barrage message, so that the barrage distributor object
It adjusts back the barrage message and obtains function, obtain function return value, wherein the barrage message obtains function as the barrage point
Hair device object inherits the barrage message and obtains agreement and obtain;
If the function return value is not empty object, the function return value is determined as working as by the distribution target object
Preceding target barrage message.
Second aspect, the embodiment of the invention also provides a kind of barrage message distribution device, which includes:
Protocol object determining module obtains association according to barrage distributor object and barrage message for distributing target object
View, determines distribution protocol object;
Function return value determining module, for detect upper target barrage Message Processing complete when, the distribution
Target object obtains letter using message identifier list as function input parameters, by the distribution protocol object reference barrage message
Number obtains function return value, wherein the bullet so that barrage message described in the barrage distributor object callback obtains function
It is that the barrage distributor object is inherited the barrage message acquisition agreement and obtained that curtain message, which obtains function,;
Barrage message determination module, if not being empty object for the function return value, the distribution target object will
The function return value is determined as current goal barrage message.
The third aspect, the embodiment of the invention also provides a kind of equipment, which includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes barrage message distributing method provided by any embodiment of the invention.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program, the computer program realize barrage message distributing method provided by any embodiment of the invention when being executed by processor.
The embodiment of the present invention inherits barrage message acquisition agreement and its interior bullet for including by distributing semantic object extraction
Curtain message obtains the barrage distributor object of function, and the message for constructing barrage distributor object and distributing between target object passes
Defeated channel simplifies so that can directly carry out the transmission of barrage message between barrage distributor object and distribution target object
The distribution procedure of barrage message improves the distribution efficiency of barrage message.By detecting at upper target barrage message
When reason is completed, distribute its corresponding current goal barrage message of semantic object extraction, realizes distribution target object according in it
The upper target barrage message processing state in portion actively obtains current goal barrage message, improve barrage message distribution and
Shi Xing, but also in barrage distributor the Distribution status of barrage message and distribution target object in barrage message processing status it
Between keep synchronize, thus reduce distribution target object inside barrage message parallel processing service logic, improve distribution mesh
Mark the stability of object.By distribution target object using message identifier list as function input parameters, by barrage distributor
Distribution protocol object reference obtained from object conversion obtains function as the barrage message of call back function, obtains barrage distributor
The function return value of object feedback, and when function return value is not empty object, function return value is determined as current goal bullet
Curtain message reduces unrelated barrage message so that distribution target object directly acquires its corresponding current goal barrage message
Acquisition process, further simplifies the distribution procedure of barrage message, to further improve the distribution efficiency of barrage message.
Detailed description of the invention
Fig. 1 is the process schematic of barrage message distribution in the prior art;
Fig. 2 is the flow chart of one of embodiment of the present invention one barrage message distributing method;
Fig. 3 is the process schematic of the barrage message distribution in the embodiment of the present invention one;
Fig. 4 is the flow chart of one of embodiment of the present invention two barrage message distributing method;
Fig. 5 is that the barrage message in the embodiment of the present invention three obtains the flow chart that function realizes process;
Fig. 6 is the structural schematic diagram of one of embodiment of the present invention four barrage message distribution device;
Fig. 7 is the structural schematic diagram of one of the embodiment of the present invention five equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Barrage message distributing method provided in this embodiment is applicable to audio and video playing in Android client/straight
The barrage message to be distributed that application software will receive is broadcast, is distributed to corresponding with barrage message to be distributed each in application software
A distribution target object is particularly suitable for the more situation of item number of barrage message to be distributed.This method can be disappeared by barrage
Diostribution device is ceased to execute, which can be realized by the mode of software and/or hardware, which, which can integrate, is being equipped with sound
In video playing/live streaming application software equipment, such as typically subscriber terminal equipment, such as mobile phone, tablet computer or intelligence
Energy TV etc..Referring to fig. 2, the method for the present embodiment specifically comprises the following steps:
S110, distribution target object obtain agreement according to barrage distributor object and barrage message, determine distribution protocol pair
As.
Wherein, distribution target object, which refers to, needs to receive barrage message in audio and video playing/live streaming application software, and meets
Through formula receives the component object of barrage message condition, such as can be the view object shown for barrage message, can also be with
It is the service controller object for carrying out data processing to barrage message, can also be and storage or transmission is carried out to barrage message
Data management system object.The condition that above-mentioned through formula receives barrage message will be illustrated subsequent.Barrage distributor refers to
For carrying out the barrage distribution module of barrage message distribution, is operated in the module for realization barrage message distribution and define barrage
Distributor class, and barrage distributor object is then an example of barrage distributor class, is the tool of barrage message distribution operation
Body executor.
Barrage message obtains the communication that agreement is inter-module predetermined, for carrying out the through formula distribution of barrage message
Agreement.Illustratively, it is the interface type with public permission modifier that barrage message, which obtains agreement, and includes that barrage message obtains
Take function;Barrage message, which obtains function, has public permission modifier, and function return value type is Java-Object data class
Type.Its code is realized can be with are as follows:
public interface IFetchMsg{
public Object fetchMsg(List<String>listType)
}。
Wherein, public is publicly-owned claim modifier, other classes, which are also just provided with, in this way accesses barrage message acquisition association
Discuss the permission of IFetchMsg.Interface is interface type qualifier, shows that barrage message obtains agreement IFetchMsg and is
Interface realization mechanism, convenient for the polymorphic succession of other classes.Object is the function return that barrage message obtains function fetchMsg
Value Types, representative function return value can be arbitrary data types, such as can be sky object void type, character string
String type, key-value pair map type, JavaBean type or message Message type etc. depend on fetchMsg function
In return value return sentence.ListType is the function input parameters that barrage message obtains function fetchMsg, is one
A inner element data type is the list list object of character string string type.Key in above-mentioned key-value pair map type is
The barrage message identifier type of character string String type is worth for String type, Message type or JavaBean type
Barrage message body msg.Here, barrage message identifier refers to the character that can be identified for that barrage message, can be number, letter,
Any combination of symbol and above-mentioned various characters, the barrage message identifier should be the unique, global of a barrage message
Mark.Barrage message body refers to the bearer of barrage message, interior to include specifically barrage message content.Disappeared by above-mentioned barrage
Breath obtains agreement and barrage message obtains the definition of function, constructs the protocol basis of the through formula distribution of barrage message.
Protocol object refers to interface protocol is inherited and is instantiated after obtain object, it is to be understood that inherit
The object of interface protocol is both the protocol object after the primary object before inheriting, and succession.Distribution protocol object refers to
The object that barrage message obtains agreement and generates is inherited and instantiated, is the corresponding agreement of barrage distributor object in the present embodiment
Object, and data type is only protocol object.
Specifically, in order to realize in barrage distributor object barrage in the Distribution status of barrage message and distribution target object
Synchronization between the processing status of message, and guarantee the timeliness of barrage message distribution, by barrage message in the embodiment of the present invention
Distribution procedure is designed as distribution target object and initiatively obtains barrage message from barrage distributor object.When it is implemented, point
Hair target object first obtains barrage distributor object, to disappear subsequently through the barrage distributor object to the barrage wherein stored
Breath is obtained.And the realization of above-mentioned through formula acquisition process, need to be obtained agreement, i.e. barrage distributor by means of barrage message
Object needs to inherit barrage message and obtains agreement, obtains interface and barrage message acquisition function to hold barrage message, and be based on
This obtains distribution protocol object.
S120, detect upper target barrage Message Processing complete when, distribute target object with message identifier list
For function input parameters, function is obtained by distribution protocol object reference barrage message, so that barrage distributor object callback bullet
Curtain message obtains function, obtains function return value.
Wherein, target barrage message refer to distribution the receivable barrage message of target object, with distribution target object it
Between have corresponding relationship.Upper target barrage message refers to that the last barrage message distribution of execution operates target bullet obtained
Curtain message.It is the intrinsic function that barrage message obtains agreement that barrage message, which obtains function, is a call back function, and by S110
Barrage message known to illustrating obtains function and inherits barrage message acquisition agreement for barrage distributor object and obtain, therefore barrage message
The function executor for obtaining function is barrage distributor object.Message identifier list, which refers to, stores at least one barrage message identifier
List, can be the list of the barrage message identifier of the corresponding all target barrage message of storage distribution target object.
Specifically, synchronous between the Distribution status of barrage message and processing status in order to realize, distribution target object needs
Detect the processing status of its internal upper target barrage message.When detecting that upper target barrage Message Processing completes
When, distribute target object using message identifier list listType as function input parameters, the distribution obtained in S110 is called in triggering
Barrage message in protocol object obtains function fetchMsg (listType).The triggering call operation can make barrage distributor
Object executes barrage message and obtains function.Barrage message obtains function is specifically used in traversal barrage distributor object first and disappears
List is ceased, and determines function return value corresponding with message identifier list.Here, first message list refers to barrage distributor
The list pre-established in object is used to obtain the barrage message that sequential storage is obtained from barrage server according to message, and
Message traverses when for subsequent barrage message distribution, are lost with effectively avoiding barrage message from not distributed in time, are protected simultaneously
Hold the distribution order of barrage message.By the operation of the step, distributing target object can disappear in a upper target barrage
When breath processing is completed, new function return value is obtained from barrage distributor object in time, and then obtain this barrage message
The target barrage message (i.e. current goal barrage message) of distribution operation and acquisition.
Illustratively, pass through distribution protocol object using message identifier list as function input parameters in distribution target object
Call barrage message obtain function, obtain current goal barrage message before, further includes: barrage distributor object is according to be added
Barrage message constructs map mapping relations to be added;Barrage distributor object, which is inputted using map mapping relations to be added as function, joins
Number, invocation list element add function, map mapping relations to be added are added to the first message list being pre-created.
Wherein, barrage message to be added refers to the barrage message needed to be added in first message list.Map mapping relations
Refer to the mapping relations stored with key-value pair map data type.Map mapping relations to be added are corresponding with barrage message to be added
Map mapping relations.List element addition function be it is predetermined, can to first message list carry out element addition operation
Function.
Specifically, for the ease of the management of barrage message, the embodiment of the present invention is in barrage distributor object with map data
Type stores the barrage message obtained from barrage server.It is pre-created and initializes the of a map data structure
With the storage of map data type, barrage message identifier type therein is for one messaging list, i.e. element in first message list
Key in map structure, barrage message body msg are the value in map structure, and similarly, the data type of value can be String class
Type, Message type or JavaBean type are illustrated in the embodiment of the present invention by taking Message type as an example.Specific implementation
When, according to the data type Message of the data type string and msg of type, first message is created by list class list
List listMessage, and first message list is carried out using the dynamic array class ArrayList of android system
The initialization of listMessage, code can be List<Map<String, Message>>listMessage=new
ArrayList<Map<String,Message>>().Create first message list listMessage after, can to its into
Row element addition.
First according to barrage message construction to be added map mapping relations to be added, such as the map class provided by system,
Map Object Creation function HashMap is called to create a map object msgMap, it can be Map < String that code, which is realized,
Message>msgMap=new HashMap<String, Message>().Based on the map object, with barrage message to be added
In type and msg be function input parameters, call map object element be inserted into function msgMap.put (type, msg), structure
Build map mapping relations to be added.Then, the list element of first message list is called to add function add (), by map to be added
Mapping relations are added to first message list, and code realization can be listMessage.add (map).
It needs exist for illustrating, can be the audio-video in Android client from barrage server acquisition barrage message and broadcast
It puts/is broadcast live application software and send data acquisition request to barrage server, the passive response data acquisition request of barrage server is come
It obtains;Preferably through the barrage monitor interface object and barrage monitor interface pair pre-established in Android client
As the middle message transfer function as call back function, the barrage library object callback message transfer function hair in barrage server is received
The barrage message sent, wherein barrage monitor interface object is used to monitor the barrage library object in barrage server.Namely
It says, it is by the way that barrage monitor is arranged in Android client that Android client, which obtains barrage message from barrage server,
Interface object monitors the barrage library object in barrage server, sends barrage message to Android for barrage server
Client provides interface, and includes call back function onMessage (String type, Message msg) in barrage monitor,
Barrage message to Android client is sent for barrage server, and calling function pointer is provided.When barrage message reaches barrage clothes
When business device, triggering barrage monitors event, then barrage server actively calls call back function onMessage, i.e. barrage server is logical
Barrage message is sent to Android client by barrage monitor interface object by the function pointer for crossing call back function,
Barrage distributor object in Android client then can in time, passively receive barrage message.
If S130, function return value are not empty object, distribute target object for function return value and be determined as current goal
Barrage message.
Specifically, if the function return value that S120 is obtained is not sky object null, illustrate that this S120's executes acquisition
Target barrage message corresponding with distribution target object, then distribute target object and be determined as working as by the function return value of acquisition
Preceding target barrage message, the operation of this barrage message distribution terminate.
Referring to Fig. 3, through the embodiment of the present invention in barrage message distributing method, barrage message 301 can directly pass through
Barrage distributor 302 is transmitted in the view object for needing to receive barrage message, that is, the view pair being located in third view layer 305
As without being subjected to intermediate first view layer 303 and the second view layer 304.
The technical solution of the present embodiment inherits barrage message acquisition agreement and its interior packet by distributing semantic object extraction
The barrage message contained obtains the barrage distributor object of function, constructs between barrage distributor object and distribution target object
Message transmission channel, so that the transmission of barrage message can be directly carried out between barrage distributor object and distribution target object,
The distribution procedure for simplifying barrage message improves the distribution efficiency of barrage message.By detecting a upper target barrage
When Message Processing is completed, distribute its corresponding current goal barrage message of semantic object extraction, realizes distribution target object root
Current goal barrage message is actively obtained according to its internal upper target barrage message processing state, improves barrage message point
The timeliness of hair, but also the Distribution status of barrage message and the processing for distributing barrage message in target object in barrage distributor
It keeps synchronizing between state, to reduce the barrage message parallel processing service logic inside distribution target object, improve
Distribute the stability of target object.By distribution target object using message identifier list as function input parameters, by barrage
Distribution protocol object reference obtained from the conversion of distributor object obtains function as the barrage message of call back function, obtains barrage
The function return value of distributor object feedback, and when function return value is not empty object, function return value is determined as currently
Target barrage message reduces unrelated barrage so that distribution target object directly acquires its corresponding current goal barrage message
The acquisition process of message, further simplifies the distribution procedure of barrage message, to further improve the distribution of barrage message
Efficiency.
Embodiment two
The present embodiment on the basis of the above embodiment 1, to " distribution target object is according to barrage distributor object and bullet
Curtain message obtains agreement, obtains distribution protocol object " it is advanced optimized.It on this basis, can also be to " on detecting
One target barrage Message Processing is completed " it is advanced optimized.On the basis of the above, it can also increase that " function return value is
The step of when empty object ".Executing subject in the present embodiment is distribution target object.Wherein or phase identical as the various embodiments described above
Details are not described herein for the explanation for the term answered.Referring to fig. 4, barrage message distributing method provided in this embodiment includes:
S210, object acquisition function is called by barrage distributor class, obtains barrage distributor object.
Wherein, object acquisition function is the intrinsic function (also referred to as member function) in barrage distributor class, is used to obtain
The instance object of barrage distributor class.
Specifically, distribution target object obtains the premise of target barrage message from barrage distributor object, is to get
Barrage distributor object establishes basis to establish bridge joint relationship between distribution target object and barrage distributor object.Specifically
When implementation, distribution target object calls object acquisition function getInstence by barrage distributor class DanMuManager
() obtains function return value.Above-mentioned code is realized can be with are as follows: DanMuManager.getInstence (), the function return value
As barrage distributor object.
S220, agreement is obtained according to barrage message, barrage distributor object is converted into distribution protocol object.
Specifically, distribute target object after obtaining the barrage distributor object for inheriting barrage message acquisition agreement,
Due to the function of the existing barrage distributor class of barrage distributor object, also there is the function of distribution protocol object, therefore in subsequent use
It can not determine which kind of function it executes when the object, i.e., can not directly carry out the behaviour of barrage message acquisition to barrage distributor object
Make.So in order to enable barrage distributor object only has the function of barrage distribution protocol object, in order to the acquisition of barrage message
The agreement implementation, distribution target object needs to inherit barrage message and obtains the barrage distributor object of agreement, then forces to turn
It is changed to and obtains the corresponding distribution protocol object of agreement with barrage message, code is realized can be with are as follows: (IFetchMsg)
DanMuManager.getInstence()。
S230, detection message processing state variate-value.
Wherein, message processing state variable refers to the processing status variable of characterization barrage message processing state, is distribution
For storing the Message Processing mark to target barrage message processing state in target object.Message Processing mark refers to characterization point
Target object is sent out to the mark of target barrage message processing state, which can be letter, number, symbol and any group above-mentioned
It closes.Message Processing mark may include the completion mark that barrage Message Processing is completed, such as STATE_END and barrage message
The unfinished mark of untreated completion, such as STATE_ON;Not completing mark specifically may include what barrage message started to process
Start to identify, such as the processing mark of STATE_START and barrage message present, such as STATE_HAND.By
Message Processing known to this is identified as at least two marks, therefore for the ease of the management of Message Processing mark, by message processing state
Variational Design is enumeration type.
Specifically, distribute the value (i.e. message processing state variate-value) of semantic object extraction message processing state variable.
S240, when message processing state variate-value is to complete mark, determine that target barrage Message Processing is completed.
Specifically, when the message processing state variate-value obtained in S230 is to complete mark, that is, it can determine that an entry
Barrage Message Processing is marked to complete.
If message processing state variate-value is not to complete mark, spacing identification judges the period, and return executes inspection
The step of surveying message processing state variate-value, until message processing state variate-value is to complete mark.Here mark judges the time
Section refer to it is preset, for trigger judge Message Processing identify whether for completion identify timer duration.Distribute target
Object illustrates to start to process inside the distribution target object when detecting message processing state variate-value not is to complete mark
Or the upper target barrage message handled, new barrage message can not be temporarily received, the target pair to be distributed such as needs
As having handled upper target barrage message.During above-mentioned waiting, distribution target object needs constantly to obtain at its message
Manage state variable value.In order to which the timeliness and Installed System Memory of balanced barrage message distribution consume, one is provided in the present embodiment
Mark judges timer, and when timer period reaches, i.e., mark judges that the period reaches, recycling executes the operation of S230,
Until message processing state variate-value is to complete mark, then determine that upper target barrage Message Processing is completed.
S250, using message identifier list as function input parameters, pass through distribution protocol object reference barrage message obtain letter
Number obtains function return value so that barrage distributor object callback barrage message obtains function.
Whether S260, discriminant function return value are sky object.
Specifically, distribution target object comparison function return value and empty object null, with discriminant function return value whether be
Empty object.If function return value is not sky object, S270 is executed;If function return value is sky object, S280 is executed.
S270, function return value is determined as to current goal barrage message.
S280, interval message recapture the period, return and execute using message identifier list as function input parameters, pass through distribution
Protocol object calls barrage message to obtain function, so that barrage distributor object callback barrage message obtains function, obtains function
The step of return value, until determining current goal barrage message.
Wherein, message recapture the period refer to refer to it is preset, for trigger re-execute barrage message obtain operation
Timer duration.The message recaptures the period and can be preset fixed duration, is also possible to according to preset
Duration rule change, the duration of dynamic change.The duration rule change can be distribution lower caching bullet of semantic object extraction
Curtain message is the probability of demand barrage message.It is next when acquisition for example, the initial duration (such as 1s) that one numerical value of setting is fixed
When item caching barrage message is not demand barrage message, it is believed that obtaining next caching barrage message is the general of demand barrage message
Rate is smaller, then initial duration is increased set period of time (such as 1s), determine first adjustment time section;As next obtained again
When to cache barrage message still be not demand barrage message, then first adjustment time section increases set period of time (such as 1s), obtains the
Two adjustment time sections, and so on, until the next caching barrage message obtained is demand barrage message, then timer duration
Return 0.
Specifically, if function return value acquired in distribution target object is sky object, illustrate barrage distributor object
First message list in temporarily without the corresponding target barrage message of distribution target object.So, distribution target object needs
It waits after getting target barrage message in barrage distributor object, again from the first message list of barrage distributor object
Middle acquisition function return value.For the timeliness that balance system memory consumption and barrage message obtain, it is provided in the present embodiment
Message recaptures the period, when timer period reaches, i.e., when message is recaptured the period and reached, returns again to and executes S250 and its subsequent
The operation of step, until obtaining current goal barrage message.
The technical solution of the present embodiment obtains the corresponding distribution of barrage distributor object in such a way that object is converted
Protocol object further improves the distribution efficiency of barrage message so that barrage message obtains agreement and is easy to implement.Pass through interval
Mark judges that period cycle detection message processing state variate-value is completed up to determining upper target barrage Message Processing, one
The Installed System Memory consumption that distribution target object is reduced in degree is determined, to further increase barrage message distribution speed.Pass through
When function return value is empty object, interval message recaptures the period, returns and executes using message identifier list as function input parameters,
Function is obtained by distribution protocol object reference barrage message, so that barrage distributor object callback barrage message obtains function,
Obtain function return value the step of, until determine current goal barrage message, further balance barrage message distribution timeliness with
Installed System Memory consumption, to further improve barrage message distribution efficiency.
Embodiment three
The present embodiment realizes that process carries out on the basis of the various embodiments described above, to the function of " barrage message obtains function "
It advanced optimizes.Executing subject in the present embodiment is barrage distributor object.Wherein or phase identical as the various embodiments described above
Details are not described herein for the explanation for the term answered.Referring to Fig. 5, barrage message distributing method provided in this embodiment includes:
S301, a barrage message is sequentially obtained from first message list, as current barrage message.
Wherein, current barrage message refers in this operation for carrying out the barrage message of barrage message filtering, is the
Barrage message in one messaging list.
Specifically, since the processing of barrage message has succession, therefore barrage distributor object is from first message list
When middle screening target barrage message, it need to also be screened according to the acquisition sequence of barrage message, be then specifically according to first message
The storage order of barrage message carries out barrage message traverses in list.During being somebody's turn to do, sequentially obtains and work as from first message list
When preceding barrage message, the data type according to first message list is needed to determine the acquisition sequence of barrage message in list.With tool
For the queue for having first in first out characteristic, first barrage message of barrage distributor object acquisition first message list team head is made
For current barrage message.It should be noted that the barrage message in first message list is the mapping relations shape with type-msg
Formula storage, preferably with the storage of key-value pair map structure.In addition, the succession in order to keep barrage message, from first message list
When obtaining a barrage message progress subsequent operation, which is deleted from first message list.
S302, determine that current message is identified according to current barrage message.
Specifically, the current barrage message of barrage distributor analysis of object, such as obtained currently by map.getkey mode
The key information type of barrage message is as the corresponding barrage message identifier of current barrage message (i.e. current message mark).
Whether S303, foundation current message mark and message identifier list determine in message identifier list comprising currently disappearing
Breath mark.
Specifically, barrage distributor object is by each barrage message in current barrage message identifier and message identifier list
Whether mark is compared, to determine in message identifier list comprising current message mark.If comprising executing S304;Such as
Fruit does not include, then executes S305.
S304, remaining barrage message in first message list, and obtaining according to remaining barrage message are sequentially obtained one by one
Sequence is taken, one by one stores remaining barrage message to second message list.
Wherein, remaining barrage message refers to that barrage of the storage order after current barrage message disappears in first message list
Breath.Second message list refers to the list pre-established in barrage distributor object, is one in barrage message acquisition function
A transition list, for obtaining other barrage message of sequential storage in addition to current goal barrage message according to message.Such as
Second message list stores in first message list according to the storage order of barrage message in first message list except this operation
In be confirmed as other all barrage message except the barrage message of function return value.It had both been avoided that operation first message in this way
The loss of barrage message in list process, and it is able to maintain the distribution order of barrage message.
Specifically, when being determined in message identifier list in S303 includes current barrage message identifier, illustrate current barrage
Message belongs to the corresponding target barrage message of distribution target object, then distribution mesh should be back to as function return value
Object is marked, while no longer each barrage message after barrage message current in first message list is traversed and judged.
But in order to keep the succession of barrage message, and simplifies program and handle logic, it will be in first message list in the present embodiment
Remaining barrage message is sequentially taken out one by one, and is sequentially stored one by one to second message list.According to subsequent explanation it is found that first
Each barrage message in messaging list before current barrage message is stored one by one to second message list, then at this point,
Just all barrage message in first message list in addition to current barrage message are stored in second message list, and first disappears
Breath list is then accordingly emptied.Later, S308 is executed.
S305, current barrage message is stored to second message list.
Specifically, when being determined in message identifier list in S303 not comprising current barrage message identifier, illustrate current bullet
Curtain message is not belonging to the corresponding target barrage message of distribution target object, then barrage distributor object should carry out next barrage
The judgement of message.But, it is contemplated that current barrage message may be other corresponding target barrage message of distribution target object, therefore
Barrage distributor object should not abandon the current barrage message, but sequentially be stored into second message list.Later,
Execute S306.
S306, next barrage message is sequentially obtained from first message list, update current barrage message.
Specifically, according to the data type of first message list, current barrage is sequentially obtained from first message list and is disappeared
Next barrage message after breath, and as new current barrage message, that is, update current barrage message.Later, it holds
Row S307.
S307, the step of execution determines current message mark according to current barrage message is returned to, until determining message identifier
First message list is identified or traversed in list comprising current message.
Specifically, after updating current barrage message, need to continue to judge whether it is the target bullet for distributing target object
Curtain message, that is, return and execute S302 and its subsequent step, until barrage distributor object determines in message identifier list comprising working as
Preceding message identifier, then subsequent execution S304 and its subsequent step;Or until having traversed first message list, illustrate first at this time
Without the corresponding target barrage message of distribution target object in messaging list, while first message list is also emptied, and second disappears
The barrage message in first message list is then stored in breath list completely.Later, S308 is executed.
S308, all barrage message in second message list are sequentially stored to first message list.
Specifically, since barrage distributor object is to obtain barrage message from first message list to be sentenced every time
It is disconnected, therefore after first message list is emptied, it also needs to disappear each barrage in the second message list as transition list
Breath, according to barrage message acquisition time sequencing, sequentially stores to first message list.Execute return function return again later
The operation of value obtains function to terminate barrage message.It is specific then be, if the operation before this step is S304, subsequent phase
Execute S309 with answering;If operation before this step is to have traversed the operation of first message list in S307, it is subsequent correspondingly
Execute S310.
S309, current barrage message is determined as function return value.
Specifically, by barrage message by taking the storage of map data structure as an example, by the corresponding map key information of current barrage message,
I.e. barrage message body msg is as function return value.Barrage message body msg can be character string type, be also possible to resolve to
JavaBean object type.It is of course also possible to directly using the current barrage message of entire map structure as function return value.
S310, empty object is determined as function return value.
Specifically, due to not finding the corresponding target barrage message of distribution target object in entire first message list,
Therefore barrage message obtains function and directly returns to a sky object null as function return value.
The technical solution of the present embodiment disappears using message identifier as medium, rather than using entire barrage message as medium to first
Breath mark carries out traversal lookup, improves function return value constant speed degree really, and then further increase barrage message distribution efficiency.
By the way that in the ergodic process to first message list, certain barrage message in first message list are sequentially stored to second
Messaging list, and before return function return value, all barrage message in second message list are sequentially stored to first
Messaging list ensure that the succession and integrality of barrage message.
It is the embodiment of barrage message distribution device provided in an embodiment of the present invention, the device and the various embodiments described above below
Barrage message distributing method belong to the same inventive concept, the not detailed description in the embodiment of barrage message distribution device
Detail content can refer to the embodiment of above-mentioned barrage message distributing method.
Example IV
The present embodiment provides a kind of barrage message distribution devices, and referring to Fig. 6, which is specifically included:
Protocol object determining module 610 is obtained for distributing target object according to barrage distributor object and barrage message
Agreement determines distribution protocol object;
Function return value determining module 620, for distributing mesh when detecting that upper target barrage Message Processing is completed
Object is marked using message identifier list as function input parameters, function is obtained by distribution protocol object reference barrage message, so that
Barrage distributor object callback barrage message obtains function, obtains function return value, wherein it is barrage that barrage message, which obtains function,
Distributor object inherits barrage message and obtains agreement and obtain;
Barrage message determination module 630 distributes target object and returns function if for function return value not being empty object
It returns value and is determined as current goal barrage message.
Optionally, on the basis of above-mentioned apparatus, which further includes loop module, is used for:
After obtaining function return value, if function return value is empty object, distributes target object interval message and recapture
Period returns and executes using message identifier list as function input parameters, obtained by distribution protocol object reference barrage message
Function, so that barrage distributor object callback barrage message obtains function, the step of obtaining function return value, until determining current
Target barrage message.
Optionally, function return value determining module 620 includes function implementation sub-module, is obtained for being achieved by the steps of
Obtain the function of function return value:
Barrage distributor object sequentially obtains a barrage message from first message list, as current barrage message;
Barrage distributor object determines that current message identifies according to current barrage message;
Barrage distributor object determines in message identifier list whether wrap according to current message mark and message identifier list
It is identified containing current message;
If so, current barrage message is determined as function return value by barrage distributor object;
If it is not, then barrage distributor object sequentially obtains next barrage message from first message list, update current
Barrage message returns and executes the step of determining current message mark according to current barrage message, until having traversed first message column
Table, and empty object is determined as function return value.
Further, function implementation sub-module also particularly useful for:
Before barrage distributor object is using current barrage message as function return value, barrage distributor object sequentially by
Item obtains the remaining barrage message in first message list, and according to the acquisition of remaining barrage message sequence, one by one by remaining bullet
Curtain message is stored to second message list;
In barrage distributor object before sequentially obtaining next barrage message in first message list, barrage distributor
Object stores current barrage message to second message list;
Before barrage distributor object determines function return value, barrage distributor object is by the institute in second message list
There is barrage message sequentially to store to first message list.
Optionally, protocol object determining module 610 is specifically used for:
Distribute target object and object acquisition function is called by barrage distributor class, obtains barrage distributor object;
Distribute target object and obtain agreement according to barrage message, barrage distributor object is converted into distribution protocol object.
Optionally, function return value determining module 620 is specifically used for:
Distribute target object and detects message processing state variate-value;
When message processing state variate-value is to complete mark, distribution target object is determined at a target barrage message
Reason is completed.
Optionally, on the basis of above-mentioned apparatus, which further includes that first message list obtains module, is used for:
In distribution target object using message identifier list as function input parameters, disappeared by distribution protocol object reference barrage
Breath obtains function, and before obtaining current goal barrage message, barrage distributor object is constructed according to barrage message to be added wait add
Add map mapping relations;
For barrage distributor object using map mapping relations to be added as function input parameters, invocation list element adds function,
Map mapping relations to be added are added to the first message list being pre-created.
Four a kind of barrage message distribution device through the embodiment of the present invention realizes the through formula distribution of barrage message,
Barrage message distribution process is simplified, barrage message distribution efficiency is improved.Maintain barrage message in barrage distributor
Distribution status with distribution target object in the processing status of barrage message it is synchronous, improve distribution target object performance stabilization
Property.
Bullet provided by any embodiment of the invention can be performed in barrage message distribution device provided by the embodiment of the present invention
Curtain message distributing method, has the corresponding functional module of execution method and beneficial effect.
It is worth noting that, included each unit and module are only in the embodiment of above-mentioned barrage message distribution device
It is to be divided according to the functional logic, but be not limited to the above division, as long as corresponding functions can be realized;Separately
Outside, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Embodiment five
Referring to Fig. 7, a kind of equipment 700 is present embodiments provided comprising: one or more processors 720;Storage device
710, for storing one or more programs, when one or more programs are executed by one or more processors 720, so that one
Or multiple processors 720 realize barrage message distributing method provided by the embodiment of the present invention, comprising:
Distribute target object and obtain agreement according to barrage distributor object and barrage message, determines distribution protocol object;
When detecting that upper target barrage Message Processing is completed, distribute target object using message identifier list as function
Parameter is inputted, function is obtained by distribution protocol object reference barrage message, so that barrage distributor object callback barrage message
Function is obtained, function return value is obtained, wherein it is that barrage distributor object succession barrage message obtains that barrage message, which obtains function,
Agreement and obtain;
If function return value is not empty object, distributes target object function return value is determined as current goal barrage and disappear
Breath.
Certainly, it will be understood by those skilled in the art that processor 720 can also realize that any embodiment of that present invention is provided
Barrage message distributing method technical solution.
The equipment 700 that Fig. 7 is shown is only an example, should not function to the embodiment of the present invention and use scope bring
Any restrictions.
As shown in fig. 7, the equipment 700 includes processor 720, storage device 710, input unit 730 and output device
740;The quantity of processor 720 can be one or more in equipment, in Fig. 7 by taking a processor 720 as an example;Place in equipment
Reason device 720, storage device 710, input unit 730 can be connected with output device 740 by bus or other modes, in Fig. 7
For being connected by bus 750.
Storage device 710 is used as a kind of computer readable storage medium, and it is executable to can be used for storing software program, computer
Program and module, if the corresponding program instruction/module of barrage message distributing method in the embodiment of the present invention is (for example, barrage
Protocol object determining module, function return value determining module and barrage message determination module in message distribution device).
Storage device 710 can mainly include storing program area and storage data area, wherein storing program area can store operation
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.
In addition, storage device 710 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least
One disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, storage device 710
It can further comprise the memory remotely located relative to processor 720, these remote memories can be by being connected to the network extremely
Equipment.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 730 can be used for receiving the number or character information of input, and generate with the user setting of equipment with
And the related key signals input of function control.Output device 740 may include that display screen etc. shows equipment.
Embodiment six
The present embodiment provides a kind of storage mediums comprising computer executable instructions, and computer executable instructions are by counting
For executing a kind of barrage message distributing method when calculation machine processor executes, this method comprises:
Distribute target object and obtain agreement according to barrage distributor object and barrage message, determines distribution protocol object;
When detecting that upper target barrage Message Processing is completed, distribute target object using message identifier list as function
Parameter is inputted, function is obtained by distribution protocol object reference barrage message, so that barrage distributor object callback barrage message
Function is obtained, function return value is obtained, wherein it is that barrage distributor object succession barrage message obtains that barrage message, which obtains function,
Agreement and obtain;
If function return value is not empty object, distributes target object function return value is determined as current goal barrage and disappear
Breath.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed barrage message provided by any embodiment of the invention
Relevant operation in distribution method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes barrage message described in each embodiment of the present invention
Distribution method.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of barrage message distributing method characterized by comprising
Distribute target object and obtain agreement according to barrage distributor object and barrage message, determines distribution protocol object;
When detecting that upper target barrage Message Processing is completed, the distribution target object is using message identifier list as function
Parameter is inputted, function is obtained by the distribution protocol object reference barrage message, so that the barrage distributor object callback
The barrage message obtains function, obtains function return value, wherein it is the barrage distributor that the barrage message, which obtains function,
Object inherits the barrage message and obtains agreement and obtain;
If the function return value is not empty object, the function return value is determined as current mesh by the distribution target object
Mark barrage message.
2. the method according to claim 1, wherein after the acquisition function return value, further includes:
If the function return value is the empty object, the distribution target object interval message recaptures the period, and return is held
Row is described using message identifier list as function input parameters, obtains function by the distribution protocol object reference barrage message,
So that barrage message described in the barrage distributor object callback obtain function, obtain function return value the step of, until determine
The current goal barrage message.
3. being achieved by the steps of the method according to claim 1, wherein the barrage message obtains function
Obtain the function of function return value:
The barrage distributor object sequentially obtains a barrage message from first message list, as current barrage message;
The barrage distributor object determines that current message identifies according to the current barrage message;
The barrage distributor object determines the message identifier according to current message mark and the message identifier list
Whether identified comprising the current message in list;
If so, the current barrage message is determined as the function return value by the barrage distributor object;
If it is not, then the barrage distributor object sequentially obtains next barrage message from the first message list, update
Current barrage message returns and executes described the step of determining current message mark according to the current barrage message, until determining
The first message list is identified or traversed in the message identifier list comprising the current message, and described having traversed
When first message list, the empty object is determined as the function return value.
4. according to the method described in claim 3, it is characterized in that, the current barrage is disappeared in the barrage distributor object
Breath is as before function return value, further includes:
The barrage distributor object sequentially obtains the remaining barrage message in the first message list one by one, and according to described
The acquisition sequence of remaining barrage message one by one stores the remaining barrage message to second message list;
In the barrage distributor object before sequentially obtaining next barrage message in the first message list, also wrap
It includes:
The barrage distributor object stores the current barrage message to the second message list;
Before the barrage distributor object determines function return value, further includes:
The barrage distributor object, which sequentially stores all barrage message in the second message list to described first, to disappear
Cease list.
5. the method according to claim 1, wherein the distribution target object according to barrage distributor object and
Barrage message obtains agreement, obtains distribution protocol object and includes:
The distribution target object calls object acquisition function by barrage distributor class, obtains the barrage distributor object;
The distribution target object obtains agreement according to the barrage message, and the barrage distributor object is converted to described point
Send out protocol object.
6. the method according to claim 1, wherein described detect that a target barrage Message Processing is completed
Include:
The distribution target object detects message processing state variate-value;
When the message processing state variate-value is to complete mark, the distribution target object determines a upper target bullet
Curtain Message Processing is completed.
7. method according to claim 1-6, which is characterized in that in the distribution target object with message identifier
List is function input parameters, obtains function by the distribution protocol object reference barrage message, obtains current goal barrage
Before message, further includes:
The barrage distributor object constructs map mapping relations to be added according to barrage message to be added;
The barrage distributor object is using the map mapping relations to be added as function input parameters, the addition of invocation list element
The map mapping relations to be added are added to the first message list being pre-created by function.
8. a kind of barrage message distribution device characterized by comprising
Protocol object determining module obtains agreement according to barrage distributor object and barrage message for distributing target object, really
Determine distribution protocol object;
Function return value determining module, for detect upper target barrage Message Processing complete when, the distribution target
Object obtains function using message identifier list as function input parameters, by the distribution protocol object reference barrage message, with
So that barrage message described in the barrage distributor object callback is obtained function, obtains function return value, wherein the barrage message
Obtaining function is that the barrage distributor object is inherited the barrage message acquisition agreement and obtained;
Barrage message determination module, if not being empty object for the function return value, the distribution target object will be described
Function return value is determined as current goal barrage message.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now barrage message distributing method as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The barrage message distributing method as described in any in claim 1-7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810864347.9A CN109062650B (en) | 2018-08-01 | 2018-08-01 | Bullet screen message distribution method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810864347.9A CN109062650B (en) | 2018-08-01 | 2018-08-01 | Bullet screen message distribution method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109062650A true CN109062650A (en) | 2018-12-21 |
CN109062650B CN109062650B (en) | 2021-06-15 |
Family
ID=64832374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810864347.9A Active CN109062650B (en) | 2018-08-01 | 2018-08-01 | Bullet screen message distribution method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109062650B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110324722A (en) * | 2019-07-02 | 2019-10-11 | 武汉斗鱼鱼乐网络科技有限公司 | The acquisition methods, device of data, equipment and storage medium in direct broadcasting room |
CN111026558A (en) * | 2019-11-25 | 2020-04-17 | 上海哔哩哔哩科技有限公司 | Bullet screen processing method and system based on WeChat applet |
CN111782323A (en) * | 2020-06-29 | 2020-10-16 | 掌阅科技股份有限公司 | Bullet screen obtaining method, computing equipment and computer storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105898375A (en) * | 2016-07-01 | 2016-08-24 | 上海幻电信息科技有限公司 | Barrage pushing system and method |
CN106775700A (en) * | 2016-12-09 | 2017-05-31 | 武汉斗鱼网络科技有限公司 | A kind of method and apparatus of simplified code |
CN106792034A (en) * | 2017-02-10 | 2017-05-31 | 深圳创维-Rgb电子有限公司 | Live method and mobile terminal is carried out based on mobile terminal |
CN107368311A (en) * | 2017-07-10 | 2017-11-21 | 武汉斗鱼网络科技有限公司 | Communication means and system between a kind of more Fragment |
CN107734353A (en) * | 2017-10-09 | 2018-02-23 | 武汉斗鱼网络科技有限公司 | Record method, apparatus, readable storage medium storing program for executing and the equipment of barrage video |
CN109086107A (en) * | 2018-06-28 | 2018-12-25 | 武汉斗鱼网络科技有限公司 | Barrage message distributing method, device, equipment and storage medium |
-
2018
- 2018-08-01 CN CN201810864347.9A patent/CN109062650B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105898375A (en) * | 2016-07-01 | 2016-08-24 | 上海幻电信息科技有限公司 | Barrage pushing system and method |
CN106775700A (en) * | 2016-12-09 | 2017-05-31 | 武汉斗鱼网络科技有限公司 | A kind of method and apparatus of simplified code |
CN106792034A (en) * | 2017-02-10 | 2017-05-31 | 深圳创维-Rgb电子有限公司 | Live method and mobile terminal is carried out based on mobile terminal |
CN107368311A (en) * | 2017-07-10 | 2017-11-21 | 武汉斗鱼网络科技有限公司 | Communication means and system between a kind of more Fragment |
CN107734353A (en) * | 2017-10-09 | 2018-02-23 | 武汉斗鱼网络科技有限公司 | Record method, apparatus, readable storage medium storing program for executing and the equipment of barrage video |
CN109086107A (en) * | 2018-06-28 | 2018-12-25 | 武汉斗鱼网络科技有限公司 | Barrage message distributing method, device, equipment and storage medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110324722A (en) * | 2019-07-02 | 2019-10-11 | 武汉斗鱼鱼乐网络科技有限公司 | The acquisition methods, device of data, equipment and storage medium in direct broadcasting room |
CN110324722B (en) * | 2019-07-02 | 2021-07-23 | 武汉斗鱼鱼乐网络科技有限公司 | Method, device, equipment and storage medium for acquiring data in live broadcast room |
CN111026558A (en) * | 2019-11-25 | 2020-04-17 | 上海哔哩哔哩科技有限公司 | Bullet screen processing method and system based on WeChat applet |
CN111026558B (en) * | 2019-11-25 | 2020-11-17 | 上海哔哩哔哩科技有限公司 | Bullet screen processing method and system based on WeChat applet |
WO2021103365A1 (en) * | 2019-11-25 | 2021-06-03 | 上海哔哩哔哩科技有限公司 | Bullet screen processing method and system based on wechat applet |
US11711333B2 (en) | 2019-11-25 | 2023-07-25 | Shanghai Bilibili Technology Co., Ltd. | Bullet comment processing method and system based on WeChat applet |
CN111782323A (en) * | 2020-06-29 | 2020-10-16 | 掌阅科技股份有限公司 | Bullet screen obtaining method, computing equipment and computer storage medium |
CN111782323B (en) * | 2020-06-29 | 2021-06-29 | 掌阅科技股份有限公司 | Bullet screen obtaining method, computing equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109062650B (en) | 2021-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109062650A (en) | Barrage message distributing method, device, equipment and storage medium | |
JP7100154B2 (en) | Processor core scheduling method, equipment, terminals and storage media | |
CN109032815A (en) | Information interacting method, device, equipment and storage medium between functional module | |
CN109413502B (en) | Multithreading barrage message distribution method, device, equipment and storage medium | |
WO2021161174A1 (en) | Preloading of applications and in-application content in user devices | |
WO2021102691A1 (en) | Resource subscription method and apparatus, computer device, and storage medium | |
WO2019024647A1 (en) | Application program processing method and device, storage medium and terminal | |
CN109343983A (en) | Information interacting method, device, equipment and storage medium between functional module | |
CN108882053A (en) | Barrage message distributing method, device, equipment and storage medium | |
CN104714839A (en) | Method and device for controlling life cycle of processes | |
CN108810645B (en) | Bullet screen message distribution method, device, equipment and storage medium | |
CN116820527B (en) | Program upgrading method, device, computer equipment and storage medium | |
CN109005465A (en) | Barrage message distributing method, device, equipment and storage medium | |
CN109388388A (en) | Information interacting method, device, equipment and storage medium between functional module | |
CN109144639A (en) | Barrage message distributing method, device, equipment and storage medium | |
CN109086107A (en) | Barrage message distributing method, device, equipment and storage medium | |
CN109144520B (en) | Information interaction method, device, equipment and storage medium among different objects in Android | |
CN110045997A (en) | Object initialization method, apparatus, equipment and the storage medium of fundamental functional modules | |
CN109089163A (en) | Barrage message distributing method, device, equipment and storage medium | |
CN109005468A (en) | Barrage message distributing method, device, equipment and storage medium | |
CN108881991A (en) | Barrage message distributing method, device, equipment and storage medium | |
CN111813529B (en) | Data processing method, device, electronic equipment and storage medium | |
CN109379605B (en) | Bullet screen distribution method, device, equipment and storage medium based on bullet screen sequence | |
CN109413489B (en) | Serial multi-thread bullet screen distribution method, device, equipment and storage medium | |
CN109684009B (en) | Protocol-based countdown synchronization method, device, storage medium and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |