CN108228126B - Screen projection control method and device, electronic terminal and readable storage medium - Google Patents

Screen projection control method and device, electronic terminal and readable storage medium Download PDF

Info

Publication number
CN108228126B
CN108228126B CN201810002874.9A CN201810002874A CN108228126B CN 108228126 B CN108228126 B CN 108228126B CN 201810002874 A CN201810002874 A CN 201810002874A CN 108228126 B CN108228126 B CN 108228126B
Authority
CN
China
Prior art keywords
screen projection
page focus
panel object
floating panel
page
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
CN201810002874.9A
Other languages
Chinese (zh)
Other versions
CN108228126A (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.)
Guangzhou Zhongtian Technology Consulting 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 CN201810002874.9A priority Critical patent/CN108228126B/en
Priority to PCT/CN2018/082351 priority patent/WO2019134289A1/en
Publication of CN108228126A publication Critical patent/CN108228126A/en
Application granted granted Critical
Publication of CN108228126B publication Critical patent/CN108228126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay

Abstract

The embodiment of the invention provides a screen projection control method and device, an electronic terminal and a readable storage medium. The screen projection control method comprises the following steps: after receiving a screen projection request, executing a floating panel object to control an electronic terminal to display screen projection data corresponding to the screen projection request; performing data clearing on a flag bit of the suspension panel object, which is not used for acquiring a page focus by default, so that the suspension panel object can acquire the page focus, wherein the page focus comprises a plurality of kinds of operation information about a control page; and when the floating panel object intercepts any page focus, executing the operation corresponding to the page focus on the screen projection being displayed.

Description

Screen projection control method and device, electronic terminal and readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a screen projection control method and device, an electronic terminal and a readable storage medium.
Background
When the screen is projected, a control panel is used, and the control panel is realized based on a floating layer in the system. Because the floating layer is a single system, the floating layer cannot receive page focus information such as a return key of the system. This results in the floating layer not responding to the page focus information and not being able to operate on the floating layer through the focus information, e.g., not being able to hide the floating layer through the return key. Thereby causing great inconvenience to the user in handling the floating layer.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a screen projection control method, a screen projection control device, an electronic terminal and a readable storage medium.
The invention provides a screen projection control method, which is applied to an electronic terminal, wherein a suspension panel object is stored in the electronic terminal, the suspension panel object comprises attribute parameters, the attribute parameters comprise a flag bit for not acquiring a page focus by default, and the screen projection control method comprises the following steps:
after receiving a screen projection request, executing a floating panel object to control an electronic terminal to display screen projection data corresponding to the screen projection request;
performing data clearing on a flag bit of the suspension panel object, which is not used for acquiring a page focus by default, so that the suspension panel object can acquire the page focus, wherein the page focus comprises a plurality of kinds of operation information about a control page;
and when the floating panel object intercepts any page focus, executing the operation corresponding to the page focus on the screen projection being displayed.
The embodiment of the present invention further provides a screen projection control device, which is applied to an electronic terminal, wherein a floating panel object is stored in the electronic terminal, the floating panel object includes attribute parameters, the attribute parameters include a flag bit for not acquiring a page focus by default, and the screen projection control device includes:
the display module is used for executing the suspended panel object to control the electronic terminal to display screen projection data corresponding to the screen projection request after receiving the screen projection request;
a clearing module, configured to perform data clearing on a flag bit of a default non-acquired page focus in the floating panel object, so that the floating panel object can acquire the page focus, where the page focus includes multiple types of operation information about a control page;
and the execution module is used for executing the operation corresponding to the page focus on the screen projection being displayed when the floating panel object intercepts any page focus.
An embodiment of the present invention further provides an electronic terminal, including:
a memory;
a processor;
in the above projection control device, the real-time animation display device is stored in the memory and is controlled and executed by the processor.
The embodiment of the invention also provides a readable storage medium, wherein a computer program is stored on the readable storage medium, and the computer program realizes the screen projection control method when being executed.
Compared with the prior art, the screen projection control method, the screen projection control device, the electronic terminal and the readable storage medium provided by the embodiment of the invention have the advantages that the flag bit for defaulting to not obtain the page focus is set in the attribute parameters of the floating panel object, so that the page focus is prevented from being intercepted by mistake when the floating layer is not displayed on the electronic terminal; when the screen is projected in the electronic terminal, the default zone bit which does not acquire the page focus is cleared, so that the suspended panel object can intercept the page focus, the operation corresponding to the page focus is effectively executed, a user can operate the suspended panel more conveniently, and the user experience is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of an electronic terminal according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of a screen projection control method according to a preferred embodiment of the present invention.
Fig. 3 is a flowchart of a screen projection control method according to another preferred embodiment of the present invention.
Fig. 4 is a functional block diagram of a screen projection control device according to a preferred embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a block diagram of the electronic terminal 100. The electronic terminal 100 includes a screen projection control device 110, a memory 111, a storage controller 112, a processor 113, a peripheral interface 114, an input/output unit 115, and a display unit 116. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic terminal 100. For example, the electronic terminal 100 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
In this embodiment, the electronic terminal 100 may be a display device such as a television.
The memory 111, the memory controller 112, the processor 113, the peripheral interface 114, the input/output unit 115 and the display unit 116 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The screen projection control device 110 includes at least one software function module which can be stored in the memory 111 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the electronic terminal 100. The processor 113 is configured to execute an executable module stored in the memory, such as a software functional module or a computer program included in the screen projection control apparatus 110.
The Memory 111 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 111 is configured to store a program, and the processor 113 executes the program after receiving an execution instruction, and the method executed by the electronic terminal 100 defined by the process disclosed in any embodiment of the present invention may be applied to the processor 113, or implemented by the processor 113.
The processor 113 may be an integrated circuit chip having signal processing capabilities. The Processor 113 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The peripheral interface 114 couples various input/output devices to the processor 113 and memory 111. In some embodiments, the peripheral interface 114, the processor 113, and the memory controller 112 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input/output unit 115 is used to provide input data to a user. The input/output unit 115 may be, but is not limited to, a mouse, a keyboard, and the like.
The display unit 116 provides an interactive interface (e.g., a user operation interface) between the electronic terminal 100 and a user or is used to display image data to a user reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. The support of single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor for calculation and processing.
In this embodiment, a floating panel object is stored in the electronic terminal, where the floating panel object includes an attribute parameter, and the attribute parameter includes a flag bit for not acquiring a page focus by default. The floating panel object initialization generation is described in detail below.
Firstly, defining a setting object mMenu LayoutParams of a suspension panel by a WindowManager.LayoutParams class, and instantiating by a construction function in the WindowManager.LayoutParams class to obtain an mMenu LayoutParams object, namely the suspension panel object.
Next, the type attribute of the floating panel object mmenullayoutparams is set to be a windowmanager. Wherein the TYPE attribute is set to TYPE _ PHONE TYPE so that the hover panel is at the upper level of the application page (Activity) so that the hover panel can be displayed over multiple pages.
Again, the flag attribute of the floating panel object mmenullayoutparams is set. The flag attribute is used for describing the functional characteristics of the mmenlayoutparams, and the setting of different functional characteristic attributes can enable the mmenlayoutparams object to have different behavior characteristics. In this embodiment, two attributes are set for the floating panel object mMenuLayoutParams:
window manager, LAYOUT params, flag _ NOT _ FOCUSABLE and window manager, LAYOUT params, flag _ LAYOUT _ NO _ LIMITS. The property of the Windows manager, the LayoutParams, the FLAG _ NOT _ FOCUSABLE represents that the floating panel cannot acquire the page, so that the situation that the floating panel always keeps a state of being capable of acquiring the page focus and other page elements except the floating panel cannot acquire the page focus is avoided, operation failure of other pages is caused, and each program of the electronic terminal is abnormal in operation. Secondly, the setting of the property window manager, LAYOUT params, flag _ LAYOUT _ NO _ LIMITS, indicates that the display of the floating panel is not controlled by the screen size of the electronic terminal, that is, the display position of the floating panel can be at any position of the screen, including the outer edge of the screen. The setting of the windowmanager, LAYOUT params, flag _ LAYOUT _ NO _ LIMITS attribute can realize that the suspension panel can be used when animation special effect display is performed. For example, the floating panel can move from the bottom screen to the inside of the screen when the floating panel is unfolded, and if the attribute is not set, the animation cannot be realized.
In this embodiment, the floating panel needs to be wrapped, and a conventional scheme may use a standard control of a system to implement a container of the whole floating panel, and the reason why the scheme cannot be used in the scheme is that the control panel is wrapped by the container of the system, so that information such as a key event in the container cannot be intercepted and processed, and the control panel cannot intercept information of a return key of the processing system. Therefore, in order to enable the control panel to process the page focus information of the system, for example, the return key information, the new container SCSettingView is used for floating the panel in this embodiment, and the container SCSettingView is inherited from the system container relatedlayout. Therefore, the SCSettingView container in this embodiment has all the functional characteristics of the system container RelativeLayout. Then, the DispatcKeyEvent method, which is a key distribution function, is rewritten inside the SCSettingView container. Therefore, the dispatchKeyEvent method is realized by the dispatchKeyEvent method overwritten in the SCSettingView container. Therefore, the container SCSettingView of the floating panel in this embodiment can intercept the key event distribution of the system, so that the container SCSettingView can intercept the return key information of the system.
In order to expose the returned key information intercepted by the SCSettingView container in this embodiment to the outside, the SCSettingView container is further provided with an interface for exposing the key information to the outside view of the container, and the specific interface design is as follows:
public interface IOnBackPressed{
void onBackPressed();
}
the name of the interface is IOnBackPressed, only one function onBackPressed is arranged in the interface, the function is very simple and has no input parameter or output parameter, and after the container intercepts the page focus of the system, the message can be distributed to the outside of the container through the interface function onBackPressed, so that the corresponding processing unit in the electronic terminal can process the page focus.
Please refer to fig. 2, which is a flowchart illustrating a screen projection control method applied to the electronic terminal shown in fig. 1 according to a preferred embodiment of the present invention. The specific process shown in fig. 2 will be described in detail below.
And S101, after receiving a screen projection request, executing a floating panel object to control an electronic terminal to display screen projection data corresponding to the screen projection request.
The electronic terminal is provided with a suspended panel object, the suspended panel object comprises attribute parameters, and the attribute parameters comprise a flag bit for not acquiring a page focus by default.
In this embodiment, the screen projection data is displayed on the floating panel correspondingly formed by the floating panel object. Specifically, since the type attribute of the floating panel object mmenullayoutparam is set to a windowmanager.
In this embodiment, when the screen projection is not displayed in the electronic terminal, the default flag bit that does not obtain the page focus may prevent the floating panel object from intercepting the page focus.
Step S102, performing data clearing on a default flag bit that does not obtain a page focus in the floating panel object, so that the floating panel object can obtain the page focus.
In this embodiment, the page focus includes a plurality of kinds of operation information about the control page. For example, when the electronic terminal is a television, the page focus may be a return operation, a volume up-down operation, or the like of a remote controller.
In this embodiment, since the attribute parameters of the floating panel object include the default flag bit that does NOT obtain the page focus, which is window manager, layout params, flag _ NOT _ FOCUSABLE, the floating panel object cannot obtain the system focus under the condition that the default flag bit that does NOT obtain the page focus is valid. In order to enable the floating panel object to acquire the page focus, the flag bit Windowmanager, LayoutParams, FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus by default needs to be cleared, so that the floating panel object can acquire the system focus.
In this embodiment, step S102 may include: negating the default zone bit which does not acquire the page focus to obtain auxiliary clearing data; and performing bitwise AND operation on the auxiliary clearing data and the attribute parameters. The flag bit of the default non-acquired page focus in the attribute parameter can be cleared through the operation of the step S102.
In this embodiment, the attribute parameter of the floating panel object may be stored in a flags parameter. In this embodiment, all parameters in the flags are saved in binary form, that is, each attribute is described by one or several binary digits. When the floating panel is displayed, the floating panel object needs to intercept the page focus executed in the electronic terminal, for example, returning key information. In order to clear the data of the flag bit of the default non-acquired page focus and keep the other attribute parameters in the flags parameter unchanged, the following method can be implemented:
mMenuLayoutParams.flags=mMenuLayoutParams.flags&(~WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE)。
the above implementation algorithm is described in detail below, and the implementation principle thereof is analyzed:
firstly, acquiring a binary number of WindowManager, Layout params, FLAG _ NOT _ FOCUSABLE;
then, bitwise negation is performed on windowmanager, layout params, flag _ NOT _ FOCUSABLE: windowmanager, layout params, flag _ NOT _ FOCUSABLE, which changes from 1 to 0 to 1 after the above operation.
Then, the method and the original FLAG data operate according to bitwise and (&), and since 1 and any data are followed by 1 and 0 and any data are followed by 0, the data of WindowManager.LayoutParams.FLAG _ NOT _ FOCUSABLE bit in the FLAGs can be cleared, so that the purpose of clearing the FLAG bit FLAG _ NOT _ FOCUSABLE of the default non-acquired page focus can be realized.
In this embodiment, when the floating panel object control electronic terminal is executed to display the screen projection data corresponding to the screen projection request, the flag bit for which the page focus is not acquired by default is cleared, so that the floating panel displayed by screen projection can acquire the focus information. That is, the floating panel can respond to some page focuses of the electronic terminal, for example, return keystroke messages can also be obtained.
And step S103, when the floating panel object intercepts any page focus, executing the operation corresponding to the page focus on the screen projection being displayed.
In one example, the electronic terminal is a television, and when the floating panel object intercepts a return key operation of a remote controller corresponding to the television, the floating panel object executes a return operation to hide the floating panel.
In this embodiment, after the operation corresponding to the page focus is performed on the currently displayed screen, the method further includes: and when the page focus intercepted by the floating panel object is the operation information of exiting or returning the displayed screen projection, carrying out recovery operation on the default zone bit which does not acquire the page focus in the floating panel object so as to prevent the floating panel object from acquiring the page focus.
In detail, performing bitwise or operation on the flag bit of the default non-acquisition page focus and the attribute parameters to recover the flag bit of the default non-acquisition page focus in the attribute parameters.
When the floating panel is displayed, the default FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus is cleared, when the electronic terminal hides the floating panel, the default FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus needs to be recovered, otherwise, the floating panel intercepts the page focus of the electronic terminal all the time, so that other pages cannot acquire the page focus. Therefore, when the floating panel is hidden, further resetting the FLAG bit FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus by default can be realized as follows:
mMenuLayoutParams.flags=
mMenuLayoutParams.flags|
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE。
the above implementation algorithm is described in detail below, and the implementation principle thereof is analyzed:
the FLAG indicates the position of FLAG _ NOT _ FOCUSABLE FLAG bit, and the FLAG _ NOT _ FOCUSABLE FLAG bit is reset to 1 in the FLAG after the FLAG _ NOT _ FOCUSABLE FLAG bit is pressed or operated. By restoring the default FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus, the floating panel cannot acquire the page focus, and the page focus cannot be intercepted.
According to the screen projection control method, the default zone bit which does not acquire the page focus is set in the attribute parameters of the floating panel object, so that the page focus is prevented from being intercepted by mistake when a floating layer is not displayed on an electronic terminal; when the screen is projected in the electronic terminal, the default zone bit which does not acquire the page focus is cleared, so that the suspended panel object can intercept the page focus, the operation corresponding to the page focus is effectively executed, a user can operate the suspended panel more conveniently, and the user experience is improved.
In other embodiments, as shown in FIG. 3, the screen projection control method includes steps not at S201 to S205
Step S201, after receiving a screen projection request, executing a floating panel object to control an electronic terminal to display screen projection data corresponding to the screen projection request.
The electronic terminal is provided with a suspended panel object, the suspended panel object comprises attribute parameters, and the attribute parameters comprise a flag bit for not acquiring a page focus by default.
Step S202, performing data clearing on a default flag bit that does not obtain a page focus in the floating panel object, so that the floating panel object can obtain the page focus.
Steps S201 and S202 in this embodiment are similar to steps S101 and S102 in the previous method embodiment, and reference may be made to the description of the above method embodiment for steps S201 and S202 in this embodiment, which is not repeated herein.
Step S203, after executing the screen projection data corresponding to the screen projection request of the floating panel object control display, starting a monitoring function to monitor the state of the displayed screen projection.
And step S204, when the floating panel object intercepts a return key, executing the hiding operation on the screen projection being displayed.
Step S205, when the monitoring function monitors that the displayed screen projection is invisible, the floating panel corresponding to the displayed screen projection is removed.
Because the hiding of the floating panel is an animation process, the method in the embodiment can monitor whether the floating panel is hidden or not by monitoring the animation state corresponding to the floating panel when the floating panel is invisible. An animation listening message may be set to the hidden animation of the floating panel in order to capture the invisible state of the control panel. Specifically, the animation monitoring of the animation panel can be realized by calling addListener (newanalyzer. animation listener ()) method, and the listener has an interface function onaimit, which is called back when the animation is finished, so that the operation to be executed after hiding can be realized in the onaimit function.
In one example, the floating panel can be released in memory by calling a removeView method provided by the android system to remove the floating panel.
Step S206, performing a recovery operation on the default flag bit that does not obtain the page focus in the floating panel object to prevent the floating panel object from obtaining the page focus.
In detail, performing bitwise or operation on the flag bit of the default non-acquisition page focus and the attribute parameters to recover the flag bit of the default non-acquisition page focus in the attribute parameters.
When the floating panel is displayed, the default FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus is cleared, when the electronic terminal hides the floating panel, the default FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus needs to be recovered, otherwise, the floating panel intercepts the page focus of the electronic terminal all the time, so that other pages cannot acquire the page focus. Therefore, when the floating panel is hidden, further resetting the FLAG bit FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus by default can be realized as follows:
mMenuLayoutParams.flags=
mMenuLayoutParams.flags|
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE。
the above implementation algorithm is described in detail below, and the implementation principle thereof is analyzed:
the FLAG indicates the position of FLAG _ NOT _ FOCUSABLE FLAG bit, and the FLAG _ NOT _ FOCUSABLE FLAG bit is reset to 1 in the FLAG after the FLAG _ NOT _ FOCUSABLE FLAG bit is pressed or operated. By restoring the default FLAG _ NOT _ FOCUSABLE which does NOT acquire the page focus, the floating panel cannot acquire the page focus, and the page focus cannot be intercepted.
When the suspension panel is hidden, the internal memory of the electronic terminal can be released by removing the suspension panel, so that the use space is saved. In addition, when the floating panel displays, the flag bit of the default non-acquired page focus is cleared; when the floating panel is hidden, the default zone bit which does not acquire the page focus is recovered, so that the floating panel can acquire the page focus without influencing other pages to acquire the page focus.
Please refer to fig. 4, which is a schematic diagram of functional modules of the screen projection control apparatus 110 shown in fig. 1 according to a preferred embodiment of the present invention. The modules of the screen projection control device 110 in the present embodiment are used for executing the steps in the above method embodiments. The screen projection control device 110 includes a display module 1101, a clearing module 1102 and an execution module 1103.
The display module 1101 is configured to, after receiving a screen projection request, execute a floating panel object to control the electronic terminal to display screen projection data corresponding to the screen projection request.
The clearing module 1102 is configured to perform data clearing on a flag bit of the floating panel object, where the default flag bit does not obtain a page focus, so that the floating panel object can obtain the page focus, where the page focus includes a plurality of types of operation information about a control page.
The executing module 1103 is configured to, when the floating panel object intercepts any page focus, execute an operation corresponding to the page focus on the screen shot being displayed.
In this embodiment, the apparatus further includes: a restoring module 1104, configured to, when the page focus intercepted by the floating panel object is operation information of exiting or returning to a displayed screen projection, perform a restoring operation on a flag bit of the default non-acquired page focus in the floating panel object, so as to prevent the floating panel object from acquiring the page focus.
In this embodiment, the apparatus further includes: a snoop module 1105 and a remove module 1106.
The monitoring module 1105 is configured to start a monitoring function to monitor the state of the displayed screen projection after executing the screen projection data corresponding to the screen projection request controlled by the floating panel object.
The removing module 1106 is configured to remove the floating panel corresponding to the displayed screen projection when the monitoring function monitors that the displayed screen projection is invisible.
The recovery module 1104 is further configured to perform a recovery operation on a default flag bit that does not obtain a page focus in the floating panel object, so as to prevent the floating panel object from obtaining the page focus.
According to the screen projection control device, the default zone bit which does not acquire the page focus is set in the attribute parameters of the floating panel object, so that the page focus is prevented from being intercepted by mistake when a floating layer is not displayed on an electronic terminal; when the screen is projected in the electronic terminal, the default zone bit which does not acquire the page focus is cleared, so that the suspended panel object can intercept the page focus, the operation corresponding to the page focus is effectively executed, a user can operate the suspended panel more conveniently, and the user experience is improved.
An embodiment of the present invention provides a readable storage medium, on which a computer program is stored, where the computer program, when executed, implements the screen projection control method provided by the above embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. 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. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A screen projection control method is applied to an electronic terminal, a floating panel object is stored in the electronic terminal, the floating panel object comprises attribute parameters, the attribute parameters comprise a flag bit for defaulting to not acquire a page focus, and the screen projection control method comprises the following steps:
after receiving a screen projection request, executing a floating panel object to control an electronic terminal to display screen projection data corresponding to the screen projection request;
performing data clearing on a flag bit of the suspension panel object, which is not used for acquiring a page focus by default, so that the suspension panel object can acquire the page focus, wherein the page focus comprises a plurality of kinds of operation information about a control page;
when the floating panel object intercepts any page focus, executing operation corresponding to the page focus on the screen projection being displayed;
after the suspended panel object is executed to control display screen projection request to display corresponding screen projection data, starting a monitoring function to monitor the state of the displayed screen projection;
when the monitoring function monitors that the displayed screen projection is invisible, removing the floating panel corresponding to the displayed screen projection;
and restoring the default zone bit which does not acquire the page focus in the floating panel object to prevent the floating panel object from acquiring the page focus.
2. The screen projection control method according to claim 1, wherein after the operation corresponding to the page focus is performed on the projection screen being displayed, the method further comprises:
and when the page focus intercepted by the floating panel object is the operation information of exiting or returning the displayed screen projection, carrying out recovery operation on the default zone bit which does not acquire the page focus in the floating panel object so as to prevent the floating panel object from acquiring the page focus.
3. The screen projection control method of claim 2, wherein the step of performing a recovery operation on a flag bit of the floating panel object that does not acquire a page focus by default comprises:
and executing bitwise OR operation on the flag bit of the default non-acquired page focus and the attribute parameters to recover the flag bit of the default non-acquired page focus in the attribute parameters.
4. The screen projection control method of claim 1, wherein the step of clearing the flag bit of the floating panel object for which the page focus is not acquired by default comprises:
negating the default zone bit which does not acquire the page focus to obtain auxiliary clearing data;
and performing bitwise AND operation on the auxiliary clearing data and the attribute parameters.
5. A screen projection control device is applied to an electronic terminal, a floating panel object is stored in the electronic terminal, the floating panel object comprises attribute parameters, the attribute parameters comprise a flag bit for defaulting to not obtain a page focus, and the screen projection control device comprises:
the display module is used for executing the suspended panel object to control the electronic terminal to display screen projection data corresponding to the screen projection request after receiving the screen projection request;
a clearing module, configured to perform data clearing on a flag bit of a default non-acquired page focus in the floating panel object, so that the floating panel object can acquire the page focus, where the page focus includes multiple types of operation information about a control page;
the execution module is used for executing the operation corresponding to the page focus on the screen projection being displayed when the floating panel object intercepts any page focus;
the monitoring module is used for starting a monitoring function to monitor the state of the displayed screen projection after executing the screen projection data corresponding to the screen projection request of the floating panel object control display;
the removing module is used for removing the floating panel corresponding to the displayed screen projection when the monitoring function monitors that the displayed screen projection is invisible;
and the recovery module is used for performing recovery operation on the default zone bit which does not acquire the page focus in the floating panel object so as to prevent the floating panel object from acquiring the page focus.
6. The screen-projection control apparatus of claim 5, wherein after the operation corresponding to the page focus is performed on the projection screen being displayed, the apparatus further comprises:
and the recovery module is used for performing recovery operation on the default zone bit which does not acquire the page focus in the floating panel object when the page focus intercepted by the floating panel object is the operation information of exiting or returning the displayed screen projection, so as to prevent the floating panel object from acquiring the page focus.
7. An electronic terminal, comprising:
a memory;
a processor;
the screen projection control device of any one of claims 5-6, stored in the memory and controlled to execute by the processor.
8. A readable storage medium on which a computer program is stored, the computer program, when executed, implementing the screen projection control method of any one of claims 1 to 4.
CN201810002874.9A 2018-01-02 2018-01-02 Screen projection control method and device, electronic terminal and readable storage medium Active CN108228126B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810002874.9A CN108228126B (en) 2018-01-02 2018-01-02 Screen projection control method and device, electronic terminal and readable storage medium
PCT/CN2018/082351 WO2019134289A1 (en) 2018-01-02 2018-04-09 Screen projection control method and device, electronic terminal, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810002874.9A CN108228126B (en) 2018-01-02 2018-01-02 Screen projection control method and device, electronic terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN108228126A CN108228126A (en) 2018-06-29
CN108228126B true CN108228126B (en) 2020-01-03

Family

ID=62642592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810002874.9A Active CN108228126B (en) 2018-01-02 2018-01-02 Screen projection control method and device, electronic terminal and readable storage medium

Country Status (2)

Country Link
CN (1) CN108228126B (en)
WO (1) WO2019134289A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981582A (en) * 2020-09-10 2023-04-18 华为技术有限公司 Display method and electronic equipment
CN112333326B (en) * 2020-10-26 2022-03-18 努比亚技术有限公司 Screen projection display control method and device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2254325A1 (en) * 2009-05-20 2010-11-24 Dacuda AG Image processing for handheld scanner
CN104469465A (en) * 2014-12-09 2015-03-25 四川长虹电器股份有限公司 Smart television levitation main scene interaction method based on android system
CN104780453A (en) * 2015-01-19 2015-07-15 康佳集团股份有限公司 Intelligent television desktop system interaction method and intelligent television desktop system interaction device
CN107241633A (en) * 2017-06-07 2017-10-10 珠海市魅族科技有限公司 A kind of focus reminding method and device, computer installation and readable storage medium storing program for executing
CN107484024A (en) * 2017-08-17 2017-12-15 四川长虹电器股份有限公司 The method that global suspension menu is realized using hot key based on WEBOS intelligent television systems
CN107506113A (en) * 2017-08-31 2017-12-22 深圳市金立通信设备有限公司 A kind of control method of display interface, terminal and computer-readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828139A (en) * 2016-04-06 2016-08-03 乐视控股(北京)有限公司 Video screen-projection method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2254325A1 (en) * 2009-05-20 2010-11-24 Dacuda AG Image processing for handheld scanner
CN104469465A (en) * 2014-12-09 2015-03-25 四川长虹电器股份有限公司 Smart television levitation main scene interaction method based on android system
CN104780453A (en) * 2015-01-19 2015-07-15 康佳集团股份有限公司 Intelligent television desktop system interaction method and intelligent television desktop system interaction device
CN107241633A (en) * 2017-06-07 2017-10-10 珠海市魅族科技有限公司 A kind of focus reminding method and device, computer installation and readable storage medium storing program for executing
CN107484024A (en) * 2017-08-17 2017-12-15 四川长虹电器股份有限公司 The method that global suspension menu is realized using hot key based on WEBOS intelligent television systems
CN107506113A (en) * 2017-08-31 2017-12-22 深圳市金立通信设备有限公司 A kind of control method of display interface, terminal and computer-readable medium

Also Published As

Publication number Publication date
WO2019134289A1 (en) 2019-07-11
CN108228126A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
US10311234B2 (en) Anti-ransomware
US10552644B2 (en) Method and apparatus for displaying information content
CN107515759B (en) Screen capture method and device, electronic equipment and readable storage medium
CN107181858B (en) Method and terminal for displaying notification message
US9804767B2 (en) Light dismiss manager
CN108400868B (en) Seed key storage method and device and mobile terminal
WO2015187880A1 (en) Password input interface
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
US11567628B2 (en) Cognitive composition of multi-dimensional icons
US20160216885A1 (en) Method and device for processing touch operation of electronic apparatus
US20090019388A1 (en) Anti-virus usage model at an exterior panel of a computer
CN108228126B (en) Screen projection control method and device, electronic terminal and readable storage medium
CN107704241B (en) Display method and device for page state switching
CN110096329B (en) Display content control method, electronic device and computer readable storage medium
CA3071225C (en) Apparatuses, methods and systems for persisting values in a computing environment
CN106776749A (en) Modes to open a file method to set up and system
CN107729107B (en) Modal dialog box processing method and device
US20210034488A1 (en) Information processing apparatus, control method, and program
CN109241787B (en) Call detection method and device for image input device and computer readable storage medium
CN114730258A (en) User interface techniques for infrastructure orchestration services
US20150199820A1 (en) Generating and displaying a specific area
CN110764681A (en) Application interface display method and device, client device and electronic device
CN112433723A (en) Personalized list development method and device
CN107438818A (en) Processing is subjected to Application Monitoring and the digital ink intervened input
CN107341038B (en) Compatibility processing method and device and electronic equipment

Legal Events

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

Effective date of registration: 20240201

Address after: Room 101-1, Building 2, No. 95 Daguan Middle Road, Tianhe District, Guangzhou City, Guangdong Province, 510000

Patentee after: Guangzhou Zhongtian Technology Consulting Co.,Ltd.

Country or region after: China

Address before: 11 / F, building B1, software industry phase 4.1, No.1, Software Park East Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province, 430000

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right