WO2015184749A1 - 电视浏览器的控制方法和装置 - Google Patents

电视浏览器的控制方法和装置 Download PDF

Info

Publication number
WO2015184749A1
WO2015184749A1 PCT/CN2014/092471 CN2014092471W WO2015184749A1 WO 2015184749 A1 WO2015184749 A1 WO 2015184749A1 CN 2014092471 W CN2014092471 W CN 2014092471W WO 2015184749 A1 WO2015184749 A1 WO 2015184749A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
accessed
mode
div
structural feature
Prior art date
Application number
PCT/CN2014/092471
Other languages
English (en)
French (fr)
Inventor
胡强
王兴
龚攀峰
陈苇苇
Original Assignee
广州市动景计算机科技有限公司
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 广州市动景计算机科技有限公司 filed Critical 广州市动景计算机科技有限公司
Publication of WO2015184749A1 publication Critical patent/WO2015184749A1/zh

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/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • 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/81Monomedia components thereof

Definitions

  • the present invention relates to the field of browser control, and more particularly to a method and apparatus for controlling a television browser.
  • focus movement is mainly implemented in two ways: one mode is a focus switching mode, which utilizes 'up, down, left, right, OK, return, on the device remote controller.
  • the direction key in the menu ' such as the button to achieve focus switching, and then press the OK button to achieve the focus position selection.
  • Another way is the mouse movement mode, which uses the mouse to move the cursor to achieve focus switching and focus position selection; wherein the mouse movement mode is controlled by the device remote controller.
  • the focus switching algorithm of the system needs to be utilized.
  • the position of the next focus as shown in Figure 1; when you need to switch from the page element A of the current position to a page element B in the lower right corner of the page, you need to go through multiple page focus switching to achieve Very time consuming and user experience is poor.
  • a customized webpage refers to a webpage whose element size meets certain requirements and the layout of the page elements. It is very time consuming to use the mouse movement mode to move the focus to achieve focus switching (an example is shown in Figure 2.
  • the mouse cursor is moved by the current position C by 4 steps to the target position D).
  • the focus switching mode is used to control the TV browser.
  • the traditional webpage it is necessary to switch the focus to the target position after multiple focus switching, which is very time consuming and the user experience is poor; the mouse movement mode is used to control the TV browser.
  • Customized web pages that achieve focus switching are also time consuming.
  • the object of the present invention is to provide a control method and device for a television browser, which can select a remote focus switching mode or a mouse moving mode to conveniently perform focus movement according to different webpage structures, thereby improving user experience.
  • a method for controlling a television browser comprising:
  • maintaining or switching the mode of the remote controller is a focus switching mode; when the webpage structural feature does not satisfy the preset condition, maintaining or switching the mode of the remote controller to a mouse moving mode ;
  • the preset condition includes that the size of the webpage DIV element satisfies a predetermined size and the total area of the adjacent DIV element combinations occupies a ratio of the area of the webpage to be accessed, which is greater than or equal to a preset threshold.
  • the preset condition further includes a number of webpage DIV elements whose sizes satisfy the predetermined size and are adjacent to each other, and the ratio of the total number of webpage DIV elements meets a preset ratio.
  • control method further comprises the step of: maintaining or switching the mode of the remote controller to a focus switching mode when determining that the accessed interface is a browser-owned component interface.
  • the acquiring the structural features of the webpage of the webpage to be accessed includes:
  • the step of acquiring the webpage structural feature of the webpage to be accessed is immediately performed.
  • a control device for a television browser comprising:
  • An obtaining unit configured to obtain a webpage structural feature of the webpage to be accessed; wherein the webpage structural feature comprises: a size of the webpage DIV element and a relative position of the DIV element in the webpage;
  • a preset condition determining unit configured to determine whether the structural feature of the webpage meets a preset condition
  • the remote controller mode maintains a switching unit for maintaining or cutting when the webpage structural feature satisfies a preset condition
  • the mode of changing the remote controller is a focus switching mode; when the webpage structural feature does not satisfy the preset condition, maintaining or switching the mode of the remote controller is a mouse movement mode;
  • the preset condition includes that the size of the webpage DIV element satisfies a predetermined size and the total area of the adjacent DIV element combinations occupies a ratio of the area of the webpage to be accessed, which is greater than or equal to a preset threshold.
  • the preset condition further includes a number of webpage DIV elements whose sizes satisfy the predetermined size and are adjacent to each other, and the ratio of the total number of webpage DIV elements meets a preset ratio.
  • the remote controller mode maintaining switching unit maintains or switches the mode of the remote controller to the focus switching mode.
  • the acquiring unit includes: a sending subunit and a receiving subunit;
  • the sending subunit is configured to send a URL of the webpage to be accessed to the background server; and the background server that receives the URL determines whether the webpage structure feature corresponding to the URL exists in the cache, and if yes, directly returns a webpage structure feature corresponding to the URL; if not, obtaining, according to the URL, a webpage structural feature of the webpage to be accessed;
  • a receiving subunit configured to receive a webpage structural feature returned by the background server.
  • the webpage structural feature of the webpage to be accessed is immediately performed.
  • the webpage structure feature of the webpage to be accessed is analyzed first, when the size of the webpage DIV element satisfies the predetermined size and the total area of the adjacent DIV element combination occupies the area of the webpage to be accessed is greater than or equal to a preset threshold.
  • the structure of the webpage is more suitable for the focus switching mode, and the focus switching can be conveniently performed; for other webpage structural features (such as some webpages with more links), the mouse movement mode is more convenient for focus switching; compared with the traditional The focus movement method of the television browser, the invention can select a focus movement mode that is more suitable for the structural features of the webpage, and improve the user experience.
  • FIG. 1 is a schematic diagram showing a focus shifting mode of a television browser using only a remote focus switching mode
  • FIG. 2 is a schematic diagram showing a focus shifting mode in a television browser using only a remote mouse movement mode
  • FIG. 3 is a flow chart showing a control method of a television browser proposed in the present invention.
  • FIG. 4 is another flow chart showing a control method of a television browser proposed in the present invention.
  • FIG. 5 is a schematic diagram showing the structure of a page obtained in the present invention.
  • FIG. 6 is a schematic diagram showing an interface of a browser own component in the present invention.
  • FIG. 7 is another flow chart showing a control method of a television browser proposed in the present invention.
  • Figure 8 is a schematic view showing a specific embodiment of the present invention.
  • Figure 9 is a schematic view showing another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a control apparatus of a television browser proposed in the present invention.
  • Fig. 11 is a view showing another configuration of the control device of the television browser proposed in the present invention.
  • FIG. 3 shows a flow chart of a control method of a television browser proposed in the present invention
  • a webpage to be accessed is obtained.
  • a webpage structure feature wherein the webpage structure feature comprises: a size of a webpage DIV (DIVision) element and a relative position of the DIV element in the webpage; and in step S302, determining whether the webpage structure feature satisfies a preset condition; in step S303 When the webpage structural feature satisfies the preset condition, the mode of maintaining or switching the remote controller is the focus switching mode; in step S304, when the webpage structural feature does not satisfy the preset condition, maintaining or switching the remote The mode of the controller is a mouse movement mode; wherein the preset condition is that the size of the webpage DIV element satisfies a predetermined size and the total area of the adjacent DIV element combinations occupies a ratio of the area of the webpage to be accessed is greater than or equal to a
  • the webpage structure feature of the webpage to be accessed is analyzed first, when the size of the webpage DIV element satisfies the predetermined size and the total area of the adjacent DIV element combination occupies the area of the webpage to be accessed is greater than or equal to a preset threshold.
  • the structure of the webpage is more suitable for the focus switching mode, and the focus switching can be conveniently performed; for other webpage structural features (such as some webpages with more links), the mouse movement mode is more convenient for focus switching; compared with the traditional The focus movement method of the television browser, the invention can select a focus movement mode that is more suitable for the structural features of the webpage, and improve the user experience.
  • FIG. 4 is a flow chart showing another method for controlling the television browser proposed in the present invention.
  • the steps are as shown in FIG. 4, and the specific process is as follows:
  • the client (which may be a browser, or a browser-mounted mobile device or its equivalent) obtains the webpage code of the webpage to be accessed from the background server according to the URL input by the user or the URL selected on the webpage. ;
  • the client After obtaining the webpage code of the webpage to be accessed, the client obtains the webpage structural feature of the webpage to be accessed, that is, obtains the size of the webpage DIV element and the relative position of the DIV element in the webpage in S402; wherein the DIV element is used for HTML (Hypertext Markup Language) Large chunks of content within a document provide elements of structure and background. Specifically, the corresponding DIV element is found from the webpage code according to the DIV tag, and the size of the webpage DIV element and the relative position of the DIV element in the webpage can be obtained according to the DIV property. Then step S403 is performed.
  • the DIV element combination whose size of the DIV element meets the predetermined size and the position of the DIV element is adjacent is filtered; wherein the predetermined size is configured for the background, and can be changed according to actual needs. It should be noted that when configuring the predetermined size, it should be ensured that when the page structure feature meets the preset condition and the remote control mode is switched to the focus switching mode to control the webpage, it is more necessary to control the webpage than using only the traditional mouse movement mode. Convenience. When screening, it is possible to first screen whether the size of the DIV element satisfies a predetermined size. If the predetermined size is satisfied (may also be expressed as a predetermined area), the relative position of the DIV element in the webpage is recorded, and then the adjacent DIV elements are filtered to form a DIV element. DIV element combination.
  • the preset threshold may be 9/10.
  • step S404 is performed; if not, step S405 is performed.
  • the mode of the remote controller is maintained or switched to the focus switching mode in S404; the mode of the remote controller is maintained or switched to the mouse movement mode in S405.
  • FIG. 5 For a better understanding of the present invention, refer to FIG. 5; according to the URL of the web page to be accessed, after retrieving the page code of the page to be accessed, look up the DIV tag, obtain the DIV element attribute, and obtain the DIV element of the to-be-visited webpage according to the DIV attribute (number 1, 2, 3, ... 20) the size and relative position of the DIV element in the web page, as shown in Figure 5 (the figure is not displayed on the client page); the size of the DIV element obtained above is compared with the predetermined size, If the acquired DIV element size is greater than or equal to the predetermined size, it is determined that the predetermined size is satisfied, and in the embodiment of FIG.
  • the DIV elements 1 to 6 are not satisfied to satisfy the predetermined size, and the DIV elements 7 to 16 are set to satisfy the predetermined size and the DIV element. 17 to 20 satisfy the predetermined size; and the positions of the DIV elements 7 to 16 are adjacent to each other, and the positions of the DIV elements 17 to 20 are adjacent to each other, and the DIV element combination 1 composed of the DIV elements 17 to 20 and the DIV elements 7 to 16 are obtained.
  • the DIV element combination 2 then obtain the sum of the sizes of the individual DIV elements in the DIV element combination 1 and the DIV element combination 2; and obtain the size of the entire page (according to the page attribute); obtain the sum of the sizes of the above DIV element combinations ( D).
  • control method of the television browser further includes the step of maintaining or switching the mode of the remote controller to the focus switching mode when accessing the component interface of the browser.
  • the method for controlling a television browser further includes the steps of: sending a URL (Uniform Resource Locator) of the web page to be accessed to a background server; wherein the URL is received
  • the background server determines whether there is a webpage structure feature corresponding to the URL in the cache, and if yes, directly returns a webpage structure feature corresponding to the URL; if not, obtains and returns a webpage to be accessed according to the URL Web page structure characteristics;
  • the webpage structure feature of the page to be accessed is acquired immediately to improve real-time performance.
  • the preset condition further includes that the size meets a predetermined size and The ratio of the number of adjacent page DIV elements to the total number of web page DIV elements satisfies a preset ratio.
  • the preset number may also be configured according to an empirical value, and the present invention is not limited. On the basis of the embodiment of FIG. 3, or the embodiment of FIG. 4 or FIG. 5, the number of webpage DIV elements whose size meets a predetermined size and is adjacent to each other needs to meet a preset number, in order to select a remote controller more appropriately.
  • the operation mode such as the more extreme case, when analyzing the page structure features of the page to be accessed, only two DIV element sizes satisfy the preset size and the positions are adjacent, and the ratio of the two DIV element sizes to the entire page size exceeds The preset threshold (preferably 9/10), but the number of DIV elements in the page that do not meet the preset size is far more than 2, so that the number of webpage DIV elements whose size meets the predetermined size and is adjacent to the position The ratio of the total number of DIV elements to the web page does not satisfy the preset ratio. If switching to the remote focus switching mode is not appropriate, it should be switched to the remote mouse movement mode.
  • FIG. 7 is another flow chart of the control method of the television browser proposed in the present invention.
  • the control method of the television browser shown in FIG. 7 includes but is not limited to the following steps:
  • the client determines whether the accessed interface is a browser component interface; generally, the browser home page is provided with a customized component, because each browsing The manufacturer can set it according to its own positioning, so it can also be called its own component;
  • FIG. 6 shows a schematic diagram of the interface of the browser's own component in the present invention; as shown in FIG. 6 'Tencent video', 'Iqiyiyi', 'Sohu' and the like are all browser-owned components; it can be understood that Figure 6 is merely exemplary. If it is determined that the current browser is the browser-owned component, then S703 is performed; if it is determined that the currently accessed component is not the browser-owned component, then the webpage is accessed at this time, and then S704 is performed.
  • step S703 The client maintains or switches the mode of the remote controller to the focus switching mode; if the component is selected by the focus switching mode, and clicks to enter the corresponding webpage, the process proceeds to step S705.
  • the client sends the URL of the webpage to be accessed to the background server.
  • the background server determines whether there is a webpage structure feature of the webpage to be accessed in the cache. In this step, the background server may use the URL of the webpage to be accessed according to the corresponding relationship table between the cached past page structure feature and the corresponding page URL. If the matching result is non-empty, it is determined that there is a webpage structural feature of the webpage to be accessed; if the matching result is empty, it is determined that the webpage structural feature of the webpage to be accessed is not stored. If the background server determines that there is no webpage structure feature of the webpage to be accessed in the cache, proceed to S706; if the background server determines the webpage structure feature of the webpage to be accessed in the cache, proceed to S708;
  • the background server obtains a webpage code of the webpage to be accessed according to the URL;
  • step S707 After the background server obtains the webpage code of the webpage to be accessed, the script is injected into the webpage code to Obtaining a webpage structure feature of the page; the background server associates the acquired page structure feature with the page URL; and then proceeds to step S708.
  • the background server returns, to the client, a webpage structural feature of accessing the webpage.
  • the client determines whether the page structure feature meets the preset condition. For specific steps, refer to the related steps in the embodiment of FIG. 4. If the preset condition is met, proceed to S710; if the preset condition is not met, proceed to S711;
  • the client maintains or switches the mode of the remote controller to a focus switching mode.
  • S711 The client maintains or switches the mode of the remote controller to the mouse movement mode.
  • the page structure feature may also be analyzed by the client, that is, the steps S706 to S708 may be replaced by the following steps: the background server obtains the webpage code of the webpage to be accessed according to the URL, and returns the webpage code to the client; After the client obtains the webpage code of the webpage to be accessed, the script is injected into the webpage code to obtain the webpage structure feature of the webpage.
  • the step of obtaining the webpage structure feature of the webpage may refer to the related steps of the embodiment of FIG.
  • the client uploads the page structure feature and the corresponding URL to the background server, and the background server caches the obtained page structure feature and the URL.
  • FIG. 8 shows A schematic diagram of a specific embodiment of the present invention; in this embodiment, the implementation steps of the present invention include:
  • the browser client requests the background code of the webpage to be accessed to the background server according to the URL of the webpage to be accessed;
  • the association relationship between the URL and the corresponding webpage structure feature is pre-cached in the background server.
  • the background server receives the URL of the webpage to be accessed (www.fangchan.com)
  • the cached URL is associated with the corresponding webpage structural feature first. If the relationship between the webpage structure of the webpage to be accessed is matched, the webpage structure feature of the webpage to be accessed is returned to the browser client; if not, the webpage code is obtained from the webpage server according to the URL of the webpage to be accessed. Return to the browser client.
  • the browser client After obtaining the page code of the webpage to be accessed, the browser client obtains the DIV element attribute of the webpage to be accessed, thereby obtaining the webpage structural feature of the webpage to be accessed, as shown in FIG. 8, wherein the webpage structural feature includes the size of the DIV element. And the location of the DIV element in the web page to be accessed; for ease of understanding, the individual DIV element sizes of the web page to be accessed are shown in black in FIG. 8 , and FIG. 8 also shows the location of the DIV element in the web page to be accessed; In fact, in the actual processing, it does not show the box shown in Figure 8, these are processed by the browser client background.
  • the browser client determines the size of the DIV element and the location of the DIV element in the web page to be accessed. Filtering the DIV element that meets the preset condition; wherein the preset condition is that the size of the webpage DIV element satisfies the predetermined size and the total area of the adjacent DIV element combination occupies a ratio of the area of the to-be-visited webpage is greater than or equal to a preset threshold, and The number of DIV elements whose size meets the predetermined size and is adjacent to each other is greater than two; after screening, there is no DIV element that meets the preset condition (as shown in FIG. 8, only one DIV element has a relatively large size, and other DIV elements are selected. The size is small), so the browser client maintains or switches the mode of the remote to mouse movement mode.
  • FIG. 9 shows a schematic diagram of another embodiment of the present invention.
  • the implementation steps of the present invention include:
  • the browser client requests the background code of the webpage to be accessed to the background server according to the URL of the webpage to be accessed;
  • the association relationship between the URL and the corresponding webpage structure feature is pre-cached in the background server.
  • the background server receives the URL of the webpage to be accessed (www.fangchan.com)
  • the cached URL is associated with the corresponding webpage structural feature first. If the relationship between the webpage structure of the webpage to be accessed is matched, the webpage structure feature of the webpage to be accessed is returned to the browser client; if not, the webpage code is obtained from the webpage server according to the URL of the webpage to be accessed. Obtaining the DIV element attribute of the webpage to be accessed, thereby obtaining the webpage structure feature of the webpage to be accessed, and then returning the obtained page structure feature to the browser client.
  • the page structure feature of the web page to be accessed is as shown in FIG. 9 , wherein the web page structure feature includes the size of the DIV element and the DIV element is to be accessed.
  • the position in the web page; for ease of understanding, the individual DIV element sizes of the web page to be accessed are shown in black boxes in FIG. 9, and FIG. 9 also shows the position of the DIV element in the web page to be accessed; in fact, in actual processing It does not show the box shown in Figure 9, which is handled by the browser client in the background.
  • the browser client selects a DIV element that meets the preset condition according to the size of the obtained DIV element and the position of the DIV element in the to-be-visited webpage; wherein, the preset condition is that the size of the webpage DIV element satisfies the predetermined size and the position is The ratio of the total area of the adjacent DIV element combination to the area of the webpage to be accessed is greater than or equal to a preset threshold, and the size of the DIV element that meets the predetermined size and is adjacent to the location is greater than two;
  • the DIV element (as shown in Figure 9, only one DIV element is relatively small in size, and the other DIV elements are relatively large in size), so the browser client will maintain or switch the mode of the remote control to the focus switching mode.
  • the step of obtaining the structural characteristics of the webpage and determining whether the structural features of the webpage meet the preset condition may also be completed by the background server, and further increasing whether the interface accessed by the browser client is the judgment of the component interface, of:
  • the browser client determines whether the accessed interface is a browser component interface; generally, the browser home page is provided with a custom component. Since each browser manufacturer can set according to its own positioning, it is called a self-owned component; Currently, the browser component interface is accessed, and the client maintains or switches the mode of the remote controller to the focus switching mode; if it is determined that the currently accessed browser component interface is not a webpage, the client sends the URL of the to-be-visited webpage. Give the backend server.
  • the background server determines whether there is a webpage structure feature of the webpage to be accessed in the cache; in this step, the background server can use the URL of the webpage to be accessed according to the corresponding relationship table between the cached past page structure feature and the corresponding page URL. If the matching result is non-empty, it is determined that there is a webpage structural feature of the webpage to be accessed; if the matching result is empty, it is determined that the webpage structural feature of the webpage to be accessed is not stored.
  • the background server determines whether the webpage structure feature of the webpage to be accessed in the cache, the background server determines whether the webpage structure feature satisfies the preset condition; if the preset condition is met, notifying the client to maintain or switch the mode of the remote controller to the focus switching mode; If the preset condition is not met, the client is notified to maintain or switch the mode of the remote controller to the mouse movement mode.
  • the background server determines that there is no webpage structure feature of the webpage to be accessed in the cache, the background server obtains the webpage code of the webpage to be accessed according to the URL; after the background server obtains the webpage code of the webpage to be accessed, the background server injects a script into the webpage code to obtain the webpage code.
  • the present invention also provides a control device for a television browser
  • FIG. 10 shows a schematic structural diagram of a control device for a television browser proposed in the present invention.
  • the device includes: an acquisition unit T1 for Obtaining a webpage structure feature of the webpage to be accessed; wherein the webpage structure feature includes: a size of the webpage DIV element and a relative position of the DIV element in the webpage; and a preset condition determining unit T2, configured to determine whether the webpage structural feature satisfies the preset
  • the remote control mode maintaining switching unit T3 is configured to maintain or switch the mode of the remote controller as the focus switching mode when the webpage structural feature satisfies the preset condition; and maintain or switch the remote controller when the webpage structural feature does not satisfy the preset condition
  • the mode is a mouse movement mode; wherein the preset condition includes the size of the webpage DIV element satisfies a predetermined size and the total area of the adjacent DIV element combinations occupies the area of the webpage to be accessed. Greater than or equal to the
  • the webpage structure feature of the webpage to be accessed is analyzed first, when the size of the webpage DIV element satisfies the predetermined size and the total area of the adjacent DIV element combination occupies the area of the webpage to be accessed is greater than or equal to a preset threshold.
  • the structure of the webpage is more suitable for the focus switching mode, and the focus switching can be conveniently performed; for other webpage structural features (such as some webpages with more links), the mouse movement mode is more convenient for focus switching; compared with the traditional The focus movement method of the television browser, the invention can select a focus movement mode that is more suitable for the structural features of the webpage, and improve the user experience.
  • the preset condition further includes a number of web page DIV elements whose sizes satisfy a predetermined size and are adjacent to each other, and a ratio of the total number of web page DIV elements meets a preset ratio.
  • the preset ratio is 7 to 10; wherein the preset ratio may also be configured according to an empirical value, which is not limited by the present invention.
  • the ratio of the number of web page DIV elements that satisfy the predetermined size and the position is adjacent to the total number of the web page DIV elements needs to satisfy the preset ratio, in order to more appropriately select the operation mode of the remote controller.
  • the remote controller mode maintaining switching unit T3 maintains or switches the mode of the remote controller to the focus switching mode when accessing the browser own component.
  • the obtaining unit T1 in all the above embodiments includes: a transmitting subunit T11 and a receiving subunit T12;
  • the sending sub-unit T11 is configured to send the URL of the webpage to be accessed to the background server; the background server that receives the URL determines whether the webpage structure feature corresponding to the URL exists in the cache, and if so, directly returns to the a webpage structure feature corresponding to the URL; if not, obtaining, according to the URL, a webpage structural feature of the webpage to be accessed;
  • the receiving subunit T12 is configured to receive a webpage structural feature returned by the background server.
  • the background server caches the association relationship between the previously processed page structure features and the corresponding URL, which can improve the processing efficiency of the present invention.
  • the obtaining unit when the obtaining unit acquires the webpage code of the webpage to be accessed, the webpage structural feature of obtaining the webpage to be accessed is immediately performed.
  • the processing efficiency of the present invention can be improved.
  • the terminal can be various handheld terminal devices with browsing webpage functions, such as a smart phone, a personal digital assistant (PDA).
  • PDA personal digital assistant
  • the method according to the invention can also be implemented as a computer program executed by a processor (such as a CPU) in a mobile terminal and stored in a memory of the mobile terminal.
  • a processor such as a CPU
  • the above-described functions defined in the method of the present invention are performed when the computer program is executed by the processor.
  • the method according to the invention may also be embodied as a computer program product comprising a computer readable medium on which is stored a computer program for performing the functions described above in the method of the invention. .
  • the method steps and system units described above may also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the steps or unit functions described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种电视浏览器的控制方法和装置,其中方法包括:获取待访问网页的网页结构特征;其中,所述网页结构特征包括:网页DIV划分元素的尺寸和DIV元素在网页中的相对位置;判断所述网页结构特征是否满足预设条件;当网页结构特征满足预设条件时,将遥控器的模式维持或切换为焦点切换模式;当网页结构特征不满足预设条件时,将遥控器的模式维持或切换为鼠标移动模式;其中,所述预设条件包括网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例大于或者等于预设的阈值。利用本发明可以根据网页结构的不同而选择焦点切换模式或者鼠标移动模式,方便地进行焦点移动,提升用户体验。

Description

电视浏览器的控制方法和装置
本申请要求于2014年6月3日提交中国专利局、申请号为201410243436.3、发明名称为“电视浏览器的控制方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及浏览器控制领域,更为具体地,涉及电视浏览器的控制方法和装置。
背景技术
目前,在智能电视浏览器中浏览网页时,主要采用两种方式实现焦点移动:一种方式是焦点切换模式,该模式利用设备遥控器上的‘上、下、左、右、确定、返回、菜单’等按键中的方向键实现焦点的切换,然后按下确定键实现焦点位置的选择。另一种方式是鼠标移动模式,该模式利用鼠标移动光标实现焦点的切换和焦点位置的选择;其中鼠标移动模式利用设备遥控器操控。
采用目前的焦点切换模式,会存在以下问题:
对于传统型网页(传统型网页指的是网页元素尺寸不满足预定要求,或者尺寸满足一定要求但页面元素分布不规律的网页)进行页面元素的焦点定位时,需要利用系统自带的焦点切换算法来确定下一焦点的位置(焦点切换模式),如图1所示;当需要从当前位置的页面元素A切换到页面右下角的一个页面元素B时,需要经过多次页面焦点切换才能实现,非常耗时,用户体验很差。
采用目前的鼠标移动模式,会存在以下问题:
由于采用鼠标移动模式切换焦点,需要按照一定的步长来移动焦点,在自有组件或者定制型网页(定制型网页指的是网页元素尺寸满足一定要求,页面元素的布局规律的网页)中,利用鼠标移动模式移动焦点进而实现焦点切换非常耗时(一个实例如图2所示,鼠标光标由当前位置C需经过4个步长才能移动到目标位置D)。
综上,采用焦点切换模式控制电视浏览器,对于传统型网页,需要经过多次焦点切换才能将焦点移动到目标位置,非常耗时,用户体验很差;采用鼠标移动模式控制电视浏览器,对于定制型网页,实现焦点切换也非常耗时。
发明内容
本发明的目的在于提出一种电视浏览器的控制方法和装置,可以根据网页结构的不同而选择遥控器焦点切换模式或者鼠标移动模式方便地进行焦点移动,提升用户体验。
为了解决上述技术问题,本发明实施例公开了如下技术方案:
一种电视浏览器的控制方法,其中,包括:
获取待访问网页的网页结构特征;其中,所述网页结构特征包括:网页DIV划分元素的尺寸和DIV元素在网页中的相对位置;
判断所述网页结构特征是否满足预设条件;
当所述网页结构特征满足预设条件时,维持或切换遥控器的模式为焦点切换模式;当所述网页结构特征不满足预设条件时,维持或切换所述遥控器的模式为鼠标移动模式;
其中,所述预设条件包括网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例,大于或者等于预设的阈值。
优选的,所述预设条件还包括尺寸满足所述预定尺寸且位置相邻的网页DIV元素的数目,与网页DIV元素的总数目的比值满足预设比值。
优选的,所述控制方法还包括步骤:当判定访问的界面为浏览器自有组件界面时,维持或切换遥控器的模式为焦点切换模式。
优选的,所述获取待访问网页的网页结构特征,包括:
发送待访问网页的URL统一资源定位符至后台服务器;其中,接收到所述URL的后台服务器,判断缓存中是否存在所述URL相对应的网页结构特征,若有,则直接返回所述URL所对应的网页结构特征;若没有,则根据所述URL,获得且返回待访问网页的网页结构特征;
接收所述后台服务器返回的网页结构特征。
优选的,当获取到待访问网页的网页代码时,立即进行所述获取待访问网页的网页结构特征的步骤。
一种电视浏览器的控制装置,其中,包括:
获取单元,用于获取待访问网页的网页结构特征;其中,所述网页结构特征包括:网页DIV元素的尺寸和DIV元素在网页中的相对位置;
预设条件判断单元,用于判断所述网页结构特征是否满足预设条件;
遥控器模式维持切换单元,用于当所述网页结构特征满足预设条件时,维持或切 换遥控器的模式为焦点切换模式;当所述网页结构特征不满足预设条件时,维持或切换遥控器的模式为鼠标移动模式;
其中,所述预设条件包括网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例,大于或者等于预设的阈值。
优选的,所述预设条件还包括尺寸满足所述预定尺寸且位置相邻的网页DIV元素的数目,与网页DIV元素的总数目的比值满足预设比值。
优选的,当判定访问的界面为浏览器自有组件界面时,所述遥控器模式维持切换单元将遥控器的模式维持或切换为焦点切换模式。
优选的,所述获取单元包括:发送子单元和接收子单元;
其中,所述发送子单元,用于发送待访问网页的URL至后台服务器;接收到所述URL的后台服务器,判断缓存中是否存在所述URL相对应的网页结构特征,若有,则直接返回所述URL所对应的网页结构特征;若没有,则根据所述URL,获得且返回待访问网页的网页结构特征;
接收子单元,用于接收所述后台服务器返回的网页结构特征。
优选的,当所述获取单元获取到待访问网页的网页代码时,立即进行所述获取待访问网页的网页结构特征。
在本发明中,先分析待访问网页的网页结构特征,当网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例大于或者等于预设的阈值时,此时的网页结构特征更适合采用焦点切换模式,可以方便地进行焦点切换;对于其他网页结构特征(如一些含链接比较多的网页),采用鼠标移动模式更方便焦点切换;相对于传统的电视浏览器的焦点移动方法,本发明可以选择更适合网页结构特征的焦点移动方式,提升用户体验。
下面的说明以及附图详细说明了本发明的某些示例性方面。然而,这些方面指示的仅仅是可使用本发明的原理的各种方式中的一些方式。此外,本发明旨在包括所有这些方面以及它们的等同物。
附图说明
构成本申请的一部分的说明书附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
根据下述参照附图进行的详细描述,本发明的上述和其他目的、特征和优点将变得更加显而易见。在附图中:
图1示出了电视浏览器中仅采用遥控器焦点切换模式来移动焦点的一示意图;
图2示出了电视浏览器中仅采用遥控器鼠标移动模式来移动焦点的一示意图;
图3示出了本发明中提出的电视浏览器的控制方法的一个流程图;
图4示出了本发明中提出的电视浏览器的控制方法的另一个流程图;
图5示出了本发明中获取的页面结构特征的一个示意图;
图6示出了本发明中浏览器自有组件界面的示意图;
图7示出了本发明中提出的电视浏览器的控制方法的另一个流程图;
图8示出了本发明的一个具体实施例示意图;
图9示出了本发明的另一个具体实施例示意图;
图10示出了本发明中提出的电视浏览器的控制装置的一个结构示意图;
图11示出了本发明中提出的电视浏览器的控制装置的另一个结构示意图。
在所有附图中相同的标号指示相似或相应的特征或功能。
具体实施方式
下面描述本发明公开的各个方面。应该明白的是,本文的教导可以以多种多样形式具体体现,并且在本文中公开的任何具体结构、功能或两者仅仅是代表性的。基于本文的教导,本领域技术人员应该明白的是,本文所公开的一个方面可以独立于任何其它方面实现,并且这些方面中的两个或多个方面可以按照各种方式组合。例如,可以使用本文所阐述的任何数目的方面,实现装置或实践方法。另外,可以使用其它结构、功能、或除了本文所阐述的一个或多个方面之外或不是本文所阐述的一个或多个方面的结构和功能,实现这种装置或实践这种方法。此外,本文所描述的任何方面可以包括权利要求的至少一个元素。
下面将参照附图描述本发明的各个实施例。
本发明提出一种电视浏览器的控制方法,图3示出了本发明中提出的一种电视浏览器的控制方法的一个流程图;如图3所示,在步骤S301中,获取待访问网页的网页结构特征;其中,网页结构特征包括:网页DIV(DIVision,划分)元素的尺寸和DIV元素在网页中的相对位置;在步骤S302中,判断网页结构特征是否满足预设条件;在步骤S303中,当网页结构特征满足预设条件时,维持或切换遥控器的模式为焦点切换模式;在步骤S304中,当网页结构特征不满足预设条件时,维持或切换遥 控器的模式为鼠标移动模式;其中,预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例大于或者等于预设的阈值。
在本发明中,先分析待访问网页的网页结构特征,当网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例大于或者等于预设的阈值时,此时的网页结构特征更适合采用焦点切换模式,可以方便地进行焦点切换;对于其他网页结构特征(如一些含链接比较多的网页),采用鼠标移动模式更方便焦点切换;相对于传统的电视浏览器的焦点移动方法,本发明可以选择更适合网页结构特征的焦点移动方式,提升用户体验。
图4示出了本发明中提出的电视浏览器的控制方法的另一个流程图;本实施例中,包括步骤如图4所示,具体流程如下:
在S401中,客户端(可以是浏览器,也可以是安装浏览器的移动设备或其等同物)根据用户输入的URL或者在网页上选择的URL,从后台服务器中获取待访问网页的网页代码;
客户端拿回待访问网页的网页代码后获取待访问网页的网页结构特征,即,在S402中获取网页DIV元素的尺寸和DIV元素在网页中的相对位置;其中,DIV元素是用来为HTML(超文本标记语言)文档内大块的内容提供结构和背景的元素。具体的,根据DIV标签从网页代码中找到对应的DIV元素,根据DIV属性即可获取网页DIV元素的尺寸和DIV元素在网页中的相对位置。然后进行步骤S403。
在S403中判断页面结构特征是否满足预设条件;具体包括但不限于以下步骤:
1、根据DIV元素的尺寸和DIV元素在网页中的相对位置,筛选DIV元素尺寸满足预定尺寸且DIV元素位置相邻的DIV元素组合;其中,预定尺寸是为后台配置,可以根据实际需求进行改变;应该注意的是,在配置预定尺寸时,应该保证当页面结构特征满足预设条件而将遥控器的模式切换至焦点切换模式去控制网页时,比只使用传统的鼠标移动模式去控制网页要方便。筛选时,可以先筛选DIV元素尺寸是否满足预定尺寸,若满足预定尺寸(也可以表示为预定面积),则记录该DIV元素在网页中的相对位置,然后再筛选位置相邻的DIV元素,形成DIV元素组合。
2、然后获取筛选出的DIV元素组合的总面积;
3、然后获取DIV元素组合总面积与待访问网页的面积的比例;
4、当上述第3步骤中的比例大于或者等于预设的阈值时,则判断待访问页面的页面结果特征满足预设条件,当上述第3步骤中的比例小于预设的阈值时,则判断待 访问页面的页面结果特征不满足预设条件。优选地,预设的阈值可以是9/10。
经过S403的判断,若满足,则进行步骤S404;若不满足,则进行步骤S405。在S404中将遥控器的模式维持或切换为焦点切换模式;在S405中将遥控器的模式维持或切换为鼠标移动模式。
为更好的理解本发明,可参见图5;根据待访问网页URL,拿回待访问页面的页面代码后,查找DIV标签,获取DIV元素属性,根据DIV属性获取该待访问网页DIV元素(编号1、2、3……20)的尺寸和DIV元素在网页中的相对位置,如图5所示(该图并不会在客户端页面显示);上述获取的DIV元素尺寸与预定尺寸比较,若获取的DIV元素尺寸大于或者等于预定尺寸,则判定为满足预定尺寸,在图5实施例中设定DIV元素1至6不满足预定尺寸,设定DIV元素7至16满足预定尺寸以及DIV元素17至20满足预定尺寸;并且DIV元素7至16的位置相邻、DIV元素17至20的位置相邻,则得到由DIV元素17至20组成的DIV元素组合1以及由DIV元素7至16组成的DIV元素组合2;然后获取DIV元素组合1和DIV元素组合2中各个DIV元素的尺寸之和;以及获取整个页面的尺寸(可根据页面属性获得);获取上述DIV元素组合的尺寸之和(DIV元素组合1和DIV元素组合2中各个DIV元素的尺寸之和)与整个页面的尺寸的比例,当该比例大于或者等于预设的阈值时,则认为是满足上述预设条件,将遥控器的模式维持或切换为焦点切换模式;当该比例小于预设的阈值时,则认为是不满足上述预设条件,将遥控器的模式维持或切换为鼠标移动模式;其中,预设的阈值可以根据实际需求进行配置,一般情况下可以根据经验值进行配置,优选的,预设的阈值为9/10。可以理解的是该图5所示仅是示例性的。
在本发明的一个或者多个实施方式中,上述电视浏览器的控制方法还包括步骤:当访问浏览器的组件界面时,将遥控器的模式维持或切换为焦点切换模式。
在本发明的一个或者多个实施方式中,上述电视浏览器的控制方法还包括步骤:发送待访问网页的URL(统一资源定位符,Uniform Resource Locator)至后台服务器;其中,接收到所述URL的后台服务器,判断缓存中是否存在所述URL相对应的网页结构特征,若有,则直接返回所述URL所对应的网页结构特征;若没有,则根据所述URL,获得且返回待访问网页的网页结构特征;
接收所述后台服务器返回的网页结构特征。
在本发明的一个或者多个实施方式中,在返回待访问网页的源代码后,立即获取待访问页面的网页结构特征,以提高实时性。
在本发明的一个或者多个实施方式中,上述预设条件还包括尺寸满足预定尺寸且 位置相邻的网页DIV元素的数目,与网页DIV元素的总数目的比值满足预设比值。其中,预设个数也可以根据经验值进行配置,本发明不做限制。在图3实施例、或者图4、或者图5实施例的基础上,限定尺寸满足预定尺寸且位置相邻的网页DIV元素的数目需满足预设个数,目的是为了更恰当的选择遥控器的操作模式,如较为极端的情况,当分析待访问页面的页面结构特征后,仅有2个DIV元素尺寸满足预设尺寸且位置相邻,这个2个DIV元素尺寸占整个页面尺寸的比例超过预设的阈值(优选地取值9/10),但是这个页面中尺寸不满足预设尺寸的DIV元素个数远远超过2个,使得尺寸满足预定尺寸且位置相邻的网页DIV元素的数目,与网页DIV元素的总数目的比值不满足预设比值,此时若切换到遥控器焦点切换模式是不适宜的,应该切换到遥控器鼠标移动模式。
图7示出了本发明中提出的电视浏览器的控制方法的另一个流程图;图7示出的电视浏览器的控制方法,包括但不限于以下步骤:
S701、用户点击浏览器;
S702、客户端(可以是浏览器,也可以是安装浏览器的移动设备或其等同物)判断访问的界面是否为浏览器组件界面;一般浏览器首页都会设置有自定义的组件,由于各浏览器厂商可以根据自身定位进行设置,因此也可以称为自有组件;图6示出了本发明中浏览器自有组件界面的示意图;如图6中‘腾讯视频’、‘爱奇艺’、‘搜狐’等,都是浏览器自有组件;可以理解的是图6仅是示例性的。若判断当前访问的是浏览器自有组件,则进行S703;若判断当前访问的不是浏览器自有组件,那此时访问的是网页,则进行S704。
S703、客户端将遥控器的模式维持或切换为焦点切换模式;若通过焦点切换模式,选择一个组件并点击后,进入对应的网页,则进行S705步骤。
S704、客户端将待访问网页的URL发送给后台服务器;
S705、后台服务器判断缓存中是否有待访问网页的网页结构特征;在该步骤中,后台服务器根据缓存的以往分析出的页面结构特征与对应页面URL的对应关系表,可以利用待访问网页的URL在上述对应关系表中进行匹配,若匹配结果为非空,则判断为存有待访问网页的网页结构特征;若匹配结果为空,则判断为未存有待访问网页的网页结构特征。若后台服务器判断缓存中没有待访问网页的网页结构特征,则进行S706;若后台服务器判断缓存中有待访问网页的网页结构特征,则进行S708;
S706、后台服务器根据URL获取待访问网页的网页代码;
S707、后台服务器获取到待访问网页的网页代码后,注入脚本到该网页代码,以 获取该页面的网页结构特征;后台服务器将获取的页面结构特征和页面URL关联缓存;然后进行步骤S708。
S708、后台服务器向客户端返回访问网页的网页结构特征。
S709、客户端判断页面结构特征是否满足预设条件;具体步骤可参考图4实施例的相关步骤。若满足预设条件,则进行S710;若不满足预设条件,则进行S711;
S710、客户端将遥控器的模式维持或切换为焦点切换模式;
S711、客户端将遥控器的模式维持或切换为鼠标移动模式。
优选地,在上述实施例中也可以由客户端分析页面结构特征,即是S706至S708步骤可以用以下步骤替换:后台服务器根据URL获取待访问网页的网页代码,将网页代码返回给客户端;客户端获取到待访问网页的网页代码后,注入脚本到该网页代码,以获取该页面的网页结构特征;其中,获取该页面的网页结构特征的步骤可以参考图4实施例的相关步骤。客户端将页面结构特征和对应的URL上传后台服务器,后台服务器将获取的页面结构特征和URL关联缓存。
为更好的理解本发明,若分析网页结构特征后,不满足预设条件,从而将遥控器的模式维持或切换至鼠标移动模式,一个具体的例子如图8所示;图8示出了本发明的一个具体实施例示意图;在本实施例中,本发明的实施步骤包括:
1、用户在浏览器客户端输入的待访问网页的URL:www.fangchan.com;
2、浏览器客户端根据待访问网页的URL向后台服务器请求待访问网页的页面代码;
3、在后台服务器中预先缓存有URL与对应网页结构特征的关联关系,当后台服务器接收到待访问网页的URL(www.fangchan.com)时,先在缓存的URL与对应网页结构特征的关联关系中匹配是否待访问网页的网页结构特征,如匹配到,则将待访问网页的网页结构特征返回浏览器客户端;若未匹配到,则根据待访问网页URL向网页服务器获取网页代码后,返回给浏览器客户端。
4、浏览器客户端获取待访问网页的页面代码后,获取待访问网页的DIV元素属性,从而获得待访问网页的网页结构特征,如图8所示,其中,网页结构特征包括DIV元素的尺寸和DIV元素在待访问网页中的位置;为便于理解,在图8中用黑色方框示出待访问网页的各个DIV元素尺寸,图8也示出了DIV元素在待访问网页中的位置;事实上在实际处理时,并不会展现出图8所示的方框,这些是由浏览器客户端后台处理的。
5、浏览器客户端根据获取的DIV元素的尺寸和DIV元素在待访问网页中的位置, 筛选符合预设条件的DIV元素;其中,预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例大于或者等于预设的阈值,且尺寸满足预定尺寸且位置相邻的DIV元素的个数大于2个;经过筛选未有符合预设条件的DIV元素(如图8所示,仅有一个DIV元素的尺寸比较大,其他的DIV元素尺寸都很小),因此,浏览器客户端将遥控器的模式维持或切换为鼠标移动模式。
若分析网页结构特征后,满足预设条件,从而将遥控器的模式维持或切换至焦点切换模式,一个具体的例子如图9所示;图9示出了本发明的另一个具体实施例示意图;在本实施例中,本发明的实施步骤包括:
1、用户在浏览器客户端输入待访问网页的URL:www.fangchan.com;
2、浏览器客户端根据待访问网页的URL向后台服务器请求待访问网页的页面代码;
3、在后台服务器中预先缓存有URL与对应网页结构特征的关联关系,当后台服务器接收到待访问网页的URL(www.fangchan.com)时,先在缓存的URL与对应网页结构特征的关联关系中匹配是否待访问网页的网页结构特征,如匹配到,则将待访问网页的网页结构特征返回浏览器客户端;若未匹配到,则根据待访问网页URL向网页服务器获取网页代码后,获取待访问网页的DIV元素属性,从而获得待访问网页的网页结构特征,然后将获取的页面结构特征返回给浏览器客户端。
4、浏览器客户端从后台服务器拿回待访问网页的页面结构特征后,待访问网页的页面结构特征,如图9所示,其中,网页结构特征包括DIV元素的尺寸和DIV元素在待访问网页中的位置;为便于理解,在图9中用黑色方框示出待访问网页的各个DIV元素尺寸,图9也示出了DIV元素在待访问网页中的位置;事实上在实际处理时,并不会展现出图9所示的方框,这些是由浏览器客户端后台处理的。
5、浏览器客户端根据获取的DIV元素的尺寸和DIV元素在待访问网页中的位置,筛选符合预设条件的DIV元素;其中,预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例大于或者等于预设的阈值,且尺寸满足预定尺寸且位置相邻的DIV元素的个数大于2个;经过筛选存在符合预设条件的DIV元素(如图9所示,仅有一个DIV元素的尺寸比较小,其他的DIV元素尺寸都比较大),因此,浏览器客户端将将遥控器的模式维持或切换为焦点切换模式。
在本发明中,获取网页结构特征以及判断网页结构特征是否满足预设条件的步骤,也可以由后台服务器来完成,另外,还增加了浏览器客户端访问的界面是否为组件界面的判断,具体的:
a、用户点击浏览器;
b、浏览器客户端判断访问的界面是否为浏览器组件界面;一般浏览器首页都会设置有自定义的组件,由于各浏览器厂商可以根据自身定位进行设置,因此称为自有组件;若判断当前访问的是浏览器组件界面,则客户端将遥控器的模式维持或切换为焦点切换模式;若判断当前访问的不是浏览器组件界面,而是网页,则客户端将待访问网页的URL发送给后台服务器。
c、后台服务器判断缓存中是否有待访问网页的网页结构特征;在该步骤中,后台服务器根据缓存的以往分析出的页面结构特征与对应页面URL的对应关系表,可以利用待访问网页的URL在上述对应关系表中进行匹配,若匹配结果为非空,则判断为存有待访问网页的网页结构特征;若匹配结果为空,则判断为未存有待访问网页的网页结构特征。若后台服务器判断缓存中有待访问网页的网页结构特征,则后台服务器判断网页结构特征是否满足预设条件;若满足预设条件,则通知客户端将遥控器的模式维持或切换为焦点切换模式;若不满足预设条件,则通知客户端将遥控器的模式维持或切换为鼠标移动模式。
若后台服务器判断缓存中没有待访问网页的网页结构特征,则后台服务器根据URL获取待访问网页的网页代码;后台服务器获取到待访问网页的网页代码后,注入脚本到该网页代码,以获取该页面的网页结构特征;后台服务器将获取的页面结构特征和页面URL关联缓存;然后,后台服务器判断网页结构特征是否满足预设条件;若满足预设条件,则通知客户端将遥控器的模式维持或切换为焦点切换模式;若不满足预设条件,则通知客户端将遥控器的模式维持或切换为鼠标移动模式。
本发明还提出一种电视浏览器的控制装置,图10示出了本发明中提出的电视浏览器的控制装置的一个结构示意图;如图10所示,该装置包括:获取单元T1,用于获取待访问网页的网页结构特征;其中,网页结构特征包括:网页DIV元素的尺寸和DIV元素在网页中的相对位置;预设条件判断单元T2,用于判断所述网页结构特征是否满足预设条件;遥控器模式维持切换单元T3,用于当网页结构特征满足预设条件时,维持或切换遥控器的模式为焦点切换模式;当网页结构特征不满足预设条件时,维持或切换遥控器的模式为鼠标移动模式;其中,预设条件包括网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例 大于或者等于预设的阈值。
在本发明中,先分析待访问网页的网页结构特征,当网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例大于或者等于预设的阈值时,此时的网页结构特征更适合采用焦点切换模式,可以方便地进行焦点切换;对于其他网页结构特征(如一些含链接比较多的网页),采用鼠标移动模式更方便焦点切换;相对于传统的电视浏览器的焦点移动方法,本发明可以选择更适合网页结构特征的焦点移动方式,提升用户体验。
在本发明的一个或者多个实施方式中,上述预设条件还包括尺寸满足预定尺寸且位置相邻的网页DIV元素的数目,与网页DIV元素的总数目的比值满足预设比值。优选地,预设比值为7比10;其中,预设比值也可以根据经验值进行配置,本发明不做限制。限定尺寸满足预定尺寸且位置相邻的网页DIV元素的数目,与网页DIV元素的总数目的比值需满足预设比值,目的是为了更恰当的选择遥控器的操作模式。如较为极端的情况,当分析待访问页面的页面结构特征后,仅有2个DIV元素尺寸满足预设尺寸且位置相邻,这个2个DIV元素尺寸占整个页面尺寸的比例超过预设的阈值(优选地取值9/10),但是这个页面中尺寸不满足预设尺寸的DIV元素个数远远超过2个,此时若切换到遥控器的模式至焦点切换模式是不适宜的,应该切换到鼠标移动模式。
在本发明的一个或者多个实施方式中,当访问浏览器自有组件时,遥控器模式维持切换单元T3将遥控器的模式维持或切换为焦点切换模式。
在本发明的另一可行实施例中,如图11所示,,上述所有实施例中的获取单元T1包括:发送子单元T11和接收子单元T12;
其中,发送子单元T11,用于发送待访问网页的URL至后台服务器;接收到所述URL的后台服务器,判断缓存中是否存在所述URL相对应的网页结构特征,若有,则直接返回所述URL所对应的网页结构特征;若没有,则根据所述URL,获得且返回待访问网页的网页结构特征;
接收子单元T12,用于接收所述后台服务器返回的网页结构特征。
后台服务器缓存以往处理过的页面结构特征与对应URL的关联关系,可以提高本发明的处理效率。
在本发明的一个或者多个实施方式中,当获取单元获取到待访问网页的网页代码时,立即进行获取待访问网页的网页结构特征。可以提高本发明的处理效率。
可以理解的是,本发明可以适用于PC端以及移动终端。此外,典型地,移动终 端可为各种具有浏览网页功能的手持终端设备,例如智能手机、个人数字助理(PDA)。
此外,根据本发明的方法还可以被实现为由移动终端中的处理器(比如CPU)执行的计算机程序,并且存储在移动终端的存储器中。在该计算机程序被处理器执行时,执行本发明的方法中限定的上述功能。
此外,根据本发明的方法还可以实现为一种计算机程序产品,该计算机程序产品包括计算机可读介质,在该计算机可读介质上存储有用于执行本发明的方法中限定的上述功能的计算机程序。
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储设备实现。
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本发明的范围。
尽管前面公开的内容示出了本发明的示例性实施例,但是应当注意,在不背离权利要求限定的本发明的范围的前提下,可以进行多种改变和修改。根据这里描述的发明实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明的元素可以以个体形式描述或要求,但是也可以设想多个,除非明确限制为单数。
虽然如上参照图描述了根据本发明的各个实施例进行了描述,但是本领域技术人员应当理解,对上述本发明所提出的各个实施例,还可以在不脱离本发明内容的基础上做出各种改进。因此,本发明的保护范围应当由所附的权利要求书的内容确定。

Claims (10)

  1. 一种电视浏览器的控制方法,其中,包括:
    获取待访问网页的网页结构特征;其中,所述网页结构特征包括:网页DIV划分元素的尺寸和DIV元素在网页中的相对位置;
    判断所述网页结构特征是否满足预设条件;
    当所述网页结构特征满足预设条件时,维持或切换遥控器的模式为焦点切换模式;当所述网页结构特征不满足预设条件时,维持或切换所述遥控器的模式为鼠标移动模式;
    其中,所述预设条件包括网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例,大于或者等于预设的阈值。
  2. 如权利要求1所述的电视浏览器的控制方法,其中,所述预设条件还包括尺寸满足所述预定尺寸且位置相邻的网页DIV元素的数目,与网页DIV元素的总数目的比值满足预设比值。
  3. 如权利要求1所述的电视浏览器的控制方法,其中,所述方法还包括步骤:当判定访问的界面为浏览器自有组件界面时,维持或切换遥控器的模式为焦点切换模式。
  4. 如权利要求1所述的电视浏览器的控制方法,其中,所述获取待访问网页的网页结构特征,包括:
    发送待访问网页的URL统一资源定位符至后台服务器;其中,接收到所述URL的后台服务器,判断缓存中是否存在所述URL相对应的网页结构特征,若有,则直接返回所述URL所对应的网页结构特征;若没有,则根据所述URL,获得且返回待访问网页的网页结构特征;
    接收所述后台服务器返回的网页结构特征。
  5. 如权利要求1所述的电视浏览器的控制方法,其中,当获取到待访问网页的网页代码时,立即进行所述获取待访问网页的网页结构特征的步骤。
  6. 一种电视浏览器的控制装置,其中,包括:
    获取单元,用于获取待访问网页的网页结构特征;其中,所述网页结构特征包括:网页DIV元素的尺寸和DIV元素在网页中的相对位置;
    预设条件判断单元,用于判断所述网页结构特征是否满足预设条件;
    遥控器模式维持切换单元,用于当所述网页结构特征满足预设条件时,维持或切换遥控器的模式为焦点切换模式;当所述网页结构特征不满足预设条件时,维持或切换遥控器的模式为鼠标移动模式;
    其中,所述预设条件包括网页DIV元素的尺寸满足预定尺寸且位置相邻的DIV元素组合的总面积占待访问网页面积的比例,大于或者等于预设的阈值。
  7. 如权利要求6所述的电视浏览器的控制装置,其中,所述预设条件还包括尺寸满足所述预定尺寸且位置相邻的网页DIV元素的数目,与网页DIV元素的总数目的比值满足预设比值。
  8. 如权利要求6所述的电视浏览器的控制装置,其中,当判定访问的界面为浏览器自有组件界面时,所述遥控器模式维持切换单元将遥控器的模式维持或切换为焦点切换模式。
  9. 如权利要求6所述的装置,其中,所述获取单元包括:发送子单元和接收子单元;
    其中,所述发送子单元,用于发送待访问网页的URL至后台服务器;接收到所述URL的后台服务器,判断缓存中是否存在所述URL相对应的网页结构特征,若有,则直接返回所述URL所对应的网页结构特征;若没有,则根据所述URL,获得且返回待访问网页的网页结构特征;
    接收子单元,用于接收所述后台服务器返回的网页结构特征。
  10. 如权利要求6所述的电视浏览器的控制装置,其中,当所述获取单元获取到待访问网页的网页代码时,立即进行所述获取待访问网页的网页结构特征。
PCT/CN2014/092471 2014-06-03 2014-11-28 电视浏览器的控制方法和装置 WO2015184749A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410243436.3 2014-06-03
CN201410243436.3A CN105338414A (zh) 2014-06-03 2014-06-03 电视浏览器的控制方法和装置

Publications (1)

Publication Number Publication Date
WO2015184749A1 true WO2015184749A1 (zh) 2015-12-10

Family

ID=54766014

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/092471 WO2015184749A1 (zh) 2014-06-03 2014-11-28 电视浏览器的控制方法和装置

Country Status (2)

Country Link
CN (1) CN105338414A (zh)
WO (1) WO2015184749A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578294B (zh) * 2014-10-15 2018-12-21 优视科技有限公司 浏览切换处理方法、装置及系统
CN108040275B (zh) * 2017-12-29 2020-08-21 福州福大海矽微电子有限公司 一种遥控器操作网页浏览器的方法及终端
CN113596592B (zh) * 2021-07-13 2023-10-31 深圳市酷开网络科技股份有限公司 一种电视网页焦点控制方法、装置、终端设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652065A (zh) * 2004-02-06 2005-08-10 三星电子株式会社 可通过使用遥控器选择对象的显示装置及其方法
JP2008102734A (ja) * 2006-10-19 2008-05-01 Kinpo Electronics (Shanghai) Co Ltd リモコンによりブラウザーのウィンドウ外掛けを操作する方法
CN103197770A (zh) * 2013-04-01 2013-07-10 深圳数字电视国家工程实验室股份有限公司 一种电视遥控器模拟鼠标操作的方法及装置
CN103561307A (zh) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 一种基于浏览器的指示模式切换方法和装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1168753C (zh) * 1998-12-30 2004-09-29 英国石油化学品有限公司 采用减量溶剂制备一种负载聚合催化剂的方法以及聚合方法
CN102595224B (zh) * 2011-11-01 2015-09-30 华为技术有限公司 一种遥控方法、遥控器、遥控响应方法以及机顶盒
CN102780926A (zh) * 2012-06-20 2012-11-14 华为终端有限公司 管理机顶盒遥控装置的方法、遥控装置和系统
CN103442281A (zh) * 2013-08-14 2013-12-11 乐视致新电子科技(天津)有限公司 一种工作模式的切换方法及视频播放设备遥控器
CN106951481A (zh) * 2013-09-24 2017-07-14 青岛海信电器股份有限公司 网页浏览器导航方法、网页浏览器导航装置和电视机
CN103561338B (zh) * 2013-10-30 2017-01-25 乐视致新电子科技(天津)有限公司 一种基于智能电视界面的指示模式切换方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652065A (zh) * 2004-02-06 2005-08-10 三星电子株式会社 可通过使用遥控器选择对象的显示装置及其方法
JP2008102734A (ja) * 2006-10-19 2008-05-01 Kinpo Electronics (Shanghai) Co Ltd リモコンによりブラウザーのウィンドウ外掛けを操作する方法
CN103197770A (zh) * 2013-04-01 2013-07-10 深圳数字电视国家工程实验室股份有限公司 一种电视遥控器模拟鼠标操作的方法及装置
CN103561307A (zh) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 一种基于浏览器的指示模式切换方法和装置

Also Published As

Publication number Publication date
CN105338414A (zh) 2016-02-17

Similar Documents

Publication Publication Date Title
US10440140B2 (en) Browser cache management
US9756108B2 (en) Preloading resources of a web page
US9699037B2 (en) System and method of browsing offline and queried content
US9195750B2 (en) Remote browsing and searching
KR102455232B1 (ko) 콘텍스트 기반 탭 관리를 위한 방법 및 전자 장치
WO2017215175A1 (zh) 页面处理方法、装置、终端及服务器
US10228835B2 (en) Method for displaying information, and terminal equipment
WO2013049162A1 (en) Smooth zooming in web applications
CN106708496B (zh) 图形界面中标签页的处理方法和装置
US20130061160A1 (en) Domain-Specific Browser Tab Creation and Management
US20130061159A1 (en) Overlaid User Interface for Browser Tab Switching
WO2015195603A1 (en) Predicting next web pages
US20140331114A1 (en) Methods and apparatuses for obtaining and sharing partial content of a webpage
TW201723897A (zh) 資訊顯示方法、裝置及智能終端
WO2014110294A1 (en) Active web page consolidator and internet history management system
US20160142466A1 (en) Output function dividing system
CN110244896A (zh) 网页内截图方法、装置、控制器及存储介质
WO2015184749A1 (zh) 电视浏览器的控制方法和装置
WO2016058460A1 (zh) 浏览切换处理方法、装置及系统
KR101480214B1 (ko) Dom 변이 이벤트 기반 웹 화면 스트리밍 방법 및 시스템
JP6302098B2 (ja) アドレスフィルタリング方法、装置、プログラム及び記録媒体
JP5437325B2 (ja) 情報処理装置、システム、方法及びプログラム
EP2801920A1 (en) Method and apparatus for displaying web page
US11030271B2 (en) Content caching for fast load time
WO2015007193A1 (en) Method and apparatus for hierarchical data reading

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: 14893738

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: 14893738

Country of ref document: EP

Kind code of ref document: A1