Summary of the invention
The object of the invention is to overcome the defect of prior art, a kind of pattern of fusion application of synchronized management method, device and audio-video terminal are provided.
To achieve these goals, the present invention adopts following technical scheme:
According to an aspect of the present invention, propose a kind of pattern of fusion application of synchronized management method, comprised step:
S1: create local page UI;
S2: this webpage UI and instruction message is set up to incidence relation;
S3: in the time receiving instruction message, instruction message is sent to webpage UI and bottom UI;
S4: the webpage UI being associated with this instruction message is showed to user, and carry out the control logic corresponding with this instruction message by bottom UI.
Preferably, described method also comprises: create a local browser, open local page UI by this this locality browser, show user.
Preferably, described method also comprises: receive instruction message, decision instruction type of message, if the corresponding associating web pages UI of message instruction type shows user by the webpage UI being associated with this instruction message, shows user otherwise switch to bottom UI.
Preferably, described method also comprises: this webpage UI is set to cover this bottom UI, switches demonstration so that webpage UI and bottom UI press instruction message type.
Preferably, by controlling, the transparency of webpage UI is controlled the visibility of bottom UI or between webpage UI and bottom UI, switch demonstration, and wherein, when webpage UI is set to when opaque, bottom UI is invisible; This instruction message type comprises webpage UI control command and bottom UI control command, corresponding webpage UI control command, and webpage UI is set to opaque; Corresponding bottom UI control command, webpage UI is set to transparent.
According to a second aspect of the invention, propose a kind of pattern of fusion application of synchronized management devices, having comprised:
Local page UI module, it creates local page UI;
Message relating module, this webpage UI and instruction message is set up incidence relation by it;
Message sink module, it sends to webpage UI and bottom UI by instruction message in the time receiving instruction message;
Instruction Executive Module, the webpage UI being associated with this instruction message is showed user by it, and carry out the control logic corresponding with this instruction message by bottom UI.
Preferably, described device also comprises: local browser module, it creates a local browser, opens local page UI by this this locality browser, shows user.
Preferably, described device also comprises: display control module, and it receives instruction message, decision instruction type of message, if the corresponding associating web pages UI of message instruction type, shows user by the webpage UI being associated with this instruction message, show user otherwise switch to bottom UI.
Preferably, this webpage UI is set to cover this bottom UI, so that pressing instruction message type, webpage UI and bottom UI switch demonstration, wherein control the visibility of bottom UI or switch and show between webpage UI and bottom UI by controlling the transparency of webpage UI, wherein, when webpage UI is set to when opaque, bottom UI is invisible; This instruction message type comprises webpage UI control command and bottom UI control command, corresponding webpage UI control command, and webpage UI is set to opaque; Corresponding bottom UI control command, webpage UI is set to transparent.
According to a third aspect of the present invention, proposed a kind of audio-video terminal, described audio-video terminal comprises that above-mentioned pattern of fusion application of synchronized management devices or its preferably improve.
Compared with prior art, the present invention has following remarkable advantage and beneficial effect:
According to the method for message distribution processing of the present invention, to carry out message synchronization or the shared management method of business between a kind of application realizing at different frameworks, between the application that the method can realize at different frames, complete message synchronization, business is linked up, show and coordinate, between the bottom UI of SMALLWIN-GUI engine and the webpage UI based on Web, realize and synchronizeing with network audio-video terminal to reach traditional audio-video terminal.
The method according to this invention, design one and be enclosed within the method that completes synchronous and control message between different UI frameworks, use webpage UI to make to show, control the bottom UI with traditional GUI engine, meanwhile, traditional UI also can complete on without the menu working and present at the UI based on Web.
Apply method of the present invention, be applicable to the audio-video terminal compared with low side, and the general audio-video terminal that need to reduce hardware and software cost, in the situation that using traditional GUI engine and UI logic to go to control audio-video terminal bottom function, also in needs and in the interface zone needing, applying web page shows simultaneously, and webpage does not require and must call bottom functional interface, like this, the audio-video terminal of traditional GUI engine does not need to do too large change can apply new webpage UI, and be that new webpage UI can use by traditional UI together, and in the new gorgeous effect of needs invoking web page UI, when showing, directly continues to use some traditional function existing bottom UI, this has also reduced the workload of again developing UI.
Embodiment
The method according to this invention is that the UI of two kinds of complete different frames is mixed, and as a specifically application, it completes together the control to audio-video terminal bottom function and business and the response to user and presents.
Reach this effect, just need the method for the different UI logics of a set of coordination, allow two cover UI look like a set of UI to user the same, like this, even if in the past the audio-video terminal of low side also can be given user the effect that presents with high-end audio-video terminal to a certain extent under the support of this method.
According to a specific embodiment of pattern of fusion application of synchronized management method of the present invention as shown in Figure 1, comprising step:
Step (S1): create local page UI, wherein this webpage UI can comprise exercisable Control-Menu, this Control-Menu can be cascade menu.
Step (S2): this webpage UI and instruction message is set up to incidence relation.
Step (S3): in the time receiving instruction message, instruction message is sent to webpage UI and bottom UI.Equally, this bottom UI also can comprise other exercisable Control-Menu, and this Control-Menu can be also cascade menu.Particularly, this bottom UI also comprises control logic, for realizing, for example, the function of an audio-video terminal.
Step (S4): the webpage UI being associated with this instruction message is showed to user, and carry out the control logic corresponding with this instruction message by bottom UI.
Particularly, described method also comprises: create a local browser, open local page UI by this this locality browser, show user.
Particularly, described method also comprises: receive instruction message, decision instruction type of message, if the corresponding associating web pages UI of message instruction type shows user by the webpage UI being associated with this instruction message, shows user otherwise switch to bottom UI.
Particularly, described method also comprises: this webpage UI is set to cover this bottom UI, switches demonstration so that webpage UI and bottom UI press instruction message type.
As an example, by controlling, the transparency of webpage UI is controlled the visibility of bottom UI or between webpage UI and bottom UI, switch demonstration, and wherein, when webpage UI is set to when opaque, bottom UI is invisible; This instruction message type comprises webpage UI control command and bottom UI control command, corresponding webpage UI control command, and webpage UI is set to opaque; Corresponding bottom UI control command, webpage UI is set to transparent.
As an example, some menu, for example, belong to a certain submenu of the Control-Menu of webpage UI, and as channel search etc., it is without using the web displaying that effect is gorgeous, and this submenu can directly be shown and be controlled by bottom UI.Now, can directly recall bottom UI by bottom UI control command and show and control, the menu key to should bottom UI control command on current bottom UI is directly called or directly starts its control logic, to carry out function physically.Webpage UI will be set to transparent or not do to show simultaneously, and not respond this bottom UI control command.
Particularly, this webpage UI can comprise a local page.
Particularly, this graphical interfaces engine comprises SMALLWIN-GUI engine, and in audio-video terminal traditional or low side, it can move the user interface of a piece transmission, as common Blit-UI.
As according to the modification of above-described embodiment, also can close and open to realize two kinds of switchings demonstrations between UI by carrying out respectively between webpage UI and bottom UI.For example, corresponding webpage UI control command, opens webpage UI and shows to user, makes bottom UI not show at running background, for example, by the operation minimizing or other is suitable simultaneously.Corresponding bottom UI control command, opens bottom UI and shows to user, now closes webpage UI.
According to a specific embodiment of pattern of fusion application of synchronized management devices of the present invention as shown in Figure 2, it comprises:
Local page UI module, it creates local page UI;
Message relating module, this webpage UI and instruction message is set up incidence relation by it;
Message sink module, it sends to webpage UI and bottom UI by instruction message in the time receiving instruction message;
Instruction Executive Module, the webpage UI being associated with this instruction message is showed user by it, and carry out the control logic corresponding with this instruction message by bottom UI.
Particularly, described device also comprises: local browser module, it creates a local browser, opens local page UI by this this locality browser, shows user.
Particularly, described device also comprises: display control module, and it receives instruction message, decision instruction type of message, if the corresponding associating web pages UI of message instruction type, shows user by the webpage UI being associated with this instruction message, show user otherwise switch to bottom UI.
As an example, this webpage UI can be set to cover this bottom UI, so that pressing instruction message type, webpage UI and bottom UI switch demonstration, wherein control the visibility of bottom UI or switch and show between webpage UI and bottom UI by controlling the transparency of webpage UI, wherein, when webpage UI is set to when opaque, bottom UI is invisible; This instruction message type comprises webpage UI control command and bottom UI control command, corresponding webpage UI control command, and webpage UI is set to opaque; Corresponding bottom UI control command, webpage UI is set to transparent.
According to the present invention, a kind of audio-video terminal has also been proposed, described audio-video terminal comprises above-mentioned pattern of fusion application of synchronized management devices.
Be illustrated in figure 3 the module frame schematic diagram based on further specific embodiment of the present invention, this module frame is used for carrying out pattern of fusion application of synchronized management method as described in the present invention, with by the coordination of two kinds of different UI, realize the control to audio-video terminal bottom function and business and the response to user and present.Wherein this embodiment realizes based on above-described embodiment within the scope of the invention, and it is unrestricted for illustrating.
Wherein, local browser module can comprise submodule: local browser engine;
Local page UI module can comprise submodule: local page module;
Message relating module can comprise following submodule: dynamic message look-up table, message sets interface.
Message sink module can comprise following submodule: key-press event receives, message event filter.
Instruction Executive Module can comprise following submodule: audio-video terminal business.
Message sink module can comprise following submodule: audio-video terminal bottom functional interface, general purpose event message generating module.
Display control module can comprise following submodule: SMALLWIN-GUI engine, bottom UI menu, local HTTP service module, local HTML parsing module, webpage UI viewing area control module, HTML transparency control module, XML national language configuration module.
Be below this embodiment the concrete module of each several part with and the description of detailed functions.
Local page module: this part refers to the webpage UI constructed with HTML/CSS/JAVASCRIPT, is current more popular embedded system UI, and this webpage UI can be the UI based on Web, and it can comprise a local page.
XML national language configuration module: the input to local page or webpage UI display language configuration information completing with XML language format, such as, English, Chinese or other countries' language etc.Local page has configured the switching of display language in the time loading according to the language of XML file.
HTML transparency control module: in local page, the information that for example the every one page menu in cascade menu all can read transparency from this module in the time loading is (such as 100%, 50%, 0% etc.), then that web menu, loading will arrange according to this transparency.
Webpage UI viewing area control module: this part is subject to the control of HTTP service module, shows and arranges to control local browser engine so that obtain the current web displaying parsing certain fixed area on screen according to the difference of HTTP service module.
Local HTML parsing module: be responsible for the grammer in local page to resolve examination, and filter out the rule that the browser engine on this kind of audio-video terminal is not supported, and the webpage of resolving is issued to browser engine.Simultaneously, this module is carried out data interaction with HTTP service module, can receive the execution message of HTTP service module, to complete the switching between webpage, meanwhile, also can respond some needs of local page, transmit control message to HTTP service module, reach the object of indirectly controlling audio-video terminal business module by bottom UI menu, this bottom UI menu can comprise the user interface of a piece transmission, as Blit-UI.
Local HTTP service module: be responsible for receiving the message that event message filter passes over, and complete the control to webpage UI viewing area control module, HTML transparency control module and local HTML parsing module according to message content.Can forward or send voluntarily message to SMALLWIN-GUI engine, to complete the control to Blit-UI menu simultaneously.Simultaneously, this module can also be according to the Request Control web page message mapping block of local HTML parsing module, with the generation of generation or control message, indirectly control Blit-UI menu thereby reach webpage, and by the object of Blit-UI menu control audio-video terminal business function.
Bottom UI menu: this is traditional audio-video terminal UI menu that SMALLWIN-GUI engine draws that passes through, and is just widely used on audio-video terminal cheaply at some at present, as Blit-UI.
SMALLWIN-GUI engine: traditional graphical user interface module, for presenting, the logic of Blit_UI provides basis of software, on low cost and traditional audio-video terminal, be widely used at present.
Web page message mapping block: the message that local HTML parsing module is transmitted from local page always changes into the message that local system can be identified, and for some particular message control event message filter, instruct event message filter whether to allow this message pass through, simultaneously, give message sets interface the message after conversion, to make this message drive local page and Blit-UI menu to complete corresponding actions as the message event of standard.
Message event filter: determine whether allow message now pass through according to input.
Message sets interface: the control message that this module reception SMALLWIN-GUI engine and web page message mapping block transmit, and the universal information that their conversion cost systems can be identified.And this universal information is sent in dynamic message look-up table.
Dynamic message look-up table: be responsible for the universal information that receipt message setting interface and the transmission of general purpose event message generating module come, and these message are carried out to buffer memory and classification, then sequentially send event message filter to same passage.
General purpose event message generating module: this module converts the various buttons that are triggered to general various types of messages, and send to dynamic message look-up table.
Key-press event receives: this part is responsible for reading button value from the functional interface of audio-video terminal bottom, and passes to general purpose event message generating module.
Audio-video terminal business: this part is responsible for processing digital service and the function logic of audio-video terminal.
Local browser engine: be a browser engine, main flow has opera, firefox, a chrome etc. at present.
Audio-video terminal bottom functional interface: this part is really to control the functional interface of audio-video terminal entity hardware, completes the control to hardware capability equipment such as audio-video terminal decoder, image output, external equipments by this interface.
According to the specific embodiment of further pattern of fusion application of synchronized management method of the present invention, it is based on previous embodiment and carry out following steps:
Open a local page, for example, open a local page by audio-video terminal; This local page is used XML national language configuration module configuration local page language.
Start HTML transparency control module by this local page.
Call local HTTP service module by HTML transparency control module.
Local HTTP service module can learn that from event message filter which kind of message is this message that starts UI be, whether this message, for example can be by learning the type of instruction message with webpage UI demonstration; Local HTTP service module is recorded now UI according to the UI type (being bottom UI or webpage UI) showing and will be shown any.
HTML transparency control module now reads local HTTP service module can know that current UI is any, and wherein this UI type comprises bottom UI and webpage UI, and bottom UI is for example Blit-UI.
If this UI type is webpage UI, HTML transparency control module can make local page background opaque; HTML transparency control module can be given local HTML parsing module by the local page of corresponding this message and be resolved; Parsing module need to be mutual with local browser engine, to complete the parsing of complete HTML; Meanwhile, local HTTP service also can be controlled webpage UI viewing area control module, the viewing area that this module can limit webpage UI in the time that local browser engine is resolved, and webpage UI is revealed thus.
Local HTTP service module is when webpage UI is revealed, control SMALLWIN-GUI engine, make the logic of its operation Blit-UI menu and display menu (even if now show also and can be covered and not have impact by webpage UI layer, but display menu be not the internal memory in order to save embedded system) not.
The logic of Blit-UI menu can directly be called audio-video terminal business module, and local HTTP service module is according to the Request Control web page message mapping block of local HTML parsing module, with the generation of systematic function message or control feature message, thereby complete corresponding physical function in presenting webpage UI menu.
If UI type is bottom UI, it is transparent that HTML transparency control module can make local page, demonstrates the viewing area (note: the viewing area of webpage UI is on the viewing area of bottom UI) of the bottom UI of lower floor;
Meanwhile, local HTTP service module can directly be controlled SMALLWIN-GUI engine, and UI corresponding this message is drawn;
Blit-UI menu will show;
The logic of Blit-UI menu can directly be called audio-video terminal business module, completes corresponding physical function in presenting menu.
So far the step of, coordinating two kinds of UI methods is described.
As an example, existing taking menu (adopting webpage UI) and signal search submenu (adopt traditional UI or be called bottom UI) as example, describe in this webpage UI and bottom UI and import into through GUI parsing and mixed display example from message.
In the time that user presses menu (menu) key on remote controller, audio-video terminal bottom functional interface can receive the menu key value of infrared signal, then key-press event receiver module can receive this key assignments, and give general purpose event message generating module this key assignments, this module generates general menu event message, it is to show a menu that this message can be told this message after dynamic message look-up table, then after event message filter, just knows that the menu menu that this message shows is a webpage UI.Know the means of these messages for dynamic message look-up table and event message filter, shine upon with message sets interface and realize by web page message, they link up local HTTP service and SMALLWIN-GUI engine simultaneously, and these two modules have just stored and set the attribute and the logic that have configured UI in the time that equipment moves.
Event message filter can be notified local HTTP service, and flow process is below just identical with the step display of above-mentioned mixing UI.
When user presses signal search submenu on remote controller, as above, event message filter can know that now menu is a bottom UI to Message Processing flow process, just notifies HTTP module to use the above-mentioned corresponding step that shows bottom UI to show.
As example, in the time of button triggering each time, whether local page all can receive and be triggered to, show and can control it according to concrete configuration.
The above, be preferred embodiment of the present invention, and the present invention is not limited to above-mentioned execution mode, as long as it reaches technique effect of the present invention with identical means, all should belong to protection scope of the present invention.In protection scope of the present invention, its technical scheme and/or execution mode can have various modifications and variations.Even if individual other technical characterictic is quoted in different claims, the present invention also can comprise the embodiment of total these features.