CN107426599A - A kind of floating layer management method and system - Google Patents

A kind of floating layer management method and system Download PDF

Info

Publication number
CN107426599A
CN107426599A CN201710517267.1A CN201710517267A CN107426599A CN 107426599 A CN107426599 A CN 107426599A CN 201710517267 A CN201710517267 A CN 201710517267A CN 107426599 A CN107426599 A CN 107426599A
Authority
CN
China
Prior art keywords
floating layer
floating
function
layer
layers
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
Application number
CN201710517267.1A
Other languages
Chinese (zh)
Other versions
CN107426599B (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 CN201710517267.1A priority Critical patent/CN107426599B/en
Publication of CN107426599A publication Critical patent/CN107426599A/en
Application granted granted Critical
Publication of CN107426599B publication Critical patent/CN107426599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention, which provides a kind of floating layer management method and system, described method, to be included:FrameLayout layout layers are defined in the bottom of android system, the FrameLayout layouts layer is used to place player video stream layers and each floating layer, and each floating layer is located on player video stream layers;Floating layer manager is configured for all floating layers, hierarchy management is carried out to each floating layer will pass through floating layer manager.Pass through the present invention, floating layer manager is designed for each floating layer in player video stream layers, unified orderly management is carried out to each floating layer by floating layer manager, compared to by way of being manually managed to all floating layers, the difficulty to each floating layer management is reduced, apparent all floating layers can be managed portablely.

Description

A kind of floating layer management method and system
Technical field
The present invention relates to multimedia interface design field, more particularly, to a kind of floating layer management method and system.
Background technology
At present, there are very more floating layers, all floating layers in the player interface of the live software of Android platform client All it is stored in player container, by floating layer is many, it is necessary to, it is necessary to other institutes when showing one of floating layer There is floating layer to be controlled accordingly.
Common practice is that manually singly floating layer is controlled, and because floating layer quantity is more, is managed manually Reason control is very chaotic, gets up which results in floating layer element management and complex and is difficult to safeguard.
The content of the invention
The present invention provide a kind of floating layer management method for overcoming above mentioned problem or solving the above problems at least in part and System, the problem of overcoming to each floating layer difficult management.
According to the first aspect of the invention, there is provided a kind of floating layer management method, including:
S1, FrameLayout layout layers are defined in the bottom of android system, the FrameLayout layouts layer is used for Place player video stream layers and each floating layer, each floating layer are located on player video stream layers;
S2, floating layer manager is configured for all floating layers, level pipe is carried out to each floating layer will pass through floating layer manager Reason.
Beneficial effects of the present invention are:Floating layer manager is designed for each floating layer in player video stream layers, by floating Shelf manager carries out unified orderly management to each floating layer, compared to by way of being manually managed to all floating layers, The difficulty to each floating layer management is reduced, apparent all floating layers can be managed portablely.
On the basis of above-mentioned technical proposal, the present invention can also improve as follows.
Further, the step S2 also includes:
The aggregate list defined in floating layer manager, the aggregate list storage are each on player video stream layers Individual floating layer unique ID.
Further, each described floating layer is corresponding with multiple functions, and the step S2 also includes:
Power function corresponding to each function is defined for floating layer each described, floating layer is realized by invoking performance function Corresponding function.
Further, unified hierarchy management bag is carried out to each floating layer by floating layer manager in the step S2 Include:
Outside the first incoming control instruction is received, first control instruction is that the control for realizing floating layer specific function refers to Order;
According to first control instruction, the power function corresponding with the specific function of corresponding floating layer is called, is realized Specific function in each floating layer.
Further, the step S1 also includes:
Each floating layer is classified according to different functional characters, each floating layer deposits the more of same function type Individual view elements.
Further, the step S2 also includes:
Each view elements in each floating layer are corresponding with multiple functions, for function corresponding to the definition of each function Function, by invoking performance function, realize the corresponding function of floating layer internal view element.
Further, the step S2 also includes:
For view controller corresponding to the design of each floating layer;
The second control instruction outside the reception of floating layer manager, second control instruction are to realize floating layer internal view element Specific function control instruction;
Second control instruction is sent to corresponding floating layer internal view controller by floating layer manager, is adjusted by view controller With power function corresponding with the specific function in corresponding views element, the specific function of floating layer internal view element is realized.
According to the second aspect of the invention, a kind of floating layer management system is additionally provided, including:
Definition module, for defining FrameLayout layout layers, the FrameLayout in the bottom of android system Layout layer is used to place player video stream layers and each floating layer, and each floating layer is located on player video stream layers;
Management module, for configuring floating layer manager for all floating layers, will pass through floating layer manager to each floating layer Carry out hierarchy management.
According to the third aspect of the invention we, there is provided a kind of equipment of floating layer management method, including processor (processor), memory (memory) and bus;
The processor and memory complete mutual communication by the bus;
The memory storage has and by the programmed instruction of the computing device, the processor described program can be called to refer to Order is able to carry out following method:
FrameLayout layout layers are defined in the bottom of android system, the FrameLayout layouts layer is used to put Player video stream layers and each floating layer are put, each floating layer is located on player video stream layers;
Floating layer manager is configured for all floating layers, hierarchy management is carried out to each floating layer will pass through floating layer manager.
According to the fourth aspect of the invention, there is provided a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that institute Non-transient computer readable storage medium storing program for executing storage computer instruction is stated, it is above-mentioned each that the computer instruction performs the computer Embodiment method.
Brief description of the drawings
Fig. 1 is the floating layer management method flow chart of one embodiment of the invention;
Fig. 2 is that the floating layer management system of another embodiment of the present invention connects block diagram;
Fig. 3 is the integrated connection block diagram of the floating layer management system of another embodiment of the invention;
Fig. 4 is that the equipment of the floating layer management method of further embodiment of the present invention connects block diagram.
Embodiment
With reference to the accompanying drawings and examples, the embodiment of the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
Referring to Fig. 1, there is provided the floating layer management method of one embodiment of the invention, can be to each in video player Floating layer carries out being classified effective management.This method includes:S1, FrameLayout layouts are defined in the bottom of android system Layer, the FrameLayout layouts layer are used to place player video stream layers and each floating layer, and each floating layer, which is located at, to be broadcast Put on device video stream layers;S2, floating layer manager being configured for all floating layers, each floating layer being entered with will pass through floating layer manager The unified hierarchy management of row.
The player interface of the live software of Android platform client has many floating layers, and floating layer is exactly to be regarded in player It is used for the layer for showing other view elements on frequency stream, such as, barrage message or animated element etc. can be placed in floating layer.When It is very chaotic by one by one to floating layer manual administration when the quantity of floating layer is a lot, cause difficult management.Therefore, this implementation Example designs a set of method for facilitating floating layer management in player.FlameLayout is a container in android system, should The characteristics of container maximum is exactly that the element inside the container covers successively, and also just saying in the container initially has an element a, Then an element b is defined in same position, then element b will be directly overlayed on element a.In the present embodiment, it is based on The characteristic of FrameLayout containers, FrameLayout layout layers, the FrameLayout are defined in the bottom of android system Layout layer is mainly used in placing player video stream layers and each floating layer, and player is placed in the FrameLayout bottom Video stream layers, for playing out displaying to video flowing.Place each floating layer again on player video stream layers, thus can Enough realize when video render, barrage message etc. can be shown in the floating layer on video render interface.
Because floating layer is relatively more, management is got up very chaotic, is that all floating layers configure a floating layers in player therefore Manager, for carrying out classification unified management to all floating layers, when needing to be managed some floating layer, using floating layer Manager is managed, and is realized the orderly management of all floating layers, is reduced the difficult management to numerous floating layers.
On the basis of above-described embodiment, in one embodiment of the present of invention, the step S2 also includes:In floating layer management Aggregate list defined in device, floating layer corresponding to each floating layer of the aggregate list storage on player video stream layers is only One mark ID.
During being managed using floating layer manager to each floating layer, it can be designed in player video stream layers Multiple floating layers, in the present embodiment, floating layer is designed to ViewGrop container, the ViewGrop containers are to be specifically used to Each view View container is deposited, such ViewGrop just can be used in carrying corresponding view.By each floating layer Interface is sized and dimensioned to be consistent with player interface size, can facilitate placed from anywhere in player interface it is various View elements.After having designed floating layer, floating layer unique ID is configured for each floating layer.For the ease of being managed to the unified of floating layer Reason, the aggregate list defined in floating layer manager, storage is each floating on player video stream layers in aggregate list The floating layer unique ID of layer.
On the basis of the various embodiments described above, in an alternative embodiment of the invention, each described floating layer is corresponding with more Kind function, the step S2 also include:For floating layer each described define each function corresponding to power function, pass through calling Power function realizes the corresponding function of floating layer.
Above-described embodiment is that player defines multiple floating layers, wherein, each floating layer is corresponding with multiple functions, wants reality The function of an existing floating layer is, it is necessary to be power function corresponding to each function definition of floating layer, when needing to realize some work( During energy, it is only necessary to call corresponding power function.
The method of the present embodiment is described with specific example below, it is assumed that be provided with 3 altogether in player Floating layer, that is, 3 ViewGrop containers, their hierarchical relationship are followed successively by:First floating layer is mainly used in player The control of each function, such as, the control of the function such as F.F., pause and rewind to player, this floating layer is labeled as layer1.Second floating layer is mainly used in carrying the animated element information of gifts, and this layer is labeled as into layer2.3rd Individual floating layer is mainly used in carrying barrage information, is marked as layer3.
3 floating layers of above-mentioned design are sequentially located on player video stream layers, because whole hierarchical relationship is embedding Enter in FrameLayout, therefore, 3 floating layers are the relations covered successively, and this completes setting for player floating layer Meter.
Each floating layer is corresponding with multiple functions, and most important is exactly the hiding and display of floating layer, for hiding for floating layer And display function, it is hidden function function and display function function corresponding to the definition of each floating layer, to need to realize floating layer Hide and during display function, it is only necessary to call the hidden function function and display function function of floating layer.
On the basis of the various embodiments described above, in one embodiment of the present of invention, pass through floating layer management in the step S2 Device carries out unified hierarchy management to each floating layer to be included:Receive outside the first incoming control instruction, first control Instruct to realize the control instruction of the specific function of floating layer;According to first control instruction, call corresponding floating layer with it is described Power function corresponding to specific function, realize the specific function in each floating layer.
It is above-mentioned it is stated that configure a floating layer manager for all floating layer, be specifically used to divide each floating layer Level orderly management.For example 3 floating layers, respectively layer1, layer2 and layer3, floating layer are devised in above-described embodiment Manager is managed collectively to this 3 floating layers, such as, all floating layers are shown, all floating layers are hidden, be only aobvious Show some floating layer or show certain two floating layer simultaneously.
Next the realization of floating layer corresponding function is described in detail, can be with because floating layer is a ViewGrop object Individually hiding and display control is carried out to a ViewGrop object, calls the setVisible of ViewGrop objects respectively (ture) realize the display of floating layer with setVisible (flase) can and hide control, wherein, setVisible (ture) For the display function function of floating layer, setVisible (false) is the hidden function function of floating layer.
Such as, it is necessary to hide all floating layers, can be by all floating layers of for searching loops, then during realization Call setVisible (false) method in each floating layer.And it can such as be circulated, it is necessary to show all floating layers by for All floating layers are traveled through, then call setVisible (ture) method in each floating layer.For another example, only show single floating Layer, it is necessary first to hide all floating layers, setVisible (ture) method then is called to the floating layer that needs are shown, thus may be used Some floating layer is only shown to realize.Need to show certain two floating layer for another example, then it is all floating firstly the need of hiding Layer, two floating layers then shown to needs call setVisible (ture) method, two floating layers are shown respectively.
The present embodiment essentially describes function and the effect of floating layer manager, and its corresponding function implementation method, leads to The service logic that floating layer manager easily can be hidden and show to floating layer is crossed, reaches and the unified of each floating layer is managed Reason.Singly floating layer is managed and controlled manually compared to original, drastically increases development efficiency.
On the basis of the various embodiments described above, in an alternative embodiment of the invention, the step S1 also includes:According to not Same functional character is classified to each floating layer, and each floating layer deposits multiple view elements of same function type.
Due to being to place view elements in floating layer, for the ease of management, according to different functional characters to each floating layer Classified, the type for the view elements placed in each floating layer is identical, i.e., can be with by the view elements of same type Prevent in same floating layer, or the view elements quantity of same type is relatively more, can also be positioned over multiple same types In floating layer.The view elements of same type are placed in a floating layer, are so easier to manage.
On the basis of the various embodiments described above, in an alternative embodiment of the invention, the step S2 also includes:Each Each view elements in floating layer are corresponding with multiple functions, for power function corresponding to the definition of each function, pass through calling Power function, realize the corresponding function of floating layer internal view element.
Wherein, the view elements of multiple same types are placed with each floating layer, each view elements is corresponding with more Individual function, such as, the hiding and display to view elements.To realize the corresponding function of each view elements, the present embodiment is Power function corresponding to each function definition of view elements, by calling the corresponding power function of view elements, realize floating The corresponding function of layer internal view element.For example define setVisible (ture) functional based method for each view elements and come in fact The display function of existing view elements, setVisible (false) functional based methods are defined to realize view for each view elements The hidden function of element.
On the basis of the various embodiments described above, in an alternative embodiment of the invention, the step S2 also includes:To be each View controller corresponding to individual floating layer design;The second control instruction outside the reception of floating layer manager, second control instruction To realize the control instruction of the specific function of floating layer internal view element;Second control instruction is sent to phase by floating layer manager Floating layer internal view controller is answered, function letter corresponding with the specific function in corresponding views element is called as view controller Number, realize the specific function of floating layer internal view element.
Above-described embodiment carries out unified section management to each floating layer using floating layer manager, but except realizing to each floating The logic hidden and shown of layer, it is also necessary to the view elements in each floating layer are controlled accordingly, such as, pass through floating layer Manager is only capable of realizing the fast forward button in hiding layer1, if necessary to be carried out to some view elements in layer1 Hide, cannot be now hidden using floating layer manager, because being hidden using floating layer manager to the floating layer, just All view elements in floating layer are all hidden, are so that can not realize to carry out some view elements in floating layer Hiding.
In order to solve this problem, the present embodiment is taken designs a layer internal view controller in each floating layer InnerlayerControl, the corresponding function of the main each view elements being responsible in control floating layer.Each floating layer is corresponding There is a layer internal view controller, such as, the layer internal view controller corresponding to above-mentioned floating layer layer1, layer2 and layer3 Respectively InnerlayerControl1, InnerlayerContro2 and InnerlayerControl3.
For example, it is desired to hide the player fast forward button in layer1, then outside sent to floating layer manager needs to hide The control instruction of player fast forward button in some floating layer, when floating layer manager receives controller instruction, this is controlled Instruction is transmitted to the layer internal view controller InnerlayerControl1 in corresponding floating layer, layer internal view controller It is after InnerlayerControl1 receives the control instruction of the hiding fast forward button of floating layer manager transmission, then fast by calling The setVisible (false) entered on button come realize fast forward button hide.
From the foregoing, when the function of needing to realize the view elements in floating layer, will not direct control layer internal view control Device processed, but by controlling layer internal view controller of the floating layer manager into floating layer to send control instruction, carry out indirect control and float The function of layer internal view element realizes that the benefit so designed is so that management has more hierarchical structure, realizes multi-zone supervision Principle.
It is to be understood that during design, floating layer manager is the majordomo of each floating layer on player, and each Layer internal view controller in floating layer is two house keepers, and this majordomo can assign to two house keepers to be needed to complete some specific tasks Order, in the present embodiment, that is, complete the corresponding function of the view elements in some floating layer, the control of two level house keeper's layer internal view Device completes corresponding task according to order.
It should be noted that if necessary to whole floating layer is hidden and shown, it is only necessary to using floating layer manager come Realize, and it is not related with layer internal view controller.It is so-called that whole floating layer is hidden, it can be understood as in whole floating layer All view elements be all hidden, now, each view elements is called without using the view controller in floating layer Hidden function function, and the hidden function function of the floating layer need to be only called using floating layer manager, you can realize to floating layer Interior all view elements are hidden.It is so simply too much compared to the hidden function function of each view elements is called.It is right The display function of whole floating layer and the hidden function to all view elements in whole floating layer are identicals, and specific implementation is no longer Repeat specification.
When needing that some view elements in floating layer are hidden, and other view elements being shown, then without Method is settled at one go using floating layer manager, it is necessary to completed by the view controller in floating layer, has reached the mesh of differentiated control 's.If each view elements in each floating layer of direct manual maintenance, can cause structure unintelligible, it is necessary to safeguard floating layer Hiding and display logic, need to consider the hiding and display logic of floating layer internal view element again so that program maintenance complex Be difficult to safeguard.
Referring to Fig. 2, there is provided the floating layer management system of another embodiment of the present invention, including the first definition module 21 and floating Shelf manager 22, wherein, the first definition module 21, for defining FrameLayout layout layers in the bottom of android system, The FrameLayout layouts layer is used to place player video stream layers and each floating layer, and each floating layer regards positioned at player On frequency fluid layer;It is additionally operable to define floating layer manager for all floating layers.
Floating layer manager 22, for carrying out hierarchy management to each floating layer.
On the basis of above-described embodiment, referring to Fig. 3, floating layer management system also includes the second definition module 23, classification mould Block 24 and view controller 25.
Floating layer manager 22, floating layer corresponding to each floating layer for being additionally operable to be positioned in player video stream layers are uniquely marked Know ID to be stored in aggregate list, wherein, the aggregate list is located in floating layer manager 22.
Wherein, each floating layer is corresponding with multiple functions, the second definition module 25, for being defined for floating layer each described Power function corresponding to each function, the corresponding function of floating layer is realized by invoking performance function.
Correspondingly, floating layer manager 22, specifically for according to the first incoming control instruction of outside, calling corresponding floating layer Power function corresponding with the specific function, realizes the specific function in each floating layer, wherein, first control instruction To realize the control instruction of the specific function of floating layer.
Sort module 24, for classifying according to different functional characters to each floating layer, wherein, each floating layer is deposited Put multiple view elements of same function type.
Correspondingly, the second definition module 23, it is additionally operable to each work(for each view elements in each floating layer Can power function corresponding to definition, by invoking performance function, realize the corresponding function of floating layer internal view element, wherein, it is each Each view elements in individual floating layer are corresponding with multiple functions.
First definition module 21, it is additionally operable to as view controller 25 corresponding to the definition of each floating layer.
Correspondingly, floating layer manager 22, for receiving the second control instruction of outside, and the second control instruction is sent to View controller 25 in corresponding floating layer, wherein, second control instruction is to realize the specific function of floating layer internal view element Control instruction.
View controller 25, for the second control instruction sent according to floating layer manager 22, call corresponding views element In power function corresponding with the specific function, realize the specific function of floating layer internal view element.
Fig. 4 shows the structured flowchart of the equipment of the floating layer management method of the embodiment of the present application.
Reference picture 4, the equipment of floating layer management method include:Processor (processor) 401, memory (memory) 402 With bus 403;Wherein, the processor 401 and memory 402 complete mutual communication by the bus 403.
The processor 401 is used to call the programmed instruction in the memory 402, to perform above-mentioned each method embodiment The method provided, such as including:FrameLayout layout layers are defined in the bottom of android system, it is described FrameLayout layout layers are used to place player video stream layers and each floating layer, and each floating layer regards positioned at player On frequency fluid layer;Floating layer manager is configured for all floating layers, level pipe is carried out to each floating layer will pass through floating layer manager Reason.
The present invention discloses a kind of computer program product, and the computer program product can including being stored in non-transient computer The computer program in storage medium is read, the computer program includes programmed instruction, when programmed instruction is computer-executed, meter Calculation machine is able to carry out the floating layer management method that above-mentioned corresponding embodiment is provided, such as including:Determine in the bottom of android system Adopted FrameLayout is laid out layer, and the FrameLayout layouts layer is used to place player video stream layers and each floating layer, Each floating layer is located on player video stream layers;Floating layer manager is configured for all floating layers, will pass through floating layer management Device carries out hierarchy management to each floating layer.
The present invention also provides a kind of non-transient computer readable storage medium storing program for executing, and the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction makes computer perform the floating layer management method that above-mentioned corresponding embodiment is provided, such as Including:FrameLayout layout layers are defined in the bottom of android system, the FrameLayout layouts layer is broadcast for placement Device video stream layers and each floating layer are put, each floating layer is located on player video stream layers;It is floating for the configuration of all floating layers Shelf manager, hierarchy management is carried out to each floating layer will pass through floating layer manager.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
The embodiments such as the equipment of floating layer management method described above are only schematical, wherein as separating component The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Need to select some or all of module therein to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not In the case of paying performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Some Part Methods of example or embodiment.
A kind of floating layer management method and system provided by the invention, multiple floating layers are divided according to the difference of functional character Class, multiple levels are formed, then each floating layer is carried out to manage and control accordingly by designing floating layer manager.At each Multiple view elements are placed with floating layer, in order to which each view elements in floating layer are controlled and managed, each View controller is devised again in individual floating layer, for each view elements in floating layer to be managed and controlled, in order to ensure Orderly management, when needing to be managed each view elements in floating layer, pass through floating layer manager regarding into floating layer Figure controller sends order, and specific task is completed by view controller, is rather than directly to view controller and sends order, The management formed between level.This programme significantly reduces floating layer on player and the view elements in floating layer are safeguarded into This, improves the maintainability of development efficiency benefit program.
Finally, the present processes are only preferable embodiment, are 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 substitution and improvements made etc., the protection of the present invention should be included in Within the scope of.

Claims (10)

  1. A kind of 1. floating layer management method, it is characterised in that including:
    S1, FrameLayout layout layers are defined in the bottom of android system, the FrameLayout layouts layer is used to place Player video stream layers and each floating layer, each floating layer are located on player video stream layers;
    S2, floating layer manager is configured for all floating layers, hierarchy management is carried out to each floating layer will pass through floating layer manager.
  2. 2. floating layer management method as claimed in claim 1, it is characterised in that the step S2 also includes:
    The aggregate list defined in floating layer manager, the aggregate list storage are each floating on player video stream layers Layer unique ID.
  3. 3. floating layer management method as claimed in claim 1, it is characterised in that each described floating layer is corresponding with multiple functions, The step S2 also includes:
    Power function corresponding to each function is defined for floating layer each described, realizes that floating layer is corresponding by invoking performance function Function.
  4. 4. floating layer management method as claimed in claim 3, it is characterised in that by floating layer manager to every in the step S2 One floating layer, which carries out unified hierarchy management, to be included:
    Outside the first incoming control instruction is received, first control instruction is that the control for the specific function for realizing floating layer refers to Order;
    According to first control instruction, the power function corresponding with the specific function of corresponding floating layer is called, is realized each Specific function in individual floating layer.
  5. 5. floating layer management method as claimed in claim 1, it is characterised in that the step S1 also includes:
    Each floating layer is classified according to different functional characters, wherein, each floating layer deposits same function type Multiple view elements.
  6. 6. floating layer management method as claimed in claim 5, it is characterised in that the step S2 also includes:
    Each view elements in each floating layer are corresponding with multiple functions, for function letter corresponding to the definition of each function Number, by invoking performance function, realize the corresponding function of floating layer internal view element.
  7. 7. floating layer management method as claimed in claim 6, it is characterised in that the step S2 also includes:
    For view controller corresponding to the design of each floating layer;
    The second control instruction outside the reception of floating layer manager, second control instruction is to realize the spy of floating layer internal view element Determine the control instruction of function;
    Second control instruction is sent to corresponding floating layer internal view controller by floating layer manager, and phase is called by view controller Power function corresponding with the specific function in view elements is answered, realizes the specific function of floating layer internal view element.
  8. A kind of 8. floating layer management system, it is characterised in that including:
    Definition module, for defining FrameLayout layout layers, the FrameLayout layouts in the bottom of android system Layer is used to place player video stream layers and each floating layer, and each floating layer is located on player video stream layers;Also use In defining floating layer manager for all floating layers;
    Floating layer manager, for carrying out hierarchy management to each floating layer.
  9. 9. a kind of equipment of floating layer management method, it is characterised in that including processor (processor), memory (memory) And bus;
    The processor and memory complete mutual communication by the bus;
    The memory storage has can be by the programmed instruction of the computing device, and the processor calls described program instruction energy Enough perform the method as described in claim any one of 1-7.
  10. 10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction makes the computer perform the method as described in claim 1 to 7 is any.
CN201710517267.1A 2017-06-29 2017-06-29 Floating layer management method and system Active CN107426599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710517267.1A CN107426599B (en) 2017-06-29 2017-06-29 Floating layer management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710517267.1A CN107426599B (en) 2017-06-29 2017-06-29 Floating layer management method and system

Publications (2)

Publication Number Publication Date
CN107426599A true CN107426599A (en) 2017-12-01
CN107426599B CN107426599B (en) 2020-02-07

Family

ID=60427080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710517267.1A Active CN107426599B (en) 2017-06-29 2017-06-29 Floating layer management method and system

Country Status (1)

Country Link
CN (1) CN107426599B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052325A (en) * 2018-01-08 2018-05-18 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for being used to implement view controller
CN109040822A (en) * 2018-07-16 2018-12-18 北京奇艺世纪科技有限公司 Player configuration method and device, storage medium
CN109089145A (en) * 2018-08-06 2018-12-25 广州优视网络科技有限公司 Method, calculating equipment and storage medium without intrusion control video playing
CN110187853A (en) * 2019-04-18 2019-08-30 北京奇艺世纪科技有限公司 Picture conflict set recognition method, equipment, picture processing equipment and medium
CN111309415A (en) * 2020-01-17 2020-06-19 北京无限光场科技有限公司 UI (user interface) information processing method and device of application program and electronic equipment
CN112929687A (en) * 2021-02-05 2021-06-08 腾竞体育文化发展(上海)有限公司 Interaction method, device and equipment based on live video and storage medium
CN113126782A (en) * 2021-05-06 2021-07-16 罗小聪 Method for displaying character information in bullet screen in form of overlapping or adding masking layer

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170651A (en) * 2007-11-22 2008-04-30 中兴通讯股份有限公司 A method for realizing image layer overlapping
CN103336691A (en) * 2013-06-29 2013-10-02 安科智慧城市技术(中国)有限公司 Dynamic layout method and system based on Android
CN103530338A (en) * 2013-10-01 2014-01-22 北界创想(北京)软件有限公司 Frame for carrying out page rendering on calculation equipment and page generation method
CN104050274A (en) * 2014-06-25 2014-09-17 国家电网公司 HTML page nesting method and device
CN104991707A (en) * 2015-07-20 2015-10-21 青岛海信移动通信技术股份有限公司 User interface displaying method and device
CN105373406A (en) * 2015-12-03 2016-03-02 Tcl集团股份有限公司 Android platform based application layout dynamic switching method and system
CN105930543A (en) * 2016-06-28 2016-09-07 武汉斗鱼网络科技有限公司 Control method and device based on webpage bullet screen level

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170651A (en) * 2007-11-22 2008-04-30 中兴通讯股份有限公司 A method for realizing image layer overlapping
CN103336691A (en) * 2013-06-29 2013-10-02 安科智慧城市技术(中国)有限公司 Dynamic layout method and system based on Android
CN103530338A (en) * 2013-10-01 2014-01-22 北界创想(北京)软件有限公司 Frame for carrying out page rendering on calculation equipment and page generation method
CN104050274A (en) * 2014-06-25 2014-09-17 国家电网公司 HTML page nesting method and device
CN104991707A (en) * 2015-07-20 2015-10-21 青岛海信移动通信技术股份有限公司 User interface displaying method and device
CN105373406A (en) * 2015-12-03 2016-03-02 Tcl集团股份有限公司 Android platform based application layout dynamic switching method and system
CN105930543A (en) * 2016-06-28 2016-09-07 武汉斗鱼网络科技有限公司 Control method and device based on webpage bullet screen level

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052325A (en) * 2018-01-08 2018-05-18 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for being used to implement view controller
CN108052325B (en) * 2018-01-08 2019-09-10 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for realizing view controller
CN109040822A (en) * 2018-07-16 2018-12-18 北京奇艺世纪科技有限公司 Player configuration method and device, storage medium
CN109089145A (en) * 2018-08-06 2018-12-25 广州优视网络科技有限公司 Method, calculating equipment and storage medium without intrusion control video playing
CN110187853A (en) * 2019-04-18 2019-08-30 北京奇艺世纪科技有限公司 Picture conflict set recognition method, equipment, picture processing equipment and medium
CN110187853B (en) * 2019-04-18 2023-01-03 北京奇艺世纪科技有限公司 Picture conflict recognition method, device, picture processing device and medium
CN111309415A (en) * 2020-01-17 2020-06-19 北京无限光场科技有限公司 UI (user interface) information processing method and device of application program and electronic equipment
CN111309415B (en) * 2020-01-17 2024-01-02 北京有竹居网络技术有限公司 User Interface (UI) information processing method and device of application program and electronic equipment
CN112929687A (en) * 2021-02-05 2021-06-08 腾竞体育文化发展(上海)有限公司 Interaction method, device and equipment based on live video and storage medium
CN112929687B (en) * 2021-02-05 2023-12-29 腾竞体育文化发展(上海)有限公司 Live video-based interaction method, device, equipment and storage medium
CN113126782A (en) * 2021-05-06 2021-07-16 罗小聪 Method for displaying character information in bullet screen in form of overlapping or adding masking layer

Also Published As

Publication number Publication date
CN107426599B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN107426599A (en) A kind of floating layer management method and system
CN109284578B (en) Logic circuit layout and wiring method, graphical display method and system thereof
CN109255829A (en) Mixing level for ray trace
CN109358851A (en) Creation method, device and the computer readable storage medium of chart components
CN110193204A (en) Grouping method, device, storage medium and the electronic device of operating unit
CN109074246A (en) The system and method for automatically determining layout constraint
US8717383B2 (en) Automatic management of diagram elements
US20070097883A1 (en) Generation of a network topology hierarchy
CN102982571B (en) Merge and partition graph object
CN105264482B (en) Low cost storage to the data seldom read
CN103135982A (en) Method and system for focus-change invariance in graphical display
CN106663010A (en) Executing graph-based program specifications
CN106233338A (en) The start node of the tree traversal in ray trace is applied determines
US20070055932A1 (en) Application programming interfaces for graphical user interfaces
CN107368311A (en) Communication means and system between a kind of more Fragment
CN110958134B (en) Method and device for realizing network topology
CN107533750A (en) Virtual Image Processor instruction set architecture(ISA)With memory model and the exemplary goal hardware with two-dimensional shift array structure
CN109324722B (en) Method, device and equipment for adding nodes of thought guide graph and storage medium
US10266370B2 (en) Systems and methods for automatic rendering of walking path maps for elevator car assignment display
CN106293753A (en) The development approach of editing machine and device, edit methods and editing machine
JP6832824B2 (en) Game delivery method, computer program and game delivery server
CN108536470A (en) A kind of development approach and system of resource file
CN106934741A (en) The method and device of the construction of curriculum
CN104506921A (en) Dynamic image displaying method and device
CN110503593A (en) The scheduling of multiple graphics processing units

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