Remote controller key interaction method and system of smart television, electronic equipment and storage medium
By setting identifiers and button modules, the complex layout problem of focus navigation in smart TV terminals is solved, and accurate focus navigation for button operations in different layouts is achieved, which is applicable to a variety of layout scenarios.
Patent Information
- Application Number
- CN202410991090.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-26
AI Technical Summary
In existing technologies, in smart TV terminals with complex layouts, users cannot accurately focus on the target area when pressing buttons, resulting in the inability to achieve focus navigation.
By setting identifiers and identifier thresholds, combined with the button module method, the button value is captured and the identifier is modified. Based on the button value, the corresponding module is entered, and the target area is dynamically focused, thus completing the interaction between the user and the target area.
It enables accurate focusing on the target area in complex layouts, solves the focus navigation problem, and is also applicable to simple layouts. It is easy to operate and maintain.
Smart Images

Figure CN119028114A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart TVs. Specifically, it is a method, system, electronic device and storage medium for remote control button interaction of a smart TV. Background Art
[0002] With the diversification of the content and styles of TV terminals, complex layouts are required to support. When a user presses a remote control button, it is necessary to dynamically focus on the target area to achieve the user's interaction experience with the terminal. Here, a particularly important concept is involved, namely focus management, that is, how to achieve focus navigation based on button operations for different areas.
[0003] Since button events can only be triggered by <input> 、 <textarea>And any element with contentEditable or tabindex attribute is triggered, because these elements can achieve focus. Since keydown, keyup, and keypress events capture the operation of keyboard keys, they are widely used in scenarios that deal with simple layouts. However, in complex layout scenarios, the layout is generally done through box elements div (also known as areas). Since div itself is not a focused element, key events cannot be used directly to capture key operations. Usually, the tabindex attribute is added to the div and the focus method is called in advance to trigger the key event. This method requires manual addition of the focus attribute to each area. Although key capture of different areas is achieved, when the user operates the button, the focus cannot be focused on the target area, and focus navigation cannot be achieved based on different areas. The present invention proposes a remote control button interaction method for a smart TV.< / textarea> Summary of the Invention
[0004] The purpose of the present invention is to provide a method, system, electronic device and storage medium for remote control button interaction of a smart TV, which is used to solve the problem in the prior art that by adding a tabindex attribute in a div and pre-calling a focusing method to trigger button events, it is necessary to manually add a focusing attribute to each area. When a user operates a button, the focus cannot be focused on the target area, and focus navigation cannot be achieved based on different areas.
[0005] The present invention solves the above problems through the following technical solutions:
[0006] A method for remote control button interaction of a smart TV includes:
[0007] Set an identifier and initialize it, set the initial value of the identifier corresponding to the area, set the identifier threshold, and set the button module methods corresponding to different buttons;
[0008] When a user presses a remote control button, a button event is triggered, and the button value is obtained;
[0009] Modify the identifier according to the button value, and at the same time judge whether the identifier exceeds the threshold. If it exceeds the threshold, then set the identifier equal to the threshold in combination with the button value;
[0010] Enter the corresponding button module according to the button value, focus on the target area through the identifier, and complete the button interaction between the user and the target area in the button module.
[0011] Further, when the page is displayed with multiple areas in a single row, the identifier is set to index, where index is a positive integer, the initial value is 0, and by default it corresponds to the first area; set the identifier threshold 0 ≤ index < num, where num is the total number of areas;
[0012] Perform different operations according to different key values: if it is a left or right key, modify the index. When it is detected that the user presses the right key, the index increases, and a threshold judgment is performed at the same time. If index ≥ num, set index = num-1; when it is detected that the user presses the left key, the index decreases, and a threshold judgment is performed at the same time. If index < 0, set index = 0.
[0013] Furthermore, when the page is displayed as multiple regions in rows, the identifier is set to the object indexObj, and the initial value is indexObj={rowIndex0; columnIndex:0}, which corresponds to the first region by default, with:
[0014] rows>indexObj.rowIndex≥0
[0015] columns>indexObj.columnIndex≥0
[0016] rows is the total number of rows in the region; columns is the total number of columns in the current row; indexObj.rowIndex is the row identifier of the identifier, which is a positive integer; indexObj.columnIndex is the column identifier of the identifier, which is a positive integer;
[0017] The user presses a button on the remote control, triggering a key event and obtaining the key value;
[0018] Perform different operations according to different key values:
[0019] A. If the down button is pressed, indexObj.rowIndex increases, and if the up button is pressed, indexObj.rowIndex decreases. At the same time, the row threshold is judged: if indexObj.rowIndex ≥ nums, then indexObj.rowIndex = nums-1, if indexObj.rowIndex < 0, then indexObj.rowIndex = 0;
[0020] B. If you press the right button, indexObj.columnIndex increases, and if you press the left button, indexObj.columnIndex decreases. At the same time, a threshold judgment is required: if indexObj.columnIndex ≥ colums, then indexObj.columnIndex = colums-1, if indexObj.columnIndex < 0, then indexObj.columnIndex = 0;
[0021] Enter the corresponding key module according to the keycode, focus on the target area through indexObj, and complete the key interaction between the user and the target area.
[0022] A remote control button interaction system for a smart TV, comprising:
[0023] Configuration module, used to set and initialize the identifier, set the area corresponding to the initial value of the identifier, set the identifier threshold, and set the key module method corresponding to different keys;
[0024] A key value acquisition module is used to obtain the key value when the user presses a key on the remote control to trigger a key event;
[0025] The identifier modification and threshold judgment module is used to modify the identifier according to the key value and judge whether the identifier exceeds the threshold. If the threshold is exceeded, the identifier is set equal to the threshold in combination with the key value;
[0026] The key interaction module is used to enter the corresponding key module according to the key value, focus on the target area through the identifier, and complete the key interaction between the user and the target area in the key module.
[0027] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the remote control button interaction method of the smart TV when executing the computer program.
[0028] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the remote control button interaction method for a smart TV.
[0029] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0030] (1) The present invention does not need to add a focus attribute to each area. It only needs to set an identifier, an identifier threshold, and a module method corresponding to different buttons. When a user presses a button on a remote control, the button value is captured, the identifier is modified, and the threshold problem is processed to avoid the identifier crossing the boundary. The corresponding module is entered according to the button value, and the content display, style setting, etc. of different areas are processed in the corresponding module through the identifier, so as to focus on the target area and complete the interaction between the user and the page.
[0031] (2) When processing the focus navigation of a TV terminal with a complex layout, the present invention sets a marker and a key module and captures the user's key operation to accurately focus on the target area, thereby solving the problem of focus navigation of different areas by key operation in a complex layout.
[0032] (3) The present invention is aimed at television terminals with different layouts, and handles the focus navigation problem of different areas under different key operations, thereby dynamically realizing key interaction in multiple areas.
[0033] (4) The method of the present invention is easy to operate and maintain, and is also suitable for key interaction of terminals with simple layouts. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is a flowchart of the interaction of multiple area buttons in one row in the present invention;
[0035] Figure 2 This is a flowchart of the multi-row and multi-area button interaction in the present invention;
[0036] Figure 3 This is a flowchart for determining the rowIndex threshold value in the multi-row and multi-area key interaction;
[0037] Figure 4 This is a flowchart for determining the columnIndex threshold value in the multi-row and multi-area key interaction. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.
[0039] Embodiment 1:
[0040] A remote controller button interaction method for a smart TV, comprising:
[0041] Set the identifier and initialize it, set the area corresponding to the initial value of the identifier, set the identifier threshold, and set the key module methods corresponding to different keys, including content display, page interaction, style processing, etc.;
[0042] The user presses a button on the remote control, triggering a key event and obtaining the key value;
[0043] Modify the identifier according to the key value, and determine whether the identifier exceeds the threshold. If it exceeds the threshold, set the identifier equal to the threshold in combination with the key value;
[0044] Enter the corresponding button module according to the button value, focus on the target area through the identifier, and complete the button interaction between the user and the target area in the button module.
[0045] The present invention addresses the issue of focus management in a television terminal with a complex layout. By setting an identifier, an identifier threshold, and module methods corresponding to different buttons, when a user presses a remote control button, first the button value is captured, and at the same time the identifier is modified, and the threshold problem is handled to avoid the identifier from exceeding the boundary; secondly, according to the button value, it enters the corresponding module, and through the identifier, the content display, style setting, etc. in different regions are processed in the corresponding module, so as to focus on the target region and complete the interaction between the user and the page. This method is also applicable to the button interaction of terminals with a simple layout.
[0046] Embodiment 2:
[0047] Based on Embodiment 1, in combination with Figure 1 As shown, when the page is displayed with multiple regions in a single row, the identifier is set to index, with an initial value of 0, and by default it corresponds to the first region; the identifier threshold is set to 0 ≤ index < num, where num is the total number of regions;
[0048] Perform different operations according to different button values: If it is a left or right button, modify index. When it is detected that the user presses the right button, index increases, and at the same time a threshold judgment is made. If index ≥ num, then set index = num - 1; when it is detected that the user presses the left button, index decreases, and at the same time a threshold judgment is made. If index < 0, then set index = 0.
[0049] Embodiment 3:
[0050] Based on Embodiment 1, in combination with Figure 2-4 As shown, when the page is displayed with multiple regions in multiple rows, the identifier is set to the object indexObj, with an initial value of indexObj = {rowIndex0; columnIndex: 0}, and by default it corresponds to the first region, where:
[0051] rows > indexObj.rowIndex ≥ 0
[0052] columns > indexObj.columnIndex ≥ 0
[0053] rows is the total number of rows of the regions; columns is the total number of columns in the current row; indexObj.rowIndex is the row identifier of the identifier; indexObj.columnIndex is the column identifier of the identifier;
[0054] When the user presses a remote control button, a button event is triggered to obtain the button value;
[0055] Perform different operations according to different button values:
[0056] A. If the down button is pressed, indexObj.rowIndex increases, and if the up button is pressed, indexObj.rowIndex decreases. At the same time, the row threshold is judged: if indexObj.rowIndex ≥ nums, then indexObj.rowIndex = nums-1, if indexObj.rowIndex < 0, then indexObj.rowIndex = 0;
[0057] B. If you press the right button, indexObj.columnIndex increases, and if you press the left button, indexObj.columnIndex decreases. At the same time, a threshold judgment is required: if indexObj.columnIndex ≥ colums, then indexObj.columnIndex = colums-1, if indexObj.columnIndex < 0, then indexObj.columnIndex = 0;
[0058] Enter the corresponding key module according to the keycode, focus on the target area through indexObj, and complete the key interaction between the user and the target area.
[0059] The present invention is aimed at TV terminals with different layouts, and handles the focus navigation problem of areas under different key operations, thereby dynamically realizing key interaction of multiple areas. The present invention does not need to add the upper focus attribute to each area, and only needs to set the identifier, threshold and module method of different keys. When the user presses a button on the remote control, the key value is obtained, the identifier is modified, and the corresponding module is entered according to the key value. The target area is processed in the corresponding module according to the identifier, thereby completing the page interaction between the user and the target area. The method is easy to operate and maintain.
[0060] Embodiment 4:
[0061] A remote control button interaction system for a smart TV, comprising:
[0062] Configuration module, used to set and initialize the identifier, set the area corresponding to the initial value of the identifier, set the identifier threshold, and set the key module method corresponding to different keys;
[0063] A key value acquisition module is used to obtain the key value when the user presses a key on the remote control to trigger a key event;
[0064] The identifier modification and threshold judgment module is used to modify the identifier according to the key value and judge whether the identifier exceeds the threshold. If the threshold is exceeded, the identifier is set equal to the threshold in combination with the key value;
[0065] The key interaction module is used to enter the corresponding key module according to the key value, focus on the target area through the identifier, and complete the key interaction between the user and the target area in the key module.
[0066] Embodiment 5:
[0067] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the remote control button interaction method of the smart TV when executing the computer program.
[0068] Embodiment 6:
[0069] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the remote control button interaction method for a smart TV.
[0070] Although the present invention is described herein with reference to the illustrative embodiments of the present invention, the above embodiments are only preferred embodiments of the present invention, and the embodiments of the present invention are not limited to the above embodiments. It should be understood that those skilled in the art can design many other modifications and embodiments, which will fall within the scope and spirit of the principles disclosed in this application.
Claims
1. A remote controller button interaction method for a smart TV, characterized in that: It includes: Set an identifier and initialize it, set the area corresponding to the initial value of the identifier, set the identifier threshold, and set the key module methods corresponding to different keys; The user presses the remote control key, triggers a key event, and obtains the key value; Modify the identifier according to the key value, and at the same time judge whether the identifier exceeds the threshold. If it exceeds the threshold, set the identifier equal to the threshold in combination with the key value; Enter the corresponding key module according to the key value, and pass through the identifier to the upper focus target area to complete the key interaction between the user and the target area in the key module.
2. The remote controller button interaction method for a smart TV according to claim 1, characterized in that: When the page is displayed with multiple areas in a single row, the identifier is set to index, the initial value is 0, and it defaults to the first area; set the identifier threshold 0 ≤ index < num, where num is the total number of areas; Perform different operations according to different key values: If it is a left or right key, modify index. When it is detected that the user presses the right key, index increments, and at the same time perform threshold judgment. If index ≥ num, then set index = num - 1; when it is detected that the user presses the left key, index decrements, and at the same time perform threshold judgment. If index < 0, then set index = 0.
3. The remote controller button interaction method for a smart TV according to claim 1, characterized in that: When the page is displayed with multiple areas in multiple rows, the identifier is set to the object indexObj, and the initial value is indexObj = {rowIndex: 0; columnIndex: 0}, which defaults to the first area, and there are: rows > indexObj.rowIndex ≥ 0 columns > indexObj.columnIndex ≥ 0 rows is the total number of rows of the area; columns is the total number of columns of the current row; indexObj.rowIndex is the row identifier of the identifier; indexObj.columnIndex is the column identifier of the identifier; The user presses the remote control key, triggers a key event, and obtains the key value; Perform different operations according to different key values: A. If the down key is pressed, indexObj.rowIndex increments. If the up key is pressed, indexObj.rowIndex decrements, and at the same time perform row threshold judgment: If indexObj.rowIndex ≥ nums, then indexObj.rowIndex = nums - 1. If indexObj.rowIndex < 0, then indexObj.rowIndex = 0; B. If the right key is pressed, indexObj.columnIndex increments. If the left key is pressed, indexObj.columnIndex decrements, and at the same time column threshold judgment is required: If indexObj.columnIndex ≥ colums, then indexObj.columnIndex = colums - 1. If indexObj.columnIndex < 0, then indexObj.columnIndex = 0; Enter the corresponding key module according to the keycode, focus on the target area through indexObj, and complete the key interaction between the user and the target area.
4. A remote control button interaction system for a smart TV, characterized in that: include: Configuration module, used to set and initialize the identifier, set the area corresponding to the initial value of the identifier, set the identifier threshold, and set the key module method corresponding to different keys; A key value acquisition module is used to obtain the key value when the user presses a key on the remote control to trigger a key event; The identifier modification and threshold judgment module is used to modify the identifier according to the key value and judge whether the identifier exceeds the threshold. If the threshold is exceeded, the identifier is set equal to the threshold in combination with the key value; The key interaction module is used to enter the corresponding key module according to the key value, focus on the target area through the identifier, and complete the key interaction between the user and the target area in the key module.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the remote control button interaction method for the smart TV according to any one of claims 1 to 3 is implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the remote control button interaction method for the smart TV according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method for controlling movement of screen focus
CN103513928A
STB (Set Top Box) key control processing system and method
CN105357589A
Focus movement control method, smart television and computer readable storage medium
CN107835461A
Method for configuring and moving EPG (electronic program guide) dynamic focus of IPTV (internet protocol television) platform
CN113645489A
Focus movement method and indicator of components on display screen
JP2008097266A
