Summary of the invention
The technical problem to be solved in the present invention provides a kind of client device, multi-medium data uninstalling system and discharging method, the browser function of can affluent resources limited client device, reduce the local resource consumption of resource-constrained client device, and can improve the ability that it handles multi-medium data.
In order to address the above problem, the invention provides a kind of client device, comprising: the service discovery module;
One or more plug-in unit proxy modules, each is corresponding with one type multi-medium data;
Browser is used for sending a request, the webpage of being asked that reception server returns to server;
Control module is used for judging the multi-medium data that whether webpage that is received exists needs unloading, if exist, then calls described service discovery module, and according to the type of described multi-medium data, calls corresponding plug-in unit proxy module;
The service discovery module, being used to select can be to the acting server of the multi-medium data decoding of need unloading; And notify described plug-in unit proxy module, be the selected acting server of multi-medium data of this plug-in unit proxy module corresponding types;
Each described plug-in unit proxy module is when being called, connect with selected acting server, the multi-medium data of corresponding types in the webpage that is received is sent to selected acting server, receive the long-range video data that obtains after this proxy server processes.
Further, described client device also comprises:
Figure module is used at described webpage, and the long-range video data that described plug-in unit proxy module is received is plotted in this plug-in unit proxy module corresponding display.
Further, described plug-in unit proxy module is used for that also the customer incident in institute's control scope of this plug-in unit proxy module correspondence is sent to selected acting server and goes to handle.
Further, described control module also is used for extracting from webpage the URL of the multi-medium data that needs unloading, sends to the plug-in unit proxy module;
When described plug-in unit proxy module sends to acting server with multi-medium data, be the URL that sends this multi-medium data, or be transmitted to acting server after tackling the multi-medium data of this URL.
The present invention also provides a kind of multi-medium data uninstalling system, comprising:
Above-mentioned client device, acting server;
Described acting server comprises:
One or more long-range card modules are used for receiving the multi-medium data that this long-range card module can be handled from described plug-in unit proxy module, obtain the described long-range video data of the form that client can discern after the processing, and return to described plug-in unit proxy module.
Further, described system also comprises: the service registration module, link to each other with the service discovery module of described client device, be used for to described service discovery module provide this acting server the type and the version of treatable multi-medium data.
The present invention also provides a kind of multi-medium data discharging method, comprising:
Client if there is the multi-medium data that needs unloading in the webpage, is then called the plug-in unit proxy module of the type correspondence of this multi-medium data when when server is received the webpage of being asked;
Selection can be to the acting server of the multi-medium data decoding of need unloadings, and notifies described plug-in unit proxy module, is the selected acting server of multi-medium data of this plug-in unit proxy module corresponding types;
After described plug-in unit proxy module is called, connect, the multi-medium data of corresponding types is sent to selected acting server, receive the long-range video data that obtains after the proxy server processes with selected acting server.
Further, also comprise after the step of the long-range video data that obtains after the described reception proxy server processes:
In described webpage, the long-range video data that described plug-in unit proxy module is received is plotted in this plug-in unit proxy module corresponding display.
Further, described method also comprises:
Described plug-in unit proxy module sends to selected acting server with the customer incident in institute's control scope of this plug-in unit proxy module correspondence and goes to handle.
Further, also comprise in the step of the plug-in unit proxy module of the described type correspondence of calling this multi-medium data:
From webpage, extract the URL of the multi-medium data that needs unloading, send to the plug-in unit proxy module;
Described plug-in unit proxy module sends to the multi-medium data of corresponding types in the step of selected acting server, is the URL that sends this multi-medium data, or is transmitted to acting server after tackling the multi-medium data of this URL.
Technical scheme of the present invention can be enriched the function of the browser of limited client device, and multi-medium data is unloaded to completion logic processing on the acting server, has reduced the consumption of client to resource, and can improve the ability of system handles multi-medium data; The present invention has proposed plug-in unit agency's notion in existing browser model, act on behalf of the seamless link that realizes automatic multimedia unloaded operation pellucidly and long-range demonstration by means of plug-in unit; Plug-in unit agency can make things convenient for, directly be used in combination with existing browser, does not need to revise, recompiles or heavy chain such as connects at operation, supports multiple different media types, comprises dynamic and static; Can the display update of multi-medium data be transferred back to client to realize indiscriminate user experience by long-range demonstration; The present invention supports service discovery, can find to move the server of long-range plug-in unit automatically; Support the behavior of the long-range plug-in unit of control.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
Need to prove that if do not conflict, each feature among the embodiment of the invention and the embodiment can mutually combine, all within protection scope of the present invention.In addition, can in computer system, carry out in the step shown in the flow chart of accompanying drawing such as a set of computer-executable instructions, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
The present invention has proposed to unload automatically based on multimedia client device, multi-medium data uninstalling system and the discharging method of framework on the basis of existing Fat Client and thin-client browser model, this framework is independent of concrete hardware platform, operating system, browser and remote display protocol; Comprise a kind of plug-in unit agency that multimedia work of treatment in the complicated webpage, that client can not be handled or handling property is bad can have been moved on to automatically pellucidly on the mixed type acting server in this framework.This plug-in unit the agency can make things convenient for, directly be used in combination with existing browser, do not need to revise, recompiles or heavy chain such as connects at operation.In the multi-medium data uninstalling system provided by the present invention, local browser on the resource-constrained devices uses a plurality of plug-in unit agencies that multi-medium data is unloaded to completion logic processing on the acting server, and then the display update of multi-medium data is transferred back to client to realize indiscriminate user experience.
Embodiment one, and a kind of client device comprises: the service discovery module;
One or more plug-in unit proxy modules, each is corresponding with one type multi-medium data;
Browser is used for sending a request, the webpage of being asked that reception server returns to server;
Control module is used for judging the multi-medium data that whether webpage that is received exists needs unloading, if exist, then calls described service discovery module, and according to the type of described multi-medium data, calls corresponding plug-in unit proxy module; Can directly call plug-in unit for the multi-medium data that need not to unload by existing mode;
The service discovery module, being used to select can be to the acting server of the multi-medium data decoding of need unloading; And notify described plug-in unit proxy module, be the selected acting server of multi-medium data of this plug-in unit proxy module corresponding types;
Each described plug-in unit proxy module is when being called, connect with selected acting server, the multi-medium data of corresponding types in the webpage that is received is sent to selected acting server, receive the long-range video data that obtains after this proxy server processes.
In the present embodiment, described browser and plug-in unit proxy module can belong to the application layer in the client device, and described service discovery module and control module can belong to the key-course in the client device.
In the present embodiment, if when needing the multi-medium data of unloading that polytype is arranged, then call a plurality of plug-in unit proxy modules, the service discovery module also will be selected acting server (but the acting server that the dissimilar multi-medium datas of promising possibility are selected is same) respectively for dissimilar multi-medium datas, send to the plug-in unit proxy module of the type correspondence respectively; The a plurality of plug-in unit proxy modules that called connect with selected acting server respectively.
Usually, plug-in unit need take certain viewing area and draw its displaying contents in webpage, specified the size of this plug-in unit in the general webpage, and browser can calculate the position of the viewing area that this plug-in unit takies, scope of this size and position appointment is exactly institute's control scope of plug-in unit; The customer incident that occurs in this scope of controlling is all handled by plug-in unit oneself, need not give browser.
In the present embodiment, described client device can also comprise a figure module, is used at described webpage, and the long-range video data that described plug-in unit proxy module is received is plotted in this plug-in unit proxy module corresponding display.
The long-range video data here is by obtaining behind the long-range plug-in unit processing multi-medium data that is installed on the acting server.
In the present embodiment, described browser can but be not limited to the web browser, the webpage of being asked is the web webpage, correspondingly, described server is the web server, the request that is sent is HTTP request.
In the present embodiment, described plug-in unit proxy module also need help to handle the two-way interaction between described web browser and the long-range plug-in unit.On acting server, can there be a lot of web page access examples as usual to call long-range plug-in unit and handle the multi-medium data that described plug-in unit proxy module sends.
In the present embodiment, described control module also is used for extracting from webpage the URL of the multi-medium data that needs unloading, sends to the plug-in unit proxy module;
When described plug-in unit proxy module sends to acting server with multi-medium data, can be the URL that sends this multi-medium data, allow acting server obtain (needing acting server that this ability is arranged) voluntarily, also can be the interception this URL multi-medium data after be transmitted to acting server.
In the present embodiment, described service discovery module not only is used for realizing service discovery (selection can to the acting server of the multi-medium data decoding of need unloading) according to the type of the multi-medium data of need unloadings and version, can also realize local and long-range seamless link; If there are a plurality of acting servers to decode, then can but be not limited to select one according to the loading condition of at that time network condition and acting server, also can be according to other policy selection one, such as select the path the shortest, priority is the highest etc.
In the present embodiment, described plug-in unit proxy module can also be used for that the customer incident in institute's control scope of this plug-in unit proxy module correspondence is sent to selected acting server and go to handle; Can but be not limited to utilize long-range plug-in unit on the long-range JavaScript invokes proxy server.
Described plug-in unit is acted on behalf of submodule just as common plug-in unit, follows the card i/f of standard, but does not finish real decoding and demonstration work.Plug-in unit is acted on behalf of the rule that submodule must be deferred to developing plug, realize mime type (mime type is exactly to set the mode type that the file of certain extension name is opened with a kind of application program) work such as registration grade, so that can load plug-in unit automatically when running into corresponding multi-medium data, and need to intercept and capture multimedia URL or data and be transmitted to proxy server processes.Browser can not be discerned plug-in unit and act on behalf of difference between submodule and the plug-in unit.
In the present embodiment, when whether having the multi-medium data that needs unloading in the described webpage of described control module, can judge by two kinds of methods:
1) if the mime type of multi-medium data with certain plug-in unit proxy module correspondence, then be responsible for the definition multimedia data by the plug-in unit proxy module, therefore the data unloading can take place;
2) if local plug-in unit can be resolved the data of certain type, but may need to consume ample resources, this class situation also can be used the method for data unloading.Can in described control module, preserve the type that can consume the multi-medium data of ample resources earlier, when a multi-medium data belongs to the type of being preserved, judge that this multi-medium data need consume ample resources.
Described control module also can directly be preserved the type of the multi-medium data that needs unloading in described control module, when a multi-medium data belongs to the type of being preserved, judge that this multi-medium data need unload.
Embodiment two, and a kind of multi-medium data uninstalling system as shown in Figure 2, comprising:
Client device among the embodiment one, acting server;
Described acting server comprises:
One or more long-range card modules are used for receiving the multi-medium data that this long-range card module can be handled from described plug-in unit proxy module, obtain the described long-range video data of the form that client can discern after the processing, and return to described plug-in unit proxy module.
Described long-range card module can belong to the application layer in the acting server, and described service registration module can belong to the key-course in the acting server.
In the present embodiment, described long-range card module can also be used for receiving customer incident from described plug-in unit proxy module, after the processing result is returned to described plug-in unit proxy module.
In the present embodiment, described acting server also comprises:
The service registration module links to each other with the service discovery module of described client device, be used for to described service discovery module provide this acting server the type and the version of treatable multi-medium data; Can also be further used for providing the information such as loading condition of this acting server to described service discovery module.
In the present embodiment, described acting server can also comprise the figure module that is equivalent to client device, the functional module of control module; Described long-range card module can be included in the virtual container.
In the present embodiment, described acting server can also comprise a browser, is used for calling the respective remote card module according to the multi-medium data that receives.
In the present embodiment, each module of described multi-medium data uninstalling system can be selected from a plurality of candidates or go to realize by number of ways.Can make up a special system according to computing environment at that time, performance, complexity and the autgmentability demand of system.
Embodiment three, and a kind of discharging method of multi-medium data uninstalling system comprises:
Client if there is the multi-medium data that needs unloading in the webpage, is then called the plug-in unit proxy module of the type correspondence of this multi-medium data when when server is received the webpage of being asked;
Selection can be to the acting server of the multi-medium data decoding of need unloadings, and notifies described plug-in unit proxy module, is the selected acting server of multi-medium data of this plug-in unit proxy module corresponding types;
After described plug-in unit proxy module is called, connect, the multi-medium data of corresponding types is sent to selected acting server, receive the long-range video data that obtains after the proxy server processes with selected acting server.
In the present embodiment, can also comprise after the step of the long-range video data that obtains after the described reception proxy server processes: in described webpage, the long-range video data that described plug-in unit proxy module is received is plotted in this plug-in unit proxy module corresponding display.
In the present embodiment, described method can also comprise:
Described plug-in unit proxy module sends to selected acting server with the customer incident in institute's control scope of this plug-in unit proxy module correspondence and goes to handle; Can but be not limited to utilize long-range plug-in unit on the long-range JavaScript invokes proxy server.
In the present embodiment, can also comprise in the step of the plug-in unit proxy module of the described type correspondence of calling this multi-medium data:
From webpage, extract the URL of the multi-medium data that needs unloading, send to the plug-in unit proxy module;
Described plug-in unit proxy module sends to the multi-medium data of corresponding types in the step of selected acting server, be the URL (needing acting server that this ability is arranged) that sends this multi-medium data, or be transmitted to acting server after tackling the multi-medium data of this URL.
In the present embodiment, can select to handle the acting server of the multi-medium data that need unload according to the type of the multi-medium data of need unloadings and version; If there are a plurality of acting servers to decode, then can but be not limited to select according to the loading condition of at that time network condition and acting server, also can be according to other policy selection, such as select the path the shortest, priority is the highest etc.
Other realizes that details can the same two embodiment.
Describe with a concrete example below, concrete steps comprise:
(1) client is after the web server sends a HTTP request, and the web server just returns the web web page contents of being asked.
(2) if be embedded with the multi-medium data that some need unload in the client terminal to discover webpage, the corresponding insert proxy module will be called so.
(3) system will find suitable acting server automatically, and the plug-in unit proxy module is passed to acting server with corresponding skeleton webpage and handled by it, and the skeleton webpage is meant and only comprises the webpage that needs to handle multi-medium data parameter (as URL) here.
(4) acting server calls the Internet web browser and opens the skeleton webpage.
(5) the respective remote plug-in unit is loaded automatically and is enabled.
(6) acting server directly obtains multi-medium data by network from the web server.
(7) long-range card module is drawn the demonstration output of multi-medium data, promptly obtains long-range video data, and returns to described plug-in unit proxy module.
(8) customer incident in plug-in unit proxy module institute control scope is intercepted and sends to the processing of acting server end by the plug-in unit proxy module.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of claim of the present invention.