The content of the invention
It is an object of the invention to the defect for overcoming prior art, there is provided a kind of pattern of fusion application synchronization management method, dressPut and audio-video terminal.
To achieve these goals, the present invention uses following technical scheme:
According to an aspect of the present invention, it is proposed that a kind of pattern of fusion application synchronization management method, including step:
S1:Create local page UI;
S2:Webpage UI and instruction message are set up into incidence relation;
S3:When receiving instruction message, instruction message is sent to webpage UI and bottom UI;
S4:The webpage UI associated with the instruction message is showed into user, and disappeared by bottom UI execution with the instructionCease corresponding control logic.
Preferably, methods described also includes:A local browser is created, local page is opened by the local browserUI, shows user.
Preferably, methods described also includes:Receive instruction message, decision instruction type of message, if message instruction type pairAssociating web pages UI is answered, then the webpage UI associated with the instruction message is showed into user, otherwise switches to bottom UI to showUser.
Preferably, methods described also includes:Webpage UI is set to cover bottom UI, so that webpage UI and bottom UISwitch by instruction message type and show.
Preferably, controlled by controlling webpage UI transparency bottom UI visibility or webpage UI and bottom UI itBetween switch display, wherein when webpage UI is set to opaque, bottom UI is invisible;The instruction message type includes webpage UIControl instruction and bottom UI control instructions, correspondence webpage UI control instructions, webpage UI is set to opaque;The UI controls of correspondence bottomInstruction, webpage UI is set to transparent.
According to the second aspect of the invention, it is proposed that a kind of pattern of fusion application synchronizing management device, including:
Local page UI modules, it creates local page UI;
Message relating module, webpage UI and instruction message are set up incidence relation by it;
Message reception module, instruction message is sent to webpage UI and bottom UI by it when receiving instruction message;
Performing module is instructed, the webpage UI associated with the instruction message is showed user by it, and is held by bottom UIRow control logic corresponding with the instruction message.
Preferably, described device also includes:Local browser module, it creates a local browser, local clear by thisDevice of looking at opens local page UI, shows user.
Preferably, described device also includes:Display control module, its reception instruction message, decision instruction type of message, ifMessage instruction type correspondence associating web pages UI, then show user by the webpage UI associated with the instruction message, otherwise switchUser is showed for bottom UI.
Preferably, webpage UI is set to cover bottom UI, so that webpage UI and bottom UI are cut by instruction message typeDisplay is changed, wherein controlling bottom UI visibility by controlling webpage UI transparency or being cut between webpage UI and bottom UIDisplay is changed, wherein when webpage UI is set to opaque, bottom UI is invisible;The instruction message type is controlled including webpage UIInstruction and bottom UI control instructions, correspondence webpage UI control instructions, webpage UI is set to opaque;The UI controls of correspondence bottom refer toOrder, webpage UI is set to transparent.
According to the third aspect of the present invention, it is proposed that a kind of audio-video terminal, the audio-video terminal includes above-mentionedPattern of fusion application synchronizing management device or its preferred improvement.
Compared with prior art, the present invention has following remarkable advantage and beneficial effect:
The method handled according to the message distribution of the present invention, is that a kind of progress message between the application that different frameworks are realized is sameStep or the shared management method of business, this method can completion message be synchronous between the application that different frames are realized, business is linked up,Display coordinates, and in the bottom UI of SMALLWIN-GUI engines and is based on reaching traditional audio-video terminal with network audio-video terminalRealized between Web webpage UI synchronous.
The method according to the invention, designs one and is enclosed on synchronous and control message the method for completion between different UI frameworks, withSo that display webpage UI, controls the bottom UI with traditional GUI engine, meanwhile, traditional UI can also be in the UI based on WebComplete to present on the menu that need not be worked.
Using the method for the present invention, it is adaptable to the audio-video terminal of lower end, and it is general the need for reduce hardware and softThe audio-video terminal of part cost, in the case where going control audio-video terminal bottom function using traditional GUI engine and UI logics,Also shown simultaneously when needing and in the interface zone of needs using webpage, and webpage not requirement must call bottomFunctional interface, so, the audio-video terminal of traditional GUI engine, which need not do too big change, can apply new webpage UI, andAnd be new webpage UI can traditional UI be used together, and ability invoking web page UI when new gorgeous effect is needed, andExisting bottom UI is then directly continued to use when some traditional function displays, this reduces the workload for developing UI again.
Embodiment
The method according to the invention is to mix the UI of two kinds of complete different frames, is used as a concrete application, oneRise and complete the control to audio-video terminal bottom function and business and the response and presentation to user.
Reach this effect, it is necessary to the method for the different UI logics of a set of coordination, allow two sets of UI to have seen for a userCome as a set of UI, so, even if the audio-video terminal of low side can also give user with one under the support of this method in the pastDetermine the presentation effect of high-end audio-video terminal in degree.
According to a specific embodiment of the pattern of fusion application synchronization management method of the present invention as shown in figure 1, including stepSuddenly:
Step (S1):Local page UI is created, wherein webpage UI can include exercisable control menu, the control menuIt can be cascade menu.
Step (S2):Webpage UI and instruction message are set up into incidence relation.
Step (S3):When receiving instruction message, instruction message is sent to webpage UI and bottom UI.Equally, the bottomLayer UI also can be comprising other exercisable control menu, and the control menu can also be cascade menu.Specifically, bottom UIAlso include control logic, for realizing, for example, the function of an audio-video terminal.
Step (S4):The webpage UI associated with the instruction message is showed into user, and performed by bottom UI with being somebody's turn to doThe corresponding control logic of instruction message.
Specifically, methods described also includes:A local browser is created, local page is opened by the local browserUI, shows user.
Specifically, methods described also includes:Receive instruction message, decision instruction type of message, if message instruction type pairAssociating web pages UI is answered, then the webpage UI associated with the instruction message is showed into user, otherwise switches to bottom UI to showUser.
Specifically, methods described also includes:Webpage UI is set to cover bottom UI, so that webpage UI and bottom UISwitch by instruction message type and show.
As an example, bottom UI visibility is controlled by controlling webpage UI transparency or in webpage UI and bottomSwitch display between UI, wherein when webpage UI is set to opaque, bottom UI is invisible;The instruction message type includes netPage UI control instructions and bottom UI control instructions, correspondence webpage UI control instructions, webpage UI is set to opaque;Correspondence bottom UIControl instruction, webpage UI is set to transparent.
As an example, some menus for example belong to a certain submenu of webpage UI control menu, such as channel searchDeng it is without using to the gorgeous web displaying of effect, then the submenu directly can be shown and be controlled by bottom UI.Now, may be usedBy bottom UI control instructions bottom UI is directly recalled to be shown and controlled, on current bottom UI to should bottom UI controlThe menu key of instruction directly invokes or directly initiated its control logic, to perform function physically.Webpage UI will be by simultaneouslyIt is set to transparent or does not show, and is not responding to bottom UI control instructions.
Specifically, webpage UI may include a local page.
Specifically, the graphical interfaces engine includes SMALLWIN-GUI engines, in traditional or low side audio-video terminalIn, it can run the user interface of a block transmission, such as common Blit-UI.
As the modification according to above-described embodiment, also closing and opening can be closed by being performed respectively between webpage UI and bottom UIOpen to realize that the switching between two kinds of UI is shown.For example, correspondence webpage UI control instructions, webpage UI is opened and shown to userShow, while making bottom UI in running background without showing, for example, pass through minimum or other suitable operations.The UI controls of correspondence bottomSystem instruction, then open bottom UI and shown to user, now closes webpage UI.
According to a specific embodiment of the pattern of fusion application synchronizing management device of the present invention as shown in Fig. 2 it includes:
Local page UI modules, it creates local page UI;
Message relating module, webpage UI and instruction message are set up incidence relation by it;
Message reception module, instruction message is sent to webpage UI and bottom UI by it when receiving instruction message;
Performing module is instructed, the webpage UI associated with the instruction message is showed user by it, and is held by bottom UIRow control logic corresponding with the instruction message.
Specifically, described device also includes:Local browser module, it creates a local browser, local clear by thisDevice of looking at opens local page UI, shows user.
Specifically, described device also includes:Display control module, its reception instruction message, decision instruction type of message, ifMessage instruction type correspondence associating web pages UI, then show user by the webpage UI associated with the instruction message, otherwise switchUser is showed for bottom UI.
As an example, webpage UI may be configured as covering bottom UI, so that webpage UI and bottom UI presses instruction messageType switching display, wherein controlling bottom UI visibility by controlling webpage UI transparency or in webpage UI and bottom UIBetween switch display, wherein when webpage UI is set to opaque, bottom UI is invisible;The instruction message type includes webpageUI control instructions and bottom UI control instructions, correspondence webpage UI control instructions, webpage UI is set to opaque;The UI controls of correspondence bottomSystem instruction, webpage UI is set to transparent.
According to the present invention, it is also proposed that a kind of audio-video terminal, the audio-video terminal includes above-mentioned pattern of fusion applicationSynchronizing management device.
It is illustrated in figure 3 the module frame schematic diagram of the further specific embodiment based on the present invention, the module frameFor performing pattern of fusion application synchronization management method as described in the present invention, by two kinds of difference UI coordination, to realize to soundThe control of video terminal bottom function and business and the response and presentation to user.Wherein the embodiment is in the scope of the present inventionIt is interior to be realized based on above-described embodiment, its be used for illustrate and it is unrestricted.
Wherein, local browser module may include submodule:Local browser engine;
Local page UI modules may include submodule:Local page module;
Message relating module may include following submodule:Dynamic message look-up table, message sets interface.
Message reception module may include following submodule:Key-press event is received, message event filter.
Instruction performing module may include following submodule:Audio-video terminal business.
Message reception module may include following submodule:Audio-video terminal bottom functional interface, the generation of general purpose event messageModule.
Display control module may include following submodule:SMALLWIN-GUI engines, bottom UI menus, local HTTP serviceModule, local HTML parsing modules, webpage UI viewing areas control module, HTML transparencies control module, XML national languages are matched somebody with somebodyPut module.
It is the description of the specific module of each several part and its detailed functions of the embodiment below.
Local page module:This part referred to the webpage UI constructed by HTML/CSS/JAVASCRIPT, be at present compared withPopular embedded system UI, webpage UI can be the UI based on Web, and it may include a local page.
XML national language configuration modules:Language configuration is shown to local page or webpage UI with what XML language form was completedThe input of information, such as, and English, Chinese or other countries' language etc..Local page is matched somebody with somebody in loading according to the language of XML filePut the switching for completing to show language.
HTML transparency control modules:In local page, such as every page menu in cascade menu in loading allThe information (such as 100%, 50%, 0% etc.) of transparency, then, that web menu loaded can be read from this moduleIt will be set according to this transparency.
Webpage UI viewing areas control module:This part is controlled by HTTP service module, according to HTTP service module notSet to control local browser engine so as to obtain some fixed area of the web displaying currently parsed on screen with displayDomain.
Local HTML parsing modules:It is responsible for the grammer in local page carrying out parsing examination, and filters out such sound to regardThe rule that browser engine on frequency terminal is not supported, and parsed webpage is issued into browser engine.Meanwhile, this module withHTTP service module carries out data interaction, can receive the execution message of HTTP service module, to complete the switching between webpage,It is also possible to respond some needs of local page, control message is sent to HTTP service module, is reached by bottom UI dishesThe purpose of single indirect control audio-video terminal business module, bottom UI menus may include the user interface of a block transmission, such asBlit-UI。
Local HTTP service module:It is responsible for receiving the message that event message filter is passed over, and according to message contentComplete the control to webpage UI viewing areas control module, HTML transparencies control module and local HTML parsing modules.SimultaneouslyIt can forward or voluntarily send messages to SMALLWIN-GUI engines, to complete the control to Blit-UI menus.Meanwhile, this moduleWeb page message mapping block can also be controlled according to the request of local HTML parsing modules, with generation or the generation of control message,So as to reach webpage indirect control Blit-UI menus, and pass through the mesh of Blit-UI menu control audio-video terminal business functions's.
Bottom UI menus:This is traditional audio-video terminal UI menus drawn by SMALLWIN-GUI engines, at presentJust widely used on some inexpensive audio-video terminals, such as Blit-UI.
SMALLWIN-GUI engines:Traditional graphical user interface module, software base is provided for Blit_UI logic presentationWidely used on plinth, audio-video terminal inexpensive and traditional at present.
Web page message mapping block:Local HTML parsing modules are transmitted to the message got off always from local page to change intoThe message that local system can be recognized, and event message filter is controlled for some particular messages, instruct event message to filterWhether device allows this message to pass through, meanwhile, message sets interface is given the message after conversion, to cause this message to be used as standardMessage event driving local page and Blit-UI menus complete corresponding actions.
Message event filter:Decide whether to allow message now to pass through according to input.
Message sets interface:The control that this module reception SMALLWIN-GUI engines and web page message mapping block are transmitted disappearsBreath, and convert them into the universal information that the system can be recognized.And send into this universal information in dynamic message look-up table.
Dynamic message look-up table:Responsible reception message sets interface is general with the transmission of general purpose event message generating moduleMessage, and these message are cached and are classified, then send event message filter to same channel sequence.
General purpose event message generating module:The various buttons being triggered are converted into general various types of messages by this module, andIt is sent to dynamic message look-up table.
Key-press event is received:This part is responsible for reading button value from the interface of audio-video terminal bottom feature, andPass to general purpose event message generating module.
Audio-video terminal business:It is responsible for handling the digital service and function logic of audio-video terminal in this part.
Local browser engine:It is a browser engine, current main flow has opera, firefox, chrome etc..
Audio-video terminal bottom functional interface:This part is the functional interface of real control audio-video terminal entity hardware,Control to hardware capability equipment such as audio-video terminal decoder, image output, external equipments is completed by this interface.
According to the specific embodiment of the further pattern of fusion application synchronization management method of the present invention, it is based on foregoing realityApply example and perform following steps:
A local page is opened, for example, a local page is opened by audio-video terminal;The local page uses the national languages of XMLSay configuration module configuration local page language.
HTML transparency control modules are started by the local page.
Local HTTP service module is called by HTML transparency control modules.
Local HTTP service module can learn which kind of message is this message for starting UI be from event message filter, thisWhether message shown with webpage UI, for example can be by learning the type of instruction message;Local HTTP service module is according to displayUI types (i.e. bottom UI or webpage UI), which record now UI, will show any.
HTML transparencies control module now reads local HTTP service module and may know that current UI is any, whereinThe UI types include bottom UI and webpage UI, and bottom UI is, for example, Blit-UI.
If the UI types are webpage UI, HTML transparencies control module can make local page background opaque;HTMLThe local page of this corresponding message can be given local HTML parsing modules and parsed by transparency control module;Parsing module need withLocal browser engine interaction, to complete complete HTML parsing;Meanwhile, local HTTP service can also control webpage UI viewing areasDomain control module, this module can limit webpage UI viewing area when local browser engine is parsed, and thus webpage UI is shownShow to come.
Local HTTP service module controls SMALLWIN-GUI engines, makes it while webpage UI is revealedThe logic of Blit-UI menus is run without showing that menu (also can be by UI layers of covering of webpage without having even if now showingInfluence, but do not show that menu is to save the internal memory of embedded system).
The logic of Blit-UI menus can directly invoke audio-video terminal business module, and local HTTP service module rootWeb page message mapping block is controlled according to the request of local HTML parsing modules, with the production of systematic function message or control function messageIt is raw, so as to complete corresponding physical function while webpage UI menus are presented.
If UI types are bottom UI, HTML transparencies control module can make local page transparent, show lower floor bottomLayer UI viewing area (note:Webpage UI viewing area is on bottom UI viewing area);
Meanwhile, local HTTP service module can directly control SMALLWIN-GUI engines, and the corresponding UI of this message is drawnCome;
Blit-UI menus will be shown;
The logic of Blit-UI menus can directly invoke audio-video terminal business module, and phase is completed while menu is presentedThe physical function answered.
So far, the step of coordinating two kinds of UI methods is described.
As an example, tradition UI (is now used or for bottom with menu (using webpage UI) and signal search submenuUI exemplified by), describe incoming through GUI parsings and mixed display example from message in this webpage UI and bottom UI.
When user presses menu (menu) key on a remote control, audio-video terminal bottom functional interface can receive infraredThe menu key values of signal, then key-press event receiving module can receive this key assignments, and give general purpose event this key assignments and disappearGeneration module is ceased, this module generates general menu event messages, and this message can tell this after dynamic message look-up tableMessage is to show a menu, then is known that the menu menus that this message is shown are a webpages after event message filterUI.The means of these messages are known for dynamic message look-up table and event message filter, be by web page message mapping andMessage sets interface is come what is realized, and they link up local HTTP service and SMALLWIN-GUI engines simultaneously, and the two modules existEquipment is just stored when running and sets attribute and logic that UI has been got well in configuration.
Event message filter is notified that local HTTP service, and flow below is with the above-mentioned step display for mixing UI with regard to phaseTogether.
When user presses signal search submenu on a remote control, Message Processing flow as above, event message filter meetingKnow that now menu is a bottom UI, note that the step of HTTP module shows bottom UI using above-mentioned correspondence shows.
As an example, when button each time is triggered, local page can all be received and is triggered to, and according to toolBody configuration can control whether it shows.
It is described above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long asIt reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.In the protection model of the present inventionIts technical scheme and/or embodiment can have a variety of modifications and variations in enclosing.Even if individual other technical characteristic is notQuoted in same claim, the present invention can also include the embodiment for having these features.