CN103914327A - Plug-in loading method and plug-in loading module - Google Patents

Plug-in loading method and plug-in loading module Download PDF

Info

Publication number
CN103914327A
CN103914327A CN201410172968.2A CN201410172968A CN103914327A CN 103914327 A CN103914327 A CN 103914327A CN 201410172968 A CN201410172968 A CN 201410172968A CN 103914327 A CN103914327 A CN 103914327A
Authority
CN
China
Prior art keywords
unit
plug
copy
title
described plug
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.)
Pending
Application number
CN201410172968.2A
Other languages
Chinese (zh)
Inventor
陈泓坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201410172968.2A priority Critical patent/CN103914327A/en
Publication of CN103914327A publication Critical patent/CN103914327A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a plug-in loading method and plug-in loading module. The method and module are used for simply achieving the aim that a plurality of plug-ins in a singleton pattern are used on the same page. The method comprises the steps of obtaining the name of the plug-in, wherein the plug-in is in singleton pattern; detecting whether the plug-in is used or not, and if the plug-in is used, obtaining the copy of the plug-in; changing the name of the copy of the plug-in, and enabling the name of the copy of the plug-in to be different from names of other plug-ins; registering the copy of the plug-in. According to the method, the aim that the plug-ins in the singleton pattern are used on the same page can be simply achieved.

Description

Plug-in loading method and plug-in unit load-on module
Technical field
The present invention relates to browser display page field, relate in particular to a kind of plug-in loading method and plug-in unit load-on module.
Background technology
A lot of HTML (Hypertext Markup Language) (Hyper Text Markup Language, HTML) application need to be used the plug-in unit of the routine pattern of multiple lists in the same page simultaneously, for example on a page, add 2 video windows, wherein each video window carries out the demonstration of video with the PPAPI plug-in unit of single routine pattern.
And browser is resolving when HTML, be only a module of plug-in unit establishment of display video, and plug-in unit in each video window use an example of this module, therefore just need to this PPAPI plug-in unit support the pattern of many examples.But this PPAPI plug-in unit is single routine pattern, therefore above-mentioned application will show extremely, only have a video window normally to show in a page.
Summary of the invention
The embodiment of the present invention provides a kind of plug-in loading method and plug-in unit load-on module, can simple realization on the same page, uses the plug-in unit of the routine pattern of multiple lists.
Embodiment of the present invention first aspect provides a kind of plug-in loading method, comprising:
Obtain the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
Detect described plug-in unit and whether used, if so, obtain the copy of described plug-in unit;
Change the title of the copy of described plug-in unit, make the title of the copy of described plug-in unit differ from the title of other plug-in units;
Register the copy of described plug-in unit.
In conjunction with the first aspect of the embodiment of the present invention, in the first implementation of the first aspect of the embodiment of the present invention, described method also comprises:
Create configuration file, described configuration file records title and the use information of described plug-in unit;
Whether the described plug-in unit of described detection is used specifically and is comprised:
Read the use information of described plug-in unit in described configuration file to know whether described plug-in unit is used.
In conjunction with the first implementation of the first aspect of the embodiment of the present invention, in the second implementation of the first aspect of the embodiment of the present invention, after the title of the copy of the described plug-in unit of described change, also comprise:
Title and use information after the copy change of described plug-in unit are added in described configuration file.
In conjunction with the second implementation of the first aspect of the embodiment of the present invention, in the third implementation of the first aspect of the embodiment of the present invention, described configuration file also records the store path of the copy of described plug-in unit;
The copy of the described plug-in unit of described registration specifically comprises:
Create autoexec;
In described configuration file, obtain the store path of the copy of described plug-in unit, and described store path is added in described autoexec;
Described autoexec is registered the copy of described plug-in unit.
In conjunction with the first aspect of the embodiment of the present invention, in the 4th kind of implementation of the first aspect of the embodiment of the present invention, described method also comprises:
Record the corresponding relation of the window of each plug-in unit and the described plug-in unit of application;
Receive the steering order to described plug-in unit;
In the window corresponding with described plug-in unit, carry out described plug-in unit according to described steering order according to described corresponding relation.
Embodiment of the present invention second aspect provides a kind of plug-in unit load-on module, comprising:
The first acquiring unit, for obtaining the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
Whether detecting unit, used for detection of described plug-in unit;
Second acquisition unit, when detecting that when described detecting unit described plug-in unit has been used, obtains the copy of described plug-in unit;
Changing unit, for changing the title of copy of described plug-in unit, makes the title of the copy of described plug-in unit differ from the title of other plug-in units;
Registering unit, for registering the copy of described plug-in unit.
In conjunction with the second aspect of the embodiment of the present invention, in the first implementation of the second aspect of the embodiment of the present invention, described plug-in unit load-on module also comprises:
The first creating unit, for creating configuration file, described configuration file records title and the use information of described plug-in unit;
Described detecting unit specifically for the use information that reads described plug-in unit in described configuration file to know whether described plug-in unit is used.
In conjunction with the first implementation of the second aspect of the embodiment of the present invention, in the second implementation of the second aspect of the embodiment of the present invention, described plug-in unit load-on module also comprises:
The first adding device, for being added into described configuration file by title and use information after the copy change of described plug-in unit.
In conjunction with the second implementation of the second aspect of the embodiment of the present invention, in the third implementation of the second aspect of the embodiment of the present invention, in described configuration file, also record the store path of the copy of described plug-in unit;
Described plug-in unit load-on module also comprises the second creating unit, for creating autoexec;
The second adding device, for obtain the store path of the copy of described plug-in unit in described configuration file, and adds described store path in described autoexec to;
Described autoexec is also for registering described plug-in unit.
In conjunction with the second aspect of the embodiment of the present invention, in the 4th kind of implementation of the second aspect of the embodiment of the present invention, described plug-in unit load-on module also comprises:
Record cell, for recording the corresponding relation of window of each plug-in unit and the described plug-in unit of application;
Receiving element, for receiving the steering order to described plug-in unit;
Performance element, for carrying out described plug-in unit at the window corresponding with described plug-in unit according to described steering order according to described corresponding relation.As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In the embodiment of the present invention, by obtaining the singly copy of the plug-in unit of routine pattern, and the name change of this copy is become to differ from registration again after the title of other plug-in units, like this, because plug-in unit and each copy thereof of the routine pattern of this list have different names, can move plug-in unit and each copy thereof of the routine pattern of this list simultaneously, make each example to one in plug-in unit that should single routine pattern and each copy thereof, and then can realize the normal plug-in unit that uses the routine pattern of multiple lists on the same page of browser, and without rewriting plug-in unit, only revise the mode of calling plug-in unit, method is simple.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of an embodiment of plug-in loading method of the present invention;
Fig. 2 is the process flow diagram of another embodiment of plug-in loading method of the present invention;
Fig. 3 is the process flow diagram of another embodiment of plug-in loading method of the present invention;
Fig. 4 is the schematic diagram of an embodiment of plug-in unit load-on module of the present invention;
Fig. 5 is the schematic diagram of another embodiment of plug-in unit load-on module of the present invention;
Fig. 6 is the schematic diagram of another embodiment of plug-in unit load-on module of the present invention.
Embodiment
The embodiment of the present invention provides a kind of plug-in loading method and plug-in unit load-on module, can simple realization on the same page, uses the plug-in unit of the routine pattern of multiple lists.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
Refer to Fig. 1, in the embodiment of the present invention, embodiment of plug-in loading method comprises:
101, obtain the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
The method of the embodiment of the present invention can be used in multiple application program, for example the application program of HTML application program or other form web pages.In the present embodiment, the plug-in unit of single routine pattern refers to the plug-in unit that only has an object of being responsible for playing up, the same object of each example of this plug-in unit.For example, the plug-in unit of the routine pattern of list in the present embodiment can be PPAPI plug-in unit or ActiveX plug-in unit.Certainly, above are only and illustrate, be not restricted.Should be noted, each plug-in unit might not be applicable to all application programs, has part plug-in unit to be only applicable to certain applications program.For example, PPAPI plug-in unit is applicable to chrome browser, and ActiveX plug-in unit is applicable to IE browser.
Whether 102, detect described plug-in unit is used;
103, if not, call described plug-in unit;
104, if so, obtain the copy of described plug-in unit;
When application program open one need plug-in unit support the page time, computing machine can move this plug-in unit, to guarantee the normal demonstration of this page.When application program need be opened second page of need to this plug-in unit supporting, because this plug-in unit is single routine pattern, normally display page of this second page.In the present embodiment, support this second page normally to show by obtaining the copy of this plug-in unit.Therefore,, before judging whether to obtain the copy of this plug-in unit, first detect this plug-in unit and whether used.If also do not used, can directly call this plug-in unit.If used, copy this plug-in unit, to obtain the copy of this plug-in unit.
105, change the title of the copy of described plug-in unit, make the title of the copy of described plug-in unit differ from the title of other plug-in units;
Described plug-in unit is used in the situation that, application program has been opened second window of need to this plug-in unit supporting.And the copy of plug-in unit for make this second need to this plug-in unit support window normally show.Application program need be learnt the plug-in unit that this application program is called by the title of plug-in unit, if the title of the copy of plug-in unit and this plug-in unit is the same, application program cannot be confirmed whether that the copy that has called this plug-in unit supports this second window.Therefore, need to change the title of the copy of this plug-in unit, and the title of this copy differs from the title of other plug-in units.Concrete example can add numeral after the title of the copy at this plug-in unit, makes the title of the copy of this plug-in unit differ from the title of this plug-in unit.Certainly, also can revise by additive method the title of part of plug-in unit, foregoing description only, for for example, is not restricted.
106, register the copy of described plug-in unit;
For making application program can identify the copy of this plug-in unit, can normally move the copy of this plug-in unit, need first the copy of this plug-in unit to be registered.Registered plug-ins has several different methods.For example,, can register this plug-in unit by this script by loading the copy of this plug-in unit with js language or other scripts in HTML application program.Certainly, foregoing description only, for for example, is not restricted.
In the embodiment of the present invention, by obtaining the singly copy of the plug-in unit of routine pattern, and the name change of this copy is become to differ from registration again after the title of other plug-in units, like this, because plug-in unit and each copy thereof of the routine pattern of this list have different names, can move plug-in unit and each copy thereof of the routine pattern of this list simultaneously, make each example to one in plug-in unit that should single routine pattern and each copy thereof, and then can realize the normal plug-in unit that uses the routine pattern of multiple lists on the same page of application program, and without rewriting plug-in unit, only revise the mode of calling plug-in unit, method is simple.
In embodiment, need to detect plug-in unit and whether used above.In practice, can detect in several ways plug-in unit and whether be used, below plug-in loading method in the embodiment of the present invention is described.Refer to Fig. 2, in an alternative embodiment of the invention, plug-in loading method comprises:
201, obtain the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
The method of the embodiment of the present invention can be used in multiple application program, for example the application program of HTML application program or other form web pages.In the present embodiment, the plug-in unit of single routine pattern refers to the plug-in unit that only has an object of being responsible for playing up, the same object of each example of this plug-in unit.For example, the plug-in unit of the routine pattern of list in the present embodiment can be PPAPI plug-in unit or ActiveX plug-in unit.Certainly, above are only and illustrate, be not restricted.Should be noted, each plug-in unit might not be applicable to all application programs, has part plug-in unit to be only applicable to certain applications program.For example, PPAPI plug-in unit is applicable to chrome browser, and ActiveX plug-in unit is applicable to IE browser.
202, create configuration file, described configuration file records title and the use information of described plug-in unit;
In the time that described plug-in unit is stored in computing machine, simultaneously create configuration file in this ground of computing machine, wherein in this configuration file, record title and the use information of this plug-in unit, wherein whether the use information of this plug-in unit is used to indicate this plug-in unit and is used.Be stored in computing machine at the beginning at this plug-in unit, this plug-in unit is not also used, and therefore, this this plug-in unit of use information recording is not also used.In the time of this plug-in unit of computer run, this use information automatically changes to and is used.Concrete example, this plugin name is A.dll, the information of record is <A.dll in configuration file, NO>, wherein NO is used to indicate this plug-in unit and is not used.In the time that this plug-in unit is used, this NO is changed to YES by this configuration file.
203, the use information that reads described plug-in unit in described configuration file to be to know whether described plug-in unit is used,
204, if not, call described plug-in unit, and by the use information change of this plug-in unit in configuration file for indicating this plug-in unit to be used;
205, if so, obtain the copy of described plug-in unit;
Application program need open one need to change plug-in unit support the page time, application program searches and reads the use information of this plug-in unit in described configuration file according to the title of this plug-in unit.If the use information of this plug-in unit recording in configuration file indicates this plug-in unit to be used, copy this plug-in unit, to obtain the copy of this annex.
206, change the title of the copy of described plug-in unit, make the title of the copy of described plug-in unit differ from the title of other plug-in units;
Described plug-in unit is used in the situation that, application program has been opened second window of need to this plug-in unit supporting.And the copy of plug-in unit for make this second need to this plug-in unit support window normally show.Application program need be learnt the plug-in unit that this application program is called by the title of plug-in unit, if the title of the copy of plug-in unit and this plug-in unit is the same, application program cannot be confirmed whether that the copy that has called this plug-in unit supports this second window.Therefore, need to change the title of the copy of this plug-in unit, and the title of this copy differs from the title of other plug-in units.Concrete example can add numeral after the title of the copy at this plug-in unit, makes the title of the copy of this plug-in unit differ from the title of this plug-in unit.Certainly, also can revise by additive method the title of part of plug-in unit, foregoing description only, for for example, is not restricted.
207, register the copy of described plug-in unit;
For making application program can identify the copy of this plug-in unit, can normally move the copy of this plug-in unit, need first the copy of this plug-in unit to be registered.Registered plug-ins has several different methods.For example,, can register this plug-in unit by this script by loading the copy of this plug-in unit with js language or other scripts in HTML application program.
In the present embodiment, record the use information of plug-in unit by creating configuration text, can facilitate application program to detect this plug-in unit and whether be used.
Preferably, after the step 204 of the present embodiment is changed the title of copy of described plug-in unit, also comprise: title and use information after the copy change of described plug-in unit are added in described configuration file.
In practice, application program need be opened three or three windows that need above this plug-in unit to support in some cases.Like this, to open second and second later all window of need to this plug-in unit supporting, each window needs respectively a copy of this plug-in unit to support the normal demonstration of this window.And the title of the copy of each plug-in unit is all different.Therefore, after a copy of plug-in unit, the title of this copy and use information are added in configuration file often obtaining, can conveniently the use information of each plug-in unit be managed and be changed the title of follow-up plug-in unit.
Concrete example, the title and the use information that in configuration file, have recorded first copy of plug-in unit and plug-in unit, be specially <A.dll, YES>, <A1.dll, YES>.In the time getting second copy of plug-in unit, can be A2.dll by the name change of this second copy according to the title of the each plug-in unit recording in configuration file, and by its title and the information of use <A2.dll, NO> is recorded in configuration file.Register after this second copy, in the time of this second copy of application call, the record in configuration file changes to <A2.dll, YES>; In the time that closing application program calls the window of this second copy, the record in configuration file changes to <A2.dll, NO>.
And, configuration file is set, can reduce and copy the unnecessary copy of plug-in unit.Concrete example.Application program when front opening three windows of need to this plug-in unit supporting, therefore in configuration file, be recorded as <A.dll, YES>, <A1.dll, YES>, <A2.dll, YES>.In the time that closing application program falls second window, the record in configuration file changes to <A.dll, YES>, <A1.dll, NO>, <A2.dll, YES>.Then,, in the time that application program need to be opened a window of need to this plug-in unit supporting again, can first detect whether have the plug-in unit not used in current configuration file.In the time detecting that A1.dll is not used, directly call this A1.dll make up-to-date open need to this plug-in unit support window can normally show, and without the 3rd the copy A3.dll that obtains plug-in unit.
Certainly, in practice, also can not that the record in configuration file does not change to use by the copy of the corresponding plug-in unit of window of closing, but the copy of this corresponding plug-in unit of window of closing corresponding record in configuration file is deleted, and this plug-in unit is deleted.Concrete example, application program when front opening three windows of need to this plug-in unit supporting, therefore in configuration file, be recorded as <A.dll, YES>, <A1.dll, YES>, <A2.dll, YES>.In the time that closing application program falls second window, the record in configuration file changes to <A.dll, YES>, <A2.dll, YES>, deletes <A1.dll, YES>; Also delete the plug-in unit copy A1.dll in computing machine simultaneously.In the time that subsequent applications program need to be opened a window of need to this plug-in unit supporting again, again obtain again the copy of this plug-in unit, and be A3.dll by the name change of the copy of this plug-in unit, in configuration file, add and record <A3.dll simultaneously, NO>, and in the time that this window is opened, this being recorded to <A3.dll, NO> changes to <A3.dll, YES>.Like this, the plug-in unit that can avoid not using takies calculator memory.Certainly, in practice, the title of this plug-in unit can not be also to change to A3.dll, because the plug-in unit A1.dll in computing machine is deleted, therefore the title of this plug-in unit also can change to A1.dll or other, as long as the title of existing plug-in unit repeats in discord computing machine.
In the present embodiment, no matter be plug-in unit or the copy of this plug-in unit, all will be after registering, just can make application program open need to this plug-in unit or when the window of the copy support of this plug-in unit this window can normally show.And that the method for registered plug-ins has is multiple, preferably, in the step 202 of the present embodiment, described configuration file also records the store path of the copy of described plug-in unit; And, in registering the copy of described plug-in unit, the step 205 of the present embodiment specifically comprises: create autoexec; In described configuration file, obtain the store path of the copy of described plug-in unit, and described store path is added in described autoexec; Described autoexec is registered the copy of described plug-in unit.
Concrete example, in configuration file, record <A.dll, d: A.dll, YES>, <A1.dll, d: A.1dll, NO>, wherein d: A.dll and d: A1.dll be respectively the store path of plug-in unit A.dll and A1.dll.Certainly,, in practice, the store path of these two plug-in units also can be different.In the time that A.1dll plug-in unit is registered, create autoexec, and the store path d: A1.dll of this plug-in unit is added in this autoexec, so that this autoexec can be registered this plug-in unit A1.dll.
In practice, in the time getting other newly-increased copies of this plug-in unit, in configuration file, record after title, store path and the use information of this newly-increased copy, also can be by the store path of this newly-increased copy is added in described autoexec, so that this autoexec is registered this newly-increased copy.Like this, adopt same autoexec to register the copy of this plug-in unit and this plug-in unit, simple to operation.Certainly, in practice, also can separately create new autoexec this newly-increased copy is registered, this is not restricted.
In embodiment, in the time that application program need be opened multiple window that all needs this plug-in unit support, computing machine obtains multiple copies of this plug-in unit above, and to make each plug-in unit corresponding one by one with each window, each plug-in unit is for supporting the normal demonstration of the window corresponding with it.In practice, have several different methods to this plug-in unit and and its corresponding window between relation manage.Below plug-in loading method in the embodiment of the present invention is described.Refer to Fig. 3, in an alternative embodiment of the invention, plug-in loading method comprises:
301, obtain the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
The method of the embodiment of the present invention can be used in multiple application program, for example the application program of HTML application program or other form web pages.In the present embodiment, the plug-in unit of single routine pattern refers to the plug-in unit that only has an object of being responsible for playing up, the same object of each example of this plug-in unit.For example, the plug-in unit of the routine pattern of list in the present embodiment can be PPAPI plug-in unit or ActiveX plug-in unit.Certainly, above are only and illustrate, be not restricted.Should be noted, each plug-in unit might not be applicable to all application programs, has part plug-in unit to be only applicable to certain applications program.For example, PPAPI plug-in unit is applicable to chrome browser, and ActiveX plug-in unit is applicable to IE browser.
Whether 302, detect described plug-in unit is used;
303, if not, call described plug-in unit;
304, if so, obtain the copy of described plug-in unit;
When application program open one need plug-in unit support the page time, computing machine can move this plug-in unit, to guarantee the normal demonstration of this page.When application program need be opened second page of need to this plug-in unit supporting, because this plug-in unit is single routine pattern, normally display page of this second page.In the present embodiment, support this second page normally to show by obtaining the copy of this plug-in unit.Therefore,, before judging whether to obtain the copy of this plug-in unit, first detect this plug-in unit and whether used.If also do not used, can directly call this plug-in unit.If used, copy this plug-in unit, to obtain the copy of this plug-in unit.
305, change the title of the copy of described plug-in unit, make the title of the copy of described plug-in unit differ from the title of other plug-in units;
Described plug-in unit is used in the situation that, application program has been opened second window of need to this plug-in unit supporting.And the copy of plug-in unit for make this second need to this plug-in unit support window normally show.Application program need be learnt the plug-in unit that this application program is called by the title of plug-in unit, if the title of the copy of plug-in unit and this plug-in unit is the same, application program cannot be confirmed whether that the copy that has called this plug-in unit supports this second window.Therefore, need to change the title of the copy of this plug-in unit, and the title of this copy differs from the title of other plug-in units.Concrete example can add numeral after the title of the copy at this plug-in unit, makes the title of the copy of this plug-in unit differ from the title of this plug-in unit.Certainly, also can revise by additive method the title of part of plug-in unit, foregoing description only, for for example, is not restricted.
306, register the copy of described plug-in unit;
For making application program can identify the copy of this plug-in unit, can normally move the copy of this plug-in unit, need first the copy of this plug-in unit to be registered.Registered plug-ins has several different methods.For example,, can register this plug-in unit by this script by loading the copy of this plug-in unit with js language or other scripts in HTML application program.Certainly, foregoing description only, for for example, is not restricted.
307, record the corresponding relation of the window of each plug-in unit and the described plug-in unit of application;
Concrete example, application program has been opened n+1 window that needs plug-in unit A.dll to support, and gets n the copy of plug-in unit A.dll, and wherein the name change of n copy is An.dll, and the 1st window be designated as Wnd, and all the other n window is designated as respectively Wndn.Application records the mapping of this n+1 window and this n+1 plug-in unit, be specially { < Wnd, A.dll >, < Wnd1, A1.dll >, ... < Wndn, An.dll > }.Like this, the plug-in unit can be conveniently each window and this window being used manages.Certainly, above-mentioned is only for example to the description of corresponding relation, is not restricted.
308, receive the steering order to described plug-in unit;
Concrete example, application program receive will be in window Wnd displaying video, and in window Wnd1, suspend these two instructions of video of current broadcasting.Certainly, above-mentioned is only for example to the description of instruction, is not restricted.
309, in the window corresponding with described plug-in unit, carry out described plug-in unit according to described steering order according to described corresponding relation.
Application program is the corresponding relation with the window of the described plug-in unit of application according to recorded each plug-in unit, determines the corresponding plug-in unit of each window in the steering order receiving, and according to this this plug-in unit of steering order control.Concrete example, application program receives first instruction for displaying video in window Wnd, and second instruction is the video that suspends current broadcasting in window Wnd1.Application program determines that according to this corresponding relation the corresponding plug-in unit of window Wnd is A.dll, and show according to the application programming interface of the displaying video of this first instruction calls plug-in unit A.dll (API, Application Programming Interface).Application program determines that according to this corresponding relation the corresponding plug-in unit of window Wnd1 is A1.dll, and suspends demonstration according to the API of second instruction calls plug-in unit A1.dll.Certainly, foregoing description only, for for example, is not restricted.
In the present embodiment, by setting up the corresponding relation of window of each plug-in unit and this plug-in unit of application, and according to this relation, each plug-in unit is managed, simple to operation.It should be noted that, the method in embodiment illustrated in fig. 3 can with embodiment illustrated in fig. 2 in method be combined with.
For ease of understanding, with a practical application scene, the present embodiment air navigation aid is described below.
The chrome browser of GOOGLE will be opened the window (hereinafter to be referred as first window) that first plug-in unit A.dll that needs a routine pattern of list supports.Chrome browser obtains the title A.dll of this plug-in unit, and creates configuration file, wherein in this configuration file, records <A.dll, d: A.dll, NO>.Chrome browser creates an autoexec, and d: A.dll is added in this autoexec, so that this autoexec is registered this plug-in unit A.dll.Plug-in unit A.dll completes after registration, and chrome browser calls A.dll, to guarantee that this first window normally shows, and the record in configuration file is changed to <A.dll, d: A.dll, YES>.
Chrome browser need be opened second window (hereinafter to be referred as Second Window) that needs plug-in unit A.dll to support.Chrome browser obtains the title A.dll of this plug-in unit, reads configuration file and knows that this plug-in unit is used, obtains the copy of this plug-in unit and is stored in d dish, and being A1.dll by the name change of this copy; Simultaneously in configuration file, add and record <A1.dll, d: A1.dll, NO>.Chrome browser is this store path d: A1.dll, and adds in autoexec, so that this autoexec is registered this plug-in unit A1.dll.Plug-in unit A1.dll completes after registration, and chrome browser calls A1.dll, to guarantee that this Second Window normally shows, and the record in configuration file is changed to <A1.dll, d: A1.dll, YES>.
In addition, first window is designated as Wnd by chrome browser, and Second Window is designated as to Wnd1, and record corresponding relation { < Wnd, A.dll >, < Wnd1, A1.dll > }.In the time that chrome browser receives instruction suspend the video of current broadcasting in window Wnd1, chrome browser determines that according to this corresponding relation the corresponding plug-in unit of window Wnd1 is A1.dll, and suspends demonstration according to the API of this instruction calls plug-in unit A1.dll.
Above the plug-in loading method in the embodiment of the present invention is described, below the plug-in unit load-on module in the embodiment of the present invention is described, refer to Fig. 4, in one embodiment of the present of invention, plug-in unit load-on module 400 comprises:
The first acquiring unit 401, for obtaining the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
Whether detecting unit 402, used for detection of described plug-in unit;
Second acquisition unit 403, when detecting that when described detecting unit described plug-in unit has been used, obtains the copy of described plug-in unit;
Changing unit 404, for changing the title of copy of described plug-in unit, makes the title of the copy of described plug-in unit differ from the title of other plug-in units;
Registering unit 405, for registering the copy of described plug-in unit.
In the embodiment of the present invention, plug-in unit load-on module is by obtaining the singly copy of the plug-in unit of routine pattern, and the name change of this copy is become to differ from registration again after the title of other plug-in units, like this, because plug-in unit and each copy thereof of the routine pattern of this list have different names, can move plug-in unit and each copy thereof of the routine pattern of this list simultaneously, make each example to one in plug-in unit that should single routine pattern and each copy thereof, and then can realize the normal plug-in unit that uses the routine pattern of multiple lists on the same page of application program, and without rewriting plug-in unit, only revise the mode of calling plug-in unit, method is simple.
In embodiment, whether plug-in unit load-on module need detect plug-in unit and be used above.In practice, whether plug-in unit load-on module can detect in several ways plug-in unit and be used, and below plug-in unit load-on module in the embodiment of the present invention is described.Refer to Fig. 5, in an alternative embodiment of the invention, plug-in unit load-on module 500 comprises:
The first acquiring unit 501, for obtaining the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
Whether detecting unit 502, used for detection of described plug-in unit;
Second acquisition unit 503, when detecting that when described detecting unit described plug-in unit has been used, obtains the copy of described plug-in unit;
Changing unit 504, for changing the title of copy of described plug-in unit, makes the title of the copy of described plug-in unit differ from the title of other plug-in units;
Registering unit 505, for registering the copy of described plug-in unit.
Further, plug-in unit load-on module also comprises:
The first creating unit 506, for creating configuration file, described configuration file records title and the use information of described plug-in unit;
Described detecting unit 502 specifically for the use information that reads described plug-in unit in described configuration file to know whether described plug-in unit is used.
In the present embodiment, record the use information of plug-in unit by creating configuration text, can facilitate application program to detect this plug-in unit and whether be used.
Preferably, the plug-in unit load-on module 500 of the present embodiment also comprises:
The first adding device 507, for being added into described configuration file by title and use information after the copy change of described plug-in unit.Like this, can manage all copies of this plug-in unit and this plug-in unit by configuration file, simple to operation.
Further, in described configuration file, preferably also record the store path of the copy of described plug-in unit;
Described plug-in unit load-on module 500 also comprises:
The second creating unit 508, for creating autoexec;
The second adding device 509, for obtain the store path of the copy of described plug-in unit in described configuration file, and adds described store path in described autoexec to;
Described autoexec is also for registering described plug-in unit.
Like this, adopt autoexec to register the copy of this plug-in unit, simple to operation.
In embodiment, in the time that application program need be opened multiple window that all needs this plug-in unit support, computing machine obtains multiple copies of this plug-in unit above, and to make each plug-in unit corresponding one by one with each window, each plug-in unit is for supporting the normal demonstration of the window corresponding with it.In practice, have several different methods to this plug-in unit and and its corresponding window between relation manage.Below plug-in unit load-on module in the embodiment of the present invention is described.Refer to Fig. 6, in an alternative embodiment of the invention, plug-in unit load-on module 600 comprises:
The first acquiring unit 601, for obtaining the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
Whether detecting unit 602, used for detection of described plug-in unit;
Second acquisition unit 603, when detecting that when described detecting unit described plug-in unit has been used, obtains the copy of described plug-in unit;
Changing unit 604, for changing the title of copy of described plug-in unit, makes the title of the copy of described plug-in unit differ from the title of other plug-in units;
Registering unit 605, for registering the copy of described plug-in unit.
Further, plug-in unit load-on module 600 also comprises:
Record cell 606, for recording the corresponding relation of window of each plug-in unit and the described plug-in unit of application;
Receiving element 607, for receiving the steering order to described plug-in unit;
Performance element 608, for carrying out described plug-in unit at the window corresponding with described plug-in unit according to described steering order according to described corresponding relation.
In the present embodiment, by setting up the corresponding relation of window of each plug-in unit and this plug-in unit of application, and according to this relation, each plug-in unit is managed, simple to operation.It should be noted that, the each unit in embodiment illustrated in fig. 6 can with embodiment illustrated in fig. 5 in each unit be combined with.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a plug-in loading method, is characterized in that, comprising:
Obtain the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
Detect described plug-in unit and whether used, if so, obtain the copy of described plug-in unit;
Change the title of the copy of described plug-in unit, make the title of the copy of described plug-in unit differ from the title of other plug-in units;
Register the copy of described plug-in unit.
2. plug-in loading method according to claim 1, is characterized in that, described method also comprises:
Create configuration file, described configuration file records title and the use information of described plug-in unit;
Whether the described plug-in unit of described detection is used specifically and is comprised:
Read the use information of described plug-in unit in described configuration file to know whether described plug-in unit is used.
3. plug-in loading method according to claim 2, is characterized in that, after the title of the copy of the described plug-in unit of described change, also comprises:
Title and use information after the copy change of described plug-in unit are added in described configuration file.
4. plug-in loading method according to claim 3, is characterized in that,
Described configuration file also records the store path of the copy of described plug-in unit;
The copy of the described plug-in unit of described registration specifically comprises:
Create autoexec;
In described configuration file, obtain the store path of the copy of described plug-in unit, and described store path is added in described autoexec;
Described autoexec is registered the copy of described plug-in unit.
5. plug-in loading method according to claim 1, is characterized in that, described method also comprises:
Record the corresponding relation of the window of each plug-in unit and the described plug-in unit of application;
Receive the steering order to described plug-in unit;
In the window corresponding with described plug-in unit, carry out described plug-in unit according to described steering order according to described corresponding relation.
6. a plug-in unit load-on module, is characterized in that, comprising:
The first acquiring unit, for obtaining the title of plug-in unit, wherein said plug-in unit is the plug-in unit of single routine pattern;
Whether detecting unit, used for detection of described plug-in unit;
Second acquisition unit, when detecting that when described detecting unit described plug-in unit has been used, obtains the copy of described plug-in unit;
Changing unit, for changing the title of copy of described plug-in unit, makes the title of the copy of described plug-in unit differ from the title of other plug-in units;
Registering unit, for registering the copy of described plug-in unit.
7. plug-in unit load-on module according to claim 6, is characterized in that, described plug-in unit load-on module also comprises:
The first creating unit, for creating configuration file, described configuration file records title and the use information of described plug-in unit;
Described detecting unit specifically for the use information that reads described plug-in unit in described configuration file to know whether described plug-in unit is used.
8. plug-in unit load-on module according to claim 7, is characterized in that, described plug-in unit load-on module also comprises:
The first adding device, for being added into described configuration file by title and use information after the copy change of described plug-in unit.
9. plug-in unit load-on module according to claim 8, is characterized in that, also records the store path of the copy of described plug-in unit in described configuration file;
Described plug-in unit load-on module also comprises the second creating unit, for creating autoexec;
The second adding device, for obtain the store path of the copy of described plug-in unit in described configuration file, and adds described store path in described autoexec to;
Described autoexec is also for registering described plug-in unit.
10. plug-in unit load-on module according to claim 6, is characterized in that, described plug-in unit load-on module also comprises:
Record cell, for recording the corresponding relation of window of each plug-in unit and the described plug-in unit of application;
Receiving element, for receiving the steering order to described plug-in unit;
Performance element, for carrying out described plug-in unit at the window corresponding with described plug-in unit according to described steering order according to described corresponding relation.
CN201410172968.2A 2014-04-25 2014-04-25 Plug-in loading method and plug-in loading module Pending CN103914327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410172968.2A CN103914327A (en) 2014-04-25 2014-04-25 Plug-in loading method and plug-in loading module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410172968.2A CN103914327A (en) 2014-04-25 2014-04-25 Plug-in loading method and plug-in loading module

Publications (1)

Publication Number Publication Date
CN103914327A true CN103914327A (en) 2014-07-09

Family

ID=51040032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410172968.2A Pending CN103914327A (en) 2014-04-25 2014-04-25 Plug-in loading method and plug-in loading module

Country Status (1)

Country Link
CN (1) CN103914327A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189490A (en) * 2018-07-03 2019-01-11 武汉斗鱼网络科技有限公司 A kind of configuration method and relevant device of module

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001082621A1 (en) * 2000-04-20 2001-11-01 Yahoo! Inc. Media and information display systems and methods
CN101493837A (en) * 2009-02-25 2009-07-29 腾讯科技(深圳)有限公司 Network video playing method in multi-page browser and processing device
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN102598013A (en) * 2009-11-09 2012-07-18 西门子公司 Method and system for resolving a naming conflict
US20130067474A1 (en) * 2011-09-12 2013-03-14 Microsoft Corporation Language independent application object
CN103064680A (en) * 2012-12-25 2013-04-24 北京奇虎科技有限公司 Plug-in playing method and device in browser
CN103198113A (en) * 2013-03-29 2013-07-10 华为技术有限公司 Processing method and processing device of web pages

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001082621A1 (en) * 2000-04-20 2001-11-01 Yahoo! Inc. Media and information display systems and methods
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN101493837A (en) * 2009-02-25 2009-07-29 腾讯科技(深圳)有限公司 Network video playing method in multi-page browser and processing device
CN102598013A (en) * 2009-11-09 2012-07-18 西门子公司 Method and system for resolving a naming conflict
US20130067474A1 (en) * 2011-09-12 2013-03-14 Microsoft Corporation Language independent application object
CN103064680A (en) * 2012-12-25 2013-04-24 北京奇虎科技有限公司 Plug-in playing method and device in browser
CN103198113A (en) * 2013-03-29 2013-07-10 华为技术有限公司 Processing method and processing device of web pages

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LFF: "微信陌陌多开教程", 《HTTP://WWW.PC6.COM/EDU/62106.HTML》 *
TIANLEBEST: "SWFObject 2.1最新版调用语法", 《HTTP://BLOG.CSDN.NET/TIANLEBEST/ARTICLE/DETAILS/5148244》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189490A (en) * 2018-07-03 2019-01-11 武汉斗鱼网络科技有限公司 A kind of configuration method and relevant device of module

Similar Documents

Publication Publication Date Title
US9606725B2 (en) Collaborative overlay of user interface elements rendered on the display of a computing device
US10191838B2 (en) Method and device for checking influence of deleting cache file, and mobile terminal
US20140245286A1 (en) Application managing system and method using same
US20080215997A1 (en) Webpage block tracking gadget
US20180329725A1 (en) Method and apparatus for loading application
CN107133165B (en) Browser compatibility detection method and device
CN105095504A (en) Learning habit based learning content recommendation method, apparatus and system
CN103150506A (en) Method and device for detecting rogue program
CN105512294B (en) Multimedia file update prompting method and device
US9710289B2 (en) Rapid configuration of software
US20130036379A1 (en) Computing device, storage medium and method for managing software menus using the computing device
CN103440107A (en) Method and device for processing touch operation of electronic device
US9087014B1 (en) Tape backup and restore in a disk storage environment
US20140365724A1 (en) System and method for converting disk partition format
CN105787051A (en) Analysis method and device based on metadata model
CN108874379B (en) Page processing method and device
WO2016155387A1 (en) Plug-in management method and device based on mobile terminal
CN106484779B (en) File operation method and device
US20190080016A1 (en) Systems and methods for updating data pipelines
CN111639018B (en) Memory leakage detection method and device
US11593130B2 (en) Systems and methods for customizing a user workspace environment using action sequence analysis
US20150112946A1 (en) Computing device and data recovery method for distributed file system
US20160313880A1 (en) Persistent tracking of a work space arrangement of a crm application through a web browser
CN103064767A (en) Driver backup method, driver backup device, driver restoring method and driver restoring device
US9009430B2 (en) Restoration of data from a backup storage volume

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140709