Summary of the invention
The technical problem that the present invention mainly solves is to provide a kind of method and the Set Top Box that utilize Set Top Box browsing page, can under the prerequisite of the functional module or function key that do not increase existing remote controller, realize the function of webpage convergent-divergent and fast browsing, thus simplify set-top box remote controller operation complexity, improve the Experience Degree that user uses Set Top Box browsing page.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is:
Utilize a method for Set Top Box browsing page, comprising:
When Set Top Box first time receives the first press key message be pressed from set-top box remote controller web page browsing function key, default indexed variable is set to tracking mode, wherein, first press key message is that this web page browsing function key is pressed the message of state, and the corresponding specific browser function function of the first press key message;
Web page browsing function key is pressed and in the process do not discharged, if again receive the first press key message and indexed variable is still tracking mode within predetermined time interval, then calls the browser function function corresponding with the first press key message;
According to this power function, the current webpage browsed is processed;
When the second press key message that receiving set up box remote controller sends, stop calling the browser function function corresponding with the first press key message to process the webpage browsed, and indexed variable is set to non-tracking state, termination routine, wherein the second press key message is the message of the released state of web page browsing function key.
Further, also comprise before default indexed variable being set to the step of tracking mode:
Set Top Box receives the first press key message from set-top box remote controller web page browsing function key;
Determine whether that first time receives this first press key message;
If first time receives this first press key message, then perform the step default indexed variable being set to tracking mode;
Receive this first press key message if not first time, then whether judgement symbol variable is still tracking mode, if this indexed variable is non-non-tracking state, then and termination routine.
Further, also comprise after the step according to power function, the current webpage browsed processed:
With the continuous invoking performance function of the frequency preset, the webpage browsed is processed.
Further, also comprise after judging whether again receive the step of the first press key message within predetermined time interval:
If again do not receive the first press key message in the time value preset, then indexed variable is set to non-tracking state, termination routine.
The present invention also provides corresponding set-top box device, concrete:
A kind of set-top box device, comprising:
Module is set, for when Set Top Box first time receives the first press key message be pressed from set-top box remote controller web page browsing function key, default indexed variable is set to tracking mode, wherein, first press key message is that this web page browsing function key is pressed the message of state, and the corresponding specific browser function function of this first press key message;
Function call module, for being pressed at web page browsing function key and in the process do not discharged when again receiving the first press key message and indexed variable is still tracking mode within predetermined time interval, calling the browser function function corresponding with this first press key message;
Processing module, for processing the current webpage browsed according to power function;
Receiver module, for the second press key message that receiving set up box remote controller sends, the second press key message is the message of the released state of web page browsing function key;
Described module is set also for when receiver module receives the second press key message, indexed variable is set to non-tracking state, termination routine.
Further, this equipment also comprises:
Receiver module, for receiving the first press key message from set-top box remote controller web page browsing function key;
First judge module, for determining whether that first time receives this first press key message, when judging it is, when first time receiving this first press key message, perform the step arranging module;
Second judge module, for judging it is not first time receive this first press key message when the first judge module, more whether judgement symbol variable is still tracking mode, when judging this indexed variable for non-non-tracking state, termination routine.
Further, processing module is also for processing the webpage browsed with the continuous invoking performance function of the frequency preset.
Further, module being set also for when again not receiving the first press key message in the time value preset, indexed variable being set to non-tracking state, termination routine.
In the present invention, by multiplexing from the existing function key of set-top box remote controller as web page browsing function key, when first time receives the first press key message from set-top box remote controller web page browsing function key, default indexed variable is set to tracking mode, if again receive the first press key message of same function key and indexed variable is still tracking mode within predetermined time interval, then call the browser function function corresponding with this first press key message, and according to this power function, the current webpage browsed is processed; Thus realize the function utilizing existing remote controller and set box browser, make user can carry out convergent-divergent to webpage easily, browsing page rapidly, and without the need to increasing remote controller key or function, reduce the complexity of hardware cost and operation, improve Consumer's Experience.
Embodiment
Consult Fig. 1, the present invention utilizes the embodiment of the method for Set Top Box 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, or the original function key of multiplexing set-top box remote controller is as web page browsing function key, such as, the directionkeys of multiplexing set-top box remote controller is as web page browsing function key; In the present embodiment, be described for the original function key of multiplexing set-top box remote controller as web page browsing function key;
When the function key on set-top box remote controller is pressed time, hardware produces and interrupts, and through the encapsulation of bsp driver, generally all the key assignments of function key and key-press status can be issued operating system or application program to upper strata; We want multiplexing function key, key assignments is equally constant, so will consider from key-press status, function key by by under time have following several state: KEY_DOWN, KEY_PRESSED, KEY_UP, operating system or application program can make different process according to different key-press status; For directionkeys, generally, will the switching of focus in a page be completed by a directionkeys, if a directionkeys pins for a long time do not put, bottom constantly can send KEY_DOWN status message to application, from web page browsing effect, namely ceaselessly switch focus; We can follow the tracks of realizing same button and can calling extra power function, such as convergent-divergent or page turning function of key-press status by increasing timer in browser message processing program;
102, judge that press key message is the first press key message or the second press key message;
The press key message of the web page browsing function key received in determining step 101 is the first press key message or the second press key message, wherein, first press key message is that web page browsing function key is pressed the message of state, and the corresponding specific browser function function of described first press key message; Second press key message is the message of the released state of web page browsing function key; If when judging that press key message is the first press key message, perform step 103, if when judging that press key message is the second press key message, stop calling the browser function function corresponding with the first press key message at once and the webpage browsed is processed, and perform step 107;
The first press key message in the present embodiment and the second press key message are all the press key messages of same function key;
103, judge whether this Set Top Box is first time receive the first press key message;
If the press key message received is the first press key message, judge whether this Set Top Box is first time receive this first press key message, if first time receives this first press key message, then performs step 104 again, receive this first press key message if not first time, then perform step 108;
104, default indexed variable is set to tracking mode;
If this Set Top Box first time receives the first press key message, startup timer is then needed to carry out timing, and default indexed variable is set to tracking mode, this web page browsing function key is followed the tracks of in the effect of this indexed variable, sees whether this web page browsing function key follow-up can constantly send the first press key message;
105, judge within the time pre-set whether again receive the first press key message;
A time value is preset in this locality, judge timer start timing to this time value during this period of time in, whether again receive the first press key message of this web page browsing function key, if again receive this web page browsing function key to obtain the first press key message, then perform step 106, if again do not receive this web page browsing function key to obtain the first press key message, then perform step 107;
106, call the browser function function corresponding with the first press key message to process the webpage browsed, and constantly call this power function with the frequency preset the webpage browsed is processed;
If again receive the first press key message of this web page browsing function key within the time of presetting, the event then this time of user being pressed web page browsing function key processes as the long event of pressing, call the browser function function corresponding with the first press key message of this web page browsing function key at once to process the webpage that active user browses, and constantly call this power function with the frequency preset the webpage browsed is processed, concrete: constantly can calling this power function to realize by starting another timer, not limiting herein; For multiplexing directionkeys, the effect in real web pages is browsed is: long by when directionkeys, the focus in the page is still moving by direction, and the page carries out convergent-divergent or page turning according to button simultaneously;
107, indexed variable is set to non-tracking state;
If again do not receive the first press key message of this web page browsing function key within the time of presetting, the event then this time of user not being pressed web page browsing function key processes as the long event of pressing, indexed variable is set to non-tracking state, reset this indexed variable, then perform step 109;
108, whether judgement symbol variable is still tracking mode;
If judge in step 103 that this Set Top Box is not first time receive the first press key message, judgement symbol variable is then needed whether to be still tracking mode again, if indexed variable remains tracking mode, then illustrate that the event continuing user to be pressed web page browsing function key processes as the long event of pressing, continue to perform step 106; If indexed variable is non-tracking mode, then illustrate that length does not exist by event, termination routine;
109, termination routine;
In the present embodiment, by multiplexing from the existing function key of set-top box remote controller as web page browsing function key, when first time receives the first press key message from set-top box remote controller web page browsing function key, default indexed variable is set to tracking mode, if again receive the first press key message of same function key and indexed variable is still tracking mode within predetermined time interval, then call the browser function function corresponding with this first press key message, and according to this power function, the current webpage browsed is processed; Thus realize the function utilizing existing remote controller and set box browser, make user can carry out convergent-divergent to webpage easily, browsing page rapidly, and without the need to increasing remote controller key or function, reduce the complexity of hardware cost and operation, improve Consumer's Experience.
Consult Fig. 2, the embodiment of set-top box device of the present invention comprises:
Receiver module 201, for receiving the first press key message from set-top box remote controller web page browsing function key, wherein, web page browsing function key can for the special function key arranged on set-top box remote controller, or the original function key of multiplexing set-top box remote controller is as web page browsing function key, such as, the directionkeys of multiplexing set-top box remote controller is as web page browsing function key; In the present embodiment, be described for the original function key of multiplexing set-top box remote controller as web page browsing function key;
When the function key of set-top box remote controller is pressed, what send is the first press key message, when this function key is released, what send is the second press key message, namely the first press key message is that web page browsing function key is pressed the message of state, and the corresponding specific browser function function of described first press key message; Second press key message is the message of the released state of web page browsing function key;
The first press key message in the present embodiment and the second press key message are all the press key messages of same function key;
First judge module 202, for judging whether this Set Top Box receives the first press key message of receiver module 201 reception for the first time, when judging it is, when first time receiving this first press key message, perform the step arranging module 203;
Module 203 is set, during for judging that when the first judge module 202 this Set Top Box first time receives the first press key message from set-top box remote controller web page browsing function key, default indexed variable is set to tracking mode, this web page browsing function key is followed the tracks of in the effect of this indexed variable, sees whether this web page browsing function key follow-up can constantly send the first press key message;
Second judge module 204, for judging that when the first judge module 202 this Set Top Box is not when first time receiving the first press key message, more whether judgement symbol variable is still tracking mode, when judging this indexed variable for non-non-tracking state, termination routine;
Function call module 205, for after first time receives the first press key message, if within predetermined time interval, again receive the first press key message of same function key and indexed variable still for tracking mode time, call the browser function function corresponding with this first press key message; Concrete, can after first time receives the first press key message, open a timer immediately and carry out timing, if again receive the first press key message of same function key within the predetermined time and indexed variable still for tracking mode time, call the browser function function corresponding with this first press key message;
Processing module 206, for have invoked corresponding power function when function call module 205 after, according to this power function, the current webpage browsed is processed again, for multiplexing directionkeys, effect in real web pages is browsed is: long by when 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 is also for processing the webpage browsed with the continuous invoking performance function of the frequency preset, concrete: constantly can calling this power function to realize by starting another timer, not limiting herein;
Further, module 203 being set also for when again not receiving the first press key message of same function key in the time value preset, indexed variable being set to non-tracking state, termination routine;
Further, receiver module 201 is also for the second press key message of the same function key of receiving set up box remote controller transmission;
Further, module 203 is set also for when receiver module 201 receives the second press key message of same function key, indexed variable is set to non-tracking state, termination routine;
In the present embodiment, by multiplexing from the existing function key of set-top box remote controller as web page browsing function key, when first time receives the first press key message from set-top box remote controller web page browsing function key, default indexed variable is set to tracking mode, if again receive the first press key message of same function key and indexed variable is still tracking mode within predetermined time interval, then call the browser function function corresponding with this first press key message, and according to this power function, the current webpage browsed is processed; Thus realize the function utilizing existing remote controller and set box browser, make user can carry out convergent-divergent to webpage easily, browsing page rapidly, and without the need to increasing remote controller key or function, reduce the complexity of hardware cost and operation, improve Consumer's Experience.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.