CN107426599B - Floating layer management method and system - Google Patents

Floating layer management method and system Download PDF

Info

Publication number
CN107426599B
CN107426599B CN201710517267.1A CN201710517267A CN107426599B CN 107426599 B CN107426599 B CN 107426599B CN 201710517267 A CN201710517267 A CN 201710517267A CN 107426599 B CN107426599 B CN 107426599B
Authority
CN
China
Prior art keywords
floating
layer
floating layer
function
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.)
Active
Application number
CN201710517267.1A
Other languages
Chinese (zh)
Other versions
CN107426599A (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

Images

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)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a floating layer management method and a system, wherein the method comprises the following steps: defining a FrameLayout layout layer at the bottom layer of the Android system, wherein the FrameLayout layout layer is used for placing a player video stream layer and each floating layer, and each floating layer is positioned above the player video stream layer; a floating layer manager is configured for all floating layers so that each floating layer is hierarchically managed by the floating layer manager. According to the invention, the floating layer managers are designed for all the floating layers on the video stream layer of the player, and are used for carrying out unified and ordered management on all the floating layers, so that compared with a mode of manually managing all the floating layers, the difficulty in managing all the floating layers is reduced, and all the floating layers can be managed more clearly and more conveniently.

Description

Floating layer management method and system
Technical Field
The invention relates to the technical field of multimedia interface design, in particular to a floating layer management method and a floating layer management system.
Background
At present, there are very many floating layers on a player interface of live broadcast software of an Android platform client, all the floating layers are stored in a player container, and when one of the floating layers needs to be displayed, all other floating layers need to be correspondingly controlled due to the very many floating layers.
It is common practice to manually control the floating layers one by one, and manual management control is very confusing due to the large number of floating layers, which results in the floating layer elements being abnormally complex to manage and difficult to maintain.
Disclosure of Invention
The present invention overcomes the above-identified problems or problems, at least in part, by providing a method and system for floating floor management that overcomes the difficulties associated with managing individual floating floors.
According to a first aspect of the present invention, there is provided a method of floating layer management, comprising:
s1, defining a FrameLayout layout layer on the bottom layer of the Android system, wherein the FrameLayout layout layer is used for placing a player video stream layer and each floating layer, and each floating layer is located above the player video stream layer;
s2, configuring the floating layer managers for all floating layers, so as to perform the hierarchical management for each floating layer through the floating layer managers.
The method has the advantages that the floating layer managers are designed for all the floating layers on the video stream layer of the player, the floating layer managers are used for managing all the floating layers in a unified and ordered mode, compared with a mode of manually managing all the floating layers, the difficulty in managing all the floating layers is reduced, and all the floating layers can be managed more clearly and more conveniently.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the step S2 further includes:
a collection list is defined in the floating layer manager, and the collection list stores the unique identification ID of each floating layer positioned above the video stream layer of the player.
Further, each of the floating layers has a plurality of functions, and the step S2 further includes:
and defining a function corresponding to each function for each floating layer, and calling the function to realize the corresponding function of the floating layer.
Further, the unified hierarchical management of each floating layer by the floating layer manager in step S2 includes:
receiving a first control instruction transmitted from the outside, wherein the first control instruction is a control instruction for realizing a specific function of a floating layer;
and calling a function corresponding to the specific function of the corresponding floating layer according to the first control instruction to realize the specific function in each floating layer.
Further, the step S1 further includes:
and classifying the floating layers according to different functional properties, wherein each floating layer stores a plurality of view elements of the same functional type.
Further, the step S2 further includes:
each view element in each floating layer corresponds to multiple functions, corresponding function functions are defined for each function, and the corresponding functions of the view elements in the floating layers are realized by calling the function functions.
Further, the step S2 further includes:
designing a corresponding view controller for each floating layer;
the floating layer manager receives an external second control instruction, wherein the second control instruction is a control instruction for realizing a specific function of the floating layer internal view element;
and the floating layer manager sends the second control instruction to the corresponding floating layer internal view controller, and the view controller calls the function corresponding to the specific function in the corresponding view element to realize the specific function of the floating layer internal view element.
According to a second aspect of the present invention, there is also provided a floating layer management system, comprising:
the Android system comprises a definition module, a display module and a display module, wherein the definition module is used for defining a FrameLayout layout layer on the bottom layer of the Android system, the FrameLayout layout layer is used for placing a player video stream layer and floating layers, and the floating layers are located above the player video stream layer;
and the management module is used for configuring the floating layer managers for all the floating layers so as to carry out hierarchical management on each floating layer through the floating layer managers.
According to a third aspect of the present invention, there is provided an apparatus of a floating layer management method, including a processor (processor), a memory (memory), and a bus;
the processor and the memory complete mutual communication through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
defining a FrameLayout layout layer at the bottom layer of the Android system, wherein the FrameLayout layout layer is used for placing a player video stream layer and each floating layer, and each floating layer is positioned above the player video stream layer;
a floating layer manager is configured for all floating layers so that each floating layer is hierarchically managed by the floating layer manager.
According to a fourth aspect of the present invention, there is provided a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions, the computer instructions causing the computer to execute the method of each embodiment described above.
Drawings
FIG. 1 is a flow chart of a method for floating layer management according to an embodiment of the present invention;
FIG. 2 is a block diagram of a floating floor management system according to another embodiment of the present invention;
FIG. 3 is a block diagram of the overall connectivity of a floating floor management system in accordance with yet another embodiment of the present invention;
fig. 4 is a device connection block diagram of a method for floating layer management according to still another embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Referring to fig. 1, a method for managing floating layers according to an embodiment of the present invention is provided, which can perform hierarchical and effective management on each floating layer in a video player. The method comprises the following steps: s1, defining a FrameLayout layout layer on the bottom layer of the Android system, wherein the FrameLayout layout layer is used for placing a player video stream layer and each floating layer, and each floating layer is located above the player video stream layer; s2, configuring the floating layer managers for all floating layers, so as to perform unified hierarchical management on each floating layer through the floating layer managers.
The player interface of the Android platform client live broadcast software has a plurality of floating layers, and the floating layers are layers used for displaying other view elements on a player video stream, for example, bullet screen messages or animation elements and the like can be placed in the floating layers. When the number of the floating floors is large, the floating floors are manually managed one by one, which is very confusing and causes management difficulty. Therefore, the present embodiment designs a method for facilitating management of the floating layer in the player. FlameLayout is a container in the Android system, and the biggest characteristic of the container is that elements inside the container are sequentially covered, that is, an element a is initially arranged in the container, and then an element b is defined at the same position, so that the element b is directly covered on the element a. In this embodiment, based on the characteristics of the FrameLayout container, a FrameLayout layer is defined at the bottom layer of the Android system, where the FrameLayout layer is mainly used for placing a player video stream layer and each floating layer, and the player video stream layer is placed at the bottom layer of the FrameLayout layer and is used for displaying the video stream. Each floating layer is arranged on the video stream layer of the player, so that bullet screen messages and the like can be displayed in the floating layers on the video stream playing interface when the video stream is played.
Because the floating floors are more and are very disordered to manage, a floating floor manager is configured for all the floating floors in the player and used for carrying out hierarchical unified management on all the floating floors, and when a certain floating floor needs to be managed, the floating floor manager is adopted for carrying out management, so that ordered management on all the floating floors is realized, and the management difficulty on a plurality of floating floors is reduced.
On the basis of the foregoing embodiment, in an embodiment of the present invention, the step S2 further includes: and defining a set list in the floating layer manager, wherein the set list stores floating layer unique identification IDs corresponding to all floating layers above the player video stream layer.
In the process of managing each floating layer by using the floating layer manager, a plurality of floating layers may be designed on the player video stream layer, in this embodiment, the floating layers are designed as a View group container, and the View group container is a container specially used for storing each View, so that the View group can be used for bearing a corresponding View. The interface size of each floating layer is designed to be consistent with the size of the player interface, so that various view elements can be conveniently placed anywhere on the player interface. After the floating layers are designed, unique floating layer identification IDs are configured for all the floating layers. In order to facilitate the uniform management of the floating layers, a set list is defined in the floating layer manager, and floating layer unique identification IDs of all the floating layers above a player video stream layer are stored in the set list.
On the basis of the above embodiments, in another embodiment of the present invention, each of the floating layers has multiple functions, and the step S2 further includes: and defining a function corresponding to each function for each floating layer, and calling the function to realize the corresponding function of the floating layer.
The above embodiment defines a plurality of floating layers for the player, where each floating layer corresponds to a plurality of functions, and to implement a function of one floating layer, a corresponding function needs to be defined for each function of the floating layer, and when a certain function needs to be implemented, only the corresponding function needs to be called.
In the following, the method of this embodiment is described by using a specific example, assuming that a total of 3 floating layers, that is, 3 viewgroup containers, are set in the player, and their hierarchical relationships are: the first floating layer is mainly used for controlling various functions of the player, such as fast forward, pause, fast rewind, and the like, and is labeled layer 1. The second floating layer is used primarily to carry the animation element information for the complimentary gift, and this layer is labeled layer 2. The third floating layer is mainly used for bearing bullet screen information and is marked as layer 3.
The 3 floating layers are sequentially arranged on the video stream layer of the player, and the whole hierarchical relationship is embedded in the FrameLayout, so that the 3 floating layers are sequentially covered, and the design of the player floating layer is completed.
Each floating layer has multiple functions correspondingly, the most important is hiding and displaying of the floating layer, and for the hiding and displaying functions of the floating layers, corresponding hiding function functions and displaying function functions are defined for each floating layer, so that when the hiding and displaying functions of the floating layers need to be realized, only the hiding function functions and the displaying function functions of the floating layers need to be called.
On the basis of the foregoing embodiments, in an embodiment of the present invention, the performing unified hierarchical management on each floating layer by the floating layer manager in step S2 includes: receiving a first control instruction transmitted from the outside, wherein the first control instruction is a control instruction for realizing a specific function of the floating layer; and calling a function corresponding to the specific function of the corresponding floating layer according to the first control instruction to realize the specific function in each floating layer.
It has been described above that one floating layer manager is configured for all floating layers, and is specifically used for performing hierarchical and ordered management on each floating layer. For example, 3 floating layers are designed in the above embodiment, which are layer1, layer2, and layer3, respectively, and the floating layer manager performs unified management on the 3 floating layers, for example, displays all floating layers, hides all floating layers, displays only one floating layer, or displays two floating layers at the same time.
The implementation of the corresponding function of the floating layer is described in detail below, because the floating layer is a view group object, it can perform individual hiding and display control on the view group object, and the display and hiding control of the floating layer can be implemented by respectively calling setvisual (structure) and setvisual (flash) of the view group object, where setvisual (structure) is the display function of the floating layer, and setvisual (false) is the hiding function of the floating layer.
For example, all floating layers need to be hidden, and in the implementation process, all floating layers are traversed through a for loop, and then a setvisible (false) method in each floating layer is called. For another example, all the floating layers need to be displayed, and all the floating layers are traversed through the for loop, and then the setVisable (structure) method in each floating layer is called. For another example, only a single floating layer is displayed, all floating layers need to be hidden first, and then a setvisible (structure) method is called for the floating layer that needs to be displayed, so that only a certain floating layer can be displayed. For example, if a certain two floating layers need to be displayed, all the floating layers need to be hidden first, and then a setvisible (structure) method is called for the two floating layers needing to be displayed respectively to display the two floating layers.
The embodiment mainly describes the functions and the functions of the floating layer manager and a corresponding function implementation method thereof, and the floating layer manager can conveniently hide and display the service logic of the floating layers, so that the unified management of each floating layer is achieved. Compared with the original manual method of managing and controlling the floating layers one by one, the method greatly improves the development efficiency.
On the basis of the foregoing embodiments, in another embodiment of the present invention, the step S1 further includes: and classifying the floating layers according to different functional properties, wherein each floating layer stores a plurality of view elements of the same functional type.
Because the view elements are placed in the floating layers, in order to facilitate management, the floating layers are classified according to different functional properties, and the types of the view elements placed in each floating layer are the same, that is, the view elements of the same type can be prevented from being in the same floating layer, or the view elements of the same type are more in number, or can be placed in a plurality of floating layers of the same type. The same type of view elements are placed in a floating layer, which is easier to manage.
On the basis of the foregoing embodiments, in another embodiment of the present invention, the step S2 further includes: each view element in each floating layer corresponds to multiple functions, corresponding function functions are defined for each function, and the corresponding functions of the view elements in the floating layers are realized by calling the function functions.
Wherein, a plurality of view elements of the same type are placed in each floating layer, and each view element corresponds to a plurality of functions, such as hiding and displaying the view element. In order to implement the corresponding function of each view element, this embodiment defines a corresponding function for each function of the view element, and implements the corresponding function of the view element in the floating layer by calling the function corresponding to the view element. For example, a setvisible (structure) function method is defined for each view element to implement the display function of the view element, and a setvisible (false) function method is defined for each view element to implement the hiding function of the view element.
On the basis of the foregoing embodiments, in another embodiment of the present invention, the step S2 further includes: designing a corresponding view controller for each floating layer; the floating layer manager receives an external second control instruction, wherein the second control instruction is a control instruction for realizing a specific function of the floating layer internal view element; and the floating layer manager sends the second control instruction to the corresponding floating layer internal view controller, and the view controller calls the function corresponding to the specific function in the corresponding view element to realize the specific function of the floating layer internal view element.
In the above embodiment, the floating layer manager is used to perform unified hierarchical management on each floating layer, but besides the logic of hiding and displaying each floating layer, corresponding control needs to be performed on the view elements in each floating layer, for example, only a fast forward button in layer1 can be hidden through the floating layer manager, if a certain view element in layer1 needs to be hidden, the floating layer manager cannot be used for hiding at this time, because the floating layer manager is used to hide the floating layer, all view elements in the floating layer are hidden, so that a certain view element in the floating layer cannot be hidden.
In order to solve this problem, in this embodiment, an intra-layer view controller lnnerlayercontrol is designed in each floating layer, and is mainly responsible for controlling the corresponding functions of each view element in the floating layer. For example, the layer view controllers corresponding to the above-mentioned floating layers layer1, layer2 and layer3 are lnnerlayercontrol 1, lnnerlayercontrol 2 and lnnerlayercontrol 3.
For example, if a player fast forward button in layer1 needs to be hidden, a control instruction that needs to hide a player fast forward button in a certain floating layer is sent to the floating layer manager from the outside, when the floating layer manager receives the controller instruction, the control instruction is forwarded to the intra-layer view controller lnnerlayercontrol 1 in the corresponding floating layer, and after receiving the control instruction that hides the fast forward button sent by the floating layer manager, the intra-layer view controller lnnerlayercontrol 1 realizes hiding the fast forward button by calling setvisible (false) on the fast forward button.
Therefore, when the function of the view element in the floating layer needs to be realized, the view controller in the layer cannot be controlled directly, but the function of the view element in the floating layer is indirectly controlled by controlling the floating layer manager to send a control instruction to the view controller in the layer in the floating layer, so that the management has a hierarchical structure, and the principle of hierarchical management is realized.
It can be understood that, in the design process, the floating layer manager is a large manager of each floating layer on the player, the in-layer view controller in each floating layer is a two-manager, and the large manager can issue a command to the two-manager to complete a specific task.
It should be noted that if the whole floating layer needs to be hidden and displayed, it only needs to be implemented by using the floating layer manager, and has no relation with the in-layer view controller. Hiding the whole floating layer can be understood as hiding all view elements in the whole floating layer, and at this time, the hiding function of each view element does not need to be called by a view controller in the floating layer, but only the hiding function of the floating layer needs to be called by a floating layer manager, so that the hiding of all view elements in the floating layer can be realized. This is much simpler than calling a hidden function for each view element. The display function of the whole floating layer is the same as the hiding function of all the view elements in the whole floating layer, and the specific implementation is not described repeatedly.
When some view elements in the floating layer need to be hidden and other view elements need to be displayed, the floating layer manager cannot be used in one step, and the hierarchical management is achieved by means of the view controller in the floating layer. If each view element in each floating layer is directly and manually maintained, the structure is unclear, the hiding and displaying logic of the floating layer needs to be maintained, and the hiding and displaying logic of the view elements in the floating layer needs to be considered, so that the program maintenance is abnormally complex and difficult to maintain.
Referring to fig. 2, a floating layer management system according to another embodiment of the present invention is provided, including a first definition module 21 and a floating layer manager 22, where the first definition module 21 is configured to define a FrameLayout layer at a bottom layer of an Android system, where the FrameLayout layer is configured to place a player video stream layer and floating layers, and each floating layer is located above the player video stream layer; and also to define a floating layer manager for all floating layers.
A floating layer manager 22 for performing hierarchical management on each floating layer.
On the basis of the above embodiment, referring to fig. 3, the floating layer management system further includes a second definition module 23, a classification module 24, and a view controller 25.
The floating layer manager 22 is further configured to store the floating layer unique identifier ID corresponding to each floating layer placed on the player video stream layer in a set list, where the set list is located in the floating layer manager 22.
Wherein, each floating layer has multiple functions, and the second defining module 25 is configured to define a function corresponding to each function for each floating layer, and implement the corresponding function of the floating layer by calling the function.
Accordingly, the floating layer manager 22 is specifically configured to call, according to a first control instruction transmitted from the outside, a function of the corresponding floating layer corresponding to the specific function, so as to implement the specific function in each floating layer, where the first control instruction is a control instruction for implementing the specific function of the floating layer.
A classification module 24 for classifying the respective floats according to different functional properties, wherein each float stores a plurality of view elements of the same functional type.
Correspondingly, the second defining module 23 is further configured to define a corresponding function for each function of each view element in each floating layer, and implement the corresponding function of the view element in the floating layer by calling the function, where each view element in each floating layer corresponds to multiple functions.
The first defining module 21 is further configured to define a corresponding view controller 25 for each floating layer.
Accordingly, the floating layer manager 22 is configured to receive an external second control instruction, which is a control instruction for implementing a specific function of the view element in the floating layer, and send the second control instruction to the view controller 25 in the corresponding floating layer.
And the view controller 25 is configured to call a function corresponding to the specific function in the corresponding view element according to the second control instruction sent by the floating layer manager 22, so as to implement the specific function of the view element in the floating layer.
Fig. 4 is a block diagram illustrating a structure of an apparatus of a method for floating layer management according to an embodiment of the present application.
Referring to fig. 4, an apparatus of a floating layer management method includes: a processor (processor)401, a memory (memory)402, and a bus 403; wherein, the processor 401 and the memory 402 complete the communication with each other through the bus 403.
The processor 401 is configured to call the program instructions in the memory 402 to execute the methods provided by the above-mentioned method embodiments, for example, including: defining a FrameLayout layout layer at the bottom layer of the Android system, wherein the FrameLayout layout layer is used for placing a player video stream layer and each floating layer, and each floating layer is positioned above the player video stream layer; a floating layer manager is configured for all floating layers so that each floating layer is hierarchically managed by the floating layer manager.
The present invention discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, the computer is capable of performing the method of floating layer management provided by the corresponding embodiments described above, for example comprising: defining a FrameLayout layout layer at the bottom layer of the Android system, wherein the FrameLayout layout layer is used for placing a player video stream layer and each floating layer, and each floating layer is positioned above the player video stream layer; a floating layer manager is configured for all floating layers so that each floating layer is hierarchically managed by the floating layer manager.
The present invention also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for floating layer management provided in the corresponding embodiments, for example, the method includes: defining a FrameLayout layout layer at the bottom layer of the Android system, wherein the FrameLayout layout layer is used for placing a player video stream layer and each floating layer, and each floating layer is positioned above the player video stream layer; a floating layer manager is configured for all floating layers so that each floating layer is hierarchically managed by the floating layer manager.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatuses of the floating layer management method and the like are merely illustrative, where units illustrated as separate components may or may not be physically separate, and components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the various embodiments or some parts of the methods of the embodiments.
According to the floating layer management method and system provided by the invention, a plurality of floating layers are classified according to different functional properties to form a plurality of levels, and then the floating layer managers are designed to correspondingly manage and control each floating layer. In order to control and manage the view elements in the floating layer, a view controller is designed in each floating layer and used for managing and controlling the view elements in the floating layer, and in order to ensure ordered management, when the view elements in the floating layer need to be managed, a command is sent to the view controller in the floating layer through the floating layer manager, and the view controller completes a specific task instead of directly sending the command to the view controller to form management between levels. The scheme greatly reduces the maintenance cost of the upper floating layer of the player and the view elements in the floating layer, and improves the maintainability of the development efficiency program.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method of floating layer management, comprising:
s1, defining a FrameLayout layout layer on the bottom layer of the Android system, wherein the FrameLayout layout layer is used for placing a player video stream layer and each floating layer, and each floating layer is located above the player video stream layer;
s2, configuring a floating layer manager for all floating layers so as to carry out hierarchical management on each floating layer through the floating layer manager;
the step S1 further includes:
classifying the floating layers according to different functional properties, wherein each floating layer stores a plurality of view elements of the same functional type;
the step S2 further includes:
designing a corresponding view controller for each floating layer;
the floating layer manager receives an external second control instruction, wherein the second control instruction is a control instruction for realizing a specific function of the floating layer internal view element;
and the floating layer manager sends the second control instruction to the corresponding floating layer internal view controller, and the view controller calls the function corresponding to the specific function in the corresponding view element to realize the specific function of the floating layer internal view element.
2. The method for managing a floating layer of claim 1, wherein the step S2 further comprises:
a collection list is defined in the floating layer manager, and the collection list stores the unique identification ID of each floating layer positioned above the video stream layer of the player.
3. The method of claim 1, wherein each of the floating layers has a plurality of functions, and the step S2 further comprises:
and defining a function corresponding to each function for each floating layer, and calling the function to realize the corresponding function of the floating layer.
4. The method of claim 3, wherein the step S2 of performing unified hierarchical management on each floating layer through the floating layer manager comprises:
receiving a first control instruction transmitted from the outside, wherein the first control instruction is a control instruction for realizing a specific function of the floating layer;
and calling a function corresponding to the specific function of the corresponding floating layer according to the first control instruction to realize the specific function in each floating layer.
5. The method for managing a floating layer of claim 1, wherein the step S2 further comprises:
each view element in each floating layer corresponds to multiple functions, corresponding function functions are defined for each function, and the corresponding functions of the view elements in the floating layers are realized by calling the function functions.
6. A floating layer management system, comprising:
the Android system comprises a definition module, a display module and a display module, wherein the definition module is used for defining a FrameLayout layout layer on the bottom layer of the Android system, the FrameLayout layout layer is used for placing a player video stream layer and floating layers, and the floating layers are located above the player video stream layer; and is also used to define a floating layer manager for all floating layers;
the floating layer manager is used for carrying out hierarchical management on each floating layer;
the classification module is used for classifying the floating layers according to different functional properties, wherein each floating layer stores a plurality of view elements of the same functional type;
the definition module is further used for defining a corresponding view controller for each floating layer;
correspondingly, the floating layer manager is used for receiving an external second control instruction and sending the second control instruction to the view controller in the corresponding floating layer, wherein the second control instruction is a control instruction for realizing a specific function of the view element in the floating layer;
and the view controller is used for calling the function corresponding to the specific function in the corresponding view element according to the second control instruction sent by the floating layer manager so as to realize the specific function of the view element in the floating layer.
7. An apparatus of a floating layer management method, comprising a processor (processor), a memory (memory), and a bus;
the processor and the memory complete mutual communication through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any one of claims 1-5.
8. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 5.
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 CN107426599A (en) 2017-12-01
CN107426599B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052325B (en) * 2018-01-08 2019-09-10 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for realizing view controller
CN109040822B (en) * 2018-07-16 2021-06-22 北京奇艺世纪科技有限公司 Player configuration method and device and storage medium
CN109089145B (en) * 2018-08-06 2021-08-13 阿里巴巴(中国)有限公司 Method, computing device and storage medium for non-intrusive control of video playback
CN110187853B (en) * 2019-04-18 2023-01-03 北京奇艺世纪科技有限公司 Picture conflict recognition method, device, picture processing device and medium
CN111309415B (en) * 2020-01-17 2024-01-02 北京有竹居网络技术有限公司 User Interface (UI) information processing method and device of application program and electronic equipment
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

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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN107426599B (en) Floating layer management method and system
US11275742B2 (en) Digital processing systems and methods for smart table filter with embedded boolean logic in collaborative work systems
CN104317562B (en) Information display method and device and terminal
CN104461239B (en) A kind of information interacting method and device
CN105453097B (en) Constrained driver platform runs driver in sandbox in the user mode
JP2011040059A5 (en)
CN109799938A (en) Control display management method, terminal device and computer readable storage medium
CN107665150A (en) Event Service modeling framework for computer system
US11716419B2 (en) Object oriented call management
CN108369514A (en) The system and method created for executable content and executable content stream
CN108156208A (en) A kind of dissemination method of application data, device and system
WO2014100713A1 (en) Simplified product configuration using table-based rules, rule conflict resolution through voting, efficient model compilation, rule assignments and templating
CN112464497A (en) Fault drilling method, device, equipment and medium based on distributed system
CN108780409A (en) Generic Notification assembly line
CN108696373A (en) Virtual resource allocation method, NFVO and system
CN107707980B (en) Play page layering system, method, medium, and device for extending designated player
CN107368523B (en) Data processing method and system
CN110034994A (en) For the system of virtual proprietary cloud service and the implementation method of virtual proprietary cloud service
CN108112282A (en) Content is filtered based on user mobile network and data plan
CN109039670A (en) The sharing method and device of team's configuration method, team's allocation plan
CN106909397A (en) The method and device of input frame is generated in Unity interfaces
US10067775B2 (en) Guided authoring of interactive content
US20230085946A1 (en) Managing user interactions for a graphical user interface
US20190087854A1 (en) Graphical system for database marketing
US20140096088A1 (en) Methods and Systems for Visually Forming Relationships Between Electronic Content

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