技术领域technical field
本发明涉及网络应用领域,具体涉及一种浏览器中插件的播放方法及装置。The invention relates to the field of network applications, in particular to a method and device for playing a plug-in in a browser.
背景技术Background technique
在打开浏览器时浏览器的页面进程会创建活动对象,而后进行页面的各项操作,活动对象通常指浏览器的插件,例如ActiveX插件。When the browser is opened, the page process of the browser will create an active object, and then perform various operations on the page. The active object usually refers to a browser plug-in, such as an ActiveX plug-in.
因为ActiveX插件需要嵌入到网页中,所以插件和页面会在同一个进程下运行。如果该插件出现卡死或者崩溃后,会导致整个网页退出,影响了页面操作的稳定性。当页面进程出现卡死或者崩溃后,会导致页面中的ActiveX插件退出,影响了ActiveX插件的稳定性。Because the ActiveX plug-in needs to be embedded in the web page, the plug-in and the page will run under the same process. If the plug-in freezes or crashes, it will cause the entire web page to exit, affecting the stability of the page operation. When the page process freezes or crashes, the ActiveX plug-in in the page will exit, affecting the stability of the ActiveX plug-in.
并且,由于ActiveX插件在网页的位置相对比较固定,用户无法动态调整ActiveX插件的大小和显示位置。Moreover, since the position of the ActiveX plug-in on the webpage is relatively fixed, the user cannot dynamically adjust the size and display position of the ActiveX plug-in.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的浏览器中插件的播放装置和相应的浏览器中插件的播放方法。In view of the above problems, the present invention is proposed to provide an apparatus for playing plug-ins in a browser and a corresponding method for playing plug-ins in a browser, which overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种浏览器中插件的播放方法,包括:According to one aspect of the present invention, a method for playing a plug-in in a browser is provided, including:
在浏览器的页面进程加载并激活第一插件时,创建与页面进程不同的独立进程,在独立进程中加载并激活第二插件,其中,所述第二插件复制所述第一插件的信息;When the page process of the browser loads and activates the first plug-in, an independent process different from the page process is created, and a second plug-in is loaded and activated in the independent process, wherein the second plug-in copies information of the first plug-in;
在独立进程中,对所述第二插件的信息进行计算,获取计算结果;In an independent process, calculate the information of the second plug-in, and obtain a calculation result;
根据所述计算结果在播放窗口中对所述第二插件进行绘制播放。Draw and play the second plug-in in the play window according to the calculation result.
可选地,所述第二插件复制所述第一插件的信息,包括:Optionally, the second plug-in copies the information of the first plug-in, including:
在页面进程中为所述第一插件生成第一控件对象;generating a first control object for the first plug-in in a page process;
在独立进程中为所述第二插件生成第二控件对象;generating a second control object for the second plug-in in a separate process;
利用所述第二控件对象和所述第一控件对象进行交互通信,获取所述第一插件的信息;Using the second control object to communicate interactively with the first control object to obtain information about the first plug-in;
利用所述第二控件对象将获取的所述第一插件的信息发送至所述第二插件。Send the acquired information of the first plug-in to the second plug-in by using the second control object.
可选地,所述第一插件和所述第一控件对象间通过指针进行相互操作,其中,该指针能够调用多个标准接口;以及Optionally, the first plug-in and the first control object interoperate through a pointer, wherein the pointer can call a plurality of standard interfaces; and
所述第二插件和所述第二控件对象间通过同类型的指针进行相互操作。The second plug-in and the second control object perform mutual operations through pointers of the same type.
可选地,利用所述第二控件对象和所述第一控件对象进行交互通信,包括:Optionally, using the second control object to perform interactive communication with the first control object includes:
在页面进程中,创建与所述第一控件对象关联的第一窗口;In the page process, create a first window associated with the first control object;
在独立进程中,创建与所述第二控件对象关联的第二窗口;In an independent process, creating a second window associated with the second control object;
利用所述第一窗口和所述第二窗口进行交互通信。Interactive communication is performed using the first window and the second window.
可选地,交互通信的信息包括下列至少之一:Optionally, the interactive communication information includes at least one of the following:
插件的大小、页面进程中的线程的焦点、页面进程的线程的刷新操作、脚本的执行。The size of the plug-in, the focus of the thread in the page process, the refresh operation of the thread of the page process, the execution of the script.
可选地,根据所述计算结果在播放窗口中对所述第二插件进行绘制播放,包括:Optionally, drawing and playing the second plug-in in the playback window according to the calculation result includes:
当页面进程不存在所述第一插件的播放窗口时,利用所述独立进程新建播放窗口;When the page process does not have the playback window of the first plug-in, use the independent process to create a new playback window;
根据所述独立进程的定时器,定时获取所述计算结果;Acquiring the calculation result regularly according to the timer of the independent process;
根据所述计算结果在新建播放窗口中对所述第二插件进行绘制播放。Draw and play the second plug-in in the newly created play window according to the calculation result.
可选地,根据所述计算结果在播放窗口中对所述第二插件进行绘制播放,包括:Optionally, drawing and playing the second plug-in in the playback window according to the calculation result includes:
当页面进程中存在所述第一插件的原播放窗口时,利用所述独立进程新建播放窗口,并将新建的播放窗口设置为原播放窗口的父窗口;When the original playback window of the first plug-in exists in the page process, utilize the independent process to create a new playback window, and set the new playback window as the parent window of the original playback window;
根据所述计算结果在新建的播放窗口中对所述第二插件进行绘制播放。Draw and play the second plug-in in the newly created play window according to the calculation result.
可选地,所述新建的播放窗口能够在浏览器上进行移动或缩放。Optionally, the newly created playback window can be moved or zoomed on the browser.
可选地,上述方法还包括:Optionally, the above method also includes:
页面进程发起获取播放窗口的请求时,独立进程告知页面进程无播放窗口。When the page process initiates a request to acquire the playback window, the independent process informs the page process that there is no playback window.
可选地,所述第一插件和/或所述第二插件为ActiveX插件。Optionally, the first plug-in and/or the second plug-in are ActiveX plug-ins.
依据本发明的另一个方面,提供了一种浏览器中插件的播放装置,包括:According to another aspect of the present invention, a plug-in playback device in a browser is provided, including:
创建模块,配置为在浏览器的页面进程加载并激活第一插件时,创建与页面进程不同的独立进程,在独立进程中加载并激活第二插件,其中,所述第二插件复制所述第一插件的信息;Create a module configured to create an independent process different from the page process when the browser's page process loads and activates the first plug-in, and load and activate the second plug-in in the independent process, wherein the second plug-in copies the first plug-in a plug-in information;
计算模块,配置为在独立进程中,对所述第二插件的信息进行计算,获取计算结果;A calculation module, configured to calculate the information of the second plug-in in an independent process, and obtain a calculation result;
播放模块,配置为根据所述计算结果在播放窗口中对所述第二插件进行绘制播放。The playing module is configured to draw and play the second plug-in in the playing window according to the calculation result.
可选地,所述创建模块还配置为:Optionally, the creation module is also configured to:
在页面进程中为所述第一插件生成第一控件对象;generating a first control object for the first plug-in in a page process;
在独立进程中为所述第二插件生成第二控件对象;generating a second control object for the second plug-in in a separate process;
利用所述第二控件对象和所述第一控件对象进行交互通信,获取所述第一插件的信息;Using the second control object to communicate interactively with the first control object to obtain information about the first plug-in;
利用所述第二控件对象将获取的所述第一插件的信息发送至所述第二插件。Send the acquired information of the first plug-in to the second plug-in by using the second control object.
可选地,其中Optionally, where
所述第一插件和所述第一控件对象间通过指针进行相互操作,其中,该指针能够调用多个标准接口;以及The first plug-in and the first control object interoperate through a pointer, wherein the pointer can call a plurality of standard interfaces; and
所述第二插件和所述第二控件对象间通过同类型的指针进行相互操作。The second plug-in and the second control object perform mutual operations through pointers of the same type.
可选地,所述创建模块还配置为:Optionally, the creation module is also configured to:
在页面进程中,创建与所述第一控件对象关联的第一窗口;In the page process, create a first window associated with the first control object;
在独立进程中,创建与所述第二控件对象关联的第二窗口;In an independent process, creating a second window associated with the second control object;
利用所述第一窗口和所述第二窗口进行交互通信。Interactive communication is performed using the first window and the second window.
可选地,交互通信的信息包括下列至少之一:Optionally, the interactive communication information includes at least one of the following:
插件的大小、页面进程中的线程的焦点、页面进程的线程的刷新操作、脚本的执行。The size of the plug-in, the focus of the thread in the page process, the refresh operation of the thread of the page process, the execution of the script.
可选地,所述播放模块还配置为:Optionally, the playback module is also configured to:
当页面进程不存在所述第一插件的播放窗口时,利用所述独立进程新建播放窗口;When the page process does not have the playback window of the first plug-in, use the independent process to create a new playback window;
根据所述独立进程的定时器,定时获取所述计算结果;Acquiring the calculation result regularly according to the timer of the independent process;
根据所述计算结果在新建播放窗口中对所述第二插件进行绘制播放。Draw and play the second plug-in in the newly created play window according to the calculation result.
可选地,所述播放模块还配置为:Optionally, the playback module is also configured to:
当页面进程中存在所述第一插件的原播放窗口时,利用所述独立进程新建播放窗口,并将新建的播放窗口设置为原播放窗口的父窗口;When the original playback window of the first plug-in exists in the page process, utilize the independent process to create a new playback window, and set the new playback window as the parent window of the original playback window;
根据所述计算结果在新建的播放窗口中对所述第二插件进行绘制播放。Draw and play the second plug-in in the newly created play window according to the calculation result.
可选地,所述新建的播放窗口能够在浏览器上进行移动或缩放处理。Optionally, the newly created playback window can be moved or zoomed on the browser.
可选地,上述装置还包括告知模块,配置为接收到页面进程发起获取播放窗口的请求时,利用独立进程告知页面进程无播放窗口。Optionally, the above device further includes a notification module configured to use an independent process to notify the page process that there is no playback window when receiving a request from the page process to acquire the playback window.
可选地,所述第一插件和/或所述第二插件为ActiveX插件。Optionally, the first plug-in and/or the second plug-in are ActiveX plug-ins.
在本发明实施例中,在浏览器的页面进程中加载并激活第一插件,但是并不对第一插件进行绘制播放,而是创建一个与页面进程不同的独立进程,并在独立进程中加载并激活第二插件,利用第二插件实现对第一插件信息的复制。由于第一插件和第二插件的信息是一致的,因此,对第二插件的信息进行计算与对第一插件的信息进行计算所取得的计算结果是一致的,则根据计算结果在播放窗口中对第二插件进行绘制播放所播放的内容也应该是一致的。但是,由于第二插件设置在独立进程中,与独立进程共用一个进程,与页面进程分别适用两个不同的进程,因此,第二插件的运行和页面进程的运行是独立的,一方发生问题并不能够影响另一方的稳定性。如果第二插件出现卡死或者崩溃后,不会导致整个网页退出,能够提高页面操作的稳定性,同理,当页面进程出现卡死或者崩溃后,也不会导致页面中的第二插件退出,提高插件运行的稳定性。由此可见,本发明实施例提供的浏览器中插件的播放方法能够在不影响播放效果的前提下,提高浏览器运行的稳定性。In the embodiment of the present invention, the first plug-in is loaded and activated in the page process of the browser, but it does not draw and play the first plug-in, but creates an independent process different from the page process, and loads and activates the first plug-in in the independent process. The second plug-in is activated, and the information of the first plug-in is copied by using the second plug-in. Since the information of the first plug-in and the second plug-in are consistent, the calculation result obtained by calculating the information of the second plug-in and the information of the first plug-in is consistent, then according to the calculation result in the playback window The content played by drawing and playing the second plug-in should also be consistent. However, since the second plug-in is set in an independent process, shares a process with the independent process, and applies to two different processes respectively with the page process, therefore, the operation of the second plug-in and the operation of the page process are independent. cannot affect the stability of the other party. If the second plug-in is stuck or crashes, it will not cause the entire web page to exit, which can improve the stability of the page operation. Similarly, when the page process is stuck or crashed, it will not cause the second plug-in in the page to exit , to improve the stability of the plug-in operation. It can be seen that the plug-in playback method in the browser provided by the embodiment of the present invention can improve the stability of the browser operation without affecting the playback effect.
进一步,由于第一插件并未被真正执行,而第二插件是真实的执行主体,因此,可以称第一插件为代理对象,而第二插件为活动对象。本发明实施例通过在页面进程中运行代理对象,而在独立进程中运行活动对象,使得真实的浏览器插件,例如真实的ActiveX插件与页面进程分离,从而使浏览器插件出现问题时不会影响嵌入浏览器插件的浏览器进程,即浏览器插件出现问题时不会影响页面进程,从而提高了浏览器的稳定性。同时,当浏览器插件出现病毒等安全性的问题时,由于浏览器插件与页面进程分离,不会影响页面进程的运行,从而也提高了浏览器的安全性。Further, since the first plug-in is not actually executed, but the second plug-in is a real execution subject, the first plug-in can be called a proxy object, and the second plug-in is an active object. The embodiment of the present invention runs the proxy object in the page process, and runs the active object in an independent process, so that the real browser plug-in, such as the real ActiveX plug-in, is separated from the page process, so that when a problem occurs in the browser plug-in, it will not affect the browser plug-in. The browser process embedded in the browser plug-in, that is, the browser plug-in will not affect the page process when there is a problem, thereby improving the stability of the browser. At the same time, when a security problem such as a virus occurs in the browser plug-in, since the browser plug-in is separated from the page process, it will not affect the operation of the page process, thereby improving the security of the browser.
另外,当浏览器插件出现问题时,可以对运行浏览器插件的对象线程执行挂起、降低权限或终止等操作,从而使得独立进程可以对浏览器插件的内存占用和CPU占用等系统资源做定向的分配,实现更好的资源分配回收方式,更合理的调度计算机资源,终止进程使得进程退出也可以让资源回收更彻底。In addition, when there is a problem with the browser plug-in, operations such as suspending, reducing privileges, or terminating the object thread running the browser plug-in can be performed, so that the independent process can target system resources such as the memory usage and CPU usage of the browser plug-in To achieve a better resource allocation and recovery method, more reasonable scheduling of computer resources, termination of the process so that the process exits can also make resource recovery more thorough.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的浏览器中插件的播放方法的处理流程图;Fig. 1 shows the processing flowchart of the playback method of the plug-in in the browser according to one embodiment of the present invention;
图2示出了根据本发明一个实施例的页面进程和独立进程间进行通信的示意图;Fig. 2 shows a schematic diagram of communication between a page process and an independent process according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的页面进程中的flash插件无播放窗口时的flash插件播放的示意图;Fig. 3 shows a schematic diagram of the flash plug-in playing when the flash plug-in in the page process has no playback window according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的页面进程中的flash插件有播放窗口时的flash插件播放的示意图;以及Figure 4 shows a schematic diagram of the flash plug-in playing when the flash plug-in in the page process has a play window according to an embodiment of the present invention; and
图5示出了根据本发明一个实施例的浏览器中插件的播放装置的结构示意图。Fig. 5 shows a schematic structural diagram of a playback device for a plug-in in a browser according to an embodiment of the present invention.
具体实施方式detailed description
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
为解决上述至少一个技术问题,本发明实施例提供了一种浏览器中插件的播放方法,用于实现插件与页面进程的独立操作,保证在其中任意之一发生问题时不会影响另外一个的稳定性。图1示出了根据本发明一个实施例的浏览器中插件的播放方法的处理流程图。参见图1,浏览器中插件的播放方法包括步骤S102至步骤S106。各步骤的具体说明如下。In order to solve at least one of the above technical problems, an embodiment of the present invention provides a plug-in playback method in a browser, which is used to realize the independent operation of the plug-in and the page process, and ensure that when any one of them has a problem, it will not affect the other one. stability. Fig. 1 shows a processing flowchart of a method for playing a plug-in in a browser according to an embodiment of the present invention. Referring to FIG. 1 , the method for playing a plug-in in a browser includes steps S102 to S106. The specific description of each step is as follows.
步骤S102、在浏览器的页面进程加载并激活第一插件时,创建与页面进程不同的独立进程,在独立进程中加载并激活第二插件,其中,第二插件复制第一插件的信息。Step S102, when the page process of the browser loads and activates the first plug-in, create an independent process different from the page process, load and activate the second plug-in in the independent process, wherein the second plug-in copies the information of the first plug-in.
步骤S104、在独立进程中,对第二插件的信息进行计算,获取计算结果。Step S104, in an independent process, calculate the information of the second plug-in, and obtain a calculation result.
步骤S106、根据计算结果在播放窗口中对第二插件进行绘制播放。Step S106, draw and play the second plug-in in the play window according to the calculation result.
在本发明实施例中,在浏览器的页面进程中加载并激活第一插件,但是并不对第一插件进行绘制播放,而是创建一个与页面进程不同的独立进程,并在独立进程中加载并激活第二插件,利用第二插件实现对第一插件信息的复制。由于第一插件和第二插件的信息是一致的,因此,对第二插件的信息进行计算与对第一插件的信息进行计算所取得的计算结果是一致的,则根据计算结果在播放窗口中对第二插件进行绘制播放所播放的内容也应该是一致的。但是,由于第二插件设置在独立进程中,与独立进程共用一个进程,与页面进程分别适用两个不同的进程,因此,第二插件的运行和页面进程的运行是独立的,一方发生问题并不能够影响另一方的稳定性。如果第二插件出现卡死或者崩溃后,不会导致整个网页退出,能够提高页面操作的稳定性,同理,当页面进程出现卡死或者崩溃后,也不会导致页面中的第二插件退出,提高插件运行的稳定性。由此可见,本发明实施例提供的浏览器中插件的播放方法能够在不影响播放效果的前提下,提高浏览器运行的稳定性。In the embodiment of the present invention, the first plug-in is loaded and activated in the page process of the browser, but it does not draw and play the first plug-in, but creates an independent process different from the page process, and loads and activates the first plug-in in the independent process. The second plug-in is activated, and the information of the first plug-in is copied by using the second plug-in. Since the information of the first plug-in and the second plug-in are consistent, the calculation result obtained by calculating the information of the second plug-in and the information of the first plug-in is consistent, then according to the calculation result in the playback window The content played by drawing and playing the second plug-in should also be consistent. However, since the second plug-in is set in an independent process, shares a process with the independent process, and applies to two different processes respectively with the page process, therefore, the operation of the second plug-in and the operation of the page process are independent. cannot affect the stability of the other party. If the second plug-in is stuck or crashes, it will not cause the entire web page to exit, which can improve the stability of the page operation. Similarly, when the page process is stuck or crashed, it will not cause the second plug-in in the page to exit , to improve the stability of the plug-in operation. It can be seen that the plug-in playback method in the browser provided by the embodiment of the present invention can improve the stability of the browser operation without affecting the playback effect.
进一步,由于第一插件并未被真正执行,而第二插件是真实的执行主体,因此,可以称第一插件为代理对象,而第二插件为活动对象。本发明实施例通过在页面进程中运行代理对象,而在独立进程中运行活动对象,使得真实的浏览器插件,例如真实的ActiveX插件与页面进程分离,从而使浏览器插件出现问题时不会影响嵌入浏览器插件的浏览器进程,即浏览器插件出现问题时不会影响页面进程,从而提高了浏览器的稳定性。同时,当浏览器插件出现病毒等安全性的问题时,由于浏览器插件与页面进程分离,不会影响页面进程的运行,从而也提高了浏览器的安全性。Further, since the first plug-in is not actually executed, but the second plug-in is a real execution subject, the first plug-in can be called a proxy object, and the second plug-in is an active object. The embodiment of the present invention runs the proxy object in the page process, and runs the active object in an independent process, so that the real browser plug-in, such as the real ActiveX plug-in, is separated from the page process, so that when a problem occurs in the browser plug-in, it will not affect the browser plug-in. The browser process embedded in the browser plug-in, that is, the browser plug-in will not affect the page process when there is a problem, thereby improving the stability of the browser. At the same time, when a security problem such as a virus occurs in the browser plug-in, since the browser plug-in is separated from the page process, it will not affect the operation of the page process, thereby improving the security of the browser.
另外,当浏览器插件出现问题时,可以对运行浏览器插件的对象线程执行挂起、降低权限或终止等操作,从而使得独立进程可以对浏览器插件的内存占用和CPU占用等系统资源做定向的分配,实现更好的资源分配回收方式,更合理的调度计算机资源,终止进程使得进程退出也可以让资源回收更彻底。In addition, when there is a problem with the browser plug-in, operations such as suspending, reducing privileges, or terminating the object thread running the browser plug-in can be performed, so that the independent process can target system resources such as the memory usage and CPU usage of the browser plug-in To achieve a better resource allocation and recovery method, more reasonable scheduling of computer resources, termination of the process so that the process exits can also make resource recovery more thorough.
需要说明的是,在本发明实施例中,称第一插件为代理对象,而第二插件为活动对象,体现了第一插件和第二插件的主动性不同。在实施时,本发明实施例提供的浏览器中插件的播放方法可以实现双向的通信,页面进程与独立进程并不是固定的,后续执行过程有可能会出现将独立进程中的插件分离到页面进程中进行执行的情况,此时,代理对象和活动对象角色互换,其具体的处理过程是相类似的。It should be noted that, in the embodiment of the present invention, the first plug-in is referred to as a proxy object, and the second plug-in is called an active object, reflecting that the first plug-in and the second plug-in are different in initiative. During implementation, the playback method of the plug-in in the browser provided by the embodiment of the present invention can realize two-way communication, and the page process and the independent process are not fixed, and the plug-in in the independent process may be separated into the page process in the subsequent execution process. In the case of execution, at this time, the roles of the proxy object and the active object are exchanged, and the specific processing procedures are similar.
在步骤S102中提及第二插件需要复制第一插件的信息,为保证播放效果的一致。具体的,本例提供一种优选的复制方式。首先,在页面进程中为第一插件生成第一控件对象。其次,在独立进程中为第二插件生成第二控件对象。然后,利用第二控件对象和第一控件对象进行交互通信,获取第一插件的信息,再利用第二控件对象将获取的第一插件的信息发送至第二插件。In step S102, it is mentioned that the second plug-in needs to copy the information of the first plug-in, in order to ensure the consistency of the playback effect. Specifically, this example provides a preferred replication method. First, a first control object is generated for the first plug-in in the page process. Second, a second control object is generated for the second plug-in in a separate process. Then, use the second control object to communicate interactively with the first control object to obtain the information of the first plug-in, and then use the second control object to send the obtained information of the first plug-in to the second plug-in.
由于插件和自身所对应的控件对象之间需要进行操作,因此,两者间需要有信息交互的接口。本发明实施例中,设置插件和控件对象间通过指针进行相互操作,其中,该指针能够调用多个标准接口。具体的,第一插件和第一控件对象间通过指针进行相互操作,第二插件和第二控件对象间通过同类型的指针进行相互操作。优选的,该指针可以为IUnknown指针,IUnknown指针将会调用很多标准接口,例如IOleObject、IViewObject等。Since operations need to be performed between the plug-in and its corresponding control object, there needs to be an interface for information interaction between the two. In the embodiment of the present invention, the interoperation between the setting plug-in and the control object is performed through a pointer, wherein the pointer can call multiple standard interfaces. Specifically, the first plug-in and the first control object interoperate through pointers, and the second plug-in and the second control object interoperate through pointers of the same type. Preferably, the pointer can be an IUnknown pointer, and the IUnknown pointer will call many standard interfaces, such as IOleObject, IViewObject and so on.
利用第二控件对象和第一控件对象进行交互通信时,为方便通信,可以在页面进程中创建与第一控件对象关联的第一窗口,然后在独立进程中创建与第二控件对象关联的第二窗口。随后,利用建立的第一窗口和第二窗口进行交互通信。When using the second control object to communicate interactively with the first control object, in order to facilitate communication, the first window associated with the first control object can be created in the page process, and then the first window associated with the second control object can be created in an independent process. Two windows. Subsequently, interactive communication is performed using the established first window and the second window.
实施过程中,交互通信的信息可以是插件播放所涉及的任意信息,例如,插件的大小,页面进程中的线程的焦点,页面进程的线程的刷新操作,脚本的执行等等。此处的具体信息仅仅是作为例举,对于信息本身不造成限定,通信还可以涉及到插件播放的其他信息。During the implementation process, the interactive communication information can be any information involved in plug-in playback, for example, the size of the plug-in, the focus of the thread in the page process, the refresh operation of the thread in the page process, the execution of the script and so on. The specific information here is merely an example, and does not limit the information itself, and the communication may also involve other information played by the plug-in.
步骤S106提及,根据计算结果在播放窗口中对第二插件进行绘制播放。即,在对第二插件进行播放时,可以分为两种情况,一种是页面进程中并不存在第一插件的播放窗口,另一种是页面进程存在第一插件的播放窗口。现分别对两者进行具体说明。Step S106 mentions that the second plug-in is rendered and played in the playback window according to the calculation result. That is, when playing the second plug-in, it can be divided into two situations, one is that there is no playback window of the first plug-in in the page process, and the other is that there is a playback window of the first plug-in in the page process. The two are now described in detail.
第一种情况,当页面进程不存在第一插件的播放窗口时,利用独立进程新建一个播放窗口。此时,由于播放窗口是独立进程新建的,因此与原始的页面进程并无联系。在独立进程中设置一个或多个定时器,定时获取对第二插件的计算结果,进而根据计算结果在新建播放窗口中对第二插件进行绘制播放即可。In the first case, when the page process does not have the playback window of the first plug-in, an independent process is used to create a new playback window. At this time, since the playback window is newly created by an independent process, it has no connection with the original page process. One or more timers are set in the independent process to obtain the calculation result of the second plug-in regularly, and then draw and play the second plug-in in the newly created playback window according to the calculation result.
第二种情况,当页面进程中存在第一插件的原播放窗口时,这时,和第一种情况相同,同样利用独立进程新建播放窗口。但是,由于存在原播放窗口,因此,需要在新建的播放窗口与原播放窗口间建立联系。具体的,将新建的播放窗口设置为原播放窗口的父窗口,然后,根据计算结果在新建的播放窗口中对第二插件进行绘制播放。In the second case, when the original playback window of the first plug-in exists in the page process, at this time, it is the same as the first case, and an independent process is also used to create a new playback window. However, since the original playback window exists, it is necessary to establish a connection between the newly created playback window and the original playback window. Specifically, the newly created playback window is set as the parent window of the original playback window, and then the second plug-in is drawn and played in the newly created playback window according to the calculation result.
新建的播放窗口能够在浏览器上进行移动或缩放,从而实现播放窗口的可移动性、可扩展性等等。若希望播放窗口呈现在原页面进程的播放窗口处,则只需要将新建的播放窗口设置在原页面进程的窗口位置即可。The newly created playback window can be moved or zoomed on the browser, so as to realize the mobility and scalability of the playback window. If you want the playback window to appear at the playback window of the original page process, you only need to set the newly created playback window at the window position of the original page process.
进一步,在实施过程中,若页面进程发起获取播放窗口的请求,独立进程告知页面进程无播放窗口。页面进程不能获知播放窗口的存在,则不能对播放窗口进行控制,从而实现了插件与页面进程的分离,提高浏览器的稳定性。Further, during the implementation process, if the page process initiates a request for acquiring the playback window, the independent process informs the page process that there is no playback window. If the page process cannot know the existence of the playback window, it cannot control the playback window, thereby realizing the separation of the plug-in and the page process and improving the stability of the browser.
在上述任意一个优选的实施例中,第一插件和/或第二插件为ActiveX插件。In any one of the above preferred embodiments, the first plug-in and/or the second plug-in is an ActiveX plug-in.
flash插件是一种常用的ActiveX插件,现以flash插件在页面进程中运行为例,对本发明实施例提供的浏览器中插件的播放方法进行具体说明。The flash plug-in is a commonly used ActiveX plug-in. Taking the flash plug-in running in the page process as an example, the method for playing the plug-in in the browser provided by the embodiment of the present invention will be described in detail.
图2示出了根据本发明一个实施例的页面进程和独立进程间进行通信的示意图。Fig. 2 shows a schematic diagram of communication between a page process and an independent process according to an embodiment of the present invention.
在页面进程一侧,On the page process side,
在网页中有flash的情况下,在浏览器创建ActiveX插件(即前文提及的第一插件)时,会根据插件CLSID或者ProgID(通过CLSIDFromProgID获取CLSID)查询注册表,查看系统是否已安装相应插件,若安装则会继续创建过程。When there is flash in the webpage, when the browser creates an ActiveX plug-in (that is, the first plug-in mentioned above), it will query the registry according to the plug-in CLSID or ProgID (obtaining the CLSID through CLSIDFromProgID) to check whether the system has installed the corresponding plug-in , if installed, the creation process will continue.
浏览器通过调用CoGetClassObject得到相应插件的IUnknown指针,然后通过标准接口进行相互操作。CoGetClassObject执行过程为,通过CLSID去注册表查询ActiveX路径,获得ActiveX路径后,调用LoadLibrary加载ActiveX插件,调用其导出函数DllGetClassObject获得类厂指针(IClassFactory),然后调用IClassFactory的CreateInstance方法得到ActiveX插件对应的IUnknown指针。The browser obtains the IUnknown pointer of the corresponding plug-in by calling CoGetClassObject, and then performs mutual operations through standard interfaces. The execution process of CoGetClassObject is to query the ActiveX path in the registry through the CLSID. After obtaining the ActiveX path, call LoadLibrary to load the ActiveX plug-in, call its exported function DllGetClassObject to obtain the class factory pointer (IClassFactory), and then call the CreateInstance method of IClassFactory to obtain the IUnknown corresponding to the ActiveX plug-in. pointer.
此处需要说明的是,在加载ActiveX插件时,Hook(拦截)CoGetClassObject,创建一个ActiveX控件对象(即与第一插件相对应的第一控件对象),该ActiveX控件对象包括一系列接口,例如IUnknown指针将会调用的很多标准接口,例如IOleObject、IViewObject等。然后在调用IClassFactory的CreateInstance时,将所创建的ActiveX控件对象返回给ActiveX插件的IUnknown指针。What needs to be explained here is that when the ActiveX plug-in is loaded, Hook (intercept) CoGetClassObject to create an ActiveX control object (that is, the first control object corresponding to the first plug-in), which includes a series of interfaces, such as IUnknown There are many standard interfaces that the pointer will call, such as IOleObject, IViewObject, etc. Then when calling CreateInstance of IClassFactory, the created ActiveX control object is returned to the IUnknown pointer of the ActiveX plug-in.
在独立进程一侧,On the independent process side,
在页面进程激活该ActiveX插件时,提取出该控件的属性、URL、大小等相关信息,然后创建一个独立进程,并在独立进程中加载ActiveX插件(即第二插件)。When the page process activates the ActiveX plug-in, extract the property, URL, size and other relevant information of the control, then create an independent process, and load the ActiveX plug-in (ie, the second plug-in) in the independent process.
具体来说,创建一个document,在其中插入一个object对象,该独立进程调用CoGetClassObject,Hook该CoGetClassObject,再创建另一个ActiveX控件对象(即与第二插件相对应的第二控件对象),该ActiveX控件对象包括一系列接口,例如IUnknown指针将会调用的很多标准接口,例如IOleObject、IViewObject等。然后在调用IClassFactory的CreateInstance时,将所创建的该另一个ActiveX控件对象返回给独立进程的ActiveX插件的IUnknown指针。Specifically, a document is created, an object object is inserted into it, the independent process calls CoGetClassObject, Hooks the CoGetClassObject, and then creates another ActiveX control object (that is, the second control object corresponding to the second plug-in), the ActiveX control The object includes a series of interfaces, such as IUnknown pointer will call many standard interfaces, such as IOleObject, IViewObject and so on. Then, when CreateInstance of IClassFactory is called, the created another ActiveX control object is returned to the IUnknown pointer of the ActiveX plug-in of the independent process.
在页面进程和独立进程之间,Between the page process and the standalone process,
在所创建的两个ActiveX控件对象中分别创建一个与各控件对象关联的窗口以用来进行通信。具体来说两个控件对象可以针对大小、焦点、刷新、脚本以及其他信息进行交互。A window associated with each control object is created in the two created ActiveX control objects for communication. Specifically, two control objects can interact for size, focus, refresh, scripting, and other information.
根据本实施例提供的方法可以拦截页面进程和独立进程直接交互的所有请求。若页面进程和独立进程需要进行通信,则通过预先创建的两个ActiveX控件对象来实现这两个进程之间的信息交互。由于独立进程和页面进程的独立性,因此,flash插件的具体计算过程在独立进程中进行,因而不会影响原页面进程。The method provided according to this embodiment can intercept all requests for direct interaction between the page process and the independent process. If the page process and the independent process need to communicate, the information interaction between the two processes is realized through two pre-created ActiveX control objects. Due to the independence of the independent process and the page process, the specific calculation process of the flash plug-in is carried out in the independent process, so the original page process will not be affected.
进一步地,在flash的显示过程中,可以新建一个播放窗口,然后将独立进程中计算出来的结果在新建的播放窗口中进行绘制,现分以下两种情况具体说明如下。Furthermore, during the flash display process, a new playback window can be created, and then the results calculated in the independent process can be drawn in the newly created playback window. The following two cases are specifically described as follows.
第一种,页面进程中的flash插件是无播放窗口的flash插件的情况。In the first case, the flash plug-in in the page process is a flash plug-in without a playback window.
图3示出了根据本发明一个实施例的页面进程中的flash插件无播放窗口时的flash插件播放的示意图。在图3中,将独立进程中计算出来的结果在新建的播放窗口中进行绘制时,在独立进程中有一个定时器,按照预定的时间间隔调用IViewObject接口Draw方法获取绘图数据,以将计算的数据绘制到新创建的flash播放窗口中。Fig. 3 shows a schematic diagram of playing the flash plug-in when the flash plug-in in the page process has no playback window according to an embodiment of the present invention. In Figure 3, when the results calculated in the independent process are drawn in the newly created playback window, there is a timer in the independent process, and the Draw method of the IViewObject interface is called according to the predetermined time interval to obtain the drawing data, so as to draw the calculated results The data is drawn into the newly created flash player window.
当用户希望在原页面的flash窗口中进行显示时,可以将新建播放窗口设置在原页面的flash播放窗口位置处,但是该窗口可移动、缩放等,以满足用户的需求。When the user wishes to display in the flash window of the original page, the new play window can be set at the position of the flash play window of the original page, but the window can be moved, zoomed, etc. to meet the needs of the user.
第二种,页面进程中的flash插件是有播放窗口的flash插件的情况。The second type, the flash plug-in in the page process is the case of a flash plug-in with a playback window.
图4示出了根据本发明一个实施例的页面进程中的flash插件有播放窗口时的flash插件播放的示意图。将独立进程中计算出来的结果在新建的播放窗口中进行绘制,并将新建的播放窗口设置为原页面中flash播放窗口的父窗口。Fig. 4 shows a schematic diagram of playing the flash plug-in when the flash plug-in in the page process has a playback window according to an embodiment of the present invention. Draw the result calculated in the independent process in the newly created playback window, and set the newly created playback window as the parent window of the flash playback window in the original page.
具体地,通过调用flash对象的IOleWindow接口GetWindow方法,获取其对应的窗口,然后通过SetParent设置flash播放窗口的父窗口。Specifically, by calling the GetWindow method of the IOleWindow interface of the flash object, the corresponding window is obtained, and then the parent window of the flash playback window is set through SetParent.
当用户希望在原页面的flash窗口中进行显示时,可以将新建播放窗口设置在原页面的flash播放窗口位置处,但是该窗口可移动、缩放等,以满足用户的需求。When the user wishes to display in the flash window of the original page, the new play window can be set at the position of the flash play window of the original page, but the window can be moved, zoomed, etc. to meet the needs of the user.
进一步,在原页面进程中,在获取窗口的时机,独立进程返回空。具体来说,当页面进程滚动页面时,会调用flash对象的IOleWindow接口GetWindow方法判断flash对象是否有窗口,若有窗口则通过发送WM_MOVE消息移动窗口,通过GetWindow返回NULL禁止页面进程移动flash窗口。Further, in the original page process, when the window is acquired, the independent process returns empty. Specifically, when the page process scrolls the page, it will call the GetWindow method of the IOleWindow interface of the flash object to determine whether the flash object has a window. If there is a window, it will move the window by sending a WM_MOVE message, and return NULL through GetWindow to prohibit the page process from moving the flash window.
综上可知,本实施例提供了一种在浏览器中播放插件的方法,实现了网页与插件的真正剥离,进而就解决嵌入的插件功能不全以及插件与页面相互影响的问题。To sum up, this embodiment provides a method for playing plug-ins in a browser, which realizes the real separation of web pages and plug-ins, and further solves the problems of incomplete functions of embedded plug-ins and mutual influence between plug-ins and pages.
基于同一发明构思,本发明实施例还提供了一种浏览器中插件的播放装置,能够实现上述任意一个优选实施例的浏览器中插件的播放方法。图5示出了根据本发明一个实施例的浏览器中插件的播放装置的结构示意图。参见图5,浏览器中插件的播放装置至少包括:Based on the same inventive concept, an embodiment of the present invention also provides a device for playing a plug-in in a browser, which can implement the method for playing a plug-in in a browser in any one of the above preferred embodiments. Fig. 5 shows a schematic structural diagram of a playback device for a plug-in in a browser according to an embodiment of the present invention. Referring to Figure 5, the playback device of the plug-in in the browser at least includes:
创建模块501,配置为在浏览器的页面进程加载并激活第一插件时,创建与页面进程不同的独立进程,在独立进程中加载并激活第二插件,其中,第二插件复制第一插件的信息;The creation module 501 is configured to create an independent process different from the page process when the page process of the browser loads and activates the first plug-in, and loads and activates the second plug-in in the independent process, wherein the second plug-in copies the first plug-in information;
计算模块502,配置为在独立进程中,对第二插件的信息进行计算,获取计算结果;The calculating module 502 is configured to calculate the information of the second plug-in in an independent process, and obtain the calculation result;
播放模块503,配置为根据计算结果在播放窗口中对第二插件进行绘制播放。The playing module 503 is configured to draw and play the second plug-in in the playing window according to the calculation result.
在一个优选的实施例中,创建模块501还可以配置为:In a preferred embodiment, the creation module 501 can also be configured as:
在页面进程中为第一插件生成第一控件对象;generating a first control object for the first plug-in in the page process;
在独立进程中为第二插件生成第二控件对象;generating a second control object for the second plug-in in a separate process;
利用第二控件对象和第一控件对象进行交互通信,获取第一插件的信息;Using the second control object to communicate interactively with the first control object to obtain information about the first plug-in;
利用第二控件对象将获取的第一插件的信息发送至第二插件。The acquired information of the first plug-in is sent to the second plug-in by using the second control object.
在一个优选的实施例中,第一插件和第一控件对象间通过指针进行相互操作,其中,该指针能够调用多个标准接口;以及In a preferred embodiment, the first plug-in and the first control object perform mutual operations through pointers, wherein the pointers can call multiple standard interfaces; and
第二插件和第二控件对象间通过同类型的指针进行相互操作。The second plug-in and the second control object perform mutual operations through pointers of the same type.
在一个优选的实施例中,创建模块501还可以配置为:In a preferred embodiment, the creation module 501 can also be configured as:
在页面进程中,创建与第一控件对象关联的第一窗口;In the page process, create a first window associated with the first control object;
在独立进程中,创建与第二控件对象关联的第二窗口;In a separate process, creating a second window associated with the second control object;
利用第一窗口和第二窗口进行交互通信。The first window and the second window are used for interactive communication.
在一个优选的实施例中,交互通信的信息包括下列至少之一:In a preferred embodiment, the interactive communication information includes at least one of the following:
插件的大小、页面进程中的线程的焦点、页面进程的线程的刷新操作、脚本的执行。The size of the plug-in, the focus of the thread in the page process, the refresh operation of the thread of the page process, the execution of the script.
在一个优选的实施例中,播放模块503还可以配置为:In a preferred embodiment, the playback module 503 can also be configured as:
当页面进程不存在第一插件的播放窗口时,利用独立进程新建播放窗口;When the playback window of the first plug-in does not exist in the page process, use an independent process to create a new playback window;
根据独立进程的定时器,定时获取计算结果;According to the timer of the independent process, the calculation result is obtained regularly;
根据计算结果在新建播放窗口中对第二插件进行绘制播放。Draw and play the second plug-in in the newly created play window according to the calculation result.
在一个优选的实施例中,播放模块503还可以配置为:In a preferred embodiment, the playback module 503 can also be configured as:
当页面进程中存在第一插件的原播放窗口时,利用独立进程新建播放窗口,并将新建的播放窗口设置为原播放窗口的父窗口;When the original playback window of the first plug-in exists in the page process, utilize the independent process to create a new playback window, and set the new playback window as the parent window of the original playback window;
根据计算结果在新建的播放窗口中对第二插件进行绘制播放。Draw and play the second plug-in in the newly created play window according to the calculation result.
新建的播放窗口能够在浏览器上进行移动或缩放处理。The newly created playback window can be moved or zoomed on the browser.
在一个优选的实施例中,参见图5,浏览器中插件的播放装置还可以包括告知模块504。接收到页面进程发起获取播放窗口的请求时,告知模块504能够利用独立进程告知页面进程无播放窗口。In a preferred embodiment, referring to FIG. 5 , the playback device of the plug-in in the browser may further include a notification module 504 . When receiving a request from the page process to acquire a playback window, the notification module 504 can use an independent process to notify the page process that there is no playback window.
在一个优选的实施例中,第一插件和/或第二插件为ActiveX插件。In a preferred embodiment, the first plug-in and/or the second plug-in are ActiveX plug-ins.
采用本发明实施例提供的浏览器中插件的播放方法及装置能够达到如下有益效果:Using the plug-in playback method and device in the browser provided by the embodiment of the present invention can achieve the following beneficial effects:
在本发明实施例中,在浏览器的页面进程中加载并激活第一插件,但是并不对第一插件进行绘制播放,而是创建一个与页面进程不同的独立进程,并在独立进程中加载并激活第二插件,利用第二插件实现对第一插件信息的复制。由于第一插件和第二插件的信息是一致的,因此,对第二插件的信息进行计算与对第一插件的信息进行计算所取得的计算结果是一致的,则根据计算结果在播放窗口中对第二插件进行绘制播放所播放的内容也应该是一致的。但是,由于第二插件设置在独立进程中,与独立进程共用一个进程,与页面进程分别适用两个不同的进程,因此,第二插件的运行和页面进程的运行是独立的,一方发生问题并不能够影响另一方的稳定性。如果第二插件出现卡死或者崩溃后,不会导致整个网页退出,能够提高页面操作的稳定性,同理,当页面进程出现卡死或者崩溃后,也不会导致页面中的第二插件退出,提高插件运行的稳定性。由此可见,本发明实施例提供的浏览器中插件的播放方法能够在不影响播放效果的前提下,提高浏览器运行的稳定性。In the embodiment of the present invention, the first plug-in is loaded and activated in the page process of the browser, but it does not draw and play the first plug-in, but creates an independent process different from the page process, and loads and activates the first plug-in in the independent process. The second plug-in is activated, and the information of the first plug-in is copied by using the second plug-in. Since the information of the first plug-in and the second plug-in are consistent, the calculation result obtained by calculating the information of the second plug-in and the information of the first plug-in is consistent, then according to the calculation result in the playback window The content played by drawing and playing the second plug-in should also be consistent. However, since the second plug-in is set in an independent process, shares a process with the independent process, and applies to two different processes respectively with the page process, therefore, the operation of the second plug-in and the operation of the page process are independent. cannot affect the stability of the other party. If the second plug-in is stuck or crashes, it will not cause the entire web page to exit, which can improve the stability of the page operation. Similarly, when the page process is stuck or crashed, it will not cause the second plug-in in the page to exit , to improve the stability of the plug-in operation. It can be seen that the plug-in playback method in the browser provided by the embodiment of the present invention can improve the stability of the browser operation without affecting the playback effect.
进一步,由于第一插件并未被真正执行,而第二插件是真实的执行主体,因此,可以称第一插件为代理对象,而第二插件为活动对象。本发明实施例通过在页面进程中运行代理对象,而在独立进程中运行活动对象,使得真实的浏览器插件,例如真实的ActiveX插件与页面进程分离,从而使浏览器插件出现问题时不会影响嵌入浏览器插件的浏览器进程,即浏览器插件出现问题时不会影响页面进程,从而提高了浏览器的稳定性。同时,当浏览器插件出现病毒等安全性的问题时,由于浏览器插件与页面进程分离,不会影响页面进程的运行,从而也提高了浏览器的安全性。Further, since the first plug-in is not actually executed, but the second plug-in is a real execution subject, the first plug-in can be called a proxy object, and the second plug-in is an active object. The embodiment of the present invention runs the proxy object in the page process, and runs the active object in an independent process, so that the real browser plug-in, such as the real ActiveX plug-in, is separated from the page process, so that when a problem occurs in the browser plug-in, it will not affect the browser plug-in. The browser process embedded in the browser plug-in, that is, the browser plug-in will not affect the page process when there is a problem, thereby improving the stability of the browser. At the same time, when a security problem such as a virus occurs in the browser plug-in, since the browser plug-in is separated from the page process, it will not affect the operation of the page process, thereby improving the security of the browser.
另外,当浏览器插件出现问题时,可以对运行浏览器插件的对象线程执行挂起、降低权限或终止等操作,从而使得独立进程可以对浏览器插件的内存占用和CPU占用等系统资源做定向的分配,实现更好的资源分配回收方式,更合理的调度计算机资源,终止进程使得进程退出也可以让资源回收更彻底。In addition, when there is a problem with the browser plug-in, operations such as suspending, reducing privileges, or terminating the object thread running the browser plug-in can be performed, so that the independent process can target system resources such as the memory usage and CPU usage of the browser plug-in To achieve a better resource allocation and recovery method, more reasonable scheduling of computer resources, termination of the process so that the process exits can also make resource recovery more thorough.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings), as well as any method or method so disclosed, may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器中插件的播放装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the playback device of the plug-in in the browser according to the embodiment of the present invention . The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210573078.3ACN103064680B (en) | 2012-12-25 | 2012-12-25 | The player method of plug-in unit and device in browser |
| US14/655,138US20150347164A1 (en) | 2012-12-25 | 2013-09-18 | Method and Device for Playing Plug-in in Browser |
| PCT/CN2013/083729WO2014101486A1 (en) | 2012-12-25 | 2013-09-18 | Method and device for playing plug-in in browser |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210573078.3ACN103064680B (en) | 2012-12-25 | 2012-12-25 | The player method of plug-in unit and device in browser |
| Publication Number | Publication Date |
|---|---|
| CN103064680A CN103064680A (en) | 2013-04-24 |
| CN103064680Btrue CN103064680B (en) | 2016-08-03 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210573078.3AActiveCN103064680B (en) | 2012-12-25 | 2012-12-25 | The player method of plug-in unit and device in browser |
| Country | Link |
|---|---|
| CN (1) | CN103064680B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2014101486A1 (en)* | 2012-12-25 | 2014-07-03 | 北京奇虎科技有限公司 | Method and device for playing plug-in in browser |
| CN103077047B (en)* | 2012-12-25 | 2016-08-03 | 北京奇虎科技有限公司 | A kind of plug-in playback method and device |
| CN103226477B (en)* | 2013-05-21 | 2016-12-28 | 成都云朵技术有限公司 | A kind of method and system strengthening flash video image quality in WebBrowser |
| CN103488967B (en)* | 2013-10-14 | 2016-08-10 | 张祖锋 | A cabinet management system and method based on visible light or infrared positioning |
| CN103914327A (en)* | 2014-04-25 | 2014-07-09 | 广东威创视讯科技股份有限公司 | Plug-in loading method and plug-in loading module |
| CN104268019B (en)* | 2014-09-23 | 2018-04-27 | 广州猎豹网络科技有限公司 | A kind of software running method, device and terminal |
| CN105630507B (en)* | 2015-12-29 | 2020-01-24 | Tcl集团股份有限公司 | A method and device for drawing a WebView control interface |
| CN108334779B (en)* | 2018-01-30 | 2023-11-21 | 上海连尚网络科技有限公司 | An applied processing method, device and computing storage medium |
| CN115695888A (en)* | 2022-09-20 | 2023-02-03 | 深圳市酷开网络科技股份有限公司 | Video processing method and device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101706796A (en)* | 2008-11-14 | 2010-05-12 | 北京搜狗科技发展有限公司 | Method and device for showing webpage resources |
| CN103077047A (en)* | 2012-12-25 | 2013-05-01 | 北京奇虎科技有限公司 | Plug-in playback method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100037317A1 (en)* | 2008-08-06 | 2010-02-11 | Jeong Wook Oh | Mehtod and system for security monitoring of the interface between a browser and an external browser module |
| CN102314510A (en)* | 2011-09-15 | 2012-01-11 | 奇智软件(北京)有限公司 | Method and system for executing browser control |
| CN102436507B (en)* | 2011-12-28 | 2014-07-16 | 奇智软件(北京)有限公司 | Method and device for browsing web pages |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101706796A (en)* | 2008-11-14 | 2010-05-12 | 北京搜狗科技发展有限公司 | Method and device for showing webpage resources |
| CN103077047A (en)* | 2012-12-25 | 2013-05-01 | 北京奇虎科技有限公司 | Plug-in playback method and device |
| Title |
|---|
| COM程序的简单实现(COM技术内幕笔记之一);shipfi;《http://www.cnblogs.com/shipfi/archive/2007/02/07/643829.html》;20070207;第1-5页* |
| 详解主流浏览器多进程架构:Chrome、IE;佚名;《http://www.cnbeta.com/articles/109595.htm》;20100426;第1-3页* |
| Publication number | Publication date |
|---|---|
| CN103064680A (en) | 2013-04-24 |
| Publication | Publication Date | Title |
|---|---|---|
| CN103064680B (en) | The player method of plug-in unit and device in browser | |
| CN108733496B (en) | Event processing method and device | |
| US9215189B1 (en) | Hybrid application message passing | |
| CN103457783B (en) | Method and system for testing mobile network application | |
| CN103226474B (en) | Exchange method between page script and browser program, Apparatus and system | |
| WO2015169216A1 (en) | Method and apparatus of preloading browser game on client | |
| CN104778075B (en) | The method and apparatus of Java layers of API of native layers of calling in android system | |
| CN103164541B (en) | Image presentation method and equipment | |
| CN103019817B (en) | A kind of method and apparatus mutual for the page | |
| US20130057561A1 (en) | System and method for rendering graphics content associated with an application process to a display area managed by another process | |
| WO2022111047A1 (en) | Voice broadcasting method, computing device and computer storage medium | |
| JP2015046141A (en) | Virtual time control device, virtual time control method, and non-transitory computer-readable storage medium | |
| CN103559097A (en) | Inter-process communication method and device in browser and browser | |
| CN103077047B (en) | A kind of plug-in playback method and device | |
| CN110851756A (en) | Page loading method and device, computer readable storage medium and terminal equipment | |
| CN102368249B (en) | Page downloading control method and system for IE (Internet Explorer) core browser | |
| CN102279766A (en) | Method and system for concurrently simulating processors and scheduler | |
| CN103440107A (en) | Method and device for processing touch operation of electronic device | |
| CN104102513B (en) | A kind of CUDA runtime parameter transparent optimization methods based on Kepler frameworks | |
| CN103019733A (en) | Moving object execution method and system for browser and browser | |
| CN103197972A (en) | Method and device for browser plugin management, browser and plugin interactive system | |
| CN102902789B (en) | Change display control apparatus and the method for the content of browser window display | |
| CN105843697A (en) | Interruption recovery method and system of browser control | |
| US9285869B2 (en) | System, method and computer readable medium for invoking applications | |
| CN102880391B (en) | Change display control apparatus and the method for the content that browser window shows |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right | Effective date of registration:20220721 Address after:Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after:BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before:100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before:BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before:Qizhi software (Beijing) Co.,Ltd. |