CN102541549B - The method of integration television application module and device - Google Patents
The method of integration television application module and device Download PDFInfo
- Publication number
- CN102541549B CN102541549B CN201110437438.2A CN201110437438A CN102541549B CN 102541549 B CN102541549 B CN 102541549B CN 201110437438 A CN201110437438 A CN 201110437438A CN 102541549 B CN102541549 B CN 102541549B
- Authority
- CN
- China
- Prior art keywords
- key
- key event
- event
- application module
- browser
- 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
- 238000000034 method Methods 0.000 title claims abstract description 94
- 230000010354 integration Effects 0.000 title abstract description 4
- 238000004891 communication Methods 0.000 claims description 75
- 230000008569 process Effects 0.000 claims description 75
- 238000001914 filtration Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 5
- 238000012546 transfer Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 14
- 230000006870 function Effects 0.000 description 26
- 238000007726 management method Methods 0.000 description 25
- 230000009191 jumping Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000002054 transplantation Methods 0.000 description 3
- 125000004122 cyclic group Chemical group 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of method of integration television application module, comprise the following steps: create the thread obtaining key-press event; Key-press event is obtained by described thread; Judge the type of described key-press event, described type comprises effective key-press event and effective key-press event; Filter invalid key-press event according to judged result, effective key-press event is passed to application module, perform corresponding operating for application module.The invention also discloses a kind of device of integration television application module, the present invention can improve opening and the portability of product, thus improves development efficiency.
Description
Technical Field
The invention belongs to the technical field of televisions, and particularly relates to a method and a device for integrating television application modules.
Background
With the development of television technology, the functions are more and more powerful, and functional application modules such as browsers, widget applications, online education, music appreciation and the like are correspondingly realized. In the prior art, all system functions, key acquisition and distribution are mixed in the same application module, and the application module is required to be customized for a specific embedded operating system and a specific hardware platform in the process of integrating the application module into a television, so that when a plurality of embedded operating systems exist, cross-platform migration integration of the application module cannot be realized, a plurality of application modules are required to be customized, and the application modules need support of different manufacturers, so that the development difficulty is increased inevitably, the openness and the transportability of a product are poor, the development cost is increased to a certain extent, and the practicability of the product is poor.
Disclosure of Invention
The invention mainly aims to provide a method for integrating television application modules, which aims to improve the openness and the transportability of a television, reduce the development difficulty of the television and enhance the practicability of products.
In order to achieve the purpose of the invention, the invention provides a method for integrating television application modules, which comprises the following steps:
creating a thread for acquiring a key event;
obtaining a key event according to the thread;
judging the type of the key event, wherein the type comprises an effective key event and an effective key event;
and filtering the invalid key events according to the judgment result, and transmitting the valid key events to the application module so as to enable the application module to execute corresponding operation.
Preferably, the creating a thread for acquiring a key event further comprises: setting a communication mode, wherein the communication mode at least comprises one of the following modes: named pipe communication, shared memory communication and socket communication;
the step of transmitting the valid key event to the application module specifically includes: and transmitting the effective key event to an application module according to the set communication mode.
Preferably, the filtering the invalid key event according to the determination result, and transmitting the valid key event to the application module includes:
when the type of the key event is an invalid key, transmitting a null value to an application module;
and when the type of the key event is an effective key, transmitting the key value to an application module.
Preferably, after the step of transmitting the valid key event to the application module, the method further includes:
and when the application process is quitted or the standby key is pressed, quitting the thread for acquiring the key event.
Preferably, the application process is a browser, and the communication mode is named pipe communication; the filtering the invalid key event according to the judgment result, and the transmitting the valid key event to the application module specifically includes:
before the writing pipeline is successfully opened, when the key event is a standby key, entering a standby state;
and after the writing pipeline is successfully opened, writing the effective key event into the named pipeline so that the browser receives the effective key event from the named pipeline.
The invention also provides a device for integrating the television application module, which is used for realizing the method, the device comprises a background management process module, and the background management process module comprises:
a key event thread creating unit for creating a thread for acquiring a key event;
a key event obtaining unit, configured to obtain a key event according to the thread;
the judging unit is used for judging the type of the key event, wherein the type comprises an effective key event and an effective key event;
and the key value transmitting unit is used for filtering the invalid key events according to the judgment result and transmitting the valid key events to the application module so as to enable the application module to execute corresponding operation.
Preferably, the background management process module further includes a communication unit, configured to set a communication mode, where the communication mode at least includes one of: named pipe communication, shared memory communication and socket communication;
the key value transmission unit is specifically used for transmitting the effective key event to the application module according to the set communication mode.
Preferably, the key value transfer unit is specifically configured to:
when the type of the key event is an invalid key, transmitting a null value to an application module;
and when the type of the key event is an effective key, transmitting the key value to an application module.
Preferably, the background management process module further comprises:
and the key event control unit is used for quitting the thread for acquiring the key event when quitting the application process or pressing the standby key.
Preferably, the application process is a browser, and the communication mode is named pipe communication; the key value transfer unit includes a browser processing subunit, and the browser processing subunit is specifically configured to:
before the writing pipeline is successfully opened, when the key event is a standby key, entering a standby state;
and after the writing pipeline is successfully opened, writing the effective key event into the named pipeline so that the browser receives the effective key event from the named pipeline.
The application process of the television terminal application module is managed through the background management process, the background creates a thread for acquiring the key event, the key event is acquired in real time through the thread, the invalid keys are filtered, and the valid keys are transmitted to the application process. The independence of the application process is kept, so that the development of the application becomes simpler and more convenient, and the openness and the transportability of the product are stronger, thereby improving the development efficiency and effectively reducing the development cost. The invention shields invalid keys for the application process by acquiring the thread of the key event, only forwards the valid keys, saves the resource utilization, improves the running speed of the program, is convenient for modification and transplantation, and enhances the practicability of the product.
Drawings
FIG. 1 is a flow chart illustrating a method for integrating TV application modules according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for integrating tv application modules according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In the embodiment of the invention, the application module comprises a browser, a widget and a player. The present invention will be described in detail below by taking an application module, which is a browser, as an example. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of a method for integrating a television application module, which specifically includes the following steps:
step S10, creating a thread for acquiring key events; in the embodiment of the invention, firstly, after a user clicks an icon of a system software platform, a background starts a management process browser _ daemon, and the background transmits an information parameter argv of an application module represented by the icon to the management process browser _ daemon. The management process browser _ daemon comprises a thread for acquiring a key event, and when the key event is generated in the remote controller, the background can acquire a corresponding key value through the thread. Specifically, the function pthread _ create (& eventthread, NULL, key _ event, NULL) may be called, where the first parameter is a pointer to a thread identifier, the second parameter is used to set a thread attribute, the third parameter is a start address of a thread run function, and the last parameter is a parameter of the run function. It should be noted that before step S10 is executed, relevant system parameters need to be configured, for example, the background sets relevant environment variables before the management process browser _ daemon creates a thread for acquiring a key event. Specifically, after entering a browser _ daemon process and receiving the parameter argv, a setenv function is called in the setConfig function according to the argv parameter, and a relevant environment variable is set. The environment variables include a font library path, a lib library path, a resolution of the browser, and whether the mouse mode or the focus mode, etc. By setting the environment variable, when the browser is started, the browser searches the library under a relevant path, presents the corresponding resolution and mode state, establishes soft connection and acquires information such as user ID of the current television.
Step S20, obtaining key events according to the thread; when a remote control key or a key on a television is pressed, a thread of the created key event is pressed by a background to acquire a key value of the key.
Step S30, judging whether the type of the key event is a valid key, if yes, turning to step S40, otherwise, turning to step S50; judging the type of the key event, wherein the type comprises an effective key event and an effective key event; specifically, the types of the key event include an active key and an inactive key, and the validity of the key is defined with respect to the application module, and is different according to the validity of different keys of the application module. For example, in this embodiment, the application module is a browser, and for the browser, the valid key is a key that functions on the browser, such as a direction key, a standby key, or a menu key, and the non-functional keys related to a color key, a source, and the like are invalid keys.
Step S40, when the type of the key event is a valid key, the key event is transmitted to the application module so as to be used by the application module to execute corresponding operation;
and step S50, when the type of the key event is an invalid key, filtering the key event.
Specifically, for the browser, after the background acquires the relevant key event, it is first determined whether the key value of the key can act on the browser, if so, the key value of the key is transmitted to the browser, and if not, the key is directly shielded.
The application process of the television terminal application module is managed through the background, the background creates a thread for acquiring the key event, the key event is acquired in real time through the thread, invalid keys are filtered, and the valid keys are transmitted to the application process. The independence of the application process is kept, so that the development of the application becomes simpler and more convenient, and the openness and the transportability of the product are stronger, thereby improving the development efficiency, enhancing the practicability of the product and effectively reducing the development cost.
Specifically, before executing step S10, the method further includes:
setting a communication mode; the communication mode is a communication mode between the application module and the background, the communication mode can comprise named pipe communication, shared memory communication and socket communication, and the application module comprises: the browser, the widget application, and the player may further include other application software, which is not limited herein. The named pipe communication is applied to the communication between the browser and the background; shared memory communication is used for widget application and a background; socket communication is used for the player and the background.
Transmitting the effective key event to an application module according to the set communication mode; preferably, the application module is a browser, the communication mode is named pipe communication, that is, the background communicates with the browser in a named pipe communication mode, the obtained valid key value is transmitted to the browser, and the browser executes operations such as jumping, loading or exiting according to the key value.
The step S40 specifically includes:
when the type of the key event is an effective key, transmitting a key value to an application module; namely, when the key event is an effective key, the background transmits the key value of the key to the application module so that the application module adjusts the process state of the application process according to the key value. For example, the active keys relative to the browser include a direction key, a number key and a standby key, and the browser performs operations such as moving a focus, jumping to a page or exiting the browser according to the key values.
Further, when the application process is quitted or the standby key is pressed down, the thread for acquiring the key event is quitted; if the browser is exited or the standby operation is executed, the value of the thread exit mark in the key event obtaining thread is changed into the true value, the thread for obtaining the key event is exited, and the television is returned to the main menu interface or all the processes are exited to enter the standby state.
And when the type of the key event is an invalid key, transmitting a null value to the application module. That is, when the type of the key event is an invalid key, a null value is transmitted to the browser, and the key information is continuously acquired.
The communication method will be further described below with reference to a browser. In the embodiment of the present invention, a communication mode of named pipe communication is adopted for the browser, then a thread for obtaining a key event is created in the background, and the remote control key event is written into the pipe, the browser process reads a DFB (distributed feedback) event from the pipe and converts the DFB event into an SDL (Digital Simulation Language) event, and executes operations such as moving a focus, page jump, or exiting the browser. The named pipes exist In the file system In the form of FIFO (First In First Out) files, the communication of which is half duplex (write only and no read at one end and read only and no write at the other end), the written content is added at the end of the pipe buffer each time, and the data is read Out from the head of the buffer each time. The read pipeline and the write pipeline have dependency, and the read pipeline must be opened first to successfully open the write pipeline. Once the read pipe is closed, opening the write pipe fails. For example, the open function may be called to open the pipeline, the open function return value is obtained, if the return is 0, the pipeline is successfully opened, if the return is less than 0, the pipeline is failed to open, and when the pipeline is successfully opened, the write function is called to write data to the pipeline.
Specifically, before the write pipeline is successfully opened, all keys except the standby key are regarded as invalid keys, and the write pipeline is waited to be opened. When the standby key is pressed, the value of the exit mark is changed to 1, all processes are directly exited, and the television enters a standby state.
And after the write pipeline is successfully opened, judging the type of the key, writing the key value of the effective key into the named pipeline, receiving an effective key event from the named pipeline by the browser, and executing corresponding operations of moving a focus, page jumping, quitting the browser and the like. Namely, when the browser is started, after the write pipeline is opened successfully, the browser enters a loop to acquire a remote control key event, filters invalid keys, and writes key values of the valid keys into the named pipeline. The effective keys can comprise standby keys, direction keys and number keys. In order to ensure the integrity of the events, the events of pressing and popping the remote control key are written into a pipeline, a flag bit is set, after a browser is started, the flag bit is initialized to 0, and a key event cyclic function is obtained. Once the browser exits or is in standby, the exit flag is 1. And judging whether the mark is 1, if so, exiting the event loop and exiting the thread for acquiring the key event, closing the write pipeline, and releasing dfb and buffer resources when the thread for acquiring the key event is created. For example, when the browser is in exit operation or the key is a standby key, the value of the exit flag is changed to 1, the thread for acquiring the key event exits, and all processes directly exit, so that the television enters a standby state; when the key is judged to be other effective keys, writing key values of the keys into the named pipeline by calling a write function; when it is an invalid key, a blank value will be written to the named pipe by calling the write function. The browser receives the effective key events from the named pipe, executes corresponding moving focus and page jump operations, and continues to acquire the related key events.
It should be noted that, in the embodiment of the present invention, the distinction between the valid key and the invalid key is determined according to the actual application module, for example, when the opened application module is a browser, the color key may be defined as the invalid key, and when the opened application module is a player, the color key may be defined as the valid key.
The embodiment of the invention can shield the invalid keys for the application process, is mutually independent from the application process, only forwards the valid keys, is convenient for modification and transplantation, and keeps the independence of the application process.
The invention also provides a device for integrating the television application module, which can realize the method. Referring to fig. 2, fig. 2 is a schematic structural diagram of an embodiment of the apparatus for integrating television application modules of the present invention, which includes a background management process module 10 and an application module 20. The background process module 10 includes a key event thread creating unit 101, a key event acquiring unit 102, a determining unit 103, and a key value transmitting unit 104. The background of the method may be the background management process module 10 in the embodiment of the present invention. Wherein,
a key event thread creating unit 101, configured to create a thread for acquiring a key event; in the embodiment of the invention, firstly, after a user clicks an icon of a system software platform, a background starts a management process browser _ daemon, and the background transmits an information parameter argv of an application module represented by the icon to the management process browser _ daemon. The management process browser _ daemon includes a thread which is created by the key event thread creating unit 101 and used for acquiring a key event, and when a key event occurs in a remote controller, the background management process module 10 may acquire a corresponding key value through the thread. Specifically, the function pthread _ create (& eventthread, NULL, key _ event, NULL) may be called, where the first parameter is a pointer to a thread identifier, the second parameter is used to set a thread attribute, the third parameter is a start address of a thread run function, and the last parameter is a parameter of the run function. It should be noted that before the key event thread creating unit 101 creates the thread for acquiring the key event, the relevant system parameters also need to be configured, for example, the key event thread creating unit 101 sets the relevant environment variables before the thread for acquiring the key event is created in the management process browser _ daemon. Specifically, after entering a browser _ daemon process and receiving the parameter argv, a setenv function is called in the setConfig function according to the argv parameter, and a relevant environment variable is set. The environment variables include a font library path, a lib library path, a resolution of the browser, and whether the mouse mode or the focus mode, etc. By setting the environment variable, when the browser is started, the browser searches the library under a relevant path, presents the corresponding resolution and mode state, establishes soft connection and acquires information such as user ID of the current television.
A key event obtaining unit 102, configured to obtain a key event according to the thread; when a remote control key or a key on a television is pressed, a thread of a created key event is pressed by a background to acquire a key value of a case.
A judging unit 103, configured to judge whether the type of the key event is a valid key; namely, the judging unit 103 judges the type of the key event, where the type includes an effective key event and an effective key event; specifically, the types of key events include valid keys and invalid keys, and the validity of the keys is defined with respect to the application module 20, and differs according to the validity of different keys of the application module 20. For example, for a browser, an active key is a key that is active for the browser, such as a direction key, a standby key, or a menu key, and an inactive key is a key related to a color key, a source, or the like.
A key value transmitting unit 104, transmitting the valid key event to the application module 20 to execute corresponding operation for the application module 20 when the judging unit 103 judges that the type of the key event is the valid key; when the judging unit 103 judges that the type of the key event is an invalid key, the invalid key event is filtered. Specifically, for the browser, after the background acquires the relevant key event, it is first determined whether the key value of the key can act on the browser, if so, the key value of the key is transmitted to the browser, and if not, the key is directly shielded.
The application process of the television terminal application module 20 is managed by the background management process module 10, the thread for acquiring the key event is established by the key event thread establishing unit 101, the key event is acquired in real time by the thread, the invalid keys are filtered, and the valid keys are transmitted to the application process. The independence of the application process is kept, the development of the application becomes simpler and more convenient, and the openness and the transportability of the product are stronger, so that the development efficiency is improved, the practicability of the product is enhanced, and the development cost is effectively reduced.
Further, the station management process module 10 package further includes:
a communication unit 105 for setting a communication mode. The communication mode is a communication mode between the application module 20 and the background management process module 10, the communication mode includes named pipe communication, shared memory communication and socket communication, and the application module includes: the browser, the widget application, and the player may further include other application software, which is not limited herein. The named pipeline communication is applied to the communication between the browser and the background management process module; the shared memory communication is used for the widget application and the background management process communication module; socket communication is used for the player to communicate with the background management process module.
The key delivery unit 104 delivers the valid key event to the application module 20, specifically, by the communication method set by the communication unit 105. Preferably, the application module is a browser, and the communication mode is named pipe communication. In the embodiment of the present invention, the background management process module 10 communicates with the browser through a named pipe communication mode set by the communication unit 105, transmits the obtained valid key value to the browser, and the browser executes operations such as jumping, loading, or exiting according to the key value.
The key value transfer unit 104 is specifically configured to:
when the type of the key event is a valid key, transmitting a key value to the application module 20; that is, when the key event is a valid key, the background management process module 10 transmits the key value of the key to the application module 20, and the application module 20 adjusts the process state of the application process according to the key value. For example, the active keys relative to the browser include a direction key, a number key and a standby key, and the browser performs operations such as moving a focus, jumping to a page or exiting the browser according to the key values.
Further, the background management process module 10 further includes a key event control unit 106, configured to quit the thread for acquiring the key event when the application process is quitted or the standby key is pressed. If the browser exits or the standby operation is executed, the value of the thread exit mark in the thread of the acquired key event is changed into the true value, the thread of the acquired key event exits, and the television returns to the main menu interface or exits all processes to enter the standby state.
When the type of the key event is no key, a null value is transmitted to the application module 20. That is, when the type of the key event is an invalid key, a null value is transmitted to the browser, and the key information is continuously acquired.
The following describes the specific functions of the browser processing subunit in the key delivery unit 104 in conjunction with a browser. In the embodiment of the invention, the browser adopts a communication mode of named pipe communication, a thread for acquiring the key event is established in the background, the remote control key event is written into the pipe, the browser process reads the DFB event from the pipe and converts the DFB event into the SDL event, and the corresponding operations of moving a focus, jumping a page, exiting the browser and the like are executed. The named pipes exist in file systems in the form of FIFO files, the communication of which is half duplex (write only and no read at one end, read only and no write at the other end), the written content is added at the end of the pipe buffer each time, and the data is read out from the head of the buffer each time. The read pipeline and the write pipeline have dependency, and the read pipeline must be opened first to successfully open the write pipeline. Once the read pipe is closed, opening the write pipe fails. For example, the open function may be called to open the pipeline, the open function return value is obtained, if the return is 0, the pipeline is successfully opened, if the return is less than 0, the pipeline is failed to open, and when the pipeline is successfully opened, the write function is called to write data to the pipeline.
Specifically, before the write pipeline is successfully opened, all keys except the standby key are regarded as invalid keys, and the write pipeline is waited to be opened. When the standby key is pressed, the value of the exit mark is changed to 1, all processes are directly exited, and the television enters a standby state.
And after the write pipeline is successfully opened, judging the type of the key, writing the key value of the effective key into the named pipeline, receiving an effective key event from the named pipeline by the browser, and executing corresponding operations of moving a focus, page jumping, quitting the browser and the like. Namely, when the browser is started, after the write pipeline is opened successfully, the browser enters a loop to acquire a remote control key event, filters invalid keys, and writes key values of the valid keys into the named pipeline. The effective keys can comprise standby keys, direction keys and number keys. In order to ensure the integrity of the events, the events of pressing and popping the remote control key are written into a pipeline, a flag bit is set, after a browser is started, the flag bit is initialized to 0, and a key event cyclic function is obtained. Once the browser exits or is in standby, the exit flag is 1. And judging whether the mark is 1, if so, exiting the event loop and exiting the thread for acquiring the key event, closing the write pipeline, and releasing dfb and buffer resources when the thread for acquiring the key event is created. For example, when the browser is in exit operation or the key is a standby key, the key event control unit 106 changes the value of the exit flag to 1, exits the thread for acquiring the key event, and directly exits all processes, so that the television enters a standby state; when the key is judged to be other effective keys, writing key values of the keys into the named pipeline by calling a write function; when it is an invalid key, a blank value will be written to the named pipe by calling the write function. The browser receives the effective key events from the named pipe, executes corresponding moving focus and page jump operations, and continues to acquire the relevant key events.
The embodiment of the invention can shield the invalid keys for the application process, is mutually independent from the application process, only forwards the valid keys, is convenient for modification and transplantation, and keeps the independence of the application process.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (8)
1. A method of integrating television application modules, comprising the steps of:
setting a communication mode, wherein the communication mode at least comprises one of the following modes: named pipe communication, shared memory communication and socket communication;
creating a thread for acquiring key events in a background;
after a management process is started in a background, acquiring a key event according to the thread through the management process;
judging the types of the key events, wherein the types comprise effective key events and ineffective key events;
and filtering invalid key events according to the judgment result, and transmitting the valid key events to the application module according to the set communication mode so as to enable the application module to execute corresponding operation, wherein the validity of the key events is defined relative to the application module.
2. The method of claim 1, wherein filtering invalid key events according to the determination and passing valid key events to the application module comprises:
when the type of the key event is an invalid key, transmitting a null value to an application module;
and when the type of the key event is an effective key, transmitting the key value to an application module.
3. The method of claim 1, wherein after performing the step of passing the valid key event to the application module, further comprising:
and when the application process is quitted or the standby key is pressed, quitting the thread for acquiring the key event.
4. The method of claim 3, wherein the application process is a browser, and the communication means is named pipe communication; the filtering the invalid key event according to the judgment result, and the transmitting the valid key event to the application module specifically includes:
before the writing pipeline is successfully opened, when the key event is a standby key, entering a standby state;
and after the writing pipeline is successfully opened, writing the effective key event into the named pipeline so that the browser receives the effective key event from the named pipeline.
5. An apparatus for integrating television application modules, comprising a background management process module, wherein the background management process module comprises:
a communication unit, configured to set a communication mode, where the communication mode at least includes one of: named pipe communication, shared memory communication and socket communication;
a key event thread creating unit for creating a thread for acquiring a key event in the background;
the key event acquisition unit is used for acquiring a key event according to the thread through the management process after the management process is started in the background;
the judging unit is used for judging the type of the key event, wherein the type comprises an effective key event and an ineffective key event;
and the key value transmission unit is used for filtering invalid key events according to the judgment result and transmitting the valid key events to the application module according to the set communication mode so as to enable the application module to execute corresponding operation, wherein the validity of the key events is defined relative to the application module.
6. The apparatus of claim 5, wherein the key-value transfer unit is specifically to:
when the type of the key event is an invalid key, transmitting a null value to an application module;
and when the type of the key event is an effective key, transmitting the key value to an application module.
7. The apparatus of claim 5, wherein the background management process module further comprises:
and the key event control unit is used for quitting the thread for acquiring the key event when quitting the application process or pressing the standby key.
8. The apparatus of claim 7, wherein the application process is a browser, and the communication means is named pipe communication; the key value transfer unit includes a browser processing subunit, and the browser processing subunit is specifically configured to:
before the writing pipeline is successfully opened, when the key event is a standby key, entering a standby state;
and after the writing pipeline is successfully opened, writing the effective key event into the named pipeline so that the browser receives the effective key event from the named pipeline.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110437438.2A CN102541549B (en) | 2011-12-23 | 2011-12-23 | The method of integration television application module and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110437438.2A CN102541549B (en) | 2011-12-23 | 2011-12-23 | The method of integration television application module and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102541549A CN102541549A (en) | 2012-07-04 |
CN102541549B true CN102541549B (en) | 2015-08-19 |
Family
ID=46348523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110437438.2A Active CN102541549B (en) | 2011-12-23 | 2011-12-23 | The method of integration television application module and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102541549B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103384348B (en) * | 2013-05-29 | 2016-09-14 | 深圳市艾龙电子有限公司 | A kind of GINGA digital TV middleware implementation method on embedded digital TV platform |
CN103488486B (en) * | 2013-09-25 | 2017-11-03 | 深圳Tcl新技术有限公司 | browser button processing method and device |
CN105812859B (en) * | 2014-12-29 | 2019-02-26 | Tcl集团股份有限公司 | A kind of data processing method and system of module TV incoming event |
CN105812948B (en) * | 2014-12-30 | 2019-04-02 | 深圳Tcl数字技术有限公司 | Response control method and device for input event |
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 |
CN106162282B (en) * | 2016-07-26 | 2020-02-07 | Tcl集团股份有限公司 | Method and device for forbidding keys of intelligent television input equipment |
CN111049975A (en) * | 2019-11-27 | 2020-04-21 | 厦门亿联网络技术股份有限公司 | Key operation processing method and device of SIP phone and terminal equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212604A (en) * | 2007-12-25 | 2008-07-02 | 康佳集团股份有限公司 | Invalid TV set control instruction prompting method |
CN101645023A (en) * | 2009-09-14 | 2010-02-10 | 青岛海信宽带多媒体技术有限公司 | Method and device for solving the delayed response of embedded system |
CN101729414A (en) * | 2009-11-24 | 2010-06-09 | 北京雷霆万钧网络科技有限责任公司 | Data transmission method and system based on response of user request information |
CN101753880A (en) * | 2008-12-08 | 2010-06-23 | 深圳创维数字技术股份有限公司 | Digital TV terminal and button locking/unlocking method and system thereof |
-
2011
- 2011-12-23 CN CN201110437438.2A patent/CN102541549B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212604A (en) * | 2007-12-25 | 2008-07-02 | 康佳集团股份有限公司 | Invalid TV set control instruction prompting method |
CN101753880A (en) * | 2008-12-08 | 2010-06-23 | 深圳创维数字技术股份有限公司 | Digital TV terminal and button locking/unlocking method and system thereof |
CN101645023A (en) * | 2009-09-14 | 2010-02-10 | 青岛海信宽带多媒体技术有限公司 | Method and device for solving the delayed response of embedded system |
CN101729414A (en) * | 2009-11-24 | 2010-06-09 | 北京雷霆万钧网络科技有限责任公司 | Data transmission method and system based on response of user request information |
Also Published As
Publication number | Publication date |
---|---|
CN102541549A (en) | 2012-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102541549B (en) | The method of integration television application module and device | |
US8539336B2 (en) | System for linking to documents with associated annotations | |
KR102243793B1 (en) | Method and apparatus for code virtualization and remote process call generation | |
CN101699405B (en) | Method and device for interaction between host program and plug-in and interaction between plug-ins | |
US8239839B2 (en) | Asynchrony debugging using web services interface | |
US20130031457A1 (en) | System for Creating and Editing Temporal Annotations of Documents | |
US20130031453A1 (en) | System for Annotating Documents Served by a Document System without Functional Dependence on the Document System | |
KR20160061305A (en) | Method and apparatus for customized software development kit (sdk) generation | |
WO2010045569A2 (en) | Interactive design environments to visually model, debug and execute resource oriented programs | |
CN110442819B (en) | Data processing method, device, storage medium and terminal | |
CN102866944A (en) | Pressure testing system and method | |
CN111723002A (en) | Code debugging method and device, electronic equipment and storage medium | |
CN103796058A (en) | Method for achieving control over Android smart television based on virtual input equipment | |
CN112487407A (en) | Authority control method, device, medium and electronic equipment | |
KR20090065144A (en) | System and method for testing graphic user interface of mobile application software | |
WO2024032209A1 (en) | Block chain transaction verification method and apparatus, storage medium, and electronic device | |
CN113032224A (en) | Information acquisition method and device, electronic equipment and readable storage medium | |
CN111694744A (en) | Test open method based on monkey source code | |
WO2023137997A1 (en) | Design software calling method and apparatus, computer device, and storage medium | |
CN114385258B (en) | Automatic test method, device, electronic equipment and storage medium | |
Liu et al. | Verifying android applications using java pathfinder | |
CN115982257A (en) | Interface creation method and related device | |
CN111666581A (en) | Data protection method, device, equipment and medium | |
CN100419711C (en) | Emitter for service debug command, and processing method | |
US12045631B2 (en) | Page loading method and display apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |