CN104506941A - Key event processing method and device in smart television - Google Patents

Key event processing method and device in smart television Download PDF

Info

Publication number
CN104506941A
CN104506941A CN201410768749.0A CN201410768749A CN104506941A CN 104506941 A CN104506941 A CN 104506941A CN 201410768749 A CN201410768749 A CN 201410768749A CN 104506941 A CN104506941 A CN 104506941A
Authority
CN
China
Prior art keywords
web
press event
key
page
button
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.)
Granted
Application number
CN201410768749.0A
Other languages
Chinese (zh)
Other versions
CN104506941B (en
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.)
Zhengzhou Xinrand Network Technology Co ltd
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN201410768749.0A priority Critical patent/CN104506941B/en
Publication of CN104506941A publication Critical patent/CN104506941A/en
Application granted granted Critical
Publication of CN104506941B publication Critical patent/CN104506941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Abstract

The embodiment of the invention relates to a key event processing method and device in a smart television. The smart television comprises an operation system and a Web application, wherein the Web application operates on the basis of a Web engine. The method comprises the following steps: the operation system receives a key event of a remote control, and the key event is distributed to the Web engine via the application program interface of the Web engine; the Web engine judges whether the key event is relevant to a current webpage page of the Web application or not; when the key event is irrelevant to the current webpage page of the Web application, the key event is directly processed; when the key event is relevant to the current webpage page of the Web application, a Content module in a Web engine core is called to process the key event. Therefore, different types of key events can be subjected to different types of processing.

Description

The processing method of key-press event and device in intelligent television
Technical field
The present invention relates to intelligent television field, particularly relate to processing method and the device of key-press event in a kind of intelligent television.
Background technology
At present, Android (Android) operating system has occupied very large share on the mobile apparatus, but because the characteristic increased income, allow anyone to use and revise of system result in serious fragmentation, this is undoubtedly a bad news, because they must take into account more version when Application and Development concerning developers.The appearance of Web application is just solving this problem, reaches primary development, the unified object used of each platform.
The running environment of Web application is divided into three kinds of mode of operations: the first is that operating system inherently supports that Web applies, and is commonly referred to Web operating system; The second comprises the ability supporting Web application in browser or other similar product; The third is that independently framework and local application are present in traditional operating system with one, this running environment itself depends on operating system and could run, and Web application is operated in this Web running environment, as Web engine (Crosswalk), it is that Web application itself can be packaged into local application with the difference of the second, so operating system thinks that the Web application after each packing is exactly a local application.
Crosswalk is based on open source projects such as render engine (Blink) and kernels (Chromium), the expansion of some web interface is not only provided, neither simply based on the Embedded Application interface of system default as Web view (WebView), but use the ability of new Blink and Chromium, strengthen HTML (Hypertext Markup Language, HTML) support of 5 abilities, add the various abilities of Web as an operation platform simultaneously, functionally see, it to the support of Web application and the support of specification more complete.And although Android WebView have employed Chromium from Android 4.4, do not supported by the Android before 4.4, its performance and function also have very big difference compared with Crosswalk.Main cause is that browser (Chrome) WebView will the compatible application based on the WebView before Android 4.4 forward.This means that Chrome WebView will support many old functions, so architecture design is more complicated, thus cause partial function also imperfect, can performance be reduced in some cases simultaneously.Because Crosswalk does not need to keep this compatibility, it can adopt the design very close with Chrome.In fact Crosswalk is implemented on content (Content) module of Chromium just, and this makes its speed of service very fast and is easy to expansion and safeguards, also has corresponding enhancing simultaneously.Therefore we adopt the running environment that Crosswalk applies as Web.
The process to remote controller key assignments is there is in Android WebView, but not to the processing section of remote controller key assignments in the page control in Crosswalk (XwalkView), for making Crosswalk running environment normally use on intelligent television, need to process the key-press event of remote controller in Crosswalk.
Summary of the invention
Embodiments provide processing method and the device of key-press event in a kind of intelligent television, can solve existing intelligent television based on specific Web engine (as, when Crosswalk) running, the problem that cannot process remote controller key event.
First aspect, provides the processing method of key-press event in a kind of intelligent television, and described intelligent television comprises: operating system and Web application, and wherein, described Web application sing on web is engine-operated, and the method comprises:
Described operating system receives the key-press event of remote controller, and described key-press event is distributed to described Web engine by the application programming interfaces of described Web engine;
Described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies;
When the current web page page that described key-press event and described Web apply is uncorrelated, then direct described key-press event to be processed;
When described key-press event is relevant to the current web page page that described Web applies, then calls content Content module in described Web engine kernel and described key-press event is processed.
In conjunction with first aspect, in the first implementation of first aspect, described key-press event is carried push-button type and is judged mark;
Described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies, and comprising:
Described Web engine judges mark according to described push-button type, judges that whether described key-press event is relevant to the current web page page that described Web applies.
In conjunction with the first implementation of first aspect or first aspect, in the second implementation of first aspect, described Web engine judges mark according to described push-button type, judges that whether described key-press event is relevant to the current web page page that described Web applies, comprising:
If described push-button type judges to be designated expression volume control button, homepage button, to return button or menu key, then judge that the current web page page that described key-press event and described Web apply is uncorrelated;
Represent direction controlling button if described push-button type judges to be designated or represent confirmation button, then judge that described key-press event is relevant to the current web page page that described Web applies.
In conjunction with the second implementation of first aspect, in the third implementation of first aspect, if described push-button type judges to be designated represent direction controlling button, in described Web engine kernel, content Content module processes described key-press event, comprising:
In described Web engine kernel, content Content module reads and focuses on node from the node tree of the current web page page;
According to the direction of described focusing node and described direction controlling button, calculate target and focus on node;
Again the Webpage that described Web applies is drawn, focus on node to show described target.
In conjunction with any one implementation in above-mentioned three kinds of implementations of first aspect or first aspect, in the 4th kind of implementation of first aspect, described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies, and comprising:
By the function write in advance, described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies, and process described key-press event;
Accordingly, after completing described key-press event process, return results information by the described function write in advance to described Web engine, described object information is for representing that described key-press event has processed.
Second aspect, provide the processing unit of key-press event in a kind of intelligent television, described intelligent television comprises: operating system and Web application, wherein, described Web application sing on web is engine-operated, and this device comprises: receiving element, judging unit, processing unit and call unit;
Described receiving element, for receiving the key-press event of remote controller, and is distributed to described Web engine by described key-press event by the application programming interfaces of described Web engine;
Whether described judging unit is relevant to the current web page page that described Web applies for judging the described key-press event that described receiving element receives;
Described processing unit, during for judging that the current web page page that described key-press event and described Web apply is uncorrelated when described judging unit, then directly to process described key-press event;
Described call unit, during for judging that described key-press event is relevant to the current web page page that described Web applies when described judging unit, then calls content Content module in described Web engine kernel and processes described key-press event.
In conjunction with second aspect, in the first implementation of second aspect, described key-press event is carried push-button type and is judged mark;
Described judging unit specifically for:
Judge mark according to described push-button type, judge that whether described key-press event is relevant to the current web page page that described Web applies.
In conjunction with the first implementation of second aspect or second aspect, in the second implementation of second aspect, described judging unit specifically for:
If described push-button type judges to be designated expression volume control button, homepage button, to return button or menu key, then judge that the current web page page that described key-press event and described Web apply is uncorrelated;
Represent direction controlling button if described push-button type judges to be designated or represent confirmation button, then judge that described key-press event is relevant to the current web page page that described Web applies.
In conjunction with the second implementation of second aspect, in the third implementation of second aspect, if described push-button type judges to be designated represent direction controlling button, in described Web engine kernel, content Content module processes described key-press event, comprising:
In described Web engine kernel, content Content module reads and focuses on node from the node tree of the current web page page;
According to the direction of described focusing node and described direction controlling button, calculate target and focus on node;
Again the Webpage that described Web applies is drawn, focus on node to show described target.
In conjunction with any one implementation in above-mentioned three kinds of implementations of second aspect or second aspect, in the 4th kind of implementation of second aspect, described judging unit also specifically for:
Judge that whether described key-press event is relevant to the current web page page that described Web applies by the function write in advance, and described key-press event is processed;
Accordingly, after completing described key-press event process, return results information by the described function write in advance to described Web engine, described object information is for representing that described key-press event has processed.
The processing method of key-press event and device in the intelligent television that the embodiment of the present invention provides, described operating system receives the key-press event of remote controller, and described key-press event is distributed to described Web engine by the application programming interfaces of described Web engine; Described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies; When the current web page page that described key-press event and described Web apply is uncorrelated, then direct described key-press event to be processed; When described key-press event is relevant to the current web page page that described Web applies, then calls content Content module in described Web engine kernel and described key-press event is processed.Thus, can realize carrying out different process to dissimilar key-press event.
Accompanying drawing explanation
Fig. 1 is the structural representation of Web running environment of the present invention;
Fig. 2 is the structural representation of Crosswalk of the present invention;
The process flow figure of key-press event in the intelligent television that Fig. 3 provides for the embodiment of the present invention one;
The process flow figure of key-press event in the intelligent television that Fig. 4 provides for the embodiment of the present invention two;
The processing unit schematic diagram of key-press event in the intelligent television that Fig. 5 provides for the embodiment of the present invention three.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing with specific embodiment, embodiment does not form the restriction to the embodiment of the present invention.
In intelligent television provided by the invention, the processing method of key-press event and device are applicable to the scene that in intelligent television, Web application sing on web is engine-operated, be particularly useful for the scene that in intelligent television, Web application runs based on Crosswalk, wherein, intelligent television comprises: operating system and Web application, wherein, described Web application runs based on Crosswalk, and herein, Web application is what to be write based on current Web engine Crosswalk.Complete to Web application write after, Crosswalk is packaged in this Web apply in; Afterwards, above-mentioned Web application of packing Crosswalk is arranged on above-mentioned intelligent television.When opening Web application, the Webpage during this Web of manipulation that can use a teleswitch applies.
Above-mentioned Web applies the Crosswalk that can simultaneously pack, although the size of the Web application after packing can become large, but facilitate the management that follow-up Web applies, and when other Web application is installed, this Crosswalk need not install again, i.e. once mounting, multiple Web application can be shared, particularly, the structural representation of Web running environment of the present invention that can be shown in Figure 1, in Fig. 1, Web operation platform (i.e. Crosswalk) comprising: packing function, application life cycles, application management, equipment (Device) function, memory function, expanded function, base page function, java script function and CSS (Cascading Style Sheets, CSS) function.The application software sharing above-mentioned Crosswalk comprises: multiple Web application such as a Web application, the 2nd Web application and the 3rd Web application.
Fig. 2 is the structural representation of Crosswalk of the present invention, as shown in Figure 2, Crosswalk comprises kernel (Chromium), content (Content) module in Chromium kernel comprises focus process function, wherein, Content module is obtained after Java code wrap by Python script.Above-mentioned focus process function receives the key-press event of remote controller transmission at Crosswalk, and this key-press event is called time relevant to the current web page page that Web applies, focusing node optimum in the node tree of above-mentioned Webpage can be got by this focus process function.
The process flow figure of key-press event in the intelligent television that Fig. 3 provides for the embodiment of the present invention one, as shown in Figure 3, described method can specifically comprise:
Step 310, described operating system receives the key-press event of remote controller, and described key-press event is distributed to described Web engine by the application programming interfaces of described Web engine.
Wherein, operating system can be Android or Mobile operating system (IOS) etc., in this description, is that Android is described with operating system.In addition, above-mentioned Web engine is Crosswalk, has write function onKeyDown () and onKeyUp () in this Crosswalk in advance, and these two functions are used for processing the key-press event of above-mentioned reception.
Particularly, when user presses the button of remote controller, operating system bottom can catch the key-press event of this remote controller, and the current web page page this key-press event being distributed to Web application (is also, be distributed to the application window of present convergence), the current web page page is by calling the application programming interfaces of Crosswalk (such as, page control XwalkView) above-mentioned key-press event is distributed to Crosswalk, by the function onKeyDown () in Crosswalk, this key-press event is processed, thus, manipulation Web being applied is more convenient.
Step 320, described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies.
By the function onKeyDown () write in advance, described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies, and process described key-press event;
Accordingly, after completing described key-press event process, return results information by the described function write in advance to described Web engine, described object information is for representing that described key-press event has processed.
Herein, key-press event can carry push-button type judgement mark.Particularly, function onKeyDown () receives above-mentioned push-button type by parameter and judges mark, and judge mark according to push-button type, judge that whether described key-press event is relevant to the current web page page that described Web applies, also namely judge the type of this key-press event; If described push-button type judges to be designated expression volume control button, homepage button, to return button or menu key, then judge that the current web page page that described key-press event and described Web apply is uncorrelated; Represent direction controlling button if described push-button type judges to be designated or represent confirmation button, then judge that described key-press event is relevant to the current web page page that described Web applies.
Step 330, when the current web page page that described key-press event and described Web apply is uncorrelated, then directly to process described key-press event.
When the current web page page that described key-press event and described Web apply is uncorrelated, then the direct Java layer by page control XwalkView processes described key-press event, and Java layer herein refers to that the processing method in this layer is write by Java.For example, if when described push-button type judges to be designated expression homepage button, then the direct startup page being returned Crosswalk by described Web application.
Step 340, when described key-press event is relevant to the current web page page that described Web applies, then calls content Content module in described Web engine kernel and processes described key-press event.
When described key-press event is relevant to the current web page page that described Web applies, the focus process function then being called Content module C layer in the Chromium kernel of Crosswalk by page control XwalkView processes described key-press event, and C layer herein refers to that above-mentioned focus process function is write by C language.
Wherein, in the engine of Web described in step 340 kernel, content Content module is carried out process to described key-press event and can also be comprised:
In described Web engine kernel, content Content module reads and focuses on node from the node tree of the current web page page;
According to the direction of described focusing node and described direction controlling button, calculate target and focus on node;
Again the Webpage that described Web applies is drawn, focus on node to show described target.
For example, if when described push-button type judges to be designated expression direction key, then call focus process function by page control XwalkView, from the node tree of the current web page page, present convergence node is read by this focus process function, according to the direction of present convergence node and described direction controlling button, calculate target and focus on node, it is optimum focusing node that this target focuses on node; Again draw the Webpage that described Web applies, focus on node to show described target, wherein, above-mentioned node can be DOM node.
It should be noted that, after the process completing above-mentioned key-press event, return results information by the described function onKeyDown () write in advance to described Web engine, described object information is for representing that described key-press event has processed.
The process flow figure of key-press event in the intelligent television that Fig. 4 provides for the embodiment of the present invention two, as shown in Figure 4, described method can specifically comprise:
Step 410, the key-press event of remote controller caught by Android operation system bottom, and this key-press event is distributed to the Webpage of present convergence.
Step 420, page control XwalkView call function onKeyDown () in the Webpage of present convergence, is judged the type of above-mentioned key-press event by function onKeyDown ().
Step 430, when the type of key-press event is hot key, then direct by page control XwalkView process.
Step 440, when the type of key-press event is not hot key, is then called the focus process function of Content module C layer in Crosswalk kernel by page control XwalkView.
Step 450, focus process function reads optimum focusing node from the node tree of the current web page page.
Step 460, carries out page drafting to the focusing node of optimum, shows the aggregation node after the page is drawn.
In one example in which, by pressing the different key of remote controller, Web application can make different responses: the back spacer pressing remote controller, then the current web page page can exit, if press the directionkeys of remote controller, then the Focus Club in webpage moves, press acknowledgement key, corresponding Webpage can be entered.
To sum up, the processing method of key-press event in the intelligent television that the embodiment of the present invention provides, can realize carrying out different process to dissimilar key-press event.
The processing unit schematic diagram of key-press event in the intelligent television that Fig. 5 provides for the embodiment of the present invention three.Described intelligent television comprises: operating system and Web application, and wherein, described Web application sing on web is engine-operated, and described device may be used for performing the method described in Fig. 3.In Fig. 5, this device comprises: receiving element 501, judging unit 502, processing unit 503 and call unit 504.
Receiving element 501, for receiving the key-press event of remote controller, and is distributed to described Web engine by described key-press event by the application programming interfaces of described Web engine.
Wherein, aforesaid operations system can be Android or Mobile operating system (IOS) etc., in this description, is that Android is described with operating system.In addition, above-mentioned Web engine is Crosswalk, has write function onKeyDown () and onKeyUp () in this Crosswalk in advance, and these two functions are used for processing the key-press event of above-mentioned reception.
Particularly, when user presses the button of remote controller, receiving element 501 can catch the key-press event of this remote controller, and the current web page page this key-press event being distributed to Web application (is also, be distributed to the application window of present convergence), the current web page page is by calling the application programming interfaces of Crosswalk (such as, page control XwalkView) above-mentioned key-press event is distributed to Crosswalk, by the function onKeyDown () in Crosswalk, this key-press event is processed, thus, manipulation Web being applied is more convenient.
Whether judging unit 502 is relevant to the current web page page that described Web applies for judging the described key-press event that receiving element 501 receives.
By the function onKeyDown () write in advance, judging unit 502 judges that whether described key-press event is relevant to the current web page page that described Web applies, and process described key-press event.
Herein, key-press event can carry push-button type judgement mark.Particularly, function onKeyDown () receives above-mentioned push-button type by parameter and judges mark, and judge mark according to push-button type, judge that whether described key-press event is relevant to the current web page page that described Web applies, also namely judge the type of this key-press event; If described push-button type judges to be designated expression volume control button, homepage button, to return button or menu key, then judge that the current web page page that described key-press event and described Web apply is uncorrelated; Represent direction controlling button if described push-button type judges to be designated or represent confirmation button, then judge that described key-press event is relevant to the current web page page that described Web applies.
Processing unit 503, during for judging that the current web page page that described key-press event and described Web apply is uncorrelated when judging unit 502, then directly to process described key-press event.
When the current web page page that described key-press event and described Web apply is uncorrelated, then the direct Java layer by page control XwalkView processes described key-press event.
Call unit 504, during for judging that described key-press event is relevant to the current web page page that described Web applies when judging unit 502, then calls content Content module in described Web engine kernel and processes described key-press event.
If described push-button type judges to be designated represent direction controlling button, in described Web engine kernel, content Content module processes described key-press event, comprising:
In described Web engine kernel, content Content module reads and focuses on node from the node tree of the current web page page;
According to the direction of described focusing node and described direction controlling button, calculate target and focus on node;
Again the Webpage that described Web applies is drawn, focus on node to show described target.
Alternatively, described key-press event carries push-button type judgement mark; Judging unit 502 specifically for: judge mark according to described push-button type, judge that whether described key-press event relevant to the current web page page that described Web applies.
Judging unit 502 specifically for:
If described push-button type judges to be designated expression volume control button, homepage button, to return button or menu key, then judge that the current web page page that described key-press event and described Web apply is uncorrelated;
Represent direction controlling button if described push-button type judges to be designated or represent confirmation button, then judge that described key-press event is relevant to the current web page page that described Web applies.
The device that the embodiment of the present invention three provides implants the method that the embodiment of the present invention one provides, and therefore, the specific works process of device provided by the invention, does not repeat again at this.
In the embodiment of the present invention three, receiving element 501 receives the key-press event of remote controller, and described key-press event is distributed to described Web engine by the application programming interfaces of described Web engine; Judging unit 502 judges that whether the described key-press event received is relevant to the current web page page that described Web applies; Processing unit 503, when the current web page page judging that described key-press event and described Web apply is uncorrelated, directly processes described key-press event; Call unit 504, when judging that described key-press event is relevant to the current web page page that described Web applies when described judging unit, calls content Content module in described Web engine kernel and processes described key-press event.Can realize thus carrying out different process to dissimilar key-press event.
Professional should recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only the specific embodiment of the present invention; the protection range be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the processing method of key-press event in intelligent television, it is characterized in that, described intelligent television comprises: operating system and Web application, and wherein, described Web application sing on web is engine-operated, and described method comprises:
Described operating system receives the key-press event of remote controller, and described key-press event is distributed to described Web engine by the application programming interfaces of described Web engine;
Described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies;
When the current web page page that described key-press event and described Web apply is uncorrelated, then direct described key-press event to be processed;
When described key-press event is relevant to the current web page page that described Web applies, then calls content Content module in described Web engine kernel and described key-press event is processed.
2. method according to claim 1, is characterized in that, described key-press event is carried push-button type and judged mark;
Described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies, and comprising:
Described Web engine judges mark according to described push-button type, judges that whether described key-press event is relevant to the current web page page that described Web applies.
3. method according to claim 1 and 2, is characterized in that, described Web engine judges mark according to described push-button type, judges that whether described key-press event is relevant to the current web page page that described Web applies, comprising:
If described push-button type judges to be designated expression volume control button, homepage button, to return button or menu key, then judge that the current web page page that described key-press event and described Web apply is uncorrelated;
Represent direction controlling button if described push-button type judges to be designated or represent confirmation button, then judge that described key-press event is relevant to the current web page page that described Web applies.
4. method according to claim 3, is characterized in that, if described push-button type judges to be designated represent direction controlling button, in described Web engine kernel, content Content module processes described key-press event, comprising:
In described Web engine kernel, content Content module reads and focuses on node from the node tree of the current web page page;
According to the direction of described focusing node and described direction controlling button, calculate target and focus on node;
Again the Webpage that described Web applies is drawn, focus on node to show described target.
5. the method according to any one of claim 1-4, is characterized in that, described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies, and comprising:
By the function write in advance, described Web engine judges that whether described key-press event is relevant to the current web page page that described Web applies, and process described key-press event;
Accordingly, after completing described key-press event process, return results information by the described function write in advance to described Web engine, described object information is for representing that described key-press event has processed.
6. the processing unit of key-press event in an intelligent television, it is characterized in that, described intelligent television comprises: operating system and Web application, wherein, described Web application sing on web is engine-operated, and described device comprises: receiving element, judging unit, processing unit and call unit;
Described receiving element, for receiving the key-press event of remote controller, and is distributed to described Web engine by described key-press event by the application programming interfaces of described Web engine;
Whether described judging unit is relevant to the current web page page that described Web applies for judging the described key-press event that described receiving element receives;
Described processing unit, during for judging that the current web page page that described key-press event and described Web apply is uncorrelated when described judging unit, then directly to process described key-press event;
Described call unit, during for judging that described key-press event is relevant to the current web page page that described Web applies when described judging unit, then calls content Content module in described Web engine kernel and processes described key-press event.
7. device according to claim 6, is characterized in that, described key-press event is carried push-button type and judged mark;
Described judging unit specifically for:
Judge mark according to described push-button type, judge that whether described key-press event is relevant to the current web page page that described Web applies.
8. the device according to claim 6 or 7, is characterized in that, described judging unit specifically for:
If described push-button type judges to be designated expression volume control button, homepage button, to return button or menu key, then judge that the current web page page that described key-press event and described Web apply is uncorrelated;
Represent direction controlling button if described push-button type judges to be designated or represent confirmation button, then judge that described key-press event is relevant to the current web page page that described Web applies.
9. device according to claim 8, is characterized in that, if described push-button type judges to be designated represent direction controlling button, in described Web engine kernel, content Content module processes described key-press event, comprising:
In described Web engine kernel, content Content module reads and focuses on node from the node tree of the current web page page;
According to the direction of described focusing node and described direction controlling button, calculate target and focus on node;
Again the Webpage that described Web applies is drawn, focus on node to show described target.
10. the device according to any one of claim 6-9, is characterized in that, described judging unit also specifically for:
Judge that whether described key-press event is relevant to the current web page page that described Web applies by the function write in advance, and described key-press event is processed;
Accordingly, after completing described key-press event process, return results information by the described function write in advance to described Web engine, described object information is for representing that described key-press event has processed.
CN201410768749.0A 2014-12-11 2014-12-11 The processing method and processing device of key-press event in intelligent television Active CN104506941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410768749.0A CN104506941B (en) 2014-12-11 2014-12-11 The processing method and processing device of key-press event in intelligent television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410768749.0A CN104506941B (en) 2014-12-11 2014-12-11 The processing method and processing device of key-press event in intelligent television

Publications (2)

Publication Number Publication Date
CN104506941A true CN104506941A (en) 2015-04-08
CN104506941B CN104506941B (en) 2018-01-30

Family

ID=52948645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410768749.0A Active CN104506941B (en) 2014-12-11 2014-12-11 The processing method and processing device of key-press event in intelligent television

Country Status (1)

Country Link
CN (1) CN104506941B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681862A (en) * 2016-03-11 2016-06-15 四川长虹电器股份有限公司 Television system multifunctional application and remote-control key operation compatible method
CN106101837A (en) * 2016-07-15 2016-11-09 四川长虹电器股份有限公司 The method distributed for many applications keys of Linux smart television and process
CN107015803A (en) * 2017-03-21 2017-08-04 武汉斗鱼网络科技有限公司 Button monitor method and system based on Linux inner core
CN108347638A (en) * 2018-02-27 2018-07-31 烽火通信科技股份有限公司 A kind of button processing method and system of IPTV set top box browser
CN108920285A (en) * 2018-06-12 2018-11-30 北京小米移动软件有限公司 event response method and device
CN109948092A (en) * 2019-03-20 2019-06-28 四川长虹电器股份有限公司 A kind of method of Android TV platform lightweight browsers engine pages button control
CN113141530A (en) * 2021-04-15 2021-07-20 深圳市欢太科技有限公司 Remote control interaction based method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127756A (en) * 2006-08-15 2008-02-20 中兴通讯股份有限公司 Method for realizing channel switching on third party website
CN101562690A (en) * 2009-05-15 2009-10-21 中兴通讯股份有限公司 Method for operating set-top box and key thereof
US20120159309A1 (en) * 2010-12-21 2012-06-21 Akinori Komaki Picture display apparatus and picture display method
CN102857823A (en) * 2012-08-24 2013-01-02 乐视网信息技术(北京)股份有限公司 Web page focus control method based on television
CN103473348A (en) * 2013-09-24 2013-12-25 青岛海信电器股份有限公司 Web browser navigation method, web browser navigation device and television set
CN104113776A (en) * 2014-06-30 2014-10-22 深圳市九洲电器有限公司 Fusion type application synchronization management method, device and audio/video terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127756A (en) * 2006-08-15 2008-02-20 中兴通讯股份有限公司 Method for realizing channel switching on third party website
CN101562690A (en) * 2009-05-15 2009-10-21 中兴通讯股份有限公司 Method for operating set-top box and key thereof
US20120159309A1 (en) * 2010-12-21 2012-06-21 Akinori Komaki Picture display apparatus and picture display method
CN102857823A (en) * 2012-08-24 2013-01-02 乐视网信息技术(北京)股份有限公司 Web page focus control method based on television
CN103473348A (en) * 2013-09-24 2013-12-25 青岛海信电器股份有限公司 Web browser navigation method, web browser navigation device and television set
CN104113776A (en) * 2014-06-30 2014-10-22 深圳市九洲电器有限公司 Fusion type application synchronization management method, device and audio/video terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘春梅,邓浩江,孙鹏,胡琳琳: "基于嵌入式终端的视频点播业务控制方法", 《微计算机信息》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681862A (en) * 2016-03-11 2016-06-15 四川长虹电器股份有限公司 Television system multifunctional application and remote-control key operation compatible method
CN106101837A (en) * 2016-07-15 2016-11-09 四川长虹电器股份有限公司 The method distributed for many applications keys of Linux smart television and process
CN106101837B (en) * 2016-07-15 2019-07-12 四川长虹电器股份有限公司 The method of more applications keys distribution and processing for Linux smart television
CN107015803A (en) * 2017-03-21 2017-08-04 武汉斗鱼网络科技有限公司 Button monitor method and system based on Linux inner core
CN108347638A (en) * 2018-02-27 2018-07-31 烽火通信科技股份有限公司 A kind of button processing method and system of IPTV set top box browser
CN108347638B (en) * 2018-02-27 2020-10-27 烽火通信科技股份有限公司 Key processing method and system for IPTV set top box browser
CN108920285A (en) * 2018-06-12 2018-11-30 北京小米移动软件有限公司 event response method and device
CN109948092A (en) * 2019-03-20 2019-06-28 四川长虹电器股份有限公司 A kind of method of Android TV platform lightweight browsers engine pages button control
CN113141530A (en) * 2021-04-15 2021-07-20 深圳市欢太科技有限公司 Remote control interaction based method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104506941B (en) 2018-01-30

Similar Documents

Publication Publication Date Title
CN104506941A (en) Key event processing method and device in smart television
US10699061B2 (en) Application page quick access
CN102622210B (en) Method for displaying help information and device
CN109842818A (en) A kind of video broadcasting method, device, computer equipment and storage medium
CN106610774B (en) Webpage table editing method and device
CN105335132B (en) Method, device and system for customizing application program function
CN103686289A (en) Intelligent television keyboard input control method and intelligent television
CN107645546B (en) File monitoring method based on android system, intelligent device and storage medium
US20160196588A1 (en) Interacting method
CN105279431B (en) Method, device and system for recording operation information in mobile equipment
CN104881273A (en) Webpage rendering analysis method and terminal device
CN108459888A (en) multi-page switching method, device, terminal device and storage medium
CN105095374A (en) Method and device for browsing mobile terminal news
CN104461542A (en) Method and device for pop-up box warning processing
CN108897587B (en) Pluggable machine learning algorithm operation method and device and readable storage medium
CN105867862A (en) Application program interface display method and device
CN105630366A (en) Method and apparatus for displaying object information in screen display device
CN103399788A (en) Cross-application control method and system for intelligent terminal
CN105898608A (en) Video play control method and browser
CN108509228A (en) Method, terminal device and the computer readable storage medium of loading page
CN115688102A (en) Window processing method and device, processor and electronic equipment
CN109254820B (en) Window closing method, device, terminal and computer readable storage medium
CN112527424A (en) Control method and device for popup window
CN103077016B (en) A kind of moving object creation method, device and browser
CN112558846B (en) Page data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210802

Address after: Room 1601, 16th floor, East Tower, Ximei building, No. 6, Changchun Road, high tech Industrial Development Zone, Zhengzhou, Henan 450001

Patentee after: Zhengzhou xinrand Network Technology Co.,Ltd.

Address before: 100190 Institute of acoustics, Chinese Academy of Sciences, 21 North Fourth Ring West Road, Haidian District, Beijing

Patentee before: INSTITUTE OF ACOUSTICS, CHINESE ACADEMY OF SCIENCES

TR01 Transfer of patent right