CN107423143B - Communication management method and system between a kind of floating layer - Google Patents

Communication management method and system between a kind of floating layer Download PDF

Info

Publication number
CN107423143B
CN107423143B CN201710516149.9A CN201710516149A CN107423143B CN 107423143 B CN107423143 B CN 107423143B CN 201710516149 A CN201710516149 A CN 201710516149A CN 107423143 B CN107423143 B CN 107423143B
Authority
CN
China
Prior art keywords
floating layer
message
view
floating
view elements
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.)
Active
Application number
CN201710516149.9A
Other languages
Chinese (zh)
Other versions
CN107423143A (en
Inventor
张磊
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710516149.9A priority Critical patent/CN107423143B/en
Publication of CN107423143A publication Critical patent/CN107423143A/en
Application granted granted Critical
Publication of CN107423143B publication Critical patent/CN107423143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8193Monomedia components thereof involving executable data, e.g. software dedicated tools, e.g. video decoder software or IPMP tool

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The present invention provides communication management method and system between a kind of floating layer, and the method includes: S1, is that multiple floating layers on player interface configure floating layer manager, the floating layer manager is for being managed collectively each floating layer;First message in one floating layer is passed to another floating layer in such a way that floating layer manager is forwarded when a floating layer sends first message to another floating layer by S2.The present invention is that each floating layer on the player interface in live streaming field configures a floating layer manager, and view controller is configured inside each floating layer, layering orderly management is carried out to the communication between each floating layer and between each view elements by floating layer manager and view controller realization, it solves the confusion of existing management, improves the maintainability and scalability of code.

Description

Communication management method and system between a kind of floating layer
Technical field
Field of communication technology of the present invention, more particularly, to communication management method and system between a kind of floating layer.
Background technique
The software of Android platform client live streaming at present has very more floating layers when player interface, is developing In the process, communicated between floating layer, traditional communication means be realized by open source projects EventBus floating layer with Communication between player, between floating layer and floating layer.
The maximum defect of EventBus be transmitting terminal be not aware that receiving end be somewhere carry out it is received, that is, It says that only developer oneself just knows and somewhere has sent an event, carry out receiving the event in another place, in this way, If when changing a developer to track the code may if can not understand purpose that former developer writes, result in this way Program can not be safeguarded.
Simultaneously because the random transmission of message system, can not uniformly be managed message, such message is in internal system It runs helter-skelter, it is easy to the problems such as causing information drop-out and can not safeguarding.
Summary of the invention
The present invention provides telecommunication management between a kind of floating layer for overcoming the above problem or at least being partially solved the above problem Method and system overcome the problem of telecommunication management confusion between existing floating layer.
According to an aspect of the invention, there is provided communication management method between a kind of floating layer, comprising:
S1 is that multiple floating layers on player interface configure floating layer manager, and the floating layer manager is for being managed collectively Each floating layer;
S2, when a floating layer sends first message to another floating layer, in such a way that floating layer manager is forwarded First message in one floating layer is passed into another floating layer.
The invention has the benefit that configuring a floating layer pipe for each floating layer on the player interface in live streaming field Device is managed, and configures view controller inside each floating layer, is realized by floating layer manager and view controller to each floating Communication between layer and between each view elements carries out layering orderly management, solves the confusion of existing management, improves The maintainability and scalability of code.
Based on the above technical solution, the present invention can also improve as follows.
Further, first in a floating layer is disappeared in such a way that floating layer manager is forwarded in the step S2 Breath passes to another floating layer and includes:
Floating layer manager receives the first message that source floating layer is sent, wherein includes at least one mesh in the first message Floating layer ID and first message content;
According at least one purpose floating layer ID in the first message, the first message content is transmitted to purpose and is floated The corresponding floating layer of layer ID.
Further, multiple view elements are placed in each described floating layer, further includes:
In each floating layer, view controller is configured for multiple view elements in the floating layer;
When a view elements in the same floating layer send second message to another view elements, pass through the floating layer Second message in one view elements is passed to another view elements by the mode of interior view controller forwarding.
Further, by second in a view elements by way of the view controller in the floating layer forwards Message transmission includes: to another view elements
View controller receives the second message that source view elements are sent, wherein includes at least one in the second message A purpose view elements ID and second message content;
According at least one purpose view elements ID in the second message, the second message content is transmitted to mesh The corresponding view elements of view elements ID.
Further, further includes:
When view elements of the view elements in a floating layer into another floating layer send third message, pass through floating layer The mode that manager and view controller forward jointly realizes the message transmission between different floating layer internal view elements.
Further, described realize in different floating layers in such a way that floating layer manager and view controller forward jointly regards Pel element between message transmission include:
Source view controller in the floating layer of source receives the third message that the source view elements in the floating layer of source are sent, and will be described Third message is transmitted to floating layer manager, wherein the third message includes at least one purpose floating layer ID, at least one purpose View elements ID and third message content;
Floating layer manager turns the third message content according at least one purpose floating layer ID in the third message Issue the view controller in the corresponding floating layer of purpose floating layer ID;
According at least one purpose view elements ID in the third message, view controller in purpose floating layer is by institute It states third message content and is transmitted to the corresponding view elements of purpose view elements ID.
Further, further includes:
First interface is defined in floating layer manager, and defines two interface functions respectively in the first interface, point It Shi Xian not the message that sends of reception source floating layer and to purpose floating layer dispatch messages;And
Second interface is defined in view controller in floating layer, and two functions are defined in the second interface, point The message and the view elements dispatch messages into the floating layer that the forwarding of floating layer manager Shi Xian not received.
According to the second aspect of the invention, communications management system between a kind of floating layer is additionally provided, comprising:
Configuration module, for configuring floating layer manager for multiple floating layers on player interface, the floating layer manager is used In each floating layer of unified management;
Message transmission module, for passing through floating layer manager when a floating layer sends first message to another floating layer First message in one floating layer is passed to another floating layer by the mode being forwarded.
According to the third aspect of the invention we, a kind of equipment of communication management method between floating layer, including processor are additionally provided (processor), memory (memory) and bus;
The processor and memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out each implementation method as above.
According to the fourth aspect of the invention, a kind of non-transient computer readable storage medium is additionally provided, it is described non-transient Computer-readable recording medium storage computer instruction, the computer instruction make the computer execute as above each embodiment party Method.
Detailed description of the invention
Fig. 1 communication management method flow chart between the floating layer of one embodiment of the invention;
Fig. 2 communications management system between the floating layer of another embodiment of the present invention connects block diagram;
Fig. 3 communications management system between the floating layer of another embodiment of the invention is connected block diagram;
Fig. 4 is to connect block diagram in one embodiment of the invention inside floating layer manager;
Fig. 5 is to connect block diagram in another embodiment of the present invention inside view controller;
Fig. 6 equipment of communication management method between the floating layer of another embodiment of the invention connects block diagram.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below Example is not intended to limit the scope of the invention for illustrating the present invention.
Referring to Fig. 1, communication management method between the floating layer of one embodiment of the invention is provided, it is right in net cast field Communication between each floating layer on player interface, which is realized, is layered orderly management, can be improved the maintainability and expansion of code Malleability.This method comprises: S1, is that multiple floating layers on player interface configure floating layer manager, the floating layer manager is used for It is managed collectively each floating layer;S2 is turned when a floating layer sends first message to another floating layer by floating layer manager First message in one floating layer is passed to another floating layer by the mode of hair.
Before the present embodiment is described in detail, to floating layer, this concept is introduced, Android platform client The player interface of live streaming software has many floating layers, and floating layer is exactly on player video flowing for showing other view members The layer of element, for example, barrage message or animated element etc. can be placed in floating layer.In the process of development, it is needed between each floating layer It is communicated, it is random transmission message that traditional communication mode, which is between floating layer and floating layer, can not be managed collectively, when floating When the quantity of layer is excessive, the communication between each floating layer is just very chaotic, and management is got up highly difficult.
Therefore, the present embodiment is that each floating layer configures a floating layer manager, and floating layer manager is mainly used to each floating Layer is managed collectively.During floating layer is communicated with floating layer, it is managed collectively by floating layer manager, example Such as, when a floating layer need to another floating layer send message when, realized in such a way that floating layer manager is forwarded by Message transmission in one floating layer gives another floating layer.
In such a way that floating layer manager is forwarded the message between floating layer, rather than directly sent out between each floating layer Message, the mode that message directly circulates between each floating layer are sent, although transmission speed is fast, will lead to disappear in this way The coupled relation of breath is intricate, and with the increase of type of message and the quantity of floating layer, complexity doubles at geometry, later period geometry It can not safeguard.Therefore, the present embodiment is realized between each floating layer in such a way that selection is forwarded using floating layer manager Mutual communication solves the confusion of existing management, improves the maintainability and scalability of code.
On the basis of the above embodiments, in another embodiment of the invention, pass through floating layer management in the step S2 It includes: that floating layer manager reception source is floated that first message in one floating layer is passed to another floating layer by the mode that device is forwarded The first message that layer is sent, wherein include at least one purpose floating layer ID and first message content in the first message;According to It is corresponding floating to be transmitted to purpose floating layer ID by least one purpose floating layer ID in the first message for the first message content Layer.
During realizing the message communicating between two floating layers in such a way that floating layer manager forwards, a floating layer to Another floating layer carries out message transmission and the floating layer for sending message is known as source floating layer for convenience of description, will receive the floating layer of message Referred to as purpose floating layer.When source floating layer sends message to purpose floating layer, the organizing messages in the floating layer of source, wherein include in message The specific message content that purpose floating layer ID and needs are sent.Herein, it should be noted that a source floating layer can be to multiple mesh Floating layer send message.After the floating layer tissue good news of source, floating layer manager is transmitted the message to, floating layer management receives message Afterwards, message is parsed, parses at least one purpose floating layer ID therein and specific message content.According to what is parsed Specific message content is transmitted to the corresponding floating layer of purpose floating layer ID by purpose floating layer ID.
According to above scheme, it can be found that two-way circulation is carried out when message between floating layer and floating layer manager, therefore, It needs to design two passes to come for communication between the two.In order to reduce between floating layer and floating layer manager in software design Coupled relation, selection using the mode of interface protocol carries out Coupling Design.It is fixed on floating layer manager according to this thought One interface ISendMessage of justice, two interface functions is then devised in the interface, is pubic viod respectively SendMsgToLayerManager (Object msg) and pubic viod sendMsgToLayer (int layer, Object msg).This function of sendMsgToLayerManager is for sending one of floating layer manager for the message in floating layer Functional based method, it is in order to be compatible with any message, because in java that wherein message body msg, which is designed as the purpose of an Object type, In, Object type is all types of parents, and according to the characteristic of object-oriented, parent can receive subclass object, is owned Object object can receive any subclass message object.
This function of sendMsgToLayer is made trouble mainly by message distribution to the functional based method of floating layer, and layer is indicated Purpose floating layer sends message to which floating layer, msg indicates the message body content for needing to send, which is also Object type.
By two interface function sendMsgToLayerManager in the ISendMessage interface that defines and SendMsgToLayer, so that it may realize the communication between floating layer and floating layer manager.
The communication management method between each floating layer is illustrated with specific example below.For example, floating layer Layer1 will send messages to floating layer layer2 and be communicated, entire communication process are as follows:
In organizing messages A in floating layer layer1 for the message transmission between floating layer layer1 and floating layer manager, design Message transmission of the message B between floating layer manager and floating layer layer2.It wherein, include purpose floating layer ID and need in message A The specific message content to be sent.
When floating layer layer1 is by calling the interface function sendMsgToLayerManager of floating layer manager by message A It is sent to floating layer manager, message A is parsed after floating layer manager receives message A, respectively obtains purpose floating layer ID And message content, wherein message content is above-mentioned described message B, and then floating layer manager passes through calling interface function Specific message content is transmitted to floating layer layer2 by sendMsgToLayer, this completes message floating layer and floating layer it Between circulation process.It should be noted that when purpose floating layer ID has multiple, floating layer manager is by the specific message content same time-division Issue multiple purpose floating layers.
On the basis of above-mentioned each embodiment, placed in one embodiment of the present of invention, in each described floating layer more A view elements, further includes: in each floating layer, configure view controller for multiple view elements in the floating layer;When same When a view elements in one floating layer send second message to another view elements, pass through the view control in the floating layer Second message in one view elements is passed to another view elements by the mode of device forwarding.
Above-mentioned have been described above has multiple floating layers in player interface, wherein each floating layer is for multiple views are presented Pel element, be finally the view elements shown in floating layer during display, multiple views member in the same floating layer It is also to need to carry out message transmission between element.In order to effectively realize the communication between each view elements, the present embodiment is every Multiple view elements in one floating layer configure a view controller, for uniting to all view elements in the floating layer One orderly management.
For the message transmission of multiple view elements in the same floating layer, traditional mode is direct between view elements Message transmission is carried out, in this way when view elements quantity is more, complexity is relatively high, and management is got up also more chaotic. In order to orderly be managed, in the present embodiment, when a view elements in the same floating layer are sent out to another view elements It is to be realized by way of the view controller forwarding in the floating layer by the second message in a view elements when sending message Another view elements is passed to, in this way by the view controller in the floating layer to the message transmission between each view elements It is managed collectively, accomplishes that orderly differentiated control, management get up to cause confusion.
On the basis of the various embodiments described above, in another embodiment of the invention, the view by the floating layer It includes: view controller that second message in one view elements is passed to another view elements by the mode of controller forwarding Reception source view elements send second message, wherein in the second message include at least one purpose view elements ID and Second message content;
According at least one purpose view elements ID in the second message, the second message content is transmitted to mesh The corresponding view elements of view elements ID.
View elements during realizing the message transmission between the view elements in the same floating layer, in floating layer Message is sent to another view elements the view elements for sending message are known as source view elements, will be received for convenience of description The view elements of message are known as purpose view elements.When source, view elements need to send message to purpose view elements, in source Organizing messages in view elements, wherein include the specific message content that purpose view elements ID and needs are sent in message.Source view After pel element has organized message, view controller is transmitted the message to, view controller is according to the purpose view member in message Specific message content is transmitted to purpose view elements by plain ID.
The principle of message transmission between above-mentioned different floating layers is similar, in order to enable the view controller in floating layer can It is communicated with each view elements in the floating layer, the present embodiment is that view controller defines an interface IInnerSendMessage interface, and two interface functions are defined in the interface SendMsgToInnerLayerManager and sendMsgToView.
Wherein, sendMsgToInnerLayerManager interface function is called for view elements, will be in view elements Message transmission to view controller, sendMsgToView interface function is called for view controller, by message distribution Give purpose view elements.
To carry out the communication process between each view elements in the same floating layer with a specific example below Explanation.If the view elements A in floating layer wants to post messages to view elements B, view elements A is by calling view control Message is first sent to view controller, then view by the sendMsgToInnerLayerManager interface function in device processed Controller calls sendMsgToView interface function that specific message content is distributed to purpose view elements, thereby realizes The message transmission between different views element in the same floating layer.
On the basis of the various embodiments described above, in one embodiment of the present of invention, further includes: the view in a floating layer When view elements of the element into another floating layer send third message, forwarded jointly by floating layer manager and view controller Mode realize the message transmission between different floating layer internal view elements.
Above-described embodiment describes in detail in communication and the same floating layer between different floating layers between different views element Communication, the present embodiment emphasis introduces the communication between the view elements in different floating layers.For the view in a floating layer When view elements of the element into another floating layer send message, i.e. communication between the view elements across floating layer, the present embodiment It is to be coordinated by the view controller in floating layer manager and floating layer to complete, realizes the multi-zone supervision of communication.
It is described to pass through floating layer manager and view in another embodiment of the invention on the basis of the various embodiments described above The mode that figure controller forwards jointly realizes that the message transmission between different floating layer internal view elements includes: the source view in the floating layer of source Figure controller receives the third message that the source view elements in the floating layer of source are sent, and the third message is transmitted to floating layer management Device, wherein the third message includes at least one purpose floating layer ID, at least one purpose view elements ID and third message Hold;The third message content is transmitted to by floating layer manager according at least one purpose floating layer ID in the third message View controller in the corresponding floating layer of purpose floating layer ID;According at least one purpose view elements in the third message The third message content is transmitted to the corresponding view member of purpose view elements ID by ID, the view controller in purpose floating layer Element.
For the communication between the view elements in different floating layers, need to realize by forwarding twice.One floating View elements of the view elements into another floating layer in layer send message, for convenience of description, will send the view member of message It is called usually as source view elements, the view elements for receiving message is known as purpose view elements.When the source view elements in the floating layer of source It include purpose floating layer ID, purpose view elements ID in message when the purpose view elements into purpose floating layer being needed to send message And specific message content.Message is first sent to the view controller in the floating layer by former view elements, and view controller will Message is sent to floating layer manager.After floating layer manager receives message, message is parsed, parse purpose floating layer ID, Purpose view elements ID and specific message content.According to purpose floating layer ID, specific message content is transmitted in purpose floating layer View controller, then according to purpose view elements ID, specific message content is being transmitted to purpose view by view controller Element, in this way, just being completed among the view elements of different floating layers by the cooperative cooperating of floating layer manager and view controller Communication.
Communication process between view elements with a specific example to illustrate different floating layers below, for example, it is desired to Complete floating layer layer1 in view elements a1 and floating layer layer2 in floating layer element b2 between communication, need at this time using Above-mentioned designed function sendMsgToInnerLayerManager sends floating layer layer1 from view elements a1 for message In view controller InnerLayerManager in, calling is then passed through by view controller InnerLaoutManager again SendMsgToLayerManager method forwards the message in floating layer manager layerManager, thus will be in floating layer The message of the view elements of the bottom is sent to the floating layer manager layerManager of top.
Next need to complete is that floating layer manager gradually issues message, first by floating layer manager Message in layerManager is by calling sendMsgToLayer function, by message distribution to the view in floating layer layer2 In controller InnerLayerManager, then again by the sendMsgToView method in floating layer layer2 by message distribution Into view elements b2, this completes the message transmissions of the view elements a1 transmission in floating layer layer1 to floating layer layer2 In view elements b2 process.
The present embodiment is completed by the cooperative cooperating of floating layer manager and view controller in the view elements of different floating layers Between communication, realize and be layered orderly management process, original complicated communication is separated, is greatly improved out It sends out efficiency and makes the hierarchical relationship of software is simpler to be illustrated.
Referring to fig. 2, communications management system between the floating layer of one embodiment of the invention is provided, including configuration module 21 and floating Shelf manager 22.Wherein, configuration module 21, it is described floating for configuring floating layer manager for multiple floating layers on player interface Shelf manager is for being managed collectively each floating layer.
Floating layer manager 22 is used for when a floating layer sends first message to another floating layer, by way of forwarding First message in one floating layer is passed into another floating layer.
Wherein, referring to Fig. 3, floating layer manager 22 further comprises the first receiving unit 221 and the first Dispatching Unit 221. First receiving unit 221, for receiving the first message of source floating layer transmission, wherein include at least one in the first message Purpose floating layer ID and first message content;
First Dispatching Unit 222, for according at least one purpose floating layer ID in the first message, by described first Message content is transmitted to the corresponding floating layer of purpose floating layer ID.
Referring to fig. 4, communications management system further includes view controller 23 between floating layer.Wherein, configuration module 21 are also used to In each floating layer, view controller 23 is configured for multiple view elements in the floating layer.
View controller 23, for sending second to another view elements when a view elements in the same floating layer When message, the second message in a view elements passed to by way of the forwarding of view controller in the floating layer another A view elements.
Referring to Fig. 5, view controller 23 further comprises the second receiving unit 231 and the second Dispatching Unit 232.Second connects Unit 231 is received, for receiving the second message of source view elements transmission, wherein include at least one mesh in the second message View elements ID and second message content.
Second Dispatching Unit 232 will be described for according at least one purpose view elements ID in the second message Second message content is transmitted to the corresponding view elements of purpose view elements ID.
Wherein, when the view elements when the view elements in a floating layer into another floating layer send third message, lead to It crosses floating layer manager 22 and mode that view controller 23 forwards jointly realizes that the message between different floating layer internal view elements passes It passs
The view controller 23, is also used to receive the third message that source view elements in the floating layer of source are sent, and by institute State third message and be transmitted to floating layer manager 22, wherein the third message include at least one purpose floating layer ID, at least one Purpose view elements ID and third message content;And it is also used to according at least one purpose view member in the third message The third message content is transmitted to the corresponding view elements of purpose view elements ID by plain ID.
The floating layer manager 22 is also used to according at least one purpose floating layer ID in the third message, by described Three message contents are transmitted to the view controller 23 in the corresponding floating layer of purpose floating layer ID.
Fig. 6 shows the structural block diagram of the equipment of communication management method between the floating layer of the embodiment of the present application.
Referring to Fig. 6, the equipment of communication management method includes: processor (processor) 601, memory between floating layer (memory) 602 and bus 603;Wherein, the processor 601 and memory 602 are completed mutual by the bus 603 Communication.
The processor 601 is used to call the program instruction in the memory 602, to execute above-mentioned each method embodiment Provided method, for example, configure floating layer manager for multiple floating layers on player interface, the floating layer manager is used In each floating layer of unified management;
When a floating layer sends first message to another floating layer, by one in such a way that floating layer manager is forwarded First message in a floating layer passes to another floating layer.The present invention discloses a kind of computer program product, the computer program Product includes the computer program being stored in non-transient computer readable storage medium, which includes that program refers to It enables, when program instruction is computer-executed, computer is able to carry out communication tube between floating layer provided by above-mentioned corresponding embodiment Reason method, for example, configure floating layer manager for multiple floating layers on player interface, the floating layer manager is for unified Manage each floating layer;When a floating layer sends first message to another floating layer, the side that is forwarded by floating layer manager First message in one floating layer is passed to another floating layer by formula.
The present invention also provides a kind of non-transient computer readable storage medium, which is deposited Computer instruction is stored up, which makes computer execute telecommunication management side between floating layer provided by above-mentioned corresponding embodiment Method, for example,
Floating layer manager is configured for multiple floating layers on player interface, the floating layer manager is each for being managed collectively Floating layer;When a floating layer sends first message to another floating layer, by one in such a way that floating layer manager is forwarded First message in floating layer passes to another floating layer.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The embodiments such as equipment of communication management method are only schematical between floating layer described above, wherein as dividing Unit from part description may or may not be physically separated, component shown as a unit can be or It may not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can basis It is actual to need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill people Member is without paying creative labor, it can understands and implements.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Certain Part Methods of example or embodiment.
The present invention provides communication management method and systems between a kind of floating layer, by devising floating layer manager and view control The mode of device processed come the communication between the communication and floating layer internal view element and view elements that are managed collectively between floating layer and floating layer, Orderly management.In addition, the transmission of message needs to flow by having set up floating layer manager and view controller two such communication layers It is forwarded again through floating layer manager, we can be managed collectively and distribute to message in this way.Due to introducing floating layer The concept of manager and View Manager, so that the communication between floating layer and between view elements becomes very simple, it will be original Complicated communication isolating comes, and message is managed collectively and has been distributed, and greatly improves development efficiency and makes The hierarchical structure relationship of software is simpler to be illustrated.
Finally, the present processes are only preferable embodiment, it is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (9)

1. communication management method between a kind of floating layer characterized by comprising
S1 is that multiple floating layers on player interface configure floating layer manager, and the floating layer manager is each for being managed collectively Floating layer;
S2, when a floating layer sends first message to another floating layer, by one in such a way that floating layer manager is forwarded First message in a floating layer passes to another floating layer;
Wherein, multiple view elements, the step S1 are placed in each described floating layer further include:
In each floating layer, view controller is configured for multiple view elements in the floating layer;
The step S2 further include:
When view elements of the view elements in a floating layer into another floating layer send third message, pass through floating layer management The mode that device and view controller forward jointly realizes the message transmission between different floating layer internal view elements.
2. communication management method between floating layer as described in claim 1, which is characterized in that in the step S2, pass through floating layer pipe First message in one floating layer is passed to another floating layer and includes: by the mode that reason device is forwarded
Floating layer manager receives the first message that source floating layer is sent, wherein includes that at least one purpose is floating in the first message Layer ID and first message content;
According at least one purpose floating layer ID in the first message, the first message content is transmitted to purpose floating layer ID Corresponding floating layer.
3. communication management method between floating layer as described in claim 1, which is characterized in that
The step S2 further include:
When a view elements in the same floating layer send second message to another view elements, by the floating layer Second message in one view elements is passed to another view elements by the mode of view controller forwarding.
4. communication management method between floating layer as claimed in claim 3, which is characterized in that the view control by the floating layer Second message in one view elements is passed to another view elements and includes: by the mode of device forwarding processed
View controller receives the second message that source view elements are sent, wherein includes at least one mesh in the second message View elements ID and second message content;
According at least one purpose view elements ID in the second message, the second message content is transmitted to purpose view The corresponding view elements of pel element ID.
5. communication management method between floating layer as described in claim 1, which is characterized in that described to pass through floating layer manager and view The mode that controller forwards jointly realizes that the message transmission between different floating layer internal view elements includes:
Source view controller in the floating layer of source receives the third message that the source view elements in the floating layer of source are sent, and by the third Message is transmitted to floating layer manager, wherein the third message includes at least one purpose floating layer ID, at least one purpose view Element ID and third message content;
The third message content is transmitted to by floating layer manager according at least one purpose floating layer ID in the third message View controller in the corresponding floating layer of purpose floating layer ID;
According at least one purpose view elements ID in the third message, view controller in purpose floating layer is by described Three message contents are transmitted to the corresponding view elements of purpose view elements ID.
6. communication management method between floating layer as claimed in claim 5, which is characterized in that further include:
First interface is defined in floating layer manager, and defines two interface functions respectively in the first interface, it is real respectively Now receive message that source floating layer is sent and to purpose floating layer dispatch messages;And
Second interface is defined in view controller in floating layer, and two functions are defined in the second interface, it is real respectively The message and the view elements dispatch messages into the floating layer for now receiving the forwarding of floating layer manager.
7. communications management system between a kind of floating layer characterized by comprising
Configuration module, for configuring floating layer manager for multiple floating layers on player interface, the floating layer manager is for uniting The one each floating layer of management;It is also used in each floating layer, configures view controller for multiple view elements in the floating layer, In, multiple view elements are placed in each described floating layer;
Floating layer manager, for being turned by floating layer manager when a floating layer sends first message to another floating layer First message in one floating layer is passed to another floating layer by the mode of hair;
View controller, for sending third message when view elements of the view elements in a floating layer into another floating layer When, by cooperating the floating layer manager to forward the message transmission between the different floating layer internal view elements of realization jointly.
8. the equipment of communication management method between a kind of floating layer, which is characterized in that including processor (processor), memory (memory) and bus;
The processor and memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough execute as the method according to claim 1 to 6.
9. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 1 to 6 is any.
CN201710516149.9A 2017-06-29 2017-06-29 Communication management method and system between a kind of floating layer Active CN107423143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710516149.9A CN107423143B (en) 2017-06-29 2017-06-29 Communication management method and system between a kind of floating layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710516149.9A CN107423143B (en) 2017-06-29 2017-06-29 Communication management method and system between a kind of floating layer

Publications (2)

Publication Number Publication Date
CN107423143A CN107423143A (en) 2017-12-01
CN107423143B true CN107423143B (en) 2019-12-03

Family

ID=60426842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710516149.9A Active CN107423143B (en) 2017-06-29 2017-06-29 Communication management method and system between a kind of floating layer

Country Status (1)

Country Link
CN (1) CN107423143B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086107B (en) * 2018-06-28 2021-06-15 武汉斗鱼网络科技有限公司 Bullet screen message distribution method, device, equipment and storage medium
CN111309415B (en) * 2020-01-17 2024-01-02 北京有竹居网络技术有限公司 User Interface (UI) information processing method and device of application program and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060524A (en) * 2006-05-09 2007-10-24 华为技术有限公司 A multicast service application method and system
CN101763267A (en) * 2010-01-21 2010-06-30 深圳市同洲电子股份有限公司 Method for realizing embedded browser, device therefor and digital television receiving terminal
CN103019866A (en) * 2012-10-24 2013-04-03 北京京东世纪贸易有限公司 Distributed method and system based on message queue
CN103842960A (en) * 2011-09-30 2014-06-04 诺基亚公司 Method and apparatus for inter-widget communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060524A (en) * 2006-05-09 2007-10-24 华为技术有限公司 A multicast service application method and system
CN101763267A (en) * 2010-01-21 2010-06-30 深圳市同洲电子股份有限公司 Method for realizing embedded browser, device therefor and digital television receiving terminal
CN103842960A (en) * 2011-09-30 2014-06-04 诺基亚公司 Method and apparatus for inter-widget communication
CN103019866A (en) * 2012-10-24 2013-04-03 北京京东世纪贸易有限公司 Distributed method and system based on message queue

Also Published As

Publication number Publication date
CN107423143A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN102377686B (en) Message subscription system, method and device
CN104363407B (en) A kind of video conferencing system means of communication and related device
CN108093206A (en) A kind of resource monitoring method and system
CN107770269B (en) A kind of service response method and its terminal
CN110366144A (en) A kind of method and device of subscription service
CN108093014A (en) A kind of resource monitoring method and device
CN102395144A (en) Wireless access point upgrade method, system thereof and device thereof
CN103441936A (en) Issuing method of forwarding adjacent link
CN107423143B (en) Communication management method and system between a kind of floating layer
CN104883344B (en) Negotiate the method and apparatus of media capability
CN107087032B (en) Realize the method and apparatus that cluster is set up
CN110365643A (en) Communication method and device
CN108173861A (en) A kind of method, apparatus of net cast and live streaming distribution connector
CN105376194A (en) Real-time communication method, real-time communication system and real-time communication platform equipment
CN105828300A (en) Method of realizing state information subscription in cluster system
CN112751937A (en) Distributed edge intelligent Bluetooth Mesh gateway system and implementation method
CN105554089A (en) DDS (Date Distribution Service) standard-based ''request-response'' type data communication method
CN104038557B (en) Device software batch upgrading method in a kind of tree network structure of optical fiber connection
CN104683728B (en) Establish the method and system of video communication
KR20140021157A (en) Apparatus and method for providing group communication service
CN103209213B (en) Data transmission method and system for data subscription
CN102223290B (en) Quality of service (QoS) configuration method, QoS configuration device and QoS configuration system
CN103428865B (en) A kind of wireless link distribution method and system
CN110233791A (en) Data duplicate removal method and device
CN104427141A (en) Child-parent phone realizing, answering and calling methods, IP terminal intercommunication method, and IP terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant