WO2018000626A1 - 基于电视机的网页浏览控制方法及相关装置 - Google Patents

基于电视机的网页浏览控制方法及相关装置 Download PDF

Info

Publication number
WO2018000626A1
WO2018000626A1 PCT/CN2016/100345 CN2016100345W WO2018000626A1 WO 2018000626 A1 WO2018000626 A1 WO 2018000626A1 CN 2016100345 W CN2016100345 W CN 2016100345W WO 2018000626 A1 WO2018000626 A1 WO 2018000626A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
operable
target
cursor
operable control
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.)
Ceased
Application number
PCT/CN2016/100345
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
LeTV Information Technology Beijing 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 Le Holdings Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical Le Holdings Beijing Co Ltd
Publication of WO2018000626A1 publication Critical patent/WO2018000626A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • G06F3/04892Arrangements for controlling cursor position based on codes indicative of cursor displacements from one discrete location to another, e.g. using cursor control keys associated to different directions or using the tab key
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Definitions

  • Embodiments of the present invention relate to the field of television browser technologies, and in particular, to a television-based webpage browsing control method and related apparatus.
  • the cursor when a user browses a webpage through a television, the cursor is controlled by a remote controller, and each time the user presses the direction key of the remote controller, the cursor moves a distance in a direction corresponding to the direction key.
  • the position of the cursor is moved by a preset distance (such as 0.5 cm, etc.); for example, when receiving the rightward
  • the position of the cursor in the web page is moved to the right by 0.5 cm.
  • the inventor has found that, based on the above control method, for the interface shown in FIG. 1, when the user needs to click the link displayed on the left side of the webpage, the leftward direction key needs to be pressed multiple times to make the cursor 101. Move from the position shown in Figure 1 to the link position on the left. In fact, since the proportion of the area occupied by the buttons or links in the webpage that can be further operated by the user is small, the user needs to frequently perform the direction key button operation to control the cursor to move to the target while browsing the webpage through the television.
  • Position for example, moving the cursor from the inoperable area to the position of the actionable button or link, or moving the cursor from the location of one link to the location of the other link
  • the web browsing operation based on the television is too cumbersome and the user experience is poor.
  • a television-based webpage browsing control method and related device are provided to solve
  • the television browsing operation based on the television is too cumbersome and the user experience is poor.
  • a first aspect of the embodiments of the present invention provides a television-based webpage browsing control method, where the method includes:
  • the identifying, in the target webpage displayed by the television browser includes:
  • Determining that the webpage element corresponding to the element label matching the preset label is an operable control.
  • determining the target operable control according to the direction key signal includes:
  • the method further includes :
  • the step of identifying an operable control in the target web page displayed by the television browser is performed when the television is not connected to the mouse.
  • the method further includes:
  • determining a control type of the currently operable control, and performing a preset operation corresponding to the control type include:
  • the determined control type is an input box control, displaying a virtual keyboard, so that the user inputs characters in the input box control by using the virtual keyboard;
  • the page associated with the currently operable control is loaded.
  • the method further includes :
  • the current operable control corresponding to the current location of the cursor is determined, including:
  • an operable control having the highest response priority among the plurality of operable controls is selected as the currently operable control.
  • a second aspect of the embodiments of the present invention provides a television-based webpage browsing control apparatus; the apparatus includes:
  • control identification unit configured to identify an operable control in a target webpage displayed by the television browser
  • a first signal receiving unit configured to receive a direction key signal of the remote controller
  • a target control determining unit configured to determine a target operable control according to the direction key signal
  • the cursor movement control unit is configured to control the movement of the cursor to the position of the target operable control.
  • control identification unit includes:
  • a source file obtaining unit configured to acquire a source file of the target webpage
  • a label matching unit configured to separately read each element label in the source file, determine whether the element label matches the preset label, and determine a webpage element corresponding to the element label that matches the preset label. Is an actionable control.
  • the target control determining unit includes:
  • a cursor position determining unit configured to acquire a current position coordinate of the cursor in the target webpage
  • control coordinate obtaining unit configured to determine a control coordinate of each operable control in the target webpage
  • a direction key signal analyzing unit configured to parse the direction key signal to obtain a target moving direction
  • a target control selection unit configured to determine, according to the current position coordinate and the control coordinate, an operable control that has the smallest distance from the current position coordinate in the target moving direction, and operable to minimize the distance from the current position coordinate
  • the control acts as a target actionable control.
  • the apparatus further includes :
  • the mouse detecting unit is configured to determine whether the television is connected to the mouse, and trigger the control identification unit when the television is not connected to the mouse.
  • the apparatus further includes :
  • a second signal receiving unit configured to receive a determination key signal of the remote controller
  • a current control determining unit configured to determine a current operable control corresponding to a current position of the cursor when receiving the determining key signal of the remote controller
  • a preset operation execution unit configured to determine a control type of the currently operable control, and execute a preset operation corresponding to the control type.
  • the device further includes:
  • control stack detecting unit configured to determine any two or more operable controls in the target webpage Whether there is a common area in the display location, and when the public area exists, setting different response priorities for the respective operable controls corresponding to the common area;
  • the current control determining unit is specifically configured to:
  • an operable control having the highest response priority among the plurality of operable controls is selected as the currently operable control.
  • a third aspect of the embodiments of the present invention further provides a television set; the television set includes:
  • processor and a memory for storing the processor executable instructions
  • the processor is configured to: when the executable instruction stored in the memory is invoked and executed, execute the webpage browsing control method according to any one of the above aspects, comprising at least performing the following steps:
  • the embodiment of the present invention further provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer executable instructions for executing any of the above webpages Browse control methods.
  • An embodiment of the present invention further provides an electronic device, including: one or more processors; and a memory; wherein the memory stores instructions executable by the one or more processors, the instructions being It is set to be used to execute any of the above webpage browsing control methods.
  • Embodiments of the present invention also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer
  • the computer is caused to execute any of the above-described web page browsing control methods.
  • the embodiment of the present invention identifies the operable control in the target webpage after the target browser webpage loads the target webpage, and after receiving the direction key signal of the remote controller, according to the direction key signal,
  • the target moving direction determines the target operable control; wherein the target operable control is an operable control closest to the cursor in the target moving direction starting from the current position of the cursor; and moving the cursor from the current position Go to the location where the target actionable control is located.
  • the implementation of the embodiment of the present invention is simple and easy to implement, and does not need to modify the webpage itself, and only needs to modify the control program of the television browser to perform the above webpage browsing control step.
  • FIG. 1 is a schematic diagram of an interface for browsing a webpage in a conventional television set.
  • FIG. 2 is a schematic diagram of an application environment corresponding to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for controlling webpage browsing based on a television according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an operation control recognition effect provided by an embodiment of the present invention.
  • FIG. 5 is a flowchart of another method for controlling webpage browsing based on a television provided by an embodiment of the present invention.
  • FIG. 6 is a flowchart of another method for controlling webpage browsing based on a television provided by an embodiment of the present invention.
  • FIG. 7 is a flowchart of another method for controlling webpage browsing based on a television provided by an embodiment of the present invention.
  • FIG. 8 is a flowchart of another method for controlling webpage browsing based on a television provided by an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a television-based webpage browsing control apparatus according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of another television-based webpage browsing control apparatus according to an embodiment of the present invention.
  • FIG. 11 is a structural block diagram of another television-based webpage browsing control apparatus according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of an environment architecture corresponding to an embodiment of the present invention.
  • the user can send a button signal to the TV through the remote control to implement related control operations on the web page displayed by the TV browser, such as controlling the cursor to move through the webpage through the direction key signal. Control the browser to select and load the link pointed by the cursor by determining the key signal.
  • an embodiment of the present invention provides a method for controlling webpage browsing based on a television, such as the flowchart shown in FIG. 3, the method includes the following steps.
  • step S1 is performed to identify the newly loaded target webpage.
  • Operation controls Referring to FIG. 4, taking the webpage shown by the interface 410 (that is, the television display webpage shown in FIG. 1) as an example, after step S1, it can be determined that each text link, picture link, button, input box, etc. in the webpage is operable.
  • the control, the interface 420 in FIG. 4 schematically shows several representative operable controls, for example, the operable control 1 in the interface 420 is the retrieval input box 401 in the interface 410, and the operable control 2 is the button in the interface 410. 401.
  • the control link 3 is a text link 403 in the interface 410
  • the control link 8 is a picture link 404 in the interface 410.
  • the cursor after receiving the direction key signal, the cursor is no longer moved by a preset distance according to the direction indicated by the direction key signal, but the cursor is moved to the moving direction indicated by the direction key signal.
  • the location where the target can manipulate the control.
  • the position of the cursor 101 is as shown in the interface 420 in FIG. 4, in which case the television receives the direction key signal sent by the remote controller, and according to the difference of the target moving direction indicated by the direction key signal, at least includes the following four Situation:
  • the target moving direction is “downward”, it is determined that the uppermost side of the position where the cursor 101 is located is the target operable control, and when there is no operable control on the lower side of the cursor 101 in the interface 420,
  • the position of the cursor 101 can be kept unchanged.
  • the cursor 101 can also be moved downward by a preset distance to notify the user that the television has received and responded to the present invention. Secondary button operation.
  • the embodiment of the present invention identifies the operable control in the target webpage after the target browser webpage loads the target webpage, and after receiving the direction key signal of the remote controller, according to the direction key signal,
  • the target moving direction determines the target operable control; wherein the target operable control is an operable control closest to the cursor in the target moving direction starting from the current position of the cursor; and moving the cursor from the current position Go to the location where the target actionable control is located.
  • the embodiment of the present invention can increase the distance of each movement of the cursor without missing the operable control, so that the user can control the movement of the cursor within the entire interface by only a few key operations. It greatly simplifies the user operation complexity and enhances the user experience.
  • the implementation of the embodiment of the present invention is simple and easy to implement, and does not need to modify the webpage itself, and only needs to modify the control program of the television browser to perform the above webpage browsing control step.
  • control cursor in the foregoing step S4 is moved to a position where the target operable control is located, and specifically, the cursor is moved to a center position of the area where the target operable control is located, or the leftmost end or the rightmost end Wait.
  • each of the operable controls may be highlighted by modifying the display style, for example, modifying a shading color or a text color of the text link control.
  • FIG. 5 is a flowchart of another method for controlling webpage browsing based on a television according to an embodiment of the present invention. Referring to Figure 5, the method includes the following steps:
  • the element tag in the above source file is used to indicate the type of each web page element to ensure that the browser correctly loads the web page element.
  • each element label in the source file may be sequentially read, and whether the read element label is a preset label; wherein the preset label can operate the corresponding element label of the control, and may include multiple For example, the first preset label corresponding to the text link, the second preset label corresponding to the pictorial link, the third preset label corresponding to the input box, and the fourth preset label corresponding to the button;
  • the element labels corresponding to each actionable control that may appear in the web page are set as preset labels.
  • the webpage element corresponding to the element label is regarded as an operable control; otherwise, if the element is read The tag is not a preset tag and continues to read the next element tag in the source file.
  • the embodiment of the present invention determines the target operable control according to the target moving direction indicated by the direction key signal by identifying the operable control in the target webpage, and after each receiving the direction key signal, and The cursor is moved to the location where the target operable control is located.
  • the embodiment of the present invention determines whether each webpage element is an operable control according to the element label in the source file of the target webpage, that is, the element label in the reuse source file implements the target.
  • FIG. 6 is a flowchart of another method for controlling webpage browsing based on a television according to an embodiment of the present invention. Referring to Figure 6, the method includes the following steps:
  • the above steps S31 to S34 implement the determination of the target operable control according to the direction key signal described in step S3 in the above embodiment.
  • the embodiment of the present invention has no limitation on the order of execution, and may be executed in parallel or in any order.
  • the plane rectangular coordinate system xy is established based on the target webpage, and the horizontal rightward is the positive direction of the x-axis, and the vertical downward direction is the positive direction of the y-axis; the current position coordinate corresponding to the cursor may be the top of the arrow of the cursor.
  • the coordinates of the corresponding coordinate points are assumed to be (x0, y0); the coordinates of the above control may be the coordinates corresponding to the four edges of the area where the corresponding operable control is located, assuming (x1, x2, y1, y2), where x1
  • the x-axis coordinate value corresponding to the left edge of the area where the operable control is located x2 is the x-axis coordinate value corresponding to the right edge of the area where the operable control is located
  • y1 is the y-axis corresponding to the upper edge of the area where the operable control is located
  • the coordinate value, y2 is the y-axis coordinate corresponding to the lower edge of the area where the operable control is located Value; assuming that the target moving direction is "rightward", in step S34, the operable control (ie, the target operable control) having the smallest distance from the current position of the cursor in the moving direction of the target can be selected by the following conditions: 1) y1 ⁇ Y
  • the step S32 may be performed immediately after the operable control is recognized in step S1, that is, each time an operable control is recognized, the coordinates of the control corresponding to the operable control are immediately determined, and in a cache.
  • the coordinates of the control are saved in the unit, so that when the step S34 is executed, the coordinates of each control are directly read from the cache unit, thereby improving the efficiency of the webpage browsing control.
  • the embodiment of the present invention determines the target operable control according to the target moving direction indicated by the direction key signal by identifying the operable control in the target webpage, and after each receiving the direction key signal, and The cursor is moved to the position where the target operable control is located; wherein, in the embodiment of the present invention, the target operable control is determined according to the coordinate corresponding to the cursor and the comparison between the coordinates corresponding to the four edges of the area where each operable control is located. Simple and easy to implement, you can ensure the efficiency of web browsing control.
  • FIG. 7 is a flowchart of another method for controlling webpage browsing based on a television according to an embodiment of the present invention. Referring to Figure 7, the method includes the following steps:
  • step S0 Determine whether the television is connected to the mouse. When the television is not connected to the mouse, step S1 is performed.
  • the webpage browsing control can be implemented directly by the mouse (including controlling the cursor to move in the webpage, clicking an operable control, etc.), and therefore, the embodiment of the present invention is only used for remote control.
  • the device realizes the webpage browsing control in the TV, so the browsing in the TV
  • the embodiment of the present invention may also periodically perform S0 during the running of the browser to switch the webpage browsing control mode in time when the television is connected or disconnected from the mouse.
  • the embodiment of the present invention determines whether the television is connected to the mouse when the browser of the television is started, or during the running of the browser, and executes S1 when it is determined that the television is not connected to the mouse. And subsequent steps to avoid the step of identifying the operable controls still in the mouse control mode.
  • the television-based webpage browsing control method may further include the following steps:
  • the determining button on the remote controller causes the remote controller to send the above-mentioned determining key signal to the television to trigger the television browser to perform a preset operation corresponding to the operable control at the position where the cursor is located.
  • control type may include an input box control (such as the retrieval input box 401 in the interface 410 of FIG. 4), a button control (such as the button 401 in the interface 410 of FIG. 4), and a link control (as shown in FIG. 4 in the interface 410). Text link 403, picture link 404) and so on.
  • input box control such as the retrieval input box 401 in the interface 410 of FIG. 4
  • button control such as the button 401 in the interface 410 of FIG. 4
  • link control as shown in FIG. 4 in the interface 410.
  • Text link 403, picture link 404 and so on.
  • the embodiment of the present invention first determines the type of the control of the currently operable control, and then determines the preset operation to be performed according to the type of the control: when determining the current When the control type of the operation control is an input box, the preset operation to be performed is to display a virtual keyboard, so that the user inputs characters in the input box control by using the virtual keyboard; when determining the control of the currently operable control When the type is a button control or a link control, the preset operation that needs to be performed is to load the page associated with the currently operable control.
  • the type of the control can also have other preset operations. This embodiment is not exhaustive, and can be set by a person skilled in the art according to actual conditions.
  • FIG. 8 is a flowchart of another method for controlling webpage browsing based on a television according to an embodiment of the present invention. Referring to Figure 8, the method includes the following steps:
  • step S61 When receiving the determination key signal of the remote controller, determine whether the current location of the cursor is in a common area corresponding to the plurality of operable controls, and if yes, execute step S63, otherwise perform step S62.
  • step S62 When the current location of the cursor is not in the common area corresponding to the plurality of operable controls, the operable control corresponding to the current location of the cursor is directly used as the currently operable control, and step S7 is performed.
  • the above steps S61 to S63 implement the determination of the currently operable control corresponding to the current position of the cursor when receiving the determination key signal of the remote controller as described above.
  • the step S61 determines whether the current location of the cursor is in a common area corresponding to the plurality of operable controls, that is, whether there is a plurality of operable controls in the current location of the cursor; correspondingly, the cursor in step S62
  • the current location is not in the public area, that is, the cursor is currently in the position of only one operable control, so the one operable control can be directly used as the currently operable control;
  • the current location of the cursor described in step S63 is in the public area. That is, the cursor is currently stacked with a plurality of operable controls, so an operable control with the highest priority is selected as the currently operable control.
  • the embodiment of the present invention further detects whether there is a control stacking phenomenon through step S8, and sets different responses to the respective operable controls stacked on each other in step S9.
  • step S61 Priority, and after receiving the determination key signal, determining, by step S61, that the current location of the cursor is a common area, that is, when the current control position of the cursor corresponds to multiple (including two or more), according to The response priority of multiple actionable controls determines the currently operational control.
  • the response priority of the operable control a with a higher user click probability is set to p1, and the user click probability is low.
  • the response priority of the operation control b is set to p2 (where p1>p2); and further, when it is determined in step S61 that the operable control corresponding to the current position of the cursor includes the operable control a and the operable control b, the response is selected.
  • the higher-priority operable control a is used as the currently operable control, that is, after the user clicks the OK button, the preset operation corresponding to the operable control a is performed.
  • the embodiment of the present invention also detects whether there is a stacking phenomenon, and sets different response priorities for each operable control stacked on each other, so that the cursor is located When the position is exactly the common area of the operable controls stacked on each other, the actionable control with the highest priority is used as the currently operable control by comparing the response priorities of the respective operable controls stacked on each other. That is, the embodiment of the present invention solves the user response problem when the operable controls are stacked by setting different response priorities.
  • any of the foregoing method embodiments of the present invention can be edited as a computer processor executable instruction, and the executable instruction is embedded in a browser program of the television.
  • the processor of the television invokes the browser program, After the browser is launched, the executable instructions are also executed to implement some or all of the steps of the above browsing control method for the web page displayed by the television browser.
  • the embodiment of the present invention further provides a computer storage medium, such as a read-only memory (ROM), a random access memory (RAM), a magnetic tape, Floppy disk and optical data storage device, etc.; this calculation
  • ROM read-only memory
  • RAM random access memory
  • magnetic tape magnetic tape
  • Floppy disk magnetic tape
  • optical data storage device etc.
  • the program is stored in the machine storage medium, and when the program in the storage medium is executed by the processor of the television, the television browser can execute some or all of the steps of the webpage browsing control method described in the foregoing method embodiments.
  • FIG. 9 is a structural block diagram of a television-based webpage browsing control apparatus according to an embodiment of the present invention.
  • the apparatus includes a widget recognition unit 100, a first signal receiving unit 200, a target control determining unit 300, and a cursor movement control unit 400.
  • the control identification unit 100 is configured to identify an operable control in a target web page displayed by a television browser.
  • the first signal receiving unit 200 is configured to receive a direction key signal of the remote controller.
  • the target control determining unit 300 is configured to determine a target operable control based on the direction key signal.
  • the cursor movement control unit 400 is configured to control the movement of the cursor to the position of the target operable control.
  • the embodiment of the present invention identifies the operable control in the target webpage after the target browser webpage loads the target webpage, and after receiving the direction key signal of the remote controller, according to the direction key signal,
  • the target moving direction determines the target operable control; wherein the target operable control is an operable control closest to the cursor in the target moving direction starting from the current position of the cursor; and moving the cursor from the current position Go to the location where the target actionable control is located.
  • the embodiment of the present invention can increase the distance of each movement of the cursor without missing the operable control, so that the user can control the movement of the cursor within the entire interface by only a few key operations. It greatly simplifies the user operation complexity and enhances the user experience.
  • the implementation of the embodiment of the present invention is simple and easy to implement, and does not need to modify the webpage itself, and only needs to modify the control program of the television browser to perform the above webpage browsing control step.
  • control identification unit 100 may specifically include:
  • a source file obtaining unit configured to acquire a source file of the target webpage
  • a label matching unit configured to separately read each element label in the source file, determine whether the element label matches the preset label, and determine a webpage element corresponding to the element label that matches the preset label. Is an actionable control.
  • the embodiment of the present invention determines the target operable control according to the target moving direction indicated by the direction key signal by identifying the operable control in the target webpage, and after each receiving the direction key signal, and The cursor is moved to the location where the target operable control is located.
  • the embodiment of the present invention determines whether each webpage element is an operable control according to the element label in the source file of the target webpage, that is, the element label in the reuse source file implements the target.
  • the target control determining unit 300 may specifically include:
  • a cursor position determining unit configured to acquire a current position coordinate of the cursor in the target webpage
  • control coordinate obtaining unit configured to determine a control coordinate of each operable control in the target webpage
  • a direction key signal analyzing unit configured to parse the direction key signal to obtain a target moving direction
  • a target control selection unit configured to determine, according to the current position coordinate and the control coordinate, an operable control that has the smallest distance from the current position coordinate in the target moving direction, and operable to minimize the distance from the current position coordinate
  • the control acts as a target actionable control.
  • the embodiment of the present invention determines the target operable control according to the target moving direction indicated by the direction key signal by identifying the operable control in the target webpage, and after each receiving the direction key signal, and The cursor is moved to the position where the target operable control is located; wherein, in the embodiment of the present invention, the target operable control is determined according to the coordinate corresponding to the cursor and the comparison between the coordinates corresponding to the four edges of the area where each operable control is located. Simple and easy to implement, you can ensure the efficiency of web browsing control.
  • FIG. 10 is a structural block diagram of another television-based webpage browsing control apparatus according to an embodiment of the present invention.
  • the apparatus includes a mouse detecting unit 500, a control recognizing unit 100, a first signal receiving unit 200, a target control determining unit 300, and a cursor moving control unit 400.
  • the mouse detecting unit 500 is configured to determine whether the television is connected to the mouse, and trigger the control recognition unit 100 when the television is not connected to the mouse.
  • the control identification unit 100 is configured to identify an operable control in a target web page displayed by a television browser.
  • the first signal receiving unit 200 is configured to receive a direction key signal of the remote controller.
  • the target control determining unit 300 is configured to determine a target operable control based on the direction key signal.
  • the cursor movement control unit 400 is configured to control the movement of the cursor to the position of the target operable control.
  • the embodiment of the present invention determines whether the television is connected to the mouse when the browser of the television is started, or during the running of the browser, and executes S1 when it is determined that the television is not connected to the mouse. And subsequent steps to avoid the step of identifying the operable controls still in the mouse control mode.
  • FIG. 11 is a structural block diagram of another television-based webpage browsing control apparatus according to an embodiment of the present invention.
  • the apparatus includes: a control identification unit 100, a first signal receiving unit 200, a target control determining unit 300, a cursor movement control unit 400, a second signal receiving unit 600, a current control determining unit 700, and a preset operation executing unit. 800.
  • the control identification unit 100 is configured to identify an operable control in a target web page displayed by a television browser.
  • the first signal receiving unit 200 is configured to receive a direction key signal of the remote controller.
  • the target control determining unit 300 is configured to determine a target operable control based on the direction key signal.
  • the cursor movement control unit 400 is configured to control the movement of the cursor to the position of the target operable control.
  • the second signal receiving unit 600 is configured to receive a determination key signal of the remote controller.
  • the current control determining unit 700 is configured to determine a currently operable control corresponding to the current location of the cursor when receiving the determination key signal of the remote controller.
  • the preset operation execution unit 800 is configured to determine a control type of the currently operable control and perform a preset operation corresponding to the control type.
  • the apparatus shown in FIG. 11 may further include: a control stack detecting unit 900.
  • the control stack detecting unit 900 is configured to determine whether there is a common area in the display position of any two or more operable controls in the target webpage, and corresponding to the common area when the common area exists Each of the operational controls sets a different response priority.
  • the current control determining unit 700 is specifically configured to:
  • the embodiment of the present invention also detects whether there is a stacking phenomenon, and sets different response priorities for each operable control stacked on each other, so that the cursor is located When the position is exactly the common area of the operable controls stacked on each other, the actionable control with the highest priority is used as the currently operable control by comparing the response priorities of the respective operable controls stacked on each other. That is, the embodiment of the present invention solves the user response problem when the operable controls are stacked by setting different response priorities.
  • an embodiment of the present invention further provides a television set including at least a processor and a memory for storing the processor executable instructions.
  • the processor is configured to: when the executable instruction stored in the memory is invoked and executed, execute the webpage browsing control method described in any one of the foregoing method embodiments, which at least includes performing the following steps:
  • the embodiment of the present invention loads the target webpage every time in the TV browser. After identifying the operable control in the target webpage, after receiving the direction key signal of the remote controller, determining the target operable control according to the target moving direction indicated by the direction key signal; wherein the target operable control is a cursor The current position is the operable control of the target moving direction closest to the cursor; and the cursor is moved from the current position to the position of the target operable control.
  • the cursor can skip the inoperable area in the moving direction of the target and directly stay at the position of an operable control; compared to the prior art, the present invention
  • the embodiment can increase the distance each time the cursor moves without missing the operable control, so that the user can control the movement of the cursor in the entire interface by only a few key operations, which greatly simplifies the user operation complexity. Enhance the user experience.
  • the implementation of the embodiment of the present invention is simple and easy to implement, and does not need to modify the webpage itself, and only needs to modify the control program of the television browser to perform the above webpage browsing control step.
  • the embodiment of the present application further provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer executable instructions, which can execute the webpage in any of the foregoing method embodiments.
  • Browse control methods
  • FIG. 12 is a schematic diagram of a hardware structure of an electronic device for performing a webpage browsing control method according to an embodiment of the present disclosure. As shown in FIG. 12, the device includes:
  • processors 1210 and memory 1220 one processor 1210 is exemplified in FIG.
  • the apparatus for performing the web page browsing control method may further include: an input device 1230 and an output device 1240.
  • the processor 1210, the memory 1220, the input device 1230, and the output device 1240 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 1220 is used as a non-transitory computer readable storage medium, and can be used for storing a non-transitory software program, a non-transitory computer executable program, and a module, such as a program instruction/module corresponding to the webpage browsing control method in the embodiment of the present application.
  • a non-transitory software program such as a program instruction/module corresponding to the webpage browsing control method in the embodiment of the present application.
  • the processor 1210 executes various functional applications and data processing of the electronic device by running non-transitory software programs, instructions, and modules stored in the memory 1220, that is, implementing the webpage browsing control method of the above method embodiment.
  • the memory 1220 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the web browsing control device, and the like.
  • memory 1220 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • memory 1220 can optionally include memory remotely located relative to processor 1210, which can be connected to the web browsing control device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input device 1230 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the web browsing control device.
  • the output device 1240 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 1220, and when executed by the one or more processors 1210, perform a web page browsing control method in any of the above method embodiments.
  • the electronic device of the embodiment of the invention exists in various forms, including but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, web browsing controllers (such as iPods), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • audio web browsing controllers (such as iPods), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability , reliability, security, scalability, manageability, etc. The requirements are higher.
  • the program when executed, may include the flow of an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).

Landscapes

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

Abstract

本发明实施例公开了一种基于电视机的网页浏览控制方法及相关装置,其在电视机浏览器每次加载目标网页后,识别该目标网页中的可操作控件,在接收到遥控器的方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件;其中,该目标可操作控件为以光标当前位置为起点的所述目标移动方向上的,距离光标最近的可操作控件;并将光标由所述当前位置移动至该目标可操作控件所在位置。可见,相对于现有技术,本发明实施例可以在不错过可操作控件的前提下,增大光标每次移动的距离,从而用户仅需很少次的按键操作,就可以控制光标在整个界面内移动,大大简化用户操作复杂度,增强用户体验好感度。

Description

基于电视机的网页浏览控制方法及相关装置
本申请要求于2016年6月27日提交中国专利局、申请号为201610483351.1、发明名称为“基于电视机的网页浏览控制方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及电视机浏览器技术领域,尤其涉及一种基于电视机的网页浏览控制方法及相关装置。
背景技术
随着电视机技术的发展,现有电视机的功能也越来越多,用户不仅可以通过电视机收看电视节目,还可以在电视机上打开浏览器,浏览网页,如图1所示,并通过遥控器控制光标101在当前展示的网页中移动,实现对该网页的相关操作,例如打开该网页中的链接。
现有技术中,用户通过电视机浏览网页时,通过遥控器控制光标移动,用户每按一次遥控器的方向键,光标向方向键对应的方向移动一段距离。相应的,从电视机的角度来说,即电视机每接收到一次来自遥控器的方向键信号,就将光标的位置移动一个预设距离(如0.5cm等);例如,当接收到向右的方向键信号时,则将光标在网页中的位置向右移动0.5cm。
发明人在实现本发明的过程中发现,基于上述控制方式,对于图1所示界面,当用户需要点击网页左侧显示的链接时,需要多次按下向左的方向键,才能使光标101由图1所示位置移动至左侧的链接位置。实际上,由于网页中可供用户进一步操作的按钮或链接所占的面积比例是很小的,导致用户在通过电视机浏览网页的过程中,需要频繁执行方向键按键操作来控制光标移动至目标位置(例如,将光标由不可操作区域移动至可操作的按钮或链接所在位置,或将光标由一个链接所在位置移动至另一链接所在位置),从而造成用户浏览网页的大部分时间都消耗在执行方向键按键操作上;可见,现有控制方式下,基于电视机的网页浏览操作过于繁琐,用户体验差。
发明内容
本发明实施例中提供了一种基于电视机的网页浏览控制方法及相关装置,以解决 现有技术中基于电视机的网页浏览操作过于繁琐、用户体验差的问题。
本发明实施例第一方面提供一种基于电视机的网页浏览控制方法;该方法包括:
识别电视机浏览器所展示的目标网页中的可操作控件;
接收遥控器的方向键信号;
根据所述方向键信号确定目标可操作控件;
控制光标移动至所述目标可操作控件所在位置。
结合第一方面,在第一方面的第一种可行的实施方式中,所述识别电视机浏览器所展示的目标网页中的可操作控件,包括:
获取所述目标网页的源文件;
分别读取所述源文件中的各个元素标签,并判断所述元素标签是否与预设标签相匹配;
确定与所述预设标签相匹配的元素标签对应的网页元素为可操作控件。
结合第一方面,在第一方面的第二种可行的实施方式中,根据所述方向键信号确定目标可操作控件,包括:
获取光标在所述目标网页中的当前位置坐标;
确定各个可操作控件在所述目标网页中的控件坐标;
解析所述方向键信号,得到目标移动方向;
根据所述当前位置坐标和所述控件坐标,确定所述目标移动方向上与当前位置坐标距离最小的可操作控件,并将所述与当前位置坐标距离最小的可操作控件作为目标可操作控件。
结合第一方面,或者第一方面的第一种可行的实施方式,或者第一方面的第二种可行的实施方式,在第一方面的第三种可行的实施方式中,所述方法还包括:
判断电视机是否与鼠标连接;
当电视机未与鼠标连接时,执行所述识别电视机浏览器所展示的目标网页中的可操作控件的步骤。
结合第一方面,或者第一方面的第一种可行的实施方式,或者第一方面的第二种 可行的实施方式,在第一方面的第四种可行的实施方式中,所述方法还包括:
接收遥控器的确定键信号;
当接收到遥控器的确定键信号时,确定光标当前所在位置对应的当前可操作控件;
确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作。
结合第一方面的第四种可行的实施方式,在第一方面的第五种可行的实施方式中,确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作,包括:
当所确定的控件类型为输入框控件时,显示虚拟键盘,以便用户利用所述虚拟键盘在所述输入框控件中输入字符;
当所确定的控件类型为按钮控件或链接控件时,加载与所述当前可操作控件相关联的页面。
结合第一方面的第四种可行的实施方式,在第一方面的第六种可行的实施方式中,在识别电视机浏览器所展示的目标网页中的可操作控件之后,所述方法还包括:
判断任意两个或两个以上可操作控件在所述目标网页中的显示位置是否存在公共区域;
当存在所述公共区域时,为所述公共区域对应的各个可操作控件分别设置不同的响应优先级;
相应的,所述确定光标当前所在位置对应的当前可操作控件,包括:
当光标当前所在位置在多个可操作控件对应的公共区域内时,选择所述多个可操作控件中响应优先级最高的一个可操作控件作为当前可操作控件。
本发明实施例第二方面提供一种基于电视机的网页浏览控制装置;所述装置包括:
控件识别单元,用于识别电视机浏览器所展示的目标网页中的可操作控件;
第一信号接收单元,用于接收遥控器的方向键信号;
目标控件确定单元,用于根据所述方向键信号确定目标可操作控件;
光标移动控制单元,用于控制光标移动至所述目标可操作控件所在位置。
结合第二方面,在第二方面的第一种可行的实施方式中,所述控件识别单元包括:
源文件获取单元,用于获取所述目标网页的源文件;
标签匹配单元,用于分别读取所述源文件中的各个元素标签,并判断所述元素标签是否与预设标签相匹配,并确定与所述预设标签相匹配的元素标签对应的网页元素为可操作控件。
结合第二方面,在第二方面的第二种可行的实施方式中,所述目标控件确定单元包括:
光标位置确定单元,用于获取光标在所述目标网页中的当前位置坐标;
控件坐标获取单元,用于确定各个可操作控件在所述目标网页中的控件坐标;
方向键信号解析单元,用于解析所述方向键信号,得到目标移动方向;
目标控件选择单元,用于根据所述当前位置坐标和所述控件坐标,确定所述目标移动方向上与当前位置坐标距离最小的可操作控件,并将所述与当前位置坐标距离最小的可操作控件作为目标可操作控件。
结合第二方面,或者第二方面的第一种可行的实施方式,或者第二方面的第二种可行的实施方式,在第二方面的第三种可行的实施方式中,所述装置还包括:
鼠标检测单元,用于判断电视机是否与鼠标连接,并在电视机未与鼠标连接时,触发所述控制识别单元。
结合第二方面,或者第二方面的第一种可行的实施方式,或者第二方面的第二种可行的实施方式,在第二方面的第四种可行的实施方式中,所述装置还包括:
第二信号接收单元,用于接收遥控器的确定键信号;
当前控件确定单元,用于在接收到遥控器的确定键信号时,确定光标当前所在位置对应的当前可操作控件;
预设操作执行单元,用于确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作。
结合第二方面的第四种可行的实施方式,在第二方面的第五种可行的实施方式中,所述装置还包括:
控件堆叠检测单元,用于判断任意两个或两个以上可操作控件在所述目标网页中 的显示位置是否存在公共区域,并在存在所述公共区域时,为所述公共区域对应的各个可操作控件分别设置不同的响应优先级;
相应的,所述当前控件确定单元,具体被配置为:
当光标当前所在位置在多个可操作控件对应的公共区域内时,选择所述多个可操作控件中响应优先级最高的一个可操作控件作为当前可操作控件。
本发明实施例第三方面还提供一种电视机;该电视机包括:
处理器,以及用于存储所述处理器可执行指令的存储器;
其中,所述处理器被配置为:当调用并执行所述存储器中存储的可执行指令时,执行上述第一方面任一项所述的网页浏览控制方法,其至少包括执行如下步骤:
识别电视机浏览器所展示的目标网页中的可操作控件;
接收遥控器的方向键信号;
根据所述方向键信号确定目标可操作控件;
控制光标移动至所述目标可操作控件所在位置。
本发明实施例还提供了一种非暂态计算机可读存储介质,其中,该非暂态计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项网页浏览控制方法。
本发明实施例还提供了一种电子设备,包括:一个或多个处理器;以及,存储器;其中,所述存储器存储有可被所述一个或多个处理器执行的指令,所述指令被设置为用于执行上述任一项网页浏览控制方法。
本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一项网页浏览控制方法。
由以上技术方案可知,本发明实施例在电视机浏览器每次加载目标网页后,识别该目标网页中的可操作控件,在接收到遥控器的方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件;其中,该目标可操作控件为以光标当前位置为起点的所述目标移动方向上的,距离光标最近的可操作控件;并将光标由所述当前位置移动至该目标可操作控件所在位置。可见,基于本发明实施例,用户每一次按 下方向键后,光标都可以跳过目标移动方向上的不可操作区域,直接停留在一个可操作控件所在位置上;相对于现有技术,本发明实施例可以在不错过可操作控件的前提下,增大光标每次移动的距离,从而用户仅需很少次的按键操作,就可以控制光标在整个界面内移动,大大简化用户操作复杂度,增强用户体验好感度。另外,本发明实施例的实现简单易执行,不需要对网页本身进行修改,只需要修改电视机浏览器的控制程序,使其执行上述网页浏览控制步骤即可。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明实施例。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
图1为现有电视机中浏览网页的界面示意图。
图2是本发明实施例对应的应用环境示意图。
图3是本发明实施例提供的一种基于电视机的网页浏览控制方法的流程图。
图4是本发明实施例提供的可操作控件识别效果示意图。
图5是本发明实施例提供的另一种基于电视机的网页浏览控制方法的流程图。
图6是本发明实施例提供的另一种基于电视机的网页浏览控制方法的流程图。
图7是本发明实施例提供的另一种基于电视机的网页浏览控制方法的流程图。
图8是本发明实施例提供的另一种基于电视机的网页浏览控制方法的流程图。
图9是本发明实施例提供的一种基于电视机的网页浏览控制装置的结构框图。
图10是本发明实施例提供的另一种基于电视机的网页浏览控制装置的结构框图。
图11是本发明实施例提供的另一种基于电视机的网页浏览控制装置的结构框图;
图12为本发明实施例提供的一种电子设备的结构示意图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
首先对本发明实施例的基于电视机的网页浏览控制方法进行说明。图2为本发明实施例对应的环境架构图。如图2所示,电视机接入互联网后,用户可以通过遥控器向电视机发送按键信号,来实现对电视机浏览器所展示网页的相关控制操作,如通过方向键信号控制光标在网页中移动、通过确定键信号控制浏览器选中并加载光标所指向的链接等。
基于上述应用环境,本发明实施例提供了一种基于电视机的网页浏览控制方法,如图3所示的流程图,该方法包括如下步骤。
S1、识别电视机浏览器所展示的目标网页中的可操作控件。
本发明实施例中,电视机浏览器每完成一次网页加载(包括加载一个新的网页、返回上一个网页、刷新当前网页等),就执行一次步骤S1,识别出新加载的目标网页中的可操作控件。参照图4,以界面410所示网页(即图1所示电视机展示网页)为例,经过步骤S1,可以确定该网页中的各个文字式链接、图片式链接、按钮、输入框等可操作控件,图4中界面420示意性展示了几个具有代表性的可操作控件,例如:界面420中可操作控件1即界面410中的检索输入框401,可操作控件2即界面410中的按钮401,可操作控件3即界面410中的文字式链接403,可操作控件8即界面410中的图片式链接404。
S2、接收遥控器的方向键信号。
S3、根据所述方向键信号确定目标可操作控件。
S4、控制光标移动至所述目标可操作控件所在位置。
本发明实施例中,在接收到方向键信号后,不再根据该方向键信号所指示的方向将光标移动一段预设距离,而是将光标移动至该方向键信号所指示的移动方向上的目标可操作控件所在位置。
例如,光标101所在位置如图4中界面420所示,在此情况下,电视机接收到遥控器发送的方向键信号,根据该方向键信号所指示的目标移动方向的不同,至少包括以下四种情况:
1)当该目标移动方向为“向右”时,则确定光标101所在位置的右侧距离最近的可操作控件为目标可操作控件,即界面420中的可操作控件6,并将光标101移动至可操作控件6所在位置处;
2)当该目标移动方向为“向左”时,则确定光标101所在位置的左侧距离最近的可操作控件为目标可操作控件,即界面420中的可操作控件3,并将光标101移动至可操作控件3所在位置处;
3)当该目标移动方向为“向上”时,则确定光标101所在位置的上侧距离最近的可操作控件为目标可操作控件,即界面420中的可操作控件1,并将光标101移动至可操作控件1所在位置处;
4)当该目标移动方向为“向下”时,则确定光标101所在位置的上侧距离最近的可操作控件为目标可操作控件,当由于界面420中光标101下侧不存在可操作控件,则在一个可行的具体实施方式中,可以保持光标101位置不变,在另一个可行的具体实施方式中,也可以将光标101向下移动预设距离,以告知用户电视机已接收并响应本次按键操作。
由以上技术方案可知,本发明实施例在电视机浏览器每次加载目标网页后,识别该目标网页中的可操作控件,在接收到遥控器的方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件;其中,该目标可操作控件为以光标当前位置为起点的所述目标移动方向上的,距离光标最近的可操作控件;并将光标由所述当前位置移动至该目标可操作控件所在位置。可见,基于本发明实施例所述的网页浏览控制方法,用户每一次按下方向键后,光标都可以跳过目标移动方向上的不可操作区域,直接停留在一个可操作控件所在位置上;相对于现有技术,本发明实施例可以在不错过可操作控件的前提下,增大光标每次移动的距离,从而用户仅需很少次的按键操作,就可以控制光标在整个界面内移动,大大简化用户操作复杂度,增强用户体验好感度。另 外,本发明实施例的实现简单易执行,不需要对网页本身进行修改,只需要修改电视机浏览器的控制程序,使其执行上述网页浏览控制步骤即可。
可选的,上述步骤S4所述的控制光标移动至所述目标可操作控件所在位置,具体可以为,将光标移动至所述目标可操作控件所在区域的中心位置,或者最左端,或者最右端等。
可选的,在本发明其他实施例中,在识别出可操作控件后,可以通过修改显示样式,来突出显示各个可操作控件,例如修改文字式链接控件的底纹颜色或文字颜色等。
图5为本发明实施例提供的另一种基于电视机的网页浏览控制方法流程图。参照图5,该方法包括以下步骤:
S11、获取电视机浏览器所展示的目标网页的源文件。
S12、分别读取所述源文件中的各个元素标签,并判断所述元素标签是否与预设标签相匹配。
S13、确定与所述预设标签相匹配的元素标签对应的网页元素为可操作控件。
上述源文件中的元素标签用于指示各个网页元素的类型,以保证浏览器正确加载该网页元素。
上述步骤S11至S13实现了上文实施例步骤S1所述的识别目标网页中的可操作控件,即,利用目标网页的源文件中的元素标签来识别出各个可操作控件。具体的,在可以依次读取源文件中的每个元素标签,并判断读取到的元素标签是否为预设标签;其中,预设标签即可操作控件对应的元素标签,可以包括多个,如文字式链接对应的第一预设标签,图片式链接对应的第二预设标签,输入框对应的第三预设标签,按钮对应的第四预设标签等;为保证准确识别,应将网页中可能出现的每种可操作控件对应的元素标签都设置为预设标签。如果读取到的元素标签是上述预设标签中的任意一个,即该元素标签与预设标签相匹配,则将该元素标签对应的网页元素作为可操作控件;反之,如果读取到的元素标签不是预设标签,则继续读取源文件中的下一个元素标签。
S2、接收遥控器的方向键信号。
S3、根据所述方向键信号确定目标可操作控件。
S4、控制光标移动至所述目标可操作控件所在位置。
由以上技术方案可知,本发明实施例通过识别目标网页中的可操作控件,并在每次接收到方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件,并将光标移动至该目标可操作控件所在位置;其中,本发明实施例根据目标网页的源文件中的元素标签来判断各个网页元素是否为可操作控件,即复用源文件中的元素标签实现对目标网页中可操作控件的识别,不需要修改目标网页,识别过程简单易实现,可以保证网页浏览控制的响应速度。
图6为本发明实施例提供的另一种基于电视机的网页浏览控制方法流程图。参照图6,该方法包括以下步骤:
S1、识别电视机浏览器所展示的目标网页中的可操作控件。
S2、接收遥控器的方向键信号。
S31、获取光标在所述目标网页中的当前位置坐标。
S32、确定各个可操作控件在所述目标网页中的控件坐标。
S33、解析所述方向键信号,得到目标移动方向。
S34、根据所述当前位置坐标和所述控件坐标,确定所述目标移动方向上与所述当前位置坐标距离最小的可操作控件,并将所述与光标距离最小的可操作控件作为目标可操作控件。
上述步骤S31至S34实现了上文实施例中步骤S3所述的根据所述方向键信号确定目标可操作控件。其中,对于S31、S32和S33三个步骤,本发明实施例对其执行顺序无限制,既可以并行执行,也可以以任意一种先后顺序执行。
假设本发明实施例基于目标网页建立的平面直角坐标系xy,水平向右为x轴正方向,竖直向下为y轴正方向;上述光标对应的当前位置坐标,具体可以为光标的箭头顶端对应的坐标点的坐标,假设为(x0,y0);上述控件坐标具体可以为相应可操作控件所在区域的四个边缘对应的坐标,假设为(x1,x2,y1,y2),其中,x1为该可操作控件所在区域的左边缘对应的x轴坐标值,x2为该可操作控件所在区域的右边缘对应的x轴坐标值,y1为该可操作控件所在区域的上边缘对应的y轴坐标值,y2为该可操作控件所在区域的下边缘对应的y轴坐标 值;假设目标移动方向为“向右”,则步骤S34中具体可以如下条件筛选得到目标移动方向上与光标的当前位置坐标距离最小的可操作控件(即目标可操作控件):1)y1<y0<y2,2)x1>x0,3)如果满足条件1)和2)的可操作控件有多个,则选择x1最小的一个可操作控件为目标可操作控件。当目标移动方向为“向左”、“向上”或“向下”时,本领域技术人员可参照上述情况设置相应的筛选条件,来确定目标可操作控件,此处不再逐个举例说明。
在本发明其他实施例中,上述步骤S32还可以在步骤S1识别出可操作控件后立即执行,即每识别出一个可操作控件,则立即确定该可操作控件对应的控件坐标,并在一缓存单元中保存该控件坐标,从而在执行步骤S34时,直接从该缓存单元中读取各个控件坐标即可,从而提高网页浏览控件效率。
S4、控制光标移动至所述目标可操作控件所在位置。
由以上技术方案可知,本发明实施例通过识别目标网页中的可操作控件,并在每次接收到方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件,并将光标移动至该目标可操作控件所在位置;其中,本发明实施例具体根据光标对应的坐标,以及各个可操作控件所在区域的四个边缘对应的坐标之间的比较,来确定目标可操作控件,简单易执行,可以保证网页浏览控制效率。
图7为本发明实施例提供的另一种基于电视机的网页浏览控制方法流程图。参照图7,该方法包括以下步骤:
S0、判断电视机是否与鼠标连接,当电视机未与鼠标连接时,执行步骤S1。
S1、识别电视机浏览器所展示的目标网页中的可操作控件。
S2、接收遥控器的方向键信号。
S3、根据所述方向键信号确定目标可操作控件。
S4、控制光标移动至所述目标可操作控件所在位置。
实际应用中,当电视机与鼠标连接时,可以直接通过鼠标来实现网页浏览控制(包括,控制光标在网页中移动,点击某个可操作控件等),因此,本发明实施例仅用于通过遥控器实现电视机中网页浏览控制的情况,故在电视机的浏 览器启动后,首先判断电视机是否连接有鼠标,如果电视机连接有鼠标,则不执行本发明实施例所述步骤,如果电视机没有连接鼠标,则由步骤S1开始执行本发明实施例所述控制步骤。可选的,本发明实施例也可以在浏览器运行过程中周期性执行S0,以在电视机与鼠标连接或断开连接时,及时切换网页浏览控制方式。
由以上技术方案可知,本发明实施例在电视机的浏览器启动时,或者浏览器运行过程中,判断电视机是否与鼠标连接,并在判断电视机没有与鼠标连接的情况下,才执行S1及后续步骤,避免鼠标控制模式下仍执行可操作控件的识别步骤。
基于上述任一实施例,本发明其他实施例提供的基于电视机的网页浏览控制方法还可以包括以下步骤:
接收遥控器的确定键信号;
当接收到遥控器的确定键信号时,确定光标当前所在位置对应的当前可操作控件;
确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作。
本发明实施例中,通过执行上文所述步骤S1至S4,可以保证光标停留位置始终为某个可操作控件所在位置,而不会是空白区域等无效操作区域,因此,用户可以直接按下遥控器上的确定键,使得遥控器向电视机发送上述确定键信号,来触发电视机浏览器执行光标所在位置出的可操作控件对应的预设操作。
可选的,所述控件类型可以包括输入框控件(如图4界面410中的检索输入框401)、按钮控件(如图4界面410中的按钮401)、链接控件(如图4界面410中的文字式链接403、图片式链接404)等。
由于不同类型的可操作控件对应不同的预设操作,故本发明实施例先确定所述当前可操作控件的控件类型,再根据该控件类型确定需要执行的预设操作:当确定所述当前可操作控件的控件类型为输入框时,则需要执行的预设操作为,显示虚拟键盘,以便用户利用所述虚拟键盘在所述输入框控件中输入字符;当确定所述当前可操作控件的控件类型为按钮控件或链接控件时,则需要执行的预设操作为,加载与所述当前可操作控件相关联的页面。当然,对于其 他控件类型,还可以有其他预设操作,本实施例不再穷举,本领域技术人员可根据实际情况设置。
图8为本发明实施例提供的另一种基于电视机的网页浏览控制方法流程图。参照图8,该方法包括以下步骤:
S1、识别电视机浏览器所展示的目标网页中的可操作控件。
S8、判断任意两个或两个以上可操作控件在所述目标网页中的显示位置是否存在公共区域。
S9、当存在所述公共区域时,为所述公共区域对应的各个可操作控件分别设置不同的响应优先级。
S2、接收遥控器的方向键信号。
S3、根据所述方向键信号确定目标可操作控件。
S4、控制光标移动至所述目标可操作控件所在位置。
S5、接收遥控器的确定键信号。
S61、当接收到遥控器的确定键信号时,判断光标当前所在位置是否在多个可操作控件对应的公共区域内,如果是,则执行步骤S63,否则执行步骤S62。
S62、当光标当前所在位置不在多个可操作控件对应的公共区域内时,直接将光标当前所在位置对应的可操作控件作为当前可操作控件,并执行步骤S7。
S63、当光标当前所在位置在多个可操作控件对应的公共区域内时,选择所述多个可操作控件中响应优先级最高的一个可操作控件作为当前可操作控件,并执行步骤S7。
上述步骤S61至S63实现前文所述当接收到遥控器的确定键信号时,确定光标当前所在位置对应的当前可操作控件。其中,步骤S61所述的判断光标当前所在位置是否在多个可操作控件对应的公共区域内,也即判断光标当前所在位置是否存在多个可操作控件;相应的,步骤S62中所述的光标当前所在位置不在公共区域内,也即光标当前所在位置只有一个可操作控件,故可以直接将这一个可操作控件作为当前可操作控件;步骤S63中所述的光标当前所在位置在公共区域内,也即光标当前所在位置堆叠有多个可操作控件,故选择其中响应优先级最高的一个可操作控件作为当前可操作控件。
S7、确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作。
实际应用中,可能存在网页设计版式与浏览器版式不兼容,或网页加载错误等情况,导致多个可操作控件堆叠显示,即两个或两个以上可操作控件的显示位置存在公共区域;对于这一现象,在后续接收到确定键信号后,需要区分到底执行哪个可操作控件对应的预设操作。为解决这一问题,本发明实施例在识别出目标网页的各个可操作控件后,还通过步骤S8检测是否存在控件堆叠现象,并在步骤S9中对互相堆叠的各个可操作控件设置不同的响应优先级,进而在接收到确定键信号后,经步骤S61判定光标当前所在位置为一公共区域,即光标当前所在位置对应的可操作控件为多个(包括两个或两个以上)时,根据多个可操作控件的响应优先级高低来确定当前可操作控件。
例如,经过步骤S8判断,可操作控件a和可操作控件b的显示位置存在公共区域,则将用户点击概率较高的可操作控件a的响应优先级设置为p1,用户点击概率较低的可操作控件b的响应优先级设置为p2(其中,p1>p2);进而当在步骤S61中确定光标当前所在位置对应的可操作控件包括可操作控件a和可操作控件b两个时,选择响应优先级较高的可操作控件a作为当前可操作控件,即用户点击确定键后,执行可操作控件a对应的预设操作。
由以上技术方案可知,本发明实施例在识别出目标网页中的可操作控件后,还检测其是否存在堆叠现象,并对相互堆叠的各个可操作控件设置不同的响应优先级,从而在光标所在位置恰好为相互堆叠的可操作控件的公共区域时,通过比较相互堆叠的各个可操作控件的响应优先级,将响应优先级最高的可操作控件作为当前可操作控件。即,本发明实施例通过设置不同的响应优先级解决了可操作控件堆叠时的用户响应问题。
需要说明的是,本发明上述任一方法实施例都可以编辑为计算机处理器可执行指令,并将该可执行指令嵌入电视机的浏览器程序中,当电视机的处理器调用浏览器程序,启动浏览器后,该可执行指令也被执行,从而对电视机浏览器所展示的网页实现上述浏览控制方法的部分或全部步骤。
相应于上述方法实施例,本发明实施例还提供了一种计算机存储介质,例如可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random-Access Memory,RAM)、磁带、软盘和光数据存储设备等;该计算 机存储介质中存储有程序,当所述存储介质中的程序由电视机的处理器执行时,使得该电视机浏览器能够执行上述方法实施例中记载的网页浏览控制方法的部分或全部步骤。
图9为本发明实施例提供的一种基于电视机的网页浏览控制装置的结构框图。参照图9,该装置包括:控件识别单元100、第一信号接收单元200、目标控件确定单元300和光标移动控制单元400。
该控件识别单元100被配置为,识别电视机浏览器所展示的目标网页中的可操作控件。
该第一信号接收单元200被配置为,接收遥控器的方向键信号。
该目标控件确定单元300被配置为,根据所述方向键信号确定目标可操作控件。
该光标移动控制单元400被配置为,控制光标移动至所述目标可操作控件所在位置。
由以上技术方案可知,本发明实施例在电视机浏览器每次加载目标网页后,识别该目标网页中的可操作控件,在接收到遥控器的方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件;其中,该目标可操作控件为以光标当前位置为起点的所述目标移动方向上的,距离光标最近的可操作控件;并将光标由所述当前位置移动至该目标可操作控件所在位置。可见,基于本发明实施例所述的网页浏览控制装置,用户每一次按下方向键后,光标都可以跳过目标移动方向上的不可操作区域,直接停留在一个可操作控件所在位置上;相对于现有技术,本发明实施例可以在不错过可操作控件的前提下,增大光标每次移动的距离,从而用户仅需很少次的按键操作,就可以控制光标在整个界面内移动,大大简化用户操作复杂度,增强用户体验好感度。另外,本发明实施例的实现简单易执行,不需要对网页本身进行修改,只需要修改电视机浏览器的控制程序,使其执行上述网页浏览控制步骤即可。
在本发明一个可行的实施例中,上述控件识别单元100具体可以包括:
源文件获取单元,用于获取所述目标网页的源文件;
标签匹配单元,用于分别读取所述源文件中的各个元素标签,并判断所述元素标签是否与预设标签相匹配,并确定与所述预设标签相匹配的元素标签对应的网页元素为可操作控件。
由以上技术方案可知,本发明实施例通过识别目标网页中的可操作控件,并在每次接收到方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件,并将光标移动至该目标可操作控件所在位置;其中,本发明实施例根据目标网页的源文件中的元素标签来判断各个网页元素是否为可操作控件,即复用源文件中的元素标签实现对目标网页中可操作控件的识别,不需要修改目标网页,识别过程简单易实现,可以保证网页浏览控制的响应速度。
在本发明一个可行的实施例中,上述目标控件确定单元300具体可以包括:
光标位置确定单元,用于获取光标在所述目标网页中的当前位置坐标;
控件坐标获取单元,用于确定各个可操作控件在所述目标网页中的控件坐标;
方向键信号解析单元,用于解析所述方向键信号,得到目标移动方向;
目标控件选择单元,用于根据所述当前位置坐标和所述控件坐标,确定所述目标移动方向上与当前位置坐标距离最小的可操作控件,并将所述与当前位置坐标距离最小的可操作控件作为目标可操作控件。
由以上技术方案可知,本发明实施例通过识别目标网页中的可操作控件,并在每次接收到方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件,并将光标移动至该目标可操作控件所在位置;其中,本发明实施例具体根据光标对应的坐标,以及各个可操作控件所在区域的四个边缘对应的坐标之间的比较,来确定目标可操作控件,简单易执行,可以保证网页浏览控制效率。
图10为本发明实施例提供的另一种基于电视机的网页浏览控制装置的结构框图。参照图10,该装置包括:鼠标检测单元500、控件识别单元100、第一信号接收单元200、目标控件确定单元300和光标移动控制单元400。
该鼠标检测单元500被配置为,判断电视机是否与鼠标连接,并在电视机未与鼠标连接时,触发所述控制识别单元100。
该控件识别单元100被配置为,识别电视机浏览器所展示的目标网页中的可操作控件。
该第一信号接收单元200被配置为,接收遥控器的方向键信号。
该目标控件确定单元300被配置为,根据所述方向键信号确定目标可操作控件。
该光标移动控制单元400被配置为,控制光标移动至所述目标可操作控件所在位置。
由以上技术方案可知,本发明实施例在电视机的浏览器启动时,或者浏览器运行过程中,判断电视机是否与鼠标连接,并在判断电视机没有与鼠标连接的情况下,才执行S1及后续步骤,避免鼠标控制模式下仍执行可操作控件的识别步骤。
图11为本发明实施例提供的另一种基于电视机的网页浏览控制装置的结构框图。参照图11,该装置包括:控件识别单元100、第一信号接收单元200、目标控件确定单元300、光标移动控制单元400、第二信号接收单元600、当前控件确定单元700和预设操作执行单元800。
该控件识别单元100被配置为,识别电视机浏览器所展示的目标网页中的可操作控件。
该第一信号接收单元200被配置为,接收遥控器的方向键信号。
该目标控件确定单元300被配置为,根据所述方向键信号确定目标可操作控件。
该光标移动控制单元400被配置为,控制光标移动至所述目标可操作控件所在位置。
该第二信号接收单元600被配置为,接收遥控器的确定键信号。
该当前控件确定单元700被配置为,在接收到遥控器的确定键信号时,确定光标当前所在位置对应的当前可操作控件。
该预设操作执行单元800被配置为,确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作。
进一步的,图11所示装置还可以包括:控件堆叠检测单元900。
该控件堆叠检测单元900被配置为,判断任意两个或两个以上可操作控件在所述目标网页中的显示位置是否存在公共区域,并在存在所述公共区域时,为所述公共区域对应的各个可操作控件分别设置不同的响应优先级。
基于上述控件堆叠检测单元900,上述当前控件确定单元700,具体被配置为:
当光标当前所在位置在多个可操作控件对应的公共区域内时,选择所述多个可操作控件中响应优先级最高的一个可操作控件作为当前可操作控件;当光标当前所在位置不在多个可操作控件对应的公共区域内时,直接将光标当前所在位置对应的可操作控件作为当前可操作控件。
由以上技术方案可知,本发明实施例在识别出目标网页中的可操作控件后,还检测其是否存在堆叠现象,并对相互堆叠的各个可操作控件设置不同的响应优先级,从而在光标所在位置恰好为相互堆叠的可操作控件的公共区域时,通过比较相互堆叠的各个可操作控件的响应优先级,将响应优先级最高的可操作控件作为当前可操作控件。即,本发明实施例通过设置不同的响应优先级解决了可操作控件堆叠时的用户响应问题。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
另外,本发明实施例还提供了一种电视机,该电视机至少包括:处理器,以及用于存储所述处理器可执行指令的存储器。
其中,所述处理器被配置为:当调用并执行所述存储器中存储的可执行指令时,执行上述任一项方法实施例所述的网页浏览控制方法,其至少包括执行如下步骤:
识别电视机浏览器所展示的目标网页中的可操作控件;
接收遥控器的方向键信号;
根据所述方向键信号确定目标可操作控件;
控制光标移动至所述目标可操作控件所在位置。
由以上技术方案可知,本发明实施例在电视机浏览器每次加载目标网页 后,识别该目标网页中的可操作控件,在接收到遥控器的方向键信号后,根据该方向键信号所指示的目标移动方向确定目标可操作控件;其中,该目标可操作控件为以光标当前位置为起点的所述目标移动方向上的,距离光标最近的可操作控件;并将光标由所述当前位置移动至该目标可操作控件所在位置。可见,基于本发明实施例,用户每一次按下方向键后,光标都可以跳过目标移动方向上的不可操作区域,直接停留在一个可操作控件所在位置上;相对于现有技术,本发明实施例可以在不错过可操作控件的前提下,增大光标每次移动的距离,从而用户仅需很少次的按键操作,就可以控制光标在整个界面内移动,大大简化用户操作复杂度,增强用户体验好感度。另外,本发明实施例的实现简单易执行,不需要对网页本身进行修改,只需要修改电视机浏览器的控制程序,使其执行上述网页浏览控制步骤即可。
本申请实施例还提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的网页浏览控制方法。
图12是本申请实施例提供的执行网页浏览控制方法的电子设备的硬件结构示意图,如图12所示,该设备包括:
一个或多个处理器1210以及存储器1220,图12中以一个处理器1210为例。
执行网页浏览控制方法的设备还可以包括:输入装置1230和输出装置1240。
处理器1210、存储器1220、输入装置1230和输出装置1240可以通过总线或者其他方式连接,图12中以通过总线连接为例。
存储器1220作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的网页浏览控制方法对应的程序指令/模块(例如,附图9所示的控件识别单元100、第一信号接收单元200、目标控件确定单元300和光标移动控制单元400)。处理器1210通过运行存储在存储器1220中的非暂态软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述方法实施例网页浏览控制方法。
存储器1220可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据网页浏览控制装置的使用所创建的数据等。此外,存储器1220可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器1220可选包括相对于处理器1210远程设置的存储器,这些远程存储器可以通过网络连接至网页浏览控制装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置1230可接收输入的数字或字符信息,以及产生与网页浏览控制装置的用户设置以及功能控制有关的键信号输入。输出装置1240可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器1220中,当被所述一个或者多个处理器1210执行时,执行上述任意方法实施例中的网页浏览控制方法。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
本发明实施例的电子设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、网页浏览控制器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面 要求较高。
(5)其他具有数据交互功能的电子装置。
最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非暂态计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本发明实施例旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明实施例未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。

Claims (22)

  1. 一种基于电视机的网页浏览控制方法,其特征在于,应用于电视机,包括:
    识别电视机浏览器所展示的目标网页中的可操作控件;
    接收遥控器的方向键信号;
    根据所述方向键信号确定目标可操作控件;
    控制光标移动至所述目标可操作控件所在位置。
  2. 根据权利要求1所述的方法,其特征在于,所述识别电视机浏览器所展示的目标网页中的可操作控件,包括:
    获取所述目标网页的源文件;
    分别读取所述源文件中的各个元素标签,并判断所述元素标签是否与预设标签相匹配;
    确定与所述预设标签相匹配的元素标签对应的网页元素为可操作控件。
  3. 根据权利要求1所述的方法,其特征在于,根据所述方向键信号确定目标可操作控件,包括:
    获取光标在所述目标网页中的当前位置坐标;
    确定各个可操作控件在所述目标网页中的控件坐标;
    解析所述方向键信号,得到目标移动方向;
    根据所述当前位置坐标和所述控件坐标,确定所述目标移动方向上与当前位置坐标距离最小的可操作控件,并将所述与当前位置坐标距离最小的可操作控件作为目标可操作控件。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,还包括:
    判断电视机是否与鼠标连接;
    当电视机未与鼠标连接时,执行所述识别电视机浏览器所展示的目标网页中的可操作控件的步骤。
  5. 根据权利要求1至3任一项所述的方法,其特征在于,还包括:
    接收遥控器的确定键信号;
    当接收到遥控器的确定键信号时,确定光标当前所在位置对应的当前可操作控件;
    确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作。
  6. 根据权利要求5所述的方法,其特征在于,确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作,包括:
    当所确定的控件类型为输入框控件时,显示虚拟键盘,以便用户利用所述虚拟键盘在所述输入框控件中输入字符;
    当所确定的控件类型为按钮控件或链接控件时,加载与所述当前可操作控件相关联的页面。
  7. 根据权利要求5所述的方法,其特征在于,在识别电视机浏览器所展示的目标网页中的可操作控件之后,所述方法还包括:
    判断任意两个或两个以上可操作控件在所述目标网页中的显示位置是否存在公共区域;
    当存在所述公共区域时,为所述公共区域对应的各个可操作控件分别设置不同的响应优先级;
    相应的,所述确定光标当前所在位置对应的当前可操作控件,包括:
    当光标当前所在位置在多个可操作控件对应的公共区域内时,选择所述多个可操作控件中响应优先级最高的一个可操作控件作为当前可操作控件。
  8. 一种基于电视机的网页浏览控制装置,其特征在于,包括:
    控件识别单元,用于识别电视机浏览器所展示的目标网页中的可操作控件;
    第一信号接收单元,用于接收遥控器的方向键信号;
    目标控件确定单元,用于根据所述方向键信号确定目标可操作控件;
    光标移动控制单元,用于控制光标移动至所述目标可操作控件所在位置。
  9. 根据权利要求8所述的装置,其特征在于,所述控件识别单元包括:
    源文件获取单元,用于获取所述目标网页的源文件;
    标签匹配单元,用于分别读取所述源文件中的各个元素标签,并判断所述元素标签是否与预设标签相匹配,并确定与所述预设标签相匹配的元素标签对应的网页元素为可操作控件。
  10. 根据权利要求8所述的装置,其特征在于,所述目标控件确定单元包括:
    光标位置确定单元,用于获取光标在所述目标网页中的当前位置坐标;
    控件坐标获取单元,用于确定各个可操作控件在所述目标网页中的控件坐标;
    方向键信号解析单元,用于解析所述方向键信号,得到目标移动方向;
    目标控件选择单元,用于根据所述当前位置坐标和所述控件坐标,确定所述目标移动方向上与当前位置坐标距离最小的可操作控件,并将所述与当前位置坐标距离最小的可操作控件作为目标可操作控件。
  11. 根据权利要求8至10任一项所述的装置,其特征在于,还包括:
    鼠标检测单元,用于判断电视机是否与鼠标连接,并在电视机未与鼠标连接时,触发所述控制识别单元。
  12. 根据权利要求8至10任一项所述的装置,其特征在于,还包括:
    第二信号接收单元,用于接收遥控器的确定键信号;
    当前控件确定单元,用于在接收到遥控器的确定键信号时,确定光标当前所在位置对应的当前可操作控件;
    预设操作执行单元,用于确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作。
  13. 根据权利要求12所述的装置,其特征在于,还包括:
    控件堆叠检测单元,用于判断任意两个或两个以上可操作控件在所述目标网页中的显示位置是否存在公共区域,并在存在所述公共区域时,为所述公共区域对应的各个可操作控件分别设置不同的响应优先级;
    相应的,所述当前控件确定单元,具体被配置为:
    当光标当前所在位置在多个可操作控件对应的公共区域内时,选择所述多个可操作控件中响应优先级最高的一个可操作控件作为当前可操作控件。
  14. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:
    识别电视机浏览器所展示的目标网页中的可操作控件;
    接收遥控器的方向键信号;
    根据所述方向键信号确定目标可操作控件;
    控制光标移动至所述目标可操作控件所在位置。
  15. 一种电子设备,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
    识别电视机浏览器所展示的目标网页中的可操作控件;
    接收遥控器的方向键信号;
    根据所述方向键信号确定目标可操作控件;
    控制光标移动至所述目标可操作控件所在位置。
  16. 根据权利要求15所述的电子设备,其特征在于,所述识别电视机浏览器所展示的目标网页中的可操作控件,包括:
    获取所述目标网页的源文件;
    分别读取所述源文件中的各个元素标签,并判断所述元素标签是否与预设标签相匹配;
    确定与所述预设标签相匹配的元素标签对应的网页元素为可操作控件。
  17. 根据权利要求15所述的电子设备,其特征在于,根据所述方向键信号确定目标可操作控件,包括:
    获取光标在所述目标网页中的当前位置坐标;
    确定各个可操作控件在所述目标网页中的控件坐标;
    解析所述方向键信号,得到目标移动方向;
    根据所述当前位置坐标和所述控件坐标,确定所述目标移动方向上与当前位置坐标距离最小的可操作控件,并将所述与当前位置坐标距离最小的可操作控件作为目标可操作控件。
  18. 根据权利要求15至17任一项所述的电子设备,其特征在于,所述指令还设置为:
    判断电视机是否与鼠标连接;
    当电视机未与鼠标连接时,执行所述识别电视机浏览器所展示的目标网页中的可操作控件的步骤。
  19. 根据权利要求15至17任一项所述的电子设备,其特征在于,所述指令还设置为:
    接收遥控器的确定键信号;
    当接收到遥控器的确定键信号时,确定光标当前所在位置对应的当前可操作控件;
    确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作。
  20. 根据权利要求19所述的电子设备,其特征在于,确定所述当前可操作控件的控件类型,并执行所述控件类型对应的预设操作,包括:
    当所确定的控件类型为输入框控件时,显示虚拟键盘,以便用户利用所述虚拟键盘在所述输入框控件中输入字符;
    当所确定的控件类型为按钮控件或链接控件时,加载与所述当前可操作控件相关联的页面。
  21. 根据权利要求19所述的电子设备,其特征在于,在识别电视机浏览器所展示的目标网页中的可操作控件之后,所述指令还设置为:
    判断任意两个或两个以上可操作控件在所述目标网页中的显示位置是否存在公共区域;
    当存在所述公共区域时,为所述公共区域对应的各个可操作控件分别设置不同的响应优先级;
    相应的,所述确定光标当前所在位置对应的当前可操作控件,包括:
    当光标当前所在位置在多个可操作控件对应的公共区域内时,选择所述多个可操作控件中响应优先级最高的一个可操作控件作为当前可操作控件。
  22. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1至7任一项所述的方法。
PCT/CN2016/100345 2016-06-27 2016-09-27 基于电视机的网页浏览控制方法及相关装置 Ceased WO2018000626A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610483351.1A CN106131630A (zh) 2016-06-27 2016-06-27 基于电视机的网页浏览控制方法及相关装置
CN201610483351.1 2016-06-27

Publications (1)

Publication Number Publication Date
WO2018000626A1 true WO2018000626A1 (zh) 2018-01-04

Family

ID=57265881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100345 Ceased WO2018000626A1 (zh) 2016-06-27 2016-09-27 基于电视机的网页浏览控制方法及相关装置

Country Status (2)

Country Link
CN (1) CN106131630A (zh)
WO (1) WO2018000626A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770369A (zh) * 2020-05-25 2020-10-13 广州视源电子科技股份有限公司 遥控方法、装置、存储介质及终端
CN114124735A (zh) * 2022-01-29 2022-03-01 南昌国讯信息技术股份有限公司 路由设计方法及电子设备
CN117668405A (zh) * 2023-12-15 2024-03-08 福建星网视易信息系统有限公司 基于动静态结合的网页展示方法及计算机可读存储介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040275B (zh) * 2017-12-29 2020-08-21 福州福大海矽微电子有限公司 一种遥控器操作网页浏览器的方法及终端
CN110134463B (zh) * 2018-02-02 2022-07-26 斑马智行网络(香港)有限公司 数据处理方法、装置、设备和机器可读介质
CN109739593B (zh) * 2018-11-21 2022-06-10 惠州Tcl移动通信有限公司 多网页切换浏览方法、移动终端及计算机可读存储介质
CN113015023A (zh) * 2019-12-20 2021-06-22 海信电子科技(深圳)有限公司 Html5网页中的视频控制的方法及装置
CN111258569A (zh) * 2020-01-09 2020-06-09 卓望数码技术(深圳)有限公司 网页组件编辑方法、装置、设备和计算机可读存储介质
CN111767001B (zh) * 2020-06-28 2023-05-30 中国商用飞机有限责任公司 用于飞机的机载交互界面的光标移动控制方法
CN113703633A (zh) * 2021-08-31 2021-11-26 深圳市路通网络技术有限公司 一种页面光标位置控制方法、装置、设备及可读存储介质
CN114466252B (zh) * 2022-02-09 2024-01-26 北京千家悦网络科技有限公司 一种页面视频播放方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520854A (zh) * 2011-11-30 2012-06-27 苏州希图视鼎微电子有限公司 一种网页焦点移动及控制Flash导航的方法及其实现装置
CN102547463A (zh) * 2011-12-15 2012-07-04 Tcl集团股份有限公司 一种电视机界面焦点定位方法、装置及电视机
CN103533416A (zh) * 2013-10-25 2014-01-22 深圳创维-Rgb电子有限公司 一种实现浏览器中光标定位的方法及装置
CN104104984A (zh) * 2014-07-31 2014-10-15 合一网络技术(北京)有限公司 焦点控制方法及其装置
CN105357589A (zh) * 2015-09-18 2016-02-24 成都视达科信息技术有限公司 Stb按键控制的处理系统及方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459975A (zh) * 2002-05-15 2003-12-03 金宝电子工业股份有限公司 在视窗中直觉式移动焦点的方法及其装置
CN101373404B (zh) * 2007-08-24 2012-02-15 幸琳 按键设备的智能定位方法
CN101562690A (zh) * 2009-05-15 2009-10-21 中兴通讯股份有限公司 一种机顶盒及其按键操作的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520854A (zh) * 2011-11-30 2012-06-27 苏州希图视鼎微电子有限公司 一种网页焦点移动及控制Flash导航的方法及其实现装置
CN102547463A (zh) * 2011-12-15 2012-07-04 Tcl集团股份有限公司 一种电视机界面焦点定位方法、装置及电视机
CN103533416A (zh) * 2013-10-25 2014-01-22 深圳创维-Rgb电子有限公司 一种实现浏览器中光标定位的方法及装置
CN104104984A (zh) * 2014-07-31 2014-10-15 合一网络技术(北京)有限公司 焦点控制方法及其装置
CN105357589A (zh) * 2015-09-18 2016-02-24 成都视达科信息技术有限公司 Stb按键控制的处理系统及方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770369A (zh) * 2020-05-25 2020-10-13 广州视源电子科技股份有限公司 遥控方法、装置、存储介质及终端
CN114124735A (zh) * 2022-01-29 2022-03-01 南昌国讯信息技术股份有限公司 路由设计方法及电子设备
CN117668405A (zh) * 2023-12-15 2024-03-08 福建星网视易信息系统有限公司 基于动静态结合的网页展示方法及计算机可读存储介质
CN117668405B (zh) * 2023-12-15 2025-09-30 福建星网视易信息系统有限公司 基于动静态结合的网页展示方法及计算机可读存储介质

Also Published As

Publication number Publication date
CN106131630A (zh) 2016-11-16

Similar Documents

Publication Publication Date Title
WO2018000626A1 (zh) 基于电视机的网页浏览控制方法及相关装置
US20220377128A1 (en) File transfer display control method and apparatus, and corresponding terminal
CN107111496B (zh) 可定制刀片应用
CN105190644B (zh) 用于使用触摸控制的基于图像的搜索的技术
CN104135684B (zh) 一种基于Firefox OS的界面显示方法及装置
TWI544366B (zh) 語音輸入命令之技術
WO2019072201A1 (zh) 网页内容提取方法以及终端设备
US20170024226A1 (en) Information processing method and electronic device
US20130031455A1 (en) System for Linking to Documents with Associated Annotations
US20130031454A1 (en) System for Programmatically Accessing Document Annotations
EP2954692B1 (en) Telestration system for command processing
US20140123036A1 (en) Touch screen display process
WO2021179904A1 (zh) 标记数据处理方法、设备及存储介质
WO2014154033A1 (en) Method and apparatus for extracting web page content
WO2018010316A1 (zh) 桌面页面管理的方法及装置
WO2017156983A1 (zh) 一种列表的调用方法及装置
CN107885823A (zh) 音频信息的播放方法、装置、存储介质及电子设备
CN104216646A (zh) 基于手势创建应用程序的方法及装置
WO2015035897A1 (en) Search methods, servers, and systems
CN105075279B (zh) 显示设备及其控制方法
CN110347459B (zh) 一种窗口最小化方法、装置、存储介质及交互智能平板
WO2022156817A1 (zh) 内容提取方法、装置
CN117950546A (zh) 点读数据的处理方法、电子文档的展示方法及电子设备
US20150145749A1 (en) Image processing apparatus and image processing method
CN118113206B (zh) 一种平板电脑分屏智能控制方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16907022

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16907022

Country of ref document: EP

Kind code of ref document: A1