Summary of the invention
The technical problem that the present invention mainly solves provides a kind of method and STB that utilizes the STB browsing page; Can be under the prerequisite of functional module that does not increase existing remote controller or function key; Realize the function of webpage convergent-divergent and fast browsing; Thereby simplified set-top box remote controller complicated operation degree, promoted the Experience Degree that the user uses the STB browsing page.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is:
A kind of method of utilizing the STB browsing page comprises:
When STB receives first press key message from set-top box remote controller web page browsing function key for the first time; Preset indexed variable is set to tracking mode; Wherein, First press key message is this web page browsing function key the be pressed message of state and the corresponding specific browser function function of first press key message;
Still be tracking mode if in the preset time interval, receive first press key message and indexed variable once more, then call the browser function function corresponding with first press key message;
According to this power function the webpage of current browsing is handled.
Further, the step that the indexed variable of presetting is set to tracking mode also comprises before:
STB receives first press key message from set-top box remote controller web page browsing function key;
Judge whether to receiving for the first time this first press key message;
If receive this first press key message for the first time, then carry out the step that preset indexed variable is set to tracking mode;
If not receiving this first press key message for the first time, then whether the judgement symbol variable still is tracking mode, if this indexed variable is not non-tracking mode, then termination routine.
Further, carry out also comprising after the processed steps according to the webpage of power function to current browsing:
With the continuous invoking performance function of predefined frequency the webpage of browsing is handled.
Further, judge that the step that in the preset time interval, whether receives first press key message once more also comprises afterwards:
If in preset time value, do not receive first press key message once more, then indexed variable is set to non-tracking mode, termination routine.
Further, this method also comprises:
Second press key message that the receiving set up box remote controller sends, wherein, second press key message is the message of the released state of web page browsing function key;
Stop to call the browser function function corresponding the webpage of browsing is handled, and indexed variable is set to non-tracking mode, termination routine with first press key message.
The present invention also provides corresponding set-top box device, and is concrete:
A kind of set-top box device comprises:
Module is set; Be used for when STB receives first press key message from set-top box remote controller web page browsing function key for the first time; Preset indexed variable is set to tracking mode; Wherein, first press key message is this web page browsing function key the be pressed message of state and the corresponding specific browser function function of this first press key message;
The function call module is used for when in the preset time interval, receiving first press key message and indexed variable still for tracking mode once more, calling the browser function function corresponding with this first press key message;
Processing module is used for according to power function the webpage of current browsing being handled.
Further, this equipment also comprises:
Receiver module is used to receive first press key message from set-top box remote controller web page browsing function key;
First judge module, being used to judge whether is when receiving this first press key message for the first time, to carry out the step that module is set for receiving for the first time this first press key message when judging;
Second judge module is used for judging when first judge module and is not for the first time to receive this first press key message, and whether the judgement symbol variable still is tracking mode again, when judging this indexed variable for non-tracking mode not, and termination routine.
Further, processing module also is used for the continuous invoking performance function of predefined frequency the webpage of browsing being handled.
Further, module is set also is used for when in preset time value, not receiving first press key message once more, indexed variable is set to non-tracking mode, termination routine.
Further, receiver module also is used for second press key message that the receiving set up box remote controller sends, and wherein, second press key message is the message of the released state of web page browsing function key;
The said module that is provided with also is used for when receiver module receives second press key message, and indexed variable is set to non-tracking mode, termination routine.
In the present invention; Through multiplexing from set-top box remote controller prior function key as the web page browsing function key; When first press key message that for the first time receives from set-top box remote controller web page browsing function key; Preset indexed variable is set to tracking mode; Still be tracking mode if in the preset time interval, receive first press key message of same function key and indexed variable once more, then call the browser function function corresponding, and the webpage of current browsing is handled according to this power function with this first press key message; Thereby realize utilizing the function of prior remote controller and set box browser, make the user carry out convergent-divergent to webpage easily, browsing page apace, and need not to increase remote controller key or function, reduction hardware cost and operation complexity are improved user experience.
Embodiment
Consult Fig. 1, the present invention utilizes the method embodiment of STB browsing page to comprise:
101, the press key message of set top box receiver top box remote controller transmission;
On set-top box remote controller, be provided with special web page browsing function key, the original function key of perhaps multiplexing set-top box remote controller is as the web page browsing function key, and for example, the directionkeys of multiplexing set-top box remote controller is as the web page browsing function key; In the present embodiment, be that example describes as the web page browsing function key with the original function key of multiplexing set-top box remote controller;
When the function key on the set-top box remote controller was pressed, hardware produced and interrupts, and through the encapsulation of bsp driver, generally all can the key assignments and the key-press status of function key be issued operating system or application program to the upper strata; We want multiplexing function key; Key assignments is equally constant; Will consider that so function key is by had following several kinds of states by following time from key-press status: KEY_DOWN, KEY_PRESSED, KEY_UP, operating system or application program can be made different processing according to the different keys state; With the directionkeys is example; Generally speaking, press the switching that a time directionkeys will be accomplished an interior focus of the page, do not put if a directionkeys pins for a long time; Bottom can constantly send KEY_DOWN status message, the switching focus of from the web page browsing effect, promptly not stopping to using; We can call extra power function through the same button of realizing that in the browser message processing program, increases timer tracking key-press status, for example convergent-divergent or page turning function;
102, judge that press key message is first press key message or second press key message;
The press key message of the web page browsing function key that receives in the determining step 101 is first press key message or second press key message; Wherein, First press key message is web page browsing function key the be pressed message of state and the corresponding specific browser function function of said first press key message; Second press key message is the message of the released state of web page browsing function key; If when judging press key message and being first press key message; Execution in step 103; If when judging press key message and being second press key message, stop to call the browser function function corresponding at once the webpage of browsing is handled, and execution in step 107 with first press key message;
First press key message in the present embodiment and second press key message all are the press key messages of same function key;
103, judge whether this STB is to receive first press key message for the first time;
If the press key message that receives is first press key message; Judge again whether this STB is to receive this first press key message for the first time, if receive this first press key message for the first time, then execution in step 104; If not receiving this first press key message for the first time, then execution in step 108;
104, preset indexed variable is set to tracking mode;
If this STB receives first press key message for the first time; Then need start a timer and carry out timing; And preset indexed variable is set to tracking mode; The effect of this indexed variable is to follow the tracks of this web page browsing function key, sees whether follow-up this web page browsing function key can constantly send first press key message;
105, judge in the time that is provided with in advance, whether receive first press key message once more;
Preset time value in this locality; Judgement timer pick up counting this time value during this period of time in; Whether receive first press key message of this web page browsing function key once more, if receive this web page browsing function key press key message of winning once more, then execution in step 106; If do not receive this web page browsing function key press key message of winning once more, then execution in step 107;
106, call the browser function function corresponding the webpage of browsing is handled, and constantly call this power function with predefined frequency the webpage of browsing is handled with first press key message;
If in the preset time, receive first press key message of this web page browsing function key once more; The incident of then the web page browsing function key being pressed in this time of user is handled by incident as long; Calling the browser function function corresponding with first press key message of this web page browsing function key at once handles the webpage that the active user browses; And constantly call this power function with predefined frequency the webpage of browsing is handled; Concrete: as can constantly to call this power function and realize through starting another timer, not limit here; With multiplexing directionkeys is example, and the effect in real web pages is browsed is: long pressing in the directionkeys, the focus in the page are still being moved by direction, and the page carries out convergent-divergent or page turning according to button simultaneously;
107, indexed variable is set to non-tracking mode;
If in the preset time, do not receive first press key message of this web page browsing function key once more; The incident of then the web page browsing function key not being pressed in this time of user is handled by incident as long; Indexed variable is set to non-tracking mode; This indexed variable of resetting, execution in step 109 then;
108, whether the judgement symbol variable still is tracking mode;
If judge this STB in the step 103 is not to receive first press key message for the first time; Whether then need the judgement symbol variable still is tracking mode again; If indexed variable remains tracking mode; Then the explanation incident that continues the user is pressed the web page browsing function key is handled by incident as long, continues execution in step 106; If indexed variable is non-tracking mode, then explanation is long does not exist termination routine by incident;
109, termination routine;
In the present embodiment; Through multiplexing from set-top box remote controller prior function key as the web page browsing function key; When first press key message that for the first time receives from set-top box remote controller web page browsing function key; Preset indexed variable is set to tracking mode; Still be tracking mode if in the preset time interval, receive first press key message of same function key and indexed variable once more, then call the browser function function corresponding, and the webpage of current browsing is handled according to this power function with this first press key message; Thereby realize utilizing the function of prior remote controller and set box browser, make the user carry out convergent-divergent to webpage easily, browsing page apace, and need not to increase remote controller key or function, reduction hardware cost and operation complexity are improved user experience.
Consult Fig. 2, the embodiment of set-top box device of the present invention comprises:
Receiver module 201; Be used to receive first press key message from set-top box remote controller web page browsing function key; Wherein, the web page browsing function key can be the special function key that on set-top box remote controller, is provided with, and the original function key of perhaps multiplexing set-top box remote controller is as the web page browsing function key; For example, the directionkeys of multiplexing set-top box remote controller is as the web page browsing function key; In the present embodiment, be that example describes as the web page browsing function key with the original function key of multiplexing set-top box remote controller;
When the function key of set-top box remote controller is pressed; What send is first press key message; When this function key is released; What send is second press key message, and promptly first press key message is web page browsing function key the be pressed message of state and the corresponding specific browser function function of said first press key message; Second press key message is the message of the released state of web page browsing function key;
First press key message in the present embodiment and second press key message all are the press key messages of same function key;
First judge module 202 is used to judge whether this STB receives first press key message that receiver module 201 receives for the first time, is when receiving this first press key message for the first time, to carry out the step that module 203 is set when judging;
Module 203 is set; Be used for when first judge module 202 is judged this STB and received first press key message from set-top box remote controller web page browsing function key for the first time; Preset indexed variable is set to tracking mode; The effect of this indexed variable is to follow the tracks of this web page browsing function key, sees whether follow-up this web page browsing function key can constantly send first press key message;
Second judge module 204, being used for judging this STB when first judge module 202 is not that whether the judgement symbol variable still is tracking mode again when for the first time receiving first press key message, when judging this indexed variable for non-tracking mode not, termination routine;
Function call module 205; Be used for after receiving first press key message for the first time; If when preset time receives that first press key message and the indexed variable of same function key still are tracking mode at interval once more, call the browser function function corresponding with this first press key message; Concrete; Can be after receiving first press key message for the first time; Open a timer immediately and carry out timing; If first press key message and the indexed variable of in preset time, receiving same function key once more during still for tracking mode, call the browser function function corresponding with this first press key message;
Processing module 206; Be used for after function call module 205 has been called corresponding power function; According to this power function the webpage of current browsing being handled, is example with multiplexing directionkeys again, and the effect in real web pages is browsed is: long pressing in the directionkeys; Focus in the page is still moving by direction, and the page carries out convergent-divergent or page turning according to button simultaneously;
Further, processing module 206 also is used for the continuous invoking performance function of predefined frequency the webpage of browsing being handled, and is concrete: can constantly call this power function and realize through starting another timer, not limit here;
Further, module 203 is set also is used for when in preset time value, not receiving first press key message of same function key once more, indexed variable is set to non-tracking mode, termination routine;
Further, receiver module 201 also is used for second press key message of the same function key of receiving set up box remote controller transmission;
Further, module 203 is set also is used for when receiver module 201 receives second press key message of same function key, indexed variable is set to non-tracking mode, termination routine;
In the present embodiment; Through multiplexing from set-top box remote controller prior function key as the web page browsing function key; When first press key message that for the first time receives from set-top box remote controller web page browsing function key; Preset indexed variable is set to tracking mode; Still be tracking mode if in the preset time interval, receive first press key message of same function key and indexed variable once more, then call the browser function function corresponding, and the webpage of current browsing is handled according to this power function with this first press key message; Thereby realize utilizing the function of prior remote controller and set box browser, make the user carry out convergent-divergent to webpage easily, browsing page apace, and need not to increase remote controller key or function, reduction hardware cost and operation complexity are improved user experience.
The above is merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.