CN104506941B - The processing method and processing device of key-press event in intelligent television - Google Patents
The processing method and processing device of key-press event in intelligent television Download PDFInfo
- Publication number
- CN104506941B CN104506941B CN201410768749.0A CN201410768749A CN104506941B CN 104506941 B CN104506941 B CN 104506941B CN 201410768749 A CN201410768749 A CN 201410768749A CN 104506941 B CN104506941 B CN 104506941B
- Authority
- CN
- China
- Prior art keywords
- web
- key
- press event
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Abstract
The present embodiments relate to a kind of processing method and processing device of key-press event in intelligent television, the intelligent television includes:Operating system and Web applications, wherein, Web is engine-operated, and methods described includes using being based on by the Web:The operating system receives the key-press event of remote control, and the key-press event is distributed into the Web engines by the application programming interfaces of the Web engines;The Web engines judge whether the key-press event is related to the current web page page of Web applications;When the key-press event is uncorrelated to the current web page page that the Web is applied, then directly the key-press event is handled;When the key-press event is related to the current web page page that the Web is applied, then content Content modules in the Web engines kernel are called to handle the key-press event.Different processing is carried out to different types of key-press event thus, it is possible to realize.
Description
Technical field
The present invention relates to the processing method and dress of key-press event in intelligent television field, more particularly to a kind of intelligent television
Put.
Background technology
At present, Android (Android) operating system has already taken up very big share on the mobile apparatus, but due to being
System is increased income, allows anyone the characteristic for using and changing to result in serious fragmentation, and this is undoubtedly for developers
Individual bad news, because they must take into account more versions in development and application.The appearance of Web applications is just solving this problem,
Primary development is reached, the purpose that each platform uniformly uses.
The running environment of Web applications is divided into three kinds of mode of operations:The first is that operating system inherently supports Web to apply,
Commonly referred to as Web operating systems;Second is comprising the ability for supporting Web applications in browser or other similar products;
The third be with an independent framework and it is locally applied be present in traditional operating system, running environment itself is dependent on behaviour
Making system could be run, and Web applications are operated in the Web running environment, and such as Web engines (Crosswalk), it is the same as second
Difference to be Web locally applied using that itself can be packaged into, so operating system thinks the applications of the Web after each packing is exactly
One locally applied.
Crosswalk is based on the open source projects such as rendering engine (Blink) and kernel (Chromium), not only provides
The extension of web interface, nor the Embedded Application interface such as Web views (WebView) simply based on system default, but
Using new Blink and Chromium ability, strengthen HTML (Hypertext Markup Language,
HTML) the support of 5 abilities, while various abilities of the Web as an operation platform are added, functionally see, it should to Web
Support and the support of specification are more complete.And although Android WebView have employed from Android 4.4
Chromium, but do not supported by the Android before 4.4, its performance and function also have very big difference compared with Crosswalk
Not.Main cause be browser (Chrome) WebView will forward it is compatible based on the WebView before Android 4.4 should
With.This means Chrome WebView will support many old functions, so architecture design is increasingly complex, so as to cause part
Function is also no perfect, while can reduce performance in some cases.Because Crosswalk need not keep this compatibility,
It can be used and the very similar designs of Chrome.In fact Crosswalk is exactly the content for being implemented in Chromium
(Content) on module, this make it that its speed of service is very fast and is easy to extend and safeguards, while also has corresponding enhancing.Cause
We use the running environment that Crosswalk applies as Web for this.
Processing to remote control key assignments in Android WebView be present, but the page control in Crosswalk
(XwalkView) not to the process part of remote control key assignments in, for make Crosswalk running environment on intelligent television it is normal
Using, it is necessary to be handled in Crosswalk the key-press event of remote control.
The content of the invention
The embodiments of the invention provide a kind of processing method and processing device of key-press event in intelligent television, can solve existing
Intelligent television when being run based on specific Web engines (e.g., Crosswalk), can not be to remote controller key event at
The problem of reason.
First aspect, there is provided the processing method of key-press event in a kind of intelligent television, the intelligent television include:Operation
System and Web applications, wherein, Web is engine-operated, and this method includes using being based on by the Web:
The operating system receives the key-press event of remote control, and the answering by the Web engines by the key-press event
The Web engines are distributed to routine interface;
The Web engines judge whether the key-press event is related to the current web page page of Web applications;
When the key-press event is uncorrelated to the current web page page that the Web is applied, then directly to the button thing
Part is handled;
When the key-press event is related to the current web page page that the Web is applied, then the Web engines kernel is called
Middle content Content modules are handled the key-press event.
With reference in a first aspect, in the first implementation of first aspect, the key-press event carries push-button type and sentenced
Disconnected mark;
The Web engines judge whether the key-press event is related to the current web page page of Web applications, including:
The Web engines judge to identify according to the push-button type, judge whether the key-press event is applied with the Web
The current web page page it is related.
With reference to the first of first aspect or first aspect implementation, in second of implementation of first aspect,
The Web engines according to the push-button type judge identify, judge the key-press event whether with the Web application current net
The page page is related, including:
If the push-button type judge to be identified as represent volume control button, homepage button, return button or menu by
Key, then judge that the key-press event is uncorrelated to the current web page page that the Web is applied;
Represent direction controlling button if the push-button type judges to be identified as or represent to confirm button, pressed described in judgement
Key events are related to the current web page page that the Web is applied.
With reference to second of implementation of first aspect, in the third implementation of first aspect, if the button
Type judgement, which is identified as, represents direction controlling button, and content Content modules are to the key-press event in the Web engines kernel
Handled, including:
Content Content modules are read from the node tree of the current web page page in the Web engines kernel focuses on node;
According to the direction of the focusing node and the direction controlling button, calculate target and focus on node;
Again the Webpage of Web applications is drawn, to show that the target focuses on node.
With reference to any implementation in above-mentioned three kinds of implementations of first aspect or first aspect, in first aspect
In 4th kind of implementation, the Web engines judge the key-press event whether with the Web application current web page page phase
Close, including:
The Web engines judge whether the key-press event is current with Web applications by the function write in advance
Webpage is related, and the key-press event is handled;
Accordingly, after the completion of to key-press event processing, by the function write in advance to the Web engines
Returning result information, the object information are used to represent that the key-press event has handled completion.
Second aspect, there is provided the processing unit of key-press event in a kind of intelligent television, the intelligent television include:Operation
System and Web applications, wherein, Web is engine-operated, and the device includes using being based on by the Web:Receiving unit, judging unit, place
Manage unit and call unit;
The receiving unit, pass through the Web engines for receiving the key-press event of remote control, and by the key-press event
Application programming interfaces be distributed to the Web engines;
The judging unit, for judging whether the key-press event that the receiving unit receives is applied with the Web
The current web page page it is related;
The processing unit, for judging the key-press event and the current net of Web applications when the judging unit
When the page page is uncorrelated, then directly the key-press event is handled;
The call unit, for judging the key-press event and the current net of Web applications when the judging unit
During page page correlation, then content Content modules in the Web engines kernel are called to handle the key-press event.
With reference to second aspect, in the first implementation of second aspect, the key-press event carries push-button type and judged
Mark;
The judging unit is specifically used for:
According to the push-button type judge identify, judge the key-press event whether with the Web application current web page
The page is related.
With reference to the first of second aspect or second aspect implementation, in second of implementation of second aspect,
The judging unit is specifically used for:
If the push-button type judge to be identified as represent volume control button, homepage button, return button or menu by
Key, then judge that the key-press event is uncorrelated to the current web page page that the Web is applied;
Represent direction controlling button if the push-button type judges to be identified as or represent to confirm button, pressed described in judgement
Key events are related to the current web page page that the Web is applied.
With reference to second of implementation of second aspect, in the third implementation of second aspect, if the button
Type judgement, which is identified as, represents direction controlling button, and content Content modules are to the key-press event in the Web engines kernel
Handled, including:
Content Content modules are read from the node tree of the current web page page in the Web engines kernel focuses on node;
According to the direction of the focusing node and the direction controlling button, calculate target and focus on node;
Again the Webpage of Web applications is drawn, to show that the target focuses on node.
With reference to any implementation in above-mentioned three kinds of implementations of second aspect or second aspect, in second aspect
In 4th kind of implementation, the judging unit also particularly useful for:
By the function write in advance judge the key-press event whether with the Web application current web page page phase
Close, and the key-press event is handled;
Accordingly, after the completion of to key-press event processing, by the function write in advance to the Web engines
Returning result information, the object information are used to represent that the key-press event has handled completion.
The processing method and processing device of key-press event in intelligent television provided in an embodiment of the present invention, the operating system receive
The key-press event of remote control, and the key-press event is distributed to the Web by the application programming interfaces of the Web engines and drawn
Hold up;The Web engines judge whether the key-press event is related to the current web page page of Web applications;When the button
When event is uncorrelated to the current web page page that the Web is applied, then directly the key-press event is handled;Pressed when described
When key events are related to the current web page page that the Web is applied, then content Content moulds in the Web engines kernel are called
Block is handled the key-press event.Different processing is carried out to different types of key-press event thus, it is possible to realize.
Brief description of the drawings
Fig. 1 is the structural representation of the Web running environment of the present invention;
Fig. 2 is the Crosswalk of present invention structural representation;
Fig. 3 is the process flow figure of key-press event in the intelligent television that the embodiment of the present invention one provides;
Fig. 4 is the process flow figure of key-press event in the intelligent television that the embodiment of the present invention two provides;
Fig. 5 is the processing unit schematic diagram of key-press event in the intelligent television that the embodiment of the present invention three provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
For ease of the understanding to the embodiment of the present invention, it is further explained below in conjunction with accompanying drawing with specific embodiment
Bright, embodiment does not form the restriction to the embodiment of the present invention.
The processing method and processing device of key-press event Web suitable for intelligent television is applied in intelligent television provided by the invention
Based on the engine-operated scenes of Web, the Web in intelligent television that is particularly suitable for use in applies the scene based on Crosswalk operations, its
In, intelligent television includes:Operating system and Web applications, wherein, the Web applies to be run based on Crosswalk, herein, Web
Using being write based on current Web engines Crosswalk.After being write complete to apply Web, by Crosswalk
It is packaged in Web applications;Afterwards, the above-mentioned Crosswalk that packed Web is applied and be arranged on above-mentioned intelligent television.When
When opening Web applications, you can manipulate the Webpage in Web applications using remote control.
Above-mentioned Web is using the Crosswalk that can pack simultaneously, although the size of the Web applications after packing can become big,
When facilitating the management of follow-up Web applications, and installing other Web applications, the Crosswalk does not have to install again, i.e., once
Installation, multiple Web applications can be shared, specifically, reference can be made to the structural representation of the Web running environment of the invention shown in Fig. 1
Scheme, in Fig. 1, Web operation platforms (i.e. Crosswalk) include:Packing function, application life cycles, application management, equipment
(Device) function, store function, expanded function, base page function, java script function and CSS
(Cascading Style Sheets, CSS) function.Sharing above-mentioned Crosswalk application software includes:First Web applications,
2nd Web is applied and multiple Web applications such as the 3rd Web applications.
Fig. 2 is the Crosswalk of present invention structural representation, as shown in Fig. 2 Crosswalk includes kernel
(Chromium), content (Content) module in Chromium kernels includes focus processing function, wherein, Content modules
Obtained after being encapsulated by Python scripts to Java code.Above-mentioned focus processing function receives remote control in Crosswalk
The key-press event that device is sent, and be called when the key-press event is related to the current web page page that Web is applied, pass through the focus
Processing function can get focusing node optimal in the node tree of above-mentioned Webpage.
Fig. 3 is the process flow figure of key-press event in the intelligent television that the embodiment of the present invention one provides, such as Fig. 3 institutes
Show, methods described can specifically include:
Step 310, the operating system receives the key-press event of remote control, and the key-press event is passed through into the Web
The application programming interfaces of engine are distributed to the Web engines.
Wherein, operating system can be Android or Mobile operating system (IOS) etc., in this description, with operation
System illustrates for Android.In addition, above-mentioned Web engines are Crosswalk, function is encoded with advance in the Crosswalk
OnKeyDown () and onKeyUp (), two functions are used to handle the key-press event of above-mentioned reception.
Specifically, when user presses the button of remote control, operating system bottom can capture the key-press event of the remote control,
And the key-press event is distributed to the current web page page (that is, being distributed to the application widget of present convergence) of Web applications, currently
Webpage is by calling Crosswalk application programming interfaces (for example, page control XwalkView) by above-mentioned key-press event
Crosswalk is distributed to, the key-press event is handled by the function onKeyDown () in Crosswalk, as a result,
The manipulation of Web applications is more convenient.
Step 320, the Web engines judge the key-press event whether with the Web application current web page page phase
Close.
The Web engines by the function onKeyDown () write in advance judge the key-press event whether with the Web
The current web page page of application is related, and the key-press event is handled;
Accordingly, after the completion of to key-press event processing, by the function write in advance to the Web engines
Returning result information, the object information are used to represent that the key-press event has handled completion.
Herein, key-press event can carry push-button type and judge to identify.Specifically, function onKeyDown () passes through parameter
Receive above-mentioned push-button type and judge mark, and judge to identify according to push-button type, judge the key-press event whether with the Web
The current web page page of application is related, namely judges the type of the key-press event;If the push-button type judges to be identified as expression
Volume control button, homepage button, button or menu key are returned to, then judge the key-press event and Web applications
The current web page page is uncorrelated;Represent direction controlling button if the push-button type judges to be identified as or represent to confirm button,
Then judge that the key-press event is related to the current web page page that the Web is applied.
Step 330, when the key-press event is uncorrelated to the current web page page that the Web is applied, then directly to institute
Key-press event is stated to be handled.
When the key-press event is uncorrelated to the current web page page that the Web is applied, then directly by page control
XwalkView Java layers are handled the key-press event, Java layers herein refer to the processing method in this layer be by
Written in Java.For example, if the push-button type judges to be identified as expression homepage button, directly applied by the Web
Return to the Crosswalk startup page.
Step 340, when the key-press event is related to the current web page page that the Web is applied, then the Web is called
Content Content modules are handled the key-press event in engine kernel.
When the key-press event is related to the current web page page that the Web is applied, then by page control XwalkView
Call described in the focus processing function pair of Content module C layers in Crosswalk Chromium kernels at key-press event
Reason, C layers herein refer to that above-mentioned focus processing function is write by C language.
Wherein, content Content modules are handled the key-press event in the kernels of Web engines described in step 340
It can also include:
Content Content modules are read from the node tree of the current web page page in the Web engines kernel focuses on node;
According to the direction of the focusing node and the direction controlling button, calculate target and focus on node;
Again the Webpage of Web applications is drawn, to show that the target focuses on node.
For example, if the push-button type judges to be identified as expression direction key, by page control XwalkView
Focus processing function is called, handle function by the focus reads present convergence node from the node tree of the current web page page,
According to the direction of present convergence node and the direction controlling button, calculate target and focus on node, the target focuses on node and is
Optimal focusing node;Again the Webpage of Web applications is drawn, to show that the target focuses on node, its
In, above-mentioned node can be DOM node.
It should be noted that after the processing of above-mentioned key-press event is completed, pass through the function write in advance
To the Web engines returning result information, the object information is used to represent that the key-press event has been located onKeyDown ()
Reason is completed.
Fig. 4 is the process flow figure of key-press event in the intelligent television that the embodiment of the present invention two provides, such as Fig. 4 institutes
Show, methods described can specifically include:
Step 410, the key-press event of Android operation system bottom capture remote control, and the key-press event is distributed to
The Webpage of present convergence.
Step 420, the page control XwalkView call function onKeyDown () in the Webpage of present convergence, by
Function onKeyDown () is judged the type of above-mentioned key-press event.
Step 430, when the type of key-press event is hot key, then directly by page control XwalkView processing.
Step 440, when the type of key-press event is not hot key, then Crosswalk is called by page control XwalkView
The focus processing function of Content modules C layers in kernel.
Step 450, focus processing function reads optimal focusing node from the node tree of the current web page page.
Step 460, page drafting is carried out to optimal focusing node, shows the aggregation node after the page is drawn.
In one example, by pressing the different key of remote control, Web applications can make different responses:Press distant
Control the back spacer of device, then the current web page page can exit, if pressing the directionkeys of remote control, Focus Club's movement in webpage,
Acknowledgement key is pressed, corresponding Webpage can be entered.
To sum up, in intelligent television provided in an embodiment of the present invention key-press event processing method, it is possible to achieve to inhomogeneity
The key-press event of type carries out different processing.
Fig. 5 is the processing unit schematic diagram of key-press event in the intelligent television that the embodiment of the present invention three provides.The intelligence
TV includes:Operating system and Web applications, wherein, Web is engine-operated, and described device can be used for holding using being based on by the Web
Method described in row Fig. 3.In Fig. 5, the device includes:Receiving unit 501, judging unit 502, processing unit 503 and calling are single
Member 504.
Receiving unit 501, pass through the Web engines for receiving the key-press event of remote control, and by the key-press event
Application programming interfaces be distributed to the Web engines.
Wherein, aforesaid operations system can be Android or Mobile operating system (IOS) etc., in this description, with
Operating system illustrates for Android.In addition, above-mentioned Web engines are Crosswalk, it is encoded with advance in the Crosswalk
Function onKeyDown () and onKeyUp (), two functions are used to handle the key-press event of above-mentioned reception.
Specifically, when user presses the button of remote control, receiving unit 501 can capture the key-press event of the remote control,
And the key-press event is distributed to the current web page page (that is, being distributed to the application widget of present convergence) of Web applications, currently
Webpage is by calling Crosswalk application programming interfaces (for example, page control XwalkView) by above-mentioned key-press event
Crosswalk is distributed to, the key-press event is handled by the function onKeyDown () in Crosswalk, as a result,
The manipulation of Web applications is more convenient.
Judging unit 502, what whether the key-press event for judging the reception of receiving unit 501 was applied with the Web
The current web page page is related.
Judging unit 502 by the function onKeyDown () write in advance judge the key-press event whether with the Web
The current web page page of application is related, and the key-press event is handled.
Herein, key-press event can carry push-button type and judge to identify.Specifically, function onKeyDown () passes through parameter
Receive above-mentioned push-button type and judge mark, and judge to identify according to push-button type, judge the key-press event whether with the Web
The current web page page of application is related, namely judges the type of the key-press event;If the push-button type judges to be identified as expression
Volume control button, homepage button, button or menu key are returned to, then judge the key-press event and Web applications
The current web page page is uncorrelated;Represent direction controlling button if the push-button type judges to be identified as or represent to confirm button,
Then judge that the key-press event is related to the current web page page that the Web is applied.
Processing unit 503, for judging the key-press event and the current web page of Web applications when judging unit 502
When the page is uncorrelated, then directly the key-press event is handled.
When the key-press event is uncorrelated to the current web page page that the Web is applied, then directly by page control
XwalkView Java layers are handled the key-press event.
Call unit 504, for judging the key-press event and the current web page of Web applications when judging unit 502
During page correlation, then content Content modules in the Web engines kernel are called to handle the key-press event.
If the push-button type judgement, which is identified as, represents direction controlling button, content Content in the Web engines kernel
Module is handled the key-press event, including:
Content Content modules are read from the node tree of the current web page page in the Web engines kernel focuses on node;
According to the direction of the focusing node and the direction controlling button, calculate target and focus on node;
Again the Webpage of Web applications is drawn, to show that the target focuses on node.
Alternatively, the key-press event carries push-button type and judges to identify;Judging unit 502 is specifically used for:According to described
Push-button type judges mark, judges whether the key-press event is related to the current web page page of Web applications.
Judging unit 502 is specifically used for:
If the push-button type judge to be identified as represent volume control button, homepage button, return button or menu by
Key, then judge that the key-press event is uncorrelated to the current web page page that the Web is applied;
Represent direction controlling button if the push-button type judges to be identified as or represent to confirm button, pressed described in judgement
Key events are related to the current web page page that the Web is applied.
The method that the device that the embodiment of the present invention three provides implants the offer of the embodiment of the present invention one, therefore, the present invention carries
The specific work process of the device of confession, is not repeated again herein.
In the embodiment of the present invention three, receiving unit 501 receives the key-press event of remote control, and the key-press event is passed through
The application programming interfaces of the Web engines are distributed to the Web engines;Judging unit 502 judges the key-press event received
It is whether related to the current web page page of Web applications;Processing unit 503 ought judge the key-press event and the Web
When the current web page page of application is uncorrelated, directly the key-press event is handled;Call unit 504 is when the judgement
When key-press event described in unit judges is related to the current web page page that the Web is applied, call in the Web engines kernel
Hold Content modules to handle the key-press event.Difference is carried out to different types of key-press event it is possible thereby to realize
Processing.
Professional should further appreciate that, each example described with reference to the embodiments described herein
Unit and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, it is hard in order to clearly demonstrate
The interchangeability of part and software, the composition and step of each example are generally described according to function in the above description.
These functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.
Professional and technical personnel can realize described function using distinct methods to each specific application, but this realization
It is it is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm
Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described embodiment, the purpose of the present invention, technical scheme and beneficial effect are carried out further
Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., all should include
Within protection scope of the present invention.
Claims (8)
1. the processing method of key-press event in a kind of intelligent television, it is characterised in that the intelligent television includes:Operating system and
Web is applied, wherein, Web is engine-operated, and methods described includes using being based on by the Web:
The operating system receives the key-press event of remote control, and the application journey by the key-press event by the Web engines
Sequence interface is distributed to the Web engines;
The Web engines judge whether the key-press event is related to the current web page page of Web applications;
When the key-press event is uncorrelated to the current web page page that the Web is applied, then directly the key-press event is entered
Row processing;
When the key-press event is related to the current web page page that the Web is applied, then call in the Web engines kernel
Hold Content modules to handle the key-press event;
The key-press event carries push-button type and judges mark;
The Web engines judge whether the key-press event is related to the current web page page of Web applications, including:
The Web engines judge to identify according to the push-button type, judge whether the key-press event is worked as with what the Web was applied
Preceding Webpage is related.
2. according to the method for claim 1, it is characterised in that the Web engines judge to identify according to the push-button type,
Judge whether the key-press event is related to the current web page page of Web applications, including:
Represent volume control button, homepage button if the push-button type judges to be identified as, return to button or menu key,
Judge that the key-press event is uncorrelated to the current web page page that the Web is applied;
Represent direction controlling button if the push-button type judges to be identified as or represent to confirm button, judge the button thing
Part is related to the current web page page that the Web is applied.
3. according to the method for claim 2, it is characterised in that if the push-button type judges to be identified as expression direction controlling
Button, content Content modules are handled the key-press event in the Web engines kernel, including:
Content Content modules are read from the node tree of the current web page page in the Web engines kernel focuses on node;
According to the direction of the focusing node and the direction controlling button, calculate target and focus on node;
Again the Webpage of Web applications is drawn, to show that the target focuses on node.
4. according to the method described in claim any one of 1-3, it is characterised in that the Web engines judge the key-press event
It is whether related to the current web page page of Web applications, including:
The Web engines by the function write in advance judge the key-press event whether with the Web application current web page
The page is related, and the key-press event is handled;
Accordingly, after the completion of to key-press event processing, returned by the function write in advance to the Web engines
Object information, the object information are used to represent that the key-press event has handled completion.
5. the processing unit of key-press event in a kind of intelligent television, it is characterised in that the intelligent television includes:Operating system and
Web is applied, wherein, Web is engine-operated, and described device includes using being based on by the Web:Receiving unit, judging unit, processing are single
Member and call unit;
The receiving unit, for receiving the key-press event of remote control, and the answering by the Web engines by the key-press event
The Web engines are distributed to routine interface;
The judging unit, for judging whether the key-press event that the receiving unit receives is worked as with Web applications
Preceding Webpage is related;
The processing unit, for judging the key-press event and the current web page page of Web applications when the judging unit
When face is uncorrelated, then directly the key-press event is handled;
The call unit, for judging the key-press event and the current web page page of Web applications when the judging unit
During the correlation of face, then content Content modules in the Web engines kernel are called to handle the key-press event;
The key-press event carries push-button type and judges mark;
The judging unit is specifically used for:
According to the push-button type judge identify, judge the key-press event whether with the Web application the current web page page
It is related.
6. device according to claim 5, it is characterised in that the judging unit is specifically used for:
Represent volume control button, homepage button if the push-button type judges to be identified as, return to button or menu key,
Judge that the key-press event is uncorrelated to the current web page page that the Web is applied;
Represent direction controlling button if the push-button type judges to be identified as or represent to confirm button, judge the button thing
Part is related to the current web page page that the Web is applied.
7. device according to claim 6, it is characterised in that if the push-button type judges to be identified as expression direction controlling
Button, content Content modules are handled the key-press event in the Web engines kernel, including:
Content Content modules are read from the node tree of the current web page page in the Web engines kernel focuses on node;
According to the direction of the focusing node and the direction controlling button, calculate target and focus on node;
Again the Webpage of Web applications is drawn, to show that the target focuses on node.
8. according to the device described in claim any one of 5-7, it is characterised in that the judging unit also particularly useful for:
Judge whether the key-press event is related to the current web page page of Web applications by the function write in advance, and
The key-press event is handled;
Accordingly, after the completion of to key-press event processing, returned by the function write in advance to the Web engines
Object information, the object information are used to represent that the key-press event has handled completion.
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 CN104506941A (en) | 2015-04-08 |
CN104506941B true 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) |
Families Citing this family (7)
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 |
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 |
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 |
CN113141530B (en) * | 2021-04-15 | 2023-04-07 | 深圳市欢太科技有限公司 | Remote control interaction based method and device, electronic equipment and storage medium |
Citations (5)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5148683B2 (en) * | 2010-12-21 | 2013-02-20 | 株式会社東芝 | Video display device |
-
2014
- 2014-12-11 CN CN201410768749.0A patent/CN104506941B/en active Active
Patent Citations (5)
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 |
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)
Title |
---|
基于嵌入式终端的视频点播业务控制方法;刘春梅,邓浩江,孙鹏,胡琳琳;《微计算机信息》;20101122;第26卷;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104506941A (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104506941B (en) | The processing method and processing device of key-press event in intelligent television | |
CN110286978B (en) | Window hierarchy switching method, device, equipment and storage medium | |
CN109144649A (en) | Display methods, device, terminal and the storage medium of icon | |
CN111258486B (en) | Information sharing method and device, electronic equipment and storage medium | |
CN105824900A (en) | Page display system based on react-native | |
CN110941373B (en) | Interaction method and device for intelligent interaction panel, terminal equipment and storage medium | |
CN106354355A (en) | User interface layout method, device and system | |
CN103870123A (en) | Information processing method and electronic equipment | |
CN102981818A (en) | Scenario based animation library | |
CN110347321A (en) | A kind of formation gathering method and device | |
CN105279431A (en) | Method, device, and system for recording operation information in mobile device | |
CN108399119A (en) | Browse serves kernel engine data processing, automatic test method and apparatus | |
US20200201673A1 (en) | View switching | |
CN105630366A (en) | Method and apparatus for displaying object information in screen display device | |
CN109918876A (en) | Permission filter method and permission filter device | |
CN106899489A (en) | A kind of information processing method and device | |
CN109753198A (en) | Interface access method, display methods, equipment, medium | |
CN108920143A (en) | A kind of quick development method for interactive software | |
CN108509228A (en) | Method, terminal device and the computer readable storage medium of loading page | |
CN107341842A (en) | Preparation method and device are rendered based on the VR at APP clients and Web ends applications | |
CN109286834A (en) | Method for processing video frequency, device and server | |
CN112527424A (en) | Control method and device for popup window | |
CN114153442A (en) | Large-screen visualization page configuration method and system based on visualization component | |
CN109960562B (en) | Information display method and device and computer readable storage medium | |
CN106886721A (en) | A kind of method and device for realizing miscellaneous function in the application |
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 | ||
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 |