CN113126855A - Client interaction method and device, electronic equipment and storage medium - Google Patents

Client interaction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113126855A
CN113126855A CN202110528829.9A CN202110528829A CN113126855A CN 113126855 A CN113126855 A CN 113126855A CN 202110528829 A CN202110528829 A CN 202110528829A CN 113126855 A CN113126855 A CN 113126855A
Authority
CN
China
Prior art keywords
window
control
target
client
interactive operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110528829.9A
Other languages
Chinese (zh)
Other versions
CN113126855B (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 Huya Technology Co Ltd
Original Assignee
Guangzhou Huya 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 Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202110528829.9A priority Critical patent/CN113126855B/en
Publication of CN113126855A publication Critical patent/CN113126855A/en
Application granted granted Critical
Publication of CN113126855B publication Critical patent/CN113126855B/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of computers, and provides a client interaction method, a client interaction device, electronic equipment and a storage medium. When the interactive operation is executed on a first window of a client, the target position of the interactive operation on the first window is obtained; when the target position is in the non-transparent area of the second window, obtaining a target agent control; then, according to the target agent control and a preset binding relationship, a target service control is obtained; and finally, responding to the interactive operation according to the target service control. Therefore, the display effect is improved, and the user enjoys better interactive experience.

Description

Client interaction method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a client interaction method, a client interaction device, electronic equipment and a storage medium.
Background
The WPF (Windows Presentation Foundation, WPF) is a Windows-based user interface development framework, is applied to an interface of a client, and can implement various interactive functions with a user.
In the prior art, a framework is developed based on WPF, and in order to meet the beautifying requirement of an interface, the interface is usually displayed by setting attribute values, but the performance of the interface is poor, and the situations of frame loss, blocking and excessive memory occupation often occur.
Disclosure of Invention
In view of the above, the present invention provides a client interaction method, device, electronic device and storage medium.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, the present invention provides a client interaction method, which is applied to an electronic device, where the electronic device includes a client, the client includes a first window and a second window, and the first window includes a service control; the second window comprises an agent control; the service control and the agent control have a preset binding relationship, and the method comprises the following steps:
when the interactive operation is executed on the first window, acquiring the target position of the interactive operation on the first window; the first window is suspended above the second window;
when the target position is in the non-transparent area of the second window, acquiring a target agent control; the target agent control belongs to the agent control; the target agent control is in a non-transparent area of the second window;
determining a target service control bound with the target agent control according to the preset binding relationship; the target business control has an interactive function;
and responding to the interactive operation according to the target service control.
In an alternative embodiment, the second window has a second layout manager, and the step of obtaining the target agent control when the target location is in the non-transparent region of the second window comprises:
and traversing the proxy control through the second layout manager when the target position is in the non-transparent area of the second window, and taking the proxy control corresponding to the target position as the target proxy control.
In an optional implementation manner, the step of responding to the interactive operation according to the target service control includes:
obtaining an execution result according to the interactive function of the target service control;
and the second layout manager responds to the interactive operation according to the execution result.
In an alternative embodiment, the method further comprises:
when the window attribute of the second window is changed, the window attribute of the first window is consistent with the window attribute of the second window.
In an alternative embodiment, the first window has a first layout manager, the method further comprising:
when the graphic attribute of the first proxy control changes, the graphic attribute of the first business control is consistent with the graphic attribute of the first proxy control through the first layout manager and the second layout manager; the first business control and the first proxy control have the preset binding relationship; the first proxy control is any one of the proxy controls.
In an optional embodiment, before the step of obtaining the target position of the interactive operation in the first window when the interactive operation is performed in the first window, the method further includes:
creating the second window;
creating the first window according to the second window;
configuring the business control in the first window;
and configuring an agent control bound with the service control in the second window according to the preset binding relationship.
In a second aspect, the present invention provides a client interaction apparatus, which is applied to an electronic device, where the electronic device includes a client, the client includes a first window and a second window, and the first window includes a service control; the second window comprises an agent control; the business control and the agent control have a preset binding relationship, and the device comprises:
the acquisition module is used for acquiring the target position of the interactive operation in the first window when the interactive operation is executed in the first window; the first window is suspended above the second window;
the processing module is used for acquiring a target agent control when the target position is in the non-transparent area of the second window; the target agent control belongs to the agent control; the target agent control is in a non-transparent area of the second window;
determining a target service control bound with the target agent control according to the preset binding relationship; the target business control has an interactive function;
and responding to the interactive operation according to the target service control.
In an alternative embodiment, the apparatus further comprises:
a setting module for creating the second window; creating the first window according to the second window; configuring the business control in the first window; and configuring an agent control bound with the service control in the second window according to the preset binding relationship.
In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor implements the method of any one of the preceding embodiments when executing the computer program.
In a fourth aspect, the present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the preceding embodiments.
The embodiment of the invention provides a client interaction method, a client interaction device, electronic equipment and a storage medium. When the interactive operation is executed on a first window of a client, the target position of the interactive operation on the first window is obtained; when the target position is in the non-transparent area of the second window, obtaining a target agent control; then, according to the target agent control and a preset binding relationship, a target service control is obtained; and finally, responding to the interactive operation according to the target service control. Compared with the prior art, only one window mode is adopted, the two windows are adopted, the first window has good performance, and the second window is used for realizing interaction, so that the service requirements can be met, the performance of the windows can be improved, the display effect is improved, and a user can enjoy better interaction experience.
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 device provided by an embodiment of the invention;
FIG. 2 is a diagram illustrating an example of a client interaction method provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a client interaction method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a client interaction method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating another example of a client interaction method provided by an embodiment of the invention;
FIG. 6 is a schematic flow chart illustrating a client interaction method according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating another example of a client interaction method provided by an embodiment of the invention;
FIG. 8 is a diagram illustrating another example of a client interaction method provided by an embodiment of the invention;
FIG. 9 is a diagram illustrating another example of a client interaction method provided by an embodiment of the invention;
FIG. 10 is a diagram illustrating another example of a client interaction method provided by an embodiment of the invention;
fig. 11 shows a functional block diagram of a client interaction device according to an embodiment of the present invention.
Icon: 100-an electronic device; 110-a bus; 120-a processor; 130-a memory; 150-I/O module; 170 — a communication interface; 300-a client interaction device; 310-an acquisition module; 330-a processing module; 350-setting the module.
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 is noted that 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.
Fig. 1 is a block diagram of an electronic device 100 according to an embodiment of the invention. Electronic device 100 includes bus 110, processor 120, memory 130, I/O module 150, and communication interface 170.
Bus 110 may be circuitry that interconnects the above-described elements and passes communications (e.g., control messages) between the above-described elements.
The processor 120 may receive commands from the above-described other elements (e.g., the memory 130, the I/O module 150, the communication interface 170, etc.) through the bus 110, may interpret the received commands, and may perform calculations or data processing according to the interpreted commands.
The processor 120 may be an integrated circuit chip having signal processing capabilities. The Processor 120 may be a general-purpose Processor, including 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), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The memory 130 may store commands or data received from the processor 120 or other elements (e.g., the I/O module 150, the communication interface 170, etc.) or commands or data generated by the processor 120 or other elements.
The Memory 130 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 I/O module 150 may receive commands or data input from a user via input-output means (e.g., a sensor, a keyboard, a touch screen, etc.) and may transmit the received commands or data to the processor 120 or the memory 130 through the bus 110. And also for displaying various information (e.g., multimedia data, text data) received, stored, processed from the above-described elements, and may display video, images, data, etc. to a user.
Communication interface 170 may be used for communicating signaling or data with other node devices.
It is understood that the structure shown in fig. 1 is merely a schematic diagram of the structure of the electronic device 100, and that the electronic device 100 may include more or less components than those shown in fig. 1, or have a different configuration than that shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The electronic device 100 provided by the embodiment of the present invention may be a personal computer, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), or a netbook. The embodiments of the present invention do not limit this.
The client interaction method provided in the embodiment of the present invention is applied to the electronic device 100 shown in fig. 1, where a client is installed in the electronic device 100, and the client interaction method can be implemented by the client installed in the electronic device 100. It is understood that the client is a PC version of the application.
In the prior art, a WPF is usually used to design a window of a client, and in order to meet the requirement of beautifying the window, an AllowsTransparency attribute is generally used, and a value of the AllowsTransparency attribute is set to "True" to implement various irregular windows so as to meet the interaction with a user.
The window can be used for realizing different services, in the field of live broadcasting, animation or video playing is usually performed on the window, and through research and discovery of an applicant, the performance of the window is poor due to the use of the AllowTranslicensing attribute, and the situations such as excessive memory occupation and video jamming of the animation occur, so that the user experience is reduced.
Through research of the applicant, the WPF also provides another attribute, namely a WindowChrome attribute, and the performance of the window can be improved by using the attribute, and the performance comparison of the two attributes is shown in the following table 1.
TABLE 1
Figure BDA0003066313780000071
In table 1, the frame rate entry indicates the number of frames transmitted per second, the dirty region refresh rate entry indicates the update rate of the local region, and the video memory occupation entry indicates the size of the memory of the video card occupied. The higher the frame rate is, the higher the refresh rate of the dirty region is, the smaller the video memory occupation is, the better the window performance is, the better the smoothness of animation motion display or video playing is, that is, the better the display effect is.
As can be seen from table 1, the use of the WindowChrome attribute may result in a window having better performance than the use of the allwstransparency attribute. However, the use of the WindowChrome attribute may not satisfy the interaction requirements in some service scenarios. This is because windows using the WindowChrome attribute only have the property of being completely penetrated or not penetrated at all.
To facilitate understanding of penetration performance, an exemplary diagram is provided in the embodiments of the present invention. As shown in fig. 2, the window a and the window b are included, and the region c is the overlapping region of the window a and the window b, and the window a is on the surface of the window b.
When the window a has the penetrating performance, when interactive operation such as click operation is performed in the area c of the window a, the interactive operation can penetrate through the window a to reach the window b on the lower layer of the window a, and the window a does not respond to the point interactive operation, so that the window a can penetrate.
When the window a does not have the penetrating performance, when interactive operation such as click operation is performed in the area c of the window a, the interactive operation cannot penetrate through the window a and cannot reach the window b, and the window a cannot penetrate through the window b.
And for a window using the Windowchrome attribute, the window is completely penetrated to show that an interactive operation is performed in any area of the window, the interactive operation passes through the window, and the window does not respond to the interactive operation. The representation is not penetrated at all, and the interaction operation is performed in any area of the window, and the interaction operation does not pass through the window, so that the window needs to respond to the interaction operation. Since windows using the WindowChrome attribute only have completely penetrating and completely non-penetrating properties, the penetrating properties of any region thereof are the same, i.e., either all regions can penetrate or all regions cannot penetrate.
In some service scenarios, the interaction requirement of penetrating in the transparent area of the window and not penetrating in the non-transparent area of the window needs to be satisfied. The use of the WindowChrome attribute cannot be satisfied. And can be satisfied using the AllowsTransparency attribute.
Through the above analysis, the applicant finds that the window of the client can be set based on the two ways described above, so as to solve the problems existing in the prior art. The embodiment of the present invention provides a possible implementation manner for setting such a client window, and details of the setting steps will be described below with reference to fig. 3.
Step S212, a second window is created;
alternatively, a second window may be created through WPF, set using "allwstransmission" fire, "and configure attributes of the second window, such as a window size, a window position, and a window state.
Step S214, a first window is created according to the second window;
alternatively, a first window may be created from a second window that has already been created, the first window may be set using the WindowChrome attribute, while the attributes of the first window, such as the window size, the window position, and the window state, are set to the same attributes as the second window, and the first window may be set to be completely penetrated.
Step S216, configuring a service control in a first window;
step S218, configuring an agent control bound with the service control in a second window according to a preset binding relationship;
optionally, a layout manager may be used to configure the business control and the proxy control, possibly after the first window and the second window are created; creating a first layout manager for managing a business control of a first window; a second layout manager is created for managing an agent control for the second window.
Optionally, the business control may be configured in the first window through the first layout manager, the agent control is configured in the second window through the second layout manager, and the transparency of the agent control is set to 0.1, then the area where the agent control is located is a non-transparent area of the second window, and the other areas are transparent areas of the second window.
It should be noted that each service control and each agent control have a preset binding relationship, and when the second layout manager configures the agent control in the second window, the agent control and the corresponding service control need to be bound, so that the agent control can call the interactive processing function of the service control.
Based on the above steps, a first window is created and an AllowTranslicensing attribute is adopted, a second window is created and a Windowchrome attribute is adopted, the two windows are applied to a window of a client, the first window can be used for displaying animation or playing video, the second window can be used for realizing interaction with a user, the performance of the window of the client can be further improved, and the interaction experience of the user can be further improved.
The client interaction method provided by the embodiment of the present invention will be described below based on the above-mentioned client window. Please refer to fig. 4, which is a flowchart illustrating a client interaction method according to an embodiment of the present invention.
Step S202, when the interactive operation is executed in a first window, the target position of the interactive operation in the first window is obtained;
the first window and the second window are windows in the same client side, the two windows are completely overlapped, and the first window is arranged on the surface of the second window. The first window is a window using the attribute of the Windows chrome, and the penetration performance of the first window is complete penetration; the second window is a window using the allwstransparency attribute.
Optionally, when the user performs an interactive operation on the first window through the mouse, a position of the interactive operation on the first window may be obtained, where the position is the target position.
It should be noted that the interactive operation may be an operation implemented by an external device or a touch screen; the interactive operation may be clicking, sliding, and the like, and the embodiments of the present invention are not limited.
Step S204, when the target position is in the non-transparent area of the second window, a target agent control is obtained;
the second window comprises a non-transparent area and a transparent area, and the second window comprises an agent control, wherein the agent control is arranged in the non-transparent area of the second window.
Optionally, the first window is completely transparent, so the interaction may pass through the first window to reach a second window underlying the first window, and the first window does not respond to the interaction.
It can be understood that the second window supports penetration in the transparent region and non-penetration in the non-transparent region, and according to the position of the interactive operation, whether the target position is in the transparent region or the non-transparent region of the second window can be judged.
When the target position is in the non-transparent area of the second window, the position of the interactive operation cannot pass through the second window, and the second window needs to process the interactive operation. The proxy control can acquire a proxy control in the non-transparent area of the second window, and the proxy control is the target proxy control.
Step S206, determining a target service control bound with the target agent control according to a preset binding relationship;
the first window comprises a business control, and the business control refers to a control with an interactive function.
The preset binding relationship represents the preset binding relationship between each service control and each control.
Optionally, according to the preset binding relationship and the target agent control, a service control having a binding relationship with the target agent control can be determined, and the control is the target service control.
Step S208, responding to the interactive operation according to the target service control;
optionally, the target service control has an interactive function, and may respond to the interactive operation according to the interactive function.
Therefore, based on the design, when the interactive operation is executed on the first window of the client, the target position of the interactive operation on the first window is obtained; when the target position is in the non-transparent area of the second window, obtaining a target agent control; then, according to the target agent control and a preset binding relationship, a target service control is obtained; and finally, responding to the interactive operation according to the target service control. Compared with the prior art, the method only adopts one window, the two windows are adopted, the first window has good performance, and the second window is used for realizing interaction, so that the service requirement can be met, the performance of the window can be improved, the display effect is improved, and a user can enjoy better interaction experience.
To facilitate understanding of the client interaction method provided by the embodiment of the present invention, an exemplary diagram is provided in the embodiment of the present invention, and fig. 5 is an exemplary diagram of a client window for viewing a live broadcast. It should be noted that the window includes two windows, namely the first window and the second window, and the two windows are completely overlapped, and the first window is suspended on the surface of the second window.
The window comprises a video selection area, a video information area and a message announcement area, wherein the video information area comprises a main broadcasting information sub-area, a video playing sub-area and a gift recharging sub-area.
The video selection area is used for displaying the classification information of the videos, and when the interactive operation of the user in the area is acquired, the videos played by the video playing sub-areas can be replaced.
The video information area is used for displaying relevant information of the video. The anchor personal information such as an avatar, a rating and the like can be displayed in the anchor information sub-area, and a subscription control is also provided, so that when the interactive operation of the user in the subscription control is acquired, the information of the anchor can be added or deleted in the personal information of the user.
The video playing sub-area is used for playing live video, and optionally, the sub-area further includes a playing control, a bullet screen control, a sharing control, a reporting control, and the like.
The gift recharging sub-area comprises a gift control, a recharging control and the like, and when the interactive operation of the user on the gift control is acquired, the animation of the virtual gift can be displayed in the gift display sub-area of the message announcement area.
The message announcement area is used for displaying information announcements of the main broadcasting room, such as chat information sent by audiences, announcement announcements of a live broadcasting room and the like. It will be appreciated that the gift-presentation sub-area is used to present informational notifications when animation of the virtual gift is not presented.
A possible implementation manner of the client interaction method provided by the embodiment of the present invention will be described below based on the client window shown in fig. 5. Referring to fig. 6 and 7 in combination, fig. 7 is a diagram illustrating an embodiment of the present invention.
Referring to fig. 6, in step S202, when the interactive operation is performed on the first window, the target position of the interactive operation on the first window is obtained.
As shown in (c1) in fig. 7, the video playback sub-area may display a bullet screen icon, where the content of the bullet screen icon may be text information sent by the user, and when the user clicks the bullet screen icon through a mouse, the position of the click operation in the first window, that is, the target position, is obtained, and since the first window is completely penetrated, the click operation passes through the first window.
Step S204, when the target position is in the non-transparent area of the second window, traversing the proxy control through the second layout manager, and taking the proxy control corresponding to the target position as the target proxy control;
optionally, whether the target position is in a non-transparent area of the second window is judged, when the target position is in the non-transparent area of the second window, the click operation does not pass through the second window, the second window is distributed to the second layout manager through a route, the second layout manager performs message routing, the proxy control is traversed, the proxy control intersected with the target position is determined, and the target proxy control, namely the bullet screen proxy control, is obtained.
Step S206, determining a target service control bound with the target agent control according to a preset binding relationship;
optionally, the barrage service control bound with the barrage agent control can be determined according to the preset binding relationship, and the interactive processing function of the barrage service control is called.
S208-1, obtaining an execution result according to the interactive function of the target service control;
step S208-3, the second layout manager responds to the interactive operation according to the execution result;
for example, the interactive function of the bullet screen service control is to determine whether there is a bullet screen at the current position. If yes, processing and displaying a reporting information bar; if not, not processing.
Optionally, when the bullet screen service control determines that the bullet screen exists at the current position, the obtained execution result is True, which indicates that processing is required, and the second layout manager displays a report information bar in the window according to the obtained execution result, as shown in (c2) in fig. 7.
Optionally, when the bullet screen service control determines that there is no bullet screen in the current position, the obtained execution result is False, which indicates that no processing is required, and after the second layout manager obtains the execution result, no response is made to the click operation.
Fig. 8 is a diagram illustrating another example provided by the embodiment of the present invention. As shown in (d1) of fig. 8, the gift icon is included in the sub-area of the gift-charging area, and when the user clicks the gift icon with a mouse, the click operation is acquired at the position of the first window, i.e., the target position.
Through the same steps as the above embodiment, the gift service control bound with the gift agent control is obtained. The function of the gift service control is to determine whether to display a gift animation. The gift service control obtains an execution result as processing according to the judgment; the second layout manager displays the gift animation in the gift-presentation sub-area according to the execution result, as shown in (d2) of fig. 8.
It can be understood that the interactive function of the service control can be designed according to the service requirement, and the embodiment of the present invention is not limited. Optionally, when the execution result is not processed according to the interactive function of the service control, the second layout manager may continue to route the next service control according to the execution result, and respond to the interactive operation according to the execution result of the next service control.
It can be understood that, in order to keep the interaction operation consistent with the actually acquired agent control and service control, the situation that the interaction operation is inconsistent with the response function is avoided. Furthermore, the embodiment of the invention provides a possible implementation mode.
A window binding event between the first window and the second window may be created, and when the window property of the second window changes, the window binding event is triggered, so that the window property of the first window and the window property of the second window are consistent. The window attributes include window size, window position, and window state.
An exemplary diagram is given as fig. 9, taking the window state as an example. When a user clicks the minimized icon through a mouse, interactive operation is detected on the minimized control; then, the window state of the second window is modified into a minimized state, the window property of the second window is changed, and then a window binding event is triggered; and according to the window binding event, setting the window state of the first window into a minimized state, so that the window property of the first window is consistent with that of the second window.
It can be understood that the business control has an interactive function, and in order to keep the interactive operation consistent with the function of the response, the business control and the proxy control which have a binding relationship also need to be kept consistent. Furthermore, the embodiment of the invention provides a possible implementation mode.
The second window has a second layout manager for managing the agent controls, including managing graphical attributes of the agent controls. The first window has a first layout manager for managing business controls, including managing graphical attributes of the business controls. The graphic attributes of the control comprise the size of the control, the position of the control, the hierarchy of the control, the relationship between the control and the window and the like.
A binding event may be created for the first layout manager with the second layout manager. And when the graphic property of the proxy control changes, triggering the binding event, and enabling the graphic property of the business control bound with the proxy control to also change through the first manager and keep consistent with the graphic property of the proxy control.
An example diagram illustrating the hierarchy of controls is given in fig. 10. It will be appreciated that the hierarchy of controls represents the order in which the controls respond. The hierarchy of the controls can be changed by setting the ZOrder value, which is a smaller preferred response.
As shown in (e1) in fig. 10, the video playing sub-area plays the video, the ZOrder value of the playing proxy control is 2, the ZOrder value of the playing service control bound to the playing proxy control is also 2, and the video playing sub-area does not display the playing icon corresponding to the playing service control.
When an interactive operation such as a sliding operation is detected in the video playing sub-area, the ZOrder value of the playing agent control is changed to 1, the level of the playing agent control is changed, and then a binding event is triggered; and according to the triggering binding event, setting the ZOrder value of the playing service control to be 1 through the first layout manager, so that the hierarchy of the playing service control is consistent with that of the playing agent control. The play icon is displayed in the video play sub-area, as shown in fig. 10 (e 2).
In order to execute the corresponding steps in the above embodiments and various possible manners, an implementation manner of the client interaction device is provided below, please refer to fig. 11, and fig. 11 is a functional block diagram of the client interaction device 300 provided in the present application. It should be noted that the basic principle and the generated technical effect of the client interaction device 300 provided in the present application are the same as those of the foregoing embodiments, and for the sake of brief description, no part of this embodiment is mentioned, and details are not repeated here, and reference may be made to corresponding contents in the foregoing embodiments. The client interaction device 300 comprises: an acquisition module 310 and a processing module 330.
An obtaining module 310, configured to obtain a target position of an interactive operation in a first window when the interactive operation is performed in the first window; the first window is suspended over the second window.
The processing module 330 is configured to obtain a target agent control when the target location is in the non-transparent area of the second window; the target agent control belongs to the agent control; the target agent control is in a non-transparent region of the second window.
The client interaction device 300 further comprises a setup module 350 for creating a second window; creating a first window according to a second window; configuring a business control in a first window; and configuring the proxy control bound with the service control in the second window according to the preset binding relationship.
Optionally, the processing module 330 is further configured to, when the target location is in the non-transparent area of the second window, traverse the proxy control through the second layout manager, and take the proxy control corresponding to the target location as the target proxy control.
Optionally, the processing module 330 is further configured to obtain an execution result according to the interaction function of the target service control; the second layout manager responds to the interactive operation according to the execution result.
Optionally, the processing module 330 is further configured to keep the window attribute of the first window consistent with the window attribute of the second window when the window attribute of the second window changes.
Optionally, the processing module 330 is further configured to, when the graphic attribute of the first proxy control changes, keep the graphic attribute of the first business control consistent with the graphic attribute of the first proxy control through the first layout manager and the second layout manager; the first business control and the first proxy control have a preset binding relationship; the first proxy control is any one proxy control.
The invention further provides an electronic device, which includes a processor 120 and a memory 130, where the memory 130 stores a computer program, and when the processor executes the computer program, the client interaction method disclosed in the above embodiment is implemented.
The embodiment of the present invention further provides a storage medium, on which a computer program is stored, and when the computer program is executed by the processor 120, the client interaction method disclosed by the embodiment of the present invention is implemented.
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.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to 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.

Claims (10)

1. The client interaction method is applied to electronic equipment, wherein the electronic equipment comprises a client, the client comprises a first window and a second window, and the first window comprises a business control; the second window comprises an agent control; the service control and the agent control have a preset binding relationship, and the method comprises the following steps:
when the interactive operation is executed on the first window, acquiring the target position of the interactive operation on the first window; the first window is suspended above the second window;
when the target position is in the non-transparent area of the second window, acquiring a target agent control; the target agent control belongs to the agent control; the target agent control is in a non-transparent area of the second window;
determining a target service control bound with the target agent control according to the preset binding relationship; the target business control has an interactive function;
and responding to the interactive operation according to the target service control.
2. The method of claim 1, wherein the second window has a second layout manager, and wherein obtaining a target agent control when the target location is in a non-transparent region of the second window comprises:
and traversing the proxy control through the second layout manager when the target position is in the non-transparent area of the second window, and taking the proxy control corresponding to the target position as the target proxy control.
3. The method of claim 2, wherein the step of responding to the interaction operation according to the target business control comprises:
obtaining an execution result according to the interactive function of the target service control;
and the second layout manager responds to the interactive operation according to the execution result.
4. The method of claim 1, further comprising:
when the window attribute of the second window is changed, the window attribute of the first window is consistent with the window attribute of the second window.
5. The method of claim 2, wherein the first window has a first layout manager, the method further comprising:
when the graphic attribute of the first proxy control changes, the graphic attribute of the first business control is consistent with the graphic attribute of the first proxy control through the first layout manager and the second layout manager; the first business control and the first proxy control have the preset binding relationship; the first proxy control is any one of the proxy controls.
6. The method of claim 1, wherein prior to the step of obtaining the target position of the interaction operation in the first window when the interaction operation is performed in the first window, the method further comprises:
creating the second window;
creating the first window according to the second window;
configuring the business control in the first window;
and configuring an agent control bound with the service control in the second window according to the preset binding relationship.
7. The client interaction device is applied to electronic equipment, wherein the electronic equipment comprises a client, the client comprises a first window and a second window, and the first window comprises a business control; the second window comprises an agent control; the business control and the agent control have a preset binding relationship, and the device comprises:
the acquisition module is used for acquiring the target position of the interactive operation in the first window when the interactive operation is executed in the first window; the first window is suspended above the second window;
the processing module is used for acquiring a target agent control when the target position is in the non-transparent area of the second window; the target agent control belongs to the agent control; the target agent control is in a non-transparent area of the second window;
determining a target service control bound with the target agent control according to the preset binding relationship; the target business control has an interactive function;
and responding to the interactive operation according to the target service control.
8. The apparatus of claim 7, further comprising:
a setting module for creating the second window; creating the first window according to the second window; configuring the business control in the first window; and configuring an agent control bound with the service control in the second window according to the preset binding relationship.
9. An electronic device, comprising a processor and a memory, the memory storing a computer program that, when executed by the processor, implements the method of any of claims 1 to 6.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.
CN202110528829.9A 2021-05-14 2021-05-14 Client interaction method, device, electronic equipment and storage medium Active CN113126855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110528829.9A CN113126855B (en) 2021-05-14 2021-05-14 Client interaction method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110528829.9A CN113126855B (en) 2021-05-14 2021-05-14 Client interaction method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113126855A true CN113126855A (en) 2021-07-16
CN113126855B CN113126855B (en) 2023-05-12

Family

ID=76782199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110528829.9A Active CN113126855B (en) 2021-05-14 2021-05-14 Client interaction method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113126855B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130104065A1 (en) * 2011-10-21 2013-04-25 International Business Machines Corporation Controlling interactions via overlaid windows
CN106445278A (en) * 2016-08-31 2017-02-22 冠捷显示科技(厦门)有限公司 Control method of transparent suspension window
CN107423050A (en) * 2017-04-28 2017-12-01 广州酷狗计算机科技有限公司 A kind of method and apparatus for penetrating operation
US20190012987A1 (en) * 2016-02-01 2019-01-10 Alibaba Group Holding Limited Method and system for playing multimedia data
CN111240678A (en) * 2020-01-13 2020-06-05 网易(杭州)网络有限公司 Setting method and device of pop-up window, electronic equipment and storage medium
CN111353686A (en) * 2020-01-17 2020-06-30 北京优联信驰信息科技有限公司 Micro-task control method, computer-readable storage medium, computer program, and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130104065A1 (en) * 2011-10-21 2013-04-25 International Business Machines Corporation Controlling interactions via overlaid windows
US20190012987A1 (en) * 2016-02-01 2019-01-10 Alibaba Group Holding Limited Method and system for playing multimedia data
CN106445278A (en) * 2016-08-31 2017-02-22 冠捷显示科技(厦门)有限公司 Control method of transparent suspension window
CN107423050A (en) * 2017-04-28 2017-12-01 广州酷狗计算机科技有限公司 A kind of method and apparatus for penetrating operation
CN111240678A (en) * 2020-01-13 2020-06-05 网易(杭州)网络有限公司 Setting method and device of pop-up window, electronic equipment and storage medium
CN111353686A (en) * 2020-01-17 2020-06-30 北京优联信驰信息科技有限公司 Micro-task control method, computer-readable storage medium, computer program, and electronic device

Also Published As

Publication number Publication date
CN113126855B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
US10324619B2 (en) Touch-based gesture recognition and application navigation
US8645849B2 (en) Method and apparatus for providing portioned web pages in a graphical user interface
US20180034874A1 (en) Systems and methods for interactive broadcasting
KR20210019111A (en) Method and apparatus for displaying a chat room associated with a messenger application
JP2019521547A (en) System and method for presenting content
US10007810B2 (en) Alternate screen reveal for instant privacy
JP6921842B2 (en) Systems and methods for presenting content
WO2014150429A1 (en) Systems and methods for aggregating information and providing access to multiple web services through an interactive user interface
CN113286201B (en) Recommendation information display method and device, electronic equipment and storage medium
US11150865B2 (en) Systems and methods to optimize music play in a scrolling news feed
KR102376079B1 (en) Method and system for viewing embedded video
CN110798394A (en) Instant messaging message display method and device
US20160041723A1 (en) Systems and methods for manipulating ordered content items
US10007419B2 (en) Touch-based gesture recognition and application navigation
US20180321827A1 (en) Methods and Systems for Viewing Embedded Content
US20190206102A1 (en) Systems and methods for enhancing content
CN113126855B (en) Client interaction method, device, electronic equipment and storage medium
US20160041722A1 (en) Systems and methods for processing orders of content items
US10680992B2 (en) Systems and methods to manage communications regarding a post in a social network
US10511644B2 (en) Joining executable component to online conference
CN112799558A (en) Information processing method, information processing device, electronic equipment and storage medium
CN115934974A (en) Multimedia data processing method, device, equipment and medium
US20180181268A1 (en) Systems and methods for providing content
US20180225859A1 (en) Systems and methods for rendering content
CN112965778B (en) Chat page display method, chat page display device, electronic equipment and computer readable medium

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