Display device and control response method
By configuring the controller on the smart TV to respond to the focus movement operation and generate an execution failure prompt, the problem of users misunderstanding the focus movement is solved and the user experience is improved.
Patent Information
- Application Number
- CN202311022275.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2024-10-22
AI Technical Summary
When viewing the after-school exercise content of an H5 webpage on a smart TV, users may mistakenly believe that the display device does not respond to the focus movement operation because they are not clear about the boundaries of the webpage, resulting in a poor user experience.
By configuring the controller in the display device, respond to the focus movement operation, and generate a prompt indicating that the focus movement operation failed when the focus does not switch and the position does not change, such as through a control jitter animation, to ensure that the user understands that the boundary of the web page has been reached.
It improves the user experience, prevents users from misunderstanding that the display device does not respond to the focus movement operation, and improves the user interaction experience.
Smart Images

Figure CN118819699A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a display device and a control response method. Background Art
[0002] With the rapid development of Internet education, people can now search for a large number of educational videos on display devices such as smart TVs for online learning. In order to improve the learning effect, the display device is configured to display some H5 web pages with after-class exercises. Users can use the remote control to control the controls on the H5 web page to answer questions. Since the display size of the H5 web page is usually different from the display size of the smart TV, the smart TV cannot display all the web page content at once. The user needs to use the direction keys of the remote control to adjust the control where the focus of the display device is located to view different display areas of the H5 web page. During the adjustment process, when the focus of the display device is on the control closest to one of the web page boundaries, the user may continue to move the focus toward the web page boundary because he is not clear about the web page boundary of the H5 web page. At this time, the display device will not respond to the user's control, which will bring a bad user experience to the user. Summary of the invention
[0003] In order to improve the control response experience of H5 pages, the present application provides a display device and a control response method.
[0004] In a first aspect, the present application provides a display device, the display device comprising:
[0005] monitor;
[0006] A controller is communicatively connected to the display, and the controller is configured to:
[0007] In response to an operation of entering an after-class exercise webpage, controlling the display to display the after-class exercise webpage, and determining a first control to acquire focus;
[0008] In response to a focus moving operation, executing the focus moving operation and determining a second control that acquires the focus;
[0009] If the second control and the first control are the same control, when the control position of the second control is the same as the control position of the first control, generating and controlling the display to display a prompt indicating that the focus moving operation fails to be executed;
[0010] If the second control and the first control are different controls, no prompt indicating that the focus moving operation has failed is generated.
[0011] In some embodiments, determining the first control that acquires focus includes:
[0012] The control identifier, control type, and control position of the first control that acquires the focus are determined, wherein the control type includes a first type that indicates that the first control is a scroll bar control and a second type that indicates that the first control is not the scroll bar control.
[0013] In some embodiments, when the position of the second control is the same as the control position of the first control, generating and controlling the display to display a prompt indicating that the focus moving operation fails to execute includes:
[0014] When the position of the second control is the same as the position of the first control and the control type of the second control is the first type, determining the control position of the second control, and when the control position of the second control is the same as the control position of the first control, generating and controlling the display to display a prompt indicating that the focus moving operation has failed to be executed;
[0015] In some embodiments, the controller is further configured to:
[0016] When the position of the second control is the same as the position of the first control and the control type of the second control is the second type, the display is generated and controlled to show a prompt indicating that the focus moving operation has failed to execute.
[0017] In some embodiments, determining the control position of the first control that obtains the focus includes:
[0018] The control position of the first control is obtained according to a focus event generated by the first control after acquiring focus.
[0019] In some embodiments, determining the second control that acquires the focus includes:
[0020] The control identifier, control type and control position of the second control that acquires the focus are determined, wherein the control type includes a first type that indicates that the second control is a scroll bar control and a second type that indicates that the first control is not the scroll bar control.
[0021] In some embodiments, determining the control position of the second control that acquires the focus includes:
[0022] When the control identifier of the second control is the same as the control identifier of the first control, the control position of the second control is obtained through the getBoundingClientRect method.
[0023] In some embodiments, generating a prompt indicating that the focus moving operation failed to execute includes:
[0024] When the focus moving operation is a horizontal focus moving operation, generating an animation of the first control shaking horizontally;
[0025] Or when the focus moving operation is a vertical focus moving operation, an animation of the first control shaking vertically is generated.
[0026] In a second aspect, the present application provides a control response method, the method comprising:
[0027] In response to an operation of entering an after-class exercise webpage, controlling the display to display the after-class exercise webpage, and determining a first control to acquire focus;
[0028] In response to a focus moving operation, executing the focus moving operation and determining a second control that acquires the focus;
[0029] If the second control and the first control are the same control, when the control position of the second control is the same as the control position of the first control, generating and controlling the display to display a prompt indicating that the focus moving operation fails to be executed;
[0030] If the second control and the first control are different controls, no prompt indicating that the focus moving operation has failed is generated.
[0031] In some embodiments, generating a prompt indicating that the focus moving operation failed to execute includes:
[0032] When the focus moving operation is a horizontal focus moving operation, generating an animation of the first control shaking horizontally;
[0033] Or when the focus moving operation is a vertical focus moving operation, an animation of the first control shaking vertically is generated. The beneficial effects of the display device and control response method provided by the present application include:
[0034] The present application determines the control where the focus is and the control position after receiving and executing the focus movement operation. When the control where the focus is located has not switched and the control position has not changed, a prompt indicating that the focus movement operation has failed is generated. When the control where the focus is located switches or the control position changes, a prompt indicating that the focus movement operation has failed is not generated. This solves the problem of users mistakenly believing that the display device does not respond to the focus movement operation, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0036] Figure 1Schematic diagram of an operation scenario between a display device and a control device according to some embodiments is exemplarily shown in FIG.
[0037] Figure 2 exemplarily shows a hardware configuration block diagram of a control device 100 according to some embodiments;
[0038] Figure 3 exemplarily shows a hardware configuration block diagram of a display device 200 according to some embodiments;
[0039] Figure 4 exemplarily shows a schematic diagram of software configuration in a display device 200 according to some embodiments;
[0040] Figure 5 exemplarily shows a schematic diagram of a home page of a video-on-demand program according to some embodiments;
[0041] Figure 6 A flowchart of a control response method according to some embodiments is exemplarily shown in FIG.
[0042] Figure 7 exemplarily shows a schematic diagram of the interaction timing between a control device and a display device according to some embodiments;
[0043] Figure 8 Schematic diagram of an after-class exercise page according to some embodiments is exemplarily shown in FIG.
[0044] Fig. 9 Schematic diagrams showing control locations according to some embodiments are exemplarily shown in FIG.
[0045] Fig.10 Schematic diagram of horizontal jitter of controls according to some embodiments is exemplarily shown in FIG.
[0046] Fig.11 Schematic diagram of focus switching according to some embodiments is exemplarily shown in FIG.
[0047] Fig.12 Schematic diagram of vertical jitter of controls according to some embodiments is exemplarily shown in FIG.
[0048] Fig.13 Schematic diagrams of adjusting the position of controls according to some embodiments are exemplarily shown in FIG.
[0049] Fig.14 A schematic diagram of focus switching according to some embodiments is exemplarily shown in FIG. DETAILED DESCRIPTION
[0050] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0051] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0052] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0053] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0054] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 This is a specific implementation of the display device of the present application.
[0055] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .
[0056] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.
[0057] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on the smart device.
[0058] In some embodiments, the display device may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.
[0059] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.
[0060] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.
[0061] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive input operation instructions from the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200.
[0062] like Figure 3 The display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0063] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output.
[0064] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from the controller, and display video content, image content, and menu control interface components and user control UI interface.
[0065] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.
[0066] The communicator 220 is a component for communicating with an external device or server according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
[0067] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote controller, etc.).
[0068] The detector 230 is used to collect signals from the external environment or the external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0069] The external device interface 240 may include, but is not limited to, any one or more of the following: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.
[0070] The tuner-demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
[0071] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0072] The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 can perform operations related to the object selected by the user command.
[0073] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (Random Access Memory, RAM), a ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.
[0074] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.
[0075] "User interface" is the medium interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of user interface is the Graphical User Interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.
[0076] See also Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0077] In some embodiments, at least one application is running in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. provided by the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0078] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.
[0079] like Figure 4 As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (Location Manager) is used to provide system services or applications with access to system location services; a package manager (Package Manager) is used to retrieve various information related to the application package currently installed on the device; a notification manager (NotificationManager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop components on the user interface.
[0080] In some embodiments, the activity manager is used to manage the life cycle of each application and the common navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).
[0081] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.
[0082] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0083] The hardware or software architecture in some embodiments may be based on the introduction in the above embodiments, and in some embodiments may be based on other similar hardware or software architectures, so as to implement the technical solution of the present application.
[0084] In some embodiments, the application of the application layer includes a video-on-demand program, and the display device can be configured to enter the video-on-demand program after booting.
[0085] See also Figure 5 The home page of the video-on-demand program is provided with a navigation bar 510 and a content display area 520 located below the navigation bar 510. The navigation bar 510 is used to display multiple title controls, such as VIP controls, education controls, and film and television controls. When the user moves the focus of the display device 200 between multiple title controls, the content display area 520 displays the recommended content corresponding to the focused title control. When the focus is on one of the title controls, the page displayed by the display device 200 is the home page corresponding to the title control.
[0086] For example, when the focus moves to the education control in the navigation bar 510, the current page can be called the education homepage. When the education homepage is changed, a plurality of media resource recommendation controls 521 are displayed in the content display area 520, and each media resource recommendation control 521 corresponds to a course media resource, such as Figure 5 As shown, media resource 1, media resource 2, media resource 3, media resource 4, media resource 5 and media resource 6 are all different course media resources.
[0087] In some embodiments, in order to improve the learning effect of course media resources, the operator configures after-class exercise data for some course media resources, and these course media resources can automatically jump to the after-class exercise page after playing.
[0088] In some embodiments, some after-class exercise pages are H5 web pages. When the display device 200 displays the H5 web page, the user usually operates the H5 web page through the control device 100, such as a remote control, for example, moving the focus from one control on the H5 page to another control. When the focus of the display device moves to the control closest to one of the web page boundaries, the user may continue to move the focus toward the web page boundary because he is not clear about the web page boundary of the H5 web page. At this time, the display device will not respond to the user's operation. The user may mistakenly believe that the display device 200 has not received the signal from the control device 100 and continue to try to move the focus. Often, after multiple failed attempts, the user will realize that he has reached the web page boundary, which is a poor user experience.
[0089] To solve the above technical problems, the present application provides a control response method, see Figure 6 , the method may include the following steps:
[0090] Step S101: in response to an operation of entering an after-class exercise webpage, controlling the display to display the after-class exercise webpage, and determining a first control to acquire focus.
[0091] In some embodiments, the operation of entering the after-class exercise webpage may be an automatic jump operation of the display device after the course media asset is played. After the display device finishes playing the course media asset, it may obtain the URL of the after-class exercise webpage according to the after-class exercise data associated with the course media asset, load the URL, and generate the after-class exercise webpage, wherein the after-class exercise data may be included in the details page data of the course media asset, and the after-class exercise webpage is an H5 webpage.
[0092] In some embodiments, the course media resource details page or play page is provided with an after-class exercise control, and the user triggering the after-class exercise control can be an operation of entering the after-class exercise webpage. The display device obtains the URL of the after-class exercise webpage according to the after-class exercise control being triggered, loads the URL, and generates the after-class exercise webpage.
[0093] In some embodiments, the after-class exercise webpage is provided with a plurality of operable controls, and the focus of the display device is configured to be located by default on the first operable control in the upper left corner of the after-class exercise webpage, which control is referred to as the first control.
[0094] In some embodiments, the controls of the after-class exercise webpage include two types of controls: scroll bar controls and non-scroll bar controls, wherein the scroll bar controls may be referred to as first type controls, including horizontal scroll bar controls and vertical scroll bar controls, and the non-scroll bar controls may be referred to as second type controls, such as return controls. When the scroll bar control acquires focus, the user may control the scroll bar control to move, such as controlling the vertical scroll bar control to move up and down, wherein each scroll bar control is configured with a scrolling area, the scroll bar control moves within its scrolling area, and cannot move any further when reaching the end of the scrolling area, and when the non-scroll bar control acquires focus, the user cannot control the non-scroll bar control to move.
[0095] Step S102: In response to a focus moving operation, executing the focus moving operation, and determining a second control that acquires the focus.
[0096] In some embodiments, when the user wants to manipulate controls other than the first control on the after-class exercise web page, or wants to view web page content that is not displayed on the current screen, the user can input a focus movement operation through the direction keys of the remote control to move the focus of the display device to other operable controls.
[0097] For example, the user can press the right direction button of the remote control, and the display device determines whether there is an operable control on the right side of the first control. If so, the focus is moved to the control on the right side of the first control. If not, the focus is not moved.
[0098] After the display device completes the focus moving operation, the control where the focus is located can be called the second control, and the display device can determine whether the second control is still the first control.
[0099] Step S103: If the second control and the first control are the same control, when the control position of the second control is the same as the control position of the first control, generate and control the display to display a prompt indicating that the focus moving operation has failed.
[0100] In some embodiments, all controls on the after-class exercise webpage are provided with control identifiers, and based on the control identifiers, it can be determined whether the second control where the focus is located is the first control where the focus was located before the user inputted the focus moving operation.
[0101] In some embodiments, if the control identifiers of the second control and the first control are the same, it indicates that after the display device performs the focus moving operation, the focus is still on the first control. The reasons are as follows:
[0102] 1. After receiving the focus moving operation, the display device detects that the first control is a non-scroll bar control, and no control that can obtain focus is detected in the moving direction of the first control corresponding to the focus moving operation on the after-class exercise webpage. At this time, the display device does not switch the control where the focus is located, nor does it adjust the position of the control where the focus is located. For example, there is no control that can obtain focus above the first control. When the focus is on the first control, the focus moving operation input by the user is a pressing operation of the up direction key. After the user inputs the operation, the focus will still remain on the first control.
[0103] 2. After receiving the focus movement operation, the display device detects that the first control is a scroll bar control, and the first control has not reached the boundary corresponding to the moving direction of the focus movement operation. At this time, the display device does not switch the control where the focus is located, but adjusts the position of the control where the focus is located along the moving direction of the focus movement operation. For example, the first control is a scroll bar control, regardless of whether there is a control that can obtain the focus above the first control, when the focus is on the first control and the first control has not reached the bottom of the scrolling area of the first control, the focus movement operation input by the user is a pressing operation of the down direction key, then after the user inputs the operation, the focus will still remain on the first control, but the position of the first control will be translated downward.
[0104] Therefore, after determining that the second control and the first control are the same control, the display device can compare the positions of the second control and the first control. If the control position of the second control is the same as the control position of the first control, it can be determined that the focus movement operation has failed. In order to prompt the user that the reason why the display device does not switch the control with focus or adjust the position of the control with focus is not due to not receiving the user's focus movement operation, the display device can generate and control the display to show a prompt indicating that the focus movement operation has failed.
[0105] Step S104: If the second control and the first control are different controls, no prompt indicating that the focus moving operation has failed is generated.
[0106] In some embodiments, after the display device determines that the second control and the first control are the same control, it can compare the positions of the second control and the first control. If the control position of the second control is different from the control position of the first control, it can be determined that the focus movement operation is successfully executed, and the display is not generated and controlled to show a prompt indicating that the focus movement operation has failed.
[0107] It can be seen from the above embodiments that the present application determines the control where the focus is and the control position after receiving and executing the focus movement operation, and generates a prompt indicating that the focus movement operation has failed when the control where the focus is located has not switched and the control position has not changed. When the control where the focus is located switches or the control position changes, no prompt indicating that the focus movement operation has failed is generated, thereby solving the problem of users mistakenly believing that the display device does not respond to the focus movement operation and improving the user experience.
[0108] To further illustrate the above control response method executed by the display device, the following describes the interaction process between the control device and the display device and the interface diagram of the display device.
[0109] See also Figure 7 , is a schematic diagram of the interaction timing between the control device and the display device according to some embodiments, such as Figure 7 As shown, the display device is provided with a webview (web page view) component and an education component, wherein the web page view component is used to display the after-class exercise page and refresh the page data of the after-class exercise page according to the user operation, and the education component is used to analyze the user operation and the page data of the after-class exercise page, and update the after-class exercise page according to the user operation and the page data of the after-class exercise page to realize auxiliary response to the user operation.
[0110] like Figure 7As shown, in some embodiments, the user can input an entry operation of the after-class exercise page through the control device, for example, the user triggers the after-class exercise control through the control device on the details page of the course media resource. The web view component loads the after-class exercise page according to the entry operation of the after-class exercise page and according to the page data of the after-class exercise page, wherein the page data of the after-class exercise page can be obtained from the server.
[0111] In some embodiments, the web page view component is configured to focus the display device on a control on the after-class exercise page, such as the first control, after the after-class exercise page is loaded.
[0112] See also Figure 8 , is a schematic diagram of an after-class exercise page according to some embodiments, such as Figure 8 As shown, the operable controls on the after-class exercise page include button A, button B, button C, button D, and button E. Among them, the button category can be determined based on the control properties: the control properties of button A, button B, button C, and button D include the isFixed property, and the value of the isFixed property is false, which means that button A, button B, button C, and button D are not in the scrolling area and are all non-scroll bar controls; the control properties of button E include the isFixed property, and the value of the isFixed property is true, which means that button E is in the scrolling area and is a scroll bar control.
[0113] After the web view component loads the after-class exercise page, the focus is set on button A by default.
[0114] In some embodiments, in order to obtain the user's operation on the control device, the education component can be configured to set a key listener, which can be configured to monitor the control device operation events received by the display device to obtain the keys operated by the user on the control device.
[0115] In some embodiments, when the after-class exercise page is displayed in the foreground of the display device, if the user operates the control device, the document keydown event of the web view component will be triggered. The parameter of the document keydown event includes the unique identification code of the key of the control device operated by the user.
[0116] Exemplarily, the unique identifiers of some buttons on the control device are as follows: up direction key: 38, down direction key: 40, left direction key: 37, right direction key: 39, confirm key: 13, return key: 27.
[0117] The key listener can determine the key of the control device operated by the user by monitoring the document keydown event of the web view component.
[0118] In some embodiments, when a user controls the focus of a display device to switch between operable controls through a control device, the focus will move out of one control and focus on another control. The movement of focus out will trigger the onblur event of the control; the movement of focus in will trigger the onfocus event of the control. Whenever the onfocus event is triggered, the control position of the current control can be stored.
[0119] See also Fig. 9 When button A gets the focus, according to the onfocus event of button A, the control position of button A can be obtained as (xa1, ya1), where xa1 is the distance between the left border of button A and the left border of the display screen, and ya1 is the distance between the upper border of the control where button A is located and the upper border of the display screen, which can be the number of pixels.
[0120] After the educational component obtains the control position of button A, it can set the focus position. The focus position may include two parameters: one is the control identifier of the control where the focus is, such as the control ID, and the other is the control position (x, y) of the control where the focus is, where x is the distance between the left border of the control where the focus is and the left border of the display screen, and y is the distance between the upper border of the control where the focus is and the upper border of the display screen, which can be the number of pixels. The educational component can set the focus position to: {ID A , (xa1, ya1)}, where ID A Indicates the control identifier of control A.
[0121] In some embodiments, when a user inputs a focus moving operation on a control device, such as operating a direction key on the control device, the web view component responds to the user operation, wherein the direction key may be an up direction key, a down direction key, a left direction key, or a right direction key. The web view component may respond to the user operation by moving the focus to another operable control, or by adjusting the position of the control where the focus is located on the display screen, or by neither moving the focus nor adjusting the position of the control where the focus is located on the display screen.
[0122] The key listener determines the key of the control device operated by the user by monitoring the document keydown event of the web view component.
[0123] In some embodiments, since it takes a certain amount of time for the web view component to respond to user operations, the education component is configured to delay for a preset time, such as 100 milliseconds, to obtain the focus position after monitoring the document keydown event of the web view component.
[0124] In some embodiments, the web view component can obtain the control identifier of the control where the current focus of the display device is located, and by calling the getBoundingClientRect method in the document of the web view component, the current control position of the control can be obtained to update the focus position.
[0125] After obtaining the focus position, the education component can determine whether to generate a prompt indicating that the focus movement operation failed to execute according to the document keydown event and the focus position. The determination method may include: determining whether the control where the focus is located is switched, if it is switched, not generating a prompt indicating that the focus movement operation failed to execute; if it is switched, determining whether the focus position is updated, if it is updated, not generating a prompt indicating that the focus movement operation failed to execute, and if it is not updated, generating a prompt indicating that the focus movement operation failed to execute.
[0126] The following uses different focus movement scenarios as examples to introduce the process of the educational component generating a prompt indicating a failure in executing a focus movement operation or not generating a prompt indicating a failure in executing a focus movement operation.
[0127] Scenario 1: Before the user inputs the focus moving operation, the focus is on button A. At this time, the first control is button A. The user inputs the focus moving operation, which is pressing the left direction key.
[0128] After receiving the focus moving operation, the web view component does not switch the control where the focus is located because there is no operable control on the left side of button A, so that the focus is still on button A. At this time, the second control is still button A.
[0129] The education component determines that the user has operated the left direction key according to the document keydown event. After a delay of 100 milliseconds, it is determined that the current focus is still on button A. According to the getBoundingClientRect method, the control position of the control where the focus is located is still (xa1, ya1), that is, the focus position is still {ID A , (xa1, ya1)}. Since the control identifiers of the first control and the second control are the same, and the control positions are not updated, according to the above judgment method, the education component generates a prompt indicating that the focus moving operation fails to execute.
[0130] In some embodiments, see Fig.10 The educational component can determine that the user input is a horizontal focus movement operation based on the fact that the control where the focus is located is not switched and the position of the control where the focus is located is not updated after the user operates the left direction key, and can generate a prompt indicating that the focus movement operation has failed. The prompt is a prompt indicating that the horizontal focus movement operation has failed, such as a shaking animation that shakes the control where the focus is located horizontally.
[0131] Exemplarily, the jitter animation can be implemented through CSS style, and the jitter mode is: at the first moment t1, the horizontal coordinate of the control where the focus is located is adjusted from the initial coordinate to increase the preset change amount, such as 4 pixel distance; at the second moment t2, the horizontal coordinate of the control where the focus is located is adjusted from the initial coordinate to reduce the preset change amount, such as 4 pixel distance; at the third moment t3, the horizontal coordinate of the control where the focus is located is adjusted from the initial coordinate to increase the preset change amount, such as 4 pixel distance; at the fourth moment t4, the horizontal coordinate of the control where the focus is located is adjusted from the initial coordinate to reduce the preset change amount, such as 4 pixel distance. Among them, t1~t4 can all be 100 milliseconds.
[0132] After generating a prompt indicating that the focus movement operation has failed, the education component sends the prompt data to the web view component. After receiving the prompt data, the web view component can display the prompt, for example, refresh the after-class exercise page according to the prompt data so that the after-class exercise page displays the above-mentioned jitter animation.
[0133] Because the user sees that the focus is still on button A and the position of button A has not changed after pressing the right direction key, the user may mistakenly believe that the display device has not received the user operation. The embodiment of the present application can remind the user that it is not that the display device has not received the user operation, but that the page boundary has been reached by displaying a prompt that the focus movement operation has failed, thereby improving the user experience.
[0134] Scenario 2: Before the user inputs the focus moving operation, the focus is on button A. At this time, the first control is button A. The user inputs the focus moving operation, which is pressing the right direction key.
[0135] After receiving the focus moving operation, the web view component switches the control where the focus is located according to the operable control on the right side of button A, such as button E, so that the focus is switched to button E. At this time, the second control is button E.
[0136] The education component determines that the user has operated the right arrow key based on the document keydown event. After a delay of 100 milliseconds, it obtains the control where the focus of the display device is re-determined, and the focus is on button E. The control identifier of button E is obtained. According to the getBoundingClientRect method, the control position of button E can be obtained as (xe1, ye1), where xe1 is the distance between the left border of button E and the left border of the display screen, and ye1 is the distance between the upper border of button E and the upper border of the display screen. The focus position is updated to {ID E , (xe1, ye1)}. Since the control identifiers of the first control and the second control are different, according to the above determination method, the education component does not generate a prompt indicating that the focus moving operation fails to execute.
[0137] See also Fig.11Since the user can see the focus move from button A to button E after pressing the right direction key, the embodiment of the present application does not generate a prompt indicating that the focus movement operation has failed, thereby ensuring the user experience.
[0138] Scenario 3: Before the user inputs the focus moving operation, the focus is on button E. At this time, the first control is button E. The user inputs the focus moving operation, which is pressing the up direction key.
[0139] After receiving the focus moving operation, the web view component does not switch the control where the focus is located because there is no operable control above button E, so that the focus is still on button E. At this time, the second control is still button E.
[0140] The education component determines that the user has operated the left direction key according to the document keydown event. After a delay of 100 milliseconds, it obtains the control where the focus of the display device is re-determined, and the focus is on button E. The control ID of button E is obtained. According to the getBoundingClientRect method, the control position of button E can be obtained as (xe1, ye1), that is, the focus position is still {ID E , (xe1, ye1)}. Since the control identifiers of the first control and the second control are the same, and the control positions are not updated, according to the above judgment method, the education component generates a prompt indicating that the focus moving operation fails to execute.
[0141] In some embodiments, see Fig.12 The educational component can determine that the user input is a vertical focus movement operation based on the fact that the control where the focus is located is not switched and the position of the control where the focus is located is not updated after the user operates the upward direction key, and generate a prompt indicating the failure of the focus movement operation. The prompt is a prompt indicating the failure of the vertical focus movement operation, such as a shaking animation that vertically shakes the control where the focus is located.
[0142] Exemplarily, the jitter animation can be implemented through CSS style, and the jitter mode is: at the first moment t1, the vertical coordinate of the control where the focus is located is adjusted from the initial coordinate to increase the preset change amount, such as 4 pixel distance; at the second moment t2, the vertical coordinate of the control where the focus is located is adjusted from the initial coordinate to reduce the preset change amount, such as 4 pixel distance; at the third moment t3, the vertical coordinate of the control where the focus is located is adjusted from the initial coordinate to increase the preset change amount, such as 4 pixel distance; at the fourth moment t4, the vertical coordinate of the control where the focus is located is adjusted from the initial coordinate to reduce the preset change amount, such as 4 pixel distance. Among them, t1~t4 can all be 100 milliseconds.
[0143] After generating a prompt indicating that the focus movement operation has failed, the education component sends the prompt data to the web view component. After receiving the prompt data, the web view component can display the prompt, for example, refresh the after-class exercise page according to the prompt data so that the after-class exercise page displays the above-mentioned jitter animation.
[0144] Because the user sees that the focus is still on button E after pressing the direction key and the position of button E has not changed, the user may mistakenly believe that the display device has not received the user operation. The embodiment of the present application can remind the user that it is not that the display device has not received the user operation, but that the page boundary has been reached by displaying a prompt that the focus movement operation has failed, thereby improving the user experience.
[0145] Scenario 4: Before the user inputs the focus moving operation, the focus is on button E. At this time, the first control is button E. The user inputs the focus moving operation, which is pressing the down arrow key.
[0146] The web page view component moves the button E downwards without moving the control where the focus is located according to the focus moving operation. At this time, the second control is still the button E.
[0147] The education component determines that the user has operated the down arrow key based on the document keydown event. After a delay of 100 milliseconds, it re-determines the control where the focus of the display device is located, and obtains the focus on button E. The control identifier of button E is obtained, and the control position of button E can be obtained as (xe2, ye2) according to the getBoundingClientRect method. Since the control identifiers of the first control and the second control are the same, the control position of the second control has changed compared to the control position of the first control. According to the above judgment method, the education component does not generate a prompt indicating that the focus movement operation has failed.
[0148] See also Fig.13 Since the user can see button E moving downward after pressing the down direction key, the embodiment of the present application does not generate a prompt indicating that the focus movement operation has failed, thereby ensuring the user experience.
[0149] Scenario 5: Before the user inputs the focus moving operation, the focus is on button E. At this time, the first control is button E. The user inputs the focus moving operation, which is pressing the down arrow key.
[0150] The web view component operates according to the focus movement, and according to the operable control below button E, such as button B, switches the control where the focus is, so that the focus is switched to button B. At this time, the second control is button B.
[0151] The education component determines that the user has operated the right arrow key based on the document keydown event. After a delay of 100 milliseconds, it re-determines the control where the focus of the display device is located, and obtains the control ID of button B. According to the getBoundingClientRect method, the control position of button B can be obtained as (xb1, yb1), and the focus position is updated to {ID B , (xb1, yb1)}, xb1 is the distance between the left border of button B and the left border of the display screen, and yb1 is the distance between the upper border of button B and the upper border of the display screen. Since the control identifiers of the first control and the second control are different, according to the above judgment method, the education component does not generate a prompt indicating that the focus moving operation fails to execute.
[0152] See also Fig.14 Since the user can see the focus move from button E to button B after pressing the right direction key, the embodiment of the present application does not generate a prompt indicating that the focus movement operation has failed, thereby ensuring the user experience.
[0153] In some embodiments, when the focus is on button B, if the user presses the left direction button on the control device, button B performs a shaking effect similar to button A. The specific process can be referred to the above embodiment and will not be repeated here.
[0154] In some embodiments, when the focus is on button B, if the user presses the right direction key on the control device, the focus is switched from button B to button C, and the above-mentioned shaking animation is not executed. The specific process can be referred to the above embodiment and will not be repeated here.
[0155] It can be seen from the above embodiments that the embodiments of the present application determine the control where the focus is and the control position after receiving and executing the focus movement operation, and generate a prompt indicating that the focus movement operation has failed when the control where the focus is located has not switched and the control position has not changed. When the control where the focus is located switches or the control position changes, no prompt indicating that the focus movement operation has failed is generated, thereby solving the problem of users mistakenly believing that the display device does not respond to the focus movement operation and improving the user experience.
[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0157] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: include: monitor; A controller is communicatively connected to the display, and the controller is configured to: In response to an operation of entering an after-class exercise webpage, controlling the display to display the after-class exercise webpage, and determining a first control to acquire focus; In response to a focus moving operation, executing the focus moving operation and determining a second control that acquires the focus; If the second control and the first control are the same control, when the control position of the second control is the same as the control position of the first control, generating and controlling the display to display a prompt indicating that the focus moving operation has failed to be executed; If the second control and the first control are different controls, no prompt indicating that the focus moving operation has failed is generated.
2. The display device according to claim 1, characterized in that The step of determining the first control to acquire the focus includes: The control identifier, control type, and control position of the first control that acquires the focus are determined, wherein the control type includes a first type that indicates that the first control is a scroll bar control and a second type that indicates that the first control is not the scroll bar control.
3. The display device according to claim 2, characterized in that When the position of the second control is the same as the control position of the first control, generating and controlling the display to display a prompt indicating that the focus moving operation fails to execute, includes: When the position of the second control is the same as the position of the first control and the control type of the second control is the first type, the control position of the second control is determined, and when the control position of the second control is the same as the control position of the first control, the display is generated and controlled to show a prompt indicating that the focus movement operation has failed.
4. The display device according to claim 2, characterized in that The controller is also configured to: When the position of the second control is the same as the position of the first control and the control type of the second control is the second type, the display is generated and controlled to show a prompt indicating that the focus moving operation has failed to execute.
5. The display device according to claim 2, characterized in that The determining the control position of the first control that acquires the focus includes: The control position of the first control is obtained according to a focus event generated by the first control after acquiring focus.
6. The display device according to claim 1, characterized in that The determining the second control to acquire the focus includes: The control identifier, control type and control position of the second control that acquires the focus are determined, wherein the control type includes a first type that indicates that the second control is a scroll bar control and a second type that indicates that the first control is not the scroll bar control.
7. The display device according to claim 6, characterized in that The determining the control position of the second control that acquires the focus includes: When the control identifier of the second control is the same as the control identifier of the first control, the control position of the second control is obtained through the getBoundingClientRect method.
8. The display device according to claim 1, characterized in that The generating a prompt indicating that the focus moving operation fails to be performed includes: When the focus moving operation is a horizontal focus moving operation, generating an animation of the first control shaking horizontally; Or when the focus moving operation is a vertical focus moving operation, an animation of the first control shaking vertically is generated.
9. A control response method, characterized in that: include: In response to an operation of entering an after-class exercise webpage, controlling the display to display the after-class exercise webpage, and determining a first control to acquire focus; In response to a focus moving operation, executing the focus moving operation and determining a second control that acquires the focus; If the second control and the first control are the same control, when the control position of the second control is the same as the control position of the first control, generating and controlling the display to display a prompt indicating that the focus moving operation has failed to be executed; If the second control and the first control are different controls, no prompt indicating that the focus moving operation has failed is generated.
10. The control response method according to claim 9, characterized in that: The generating a prompt indicating that the focus moving operation fails to be performed includes: When the focus moving operation is a horizontal focus moving operation, generating an animation of the first control shaking horizontally; Or when the focus moving operation is a vertical focus moving operation, an animation of the first control shaking vertically is generated.
