CN103544067B - The method that the flash plug-in unit of client is mutual with the page script of service end IE browser - Google Patents
The method that the flash plug-in unit of client is mutual with the page script of service end IE browser Download PDFInfo
- Publication number
- CN103544067B CN103544067B CN201310475791.9A CN201310475791A CN103544067B CN 103544067 B CN103544067 B CN 103544067B CN 201310475791 A CN201310475791 A CN 201310475791A CN 103544067 B CN103544067 B CN 103544067B
- Authority
- CN
- China
- Prior art keywords
- unit
- plug
- function
- client
- flash
- 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.)
- Expired - Fee Related
Links
Landscapes
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides the method that the flash plug-in unit of a kind of client is mutual with the page script of service end IE browser, defines a service end BHO plug-in unit in service end, at client definition one redirection plug-in unit;When page script calls the function that Flash object is derived, can call the CallFunction function of client Flash plug-in unit, now service end BHO plug-in unit intercepts this function, and function parameter passes to described redirection plug-in unit;Redirect plug-in unit perform the CallFunction function of client Flash plug-in unit and result is passed back described service end BHO plug-in unit;When client Flash plug-in unit invoking web page script, redirect plug-in unit to be packed by Flash plug-in unit, and back trigger the page script on described service end BHO plug-in unit invoking web page, and result is passed redirection plug-in unit, it is achieved the page script of client to service end calls.Present invention achieves two-way the calling of service end page script and client this locality Flash object method, make the Flash object of client correctly to interact with the JavaScript script in service end webpage.
Description
Technical field
The present invention relates to a kind of computer communication technology field, the flash particularly relating to a kind of client inserts
The method that part is mutual with the page script of service end IE browser.
Background technology
Prior art exists a kind of Flash that will play in service end IE browser under VDI environment
Video is redirected to the method for client terminal playing, but the method by part Flash video (is the most only only capable of
FlashVars attribute by Flash object i.e. can determine that the video of download location) redirect.Right
Flash video in some video website, webpage Flash object (Flash video player) during broadcasting
Need to call JavaScript page script, or need JavaScript page script to call Flash object
The function derived could correctly be play.For this type of video, if using aforesaid reorientation method, then visitor
Family end Flash object calls during JavaScript page script inevitable failed (because of pin to be called
The most not in client in service end), JavaScript page script calls Flash object simultaneously derives
Also certainty failure (because now Flash object has been redirected to client) during function, thus cause
Video playback failure.
Summary of the invention
The technical problem to be solved in the present invention, is to provide the flash plug-in unit of a kind of client and service end
The method that the page script of IE browser is mutual, it is achieved that service end page script is local with client
The two-way of Flash object method calls, make client Flash object can correctly with service end net
JavaScript script in Ye interacts.
The present invention is achieved in that the flash plug-in unit of a kind of client and the net of service end IE browser
The method that page script is mutual, defines a service end BHO plug-in unit in service end, defines a weight in client
Orientation plug-in unit;
Described service end BHO plug-in unit is used for: by Hook technical intercept client Flash plug-in unit
CallFunction function, described CallFunction function is for calling in Flash object to webpage offer
The function of portion's function, obtains the function information of this function and passes to client;Described redirection plug-in unit is used
In: the packaging to client Flash plug-in unit, between client browser and Flash plug-in unit, transmit message,
Intercept Flash plug-in unit simultaneously and to page script call request and be transferred to service end BHO plug-in unit;
When page script calls the function that Flash object is derived, client Flash plug-in unit can be called
CallFunction function, now service end BHO plug-in unit intercepts this function, is passed to by function parameter
Described redirection plug-in unit;Redirect plug-in unit and perform the CallFunction function of client Flash plug-in unit also
Result is passed back described service end BHO plug-in unit, realizes service end and call to the page script of client;
When client Flash plug-in unit invoking web page script, redirect plug-in unit and Flash plug-in unit is wrapped
Dress, and trigger the page script on described service end BHO plug-in unit invoking web page, and result is passed back weight
Orientation plug-in unit, it is achieved the page script of client to service end calls.
Present invention have the advantage that service end page script and Flash pair, client this locality of the present invention
As method can carry out two-way calling, the most not only it is only capable of by the flashVars attribute of Flash object i.e.
Can determine that the video of download location redirects, also can need to call to webpage Flash object when playing
JavaScript page script, or need JavaScript page script to call the letter that Flash object is derived
The video that number could correctly be play redirects;So that Flash redirecting technique can range of application expand
Open up all Flash videos.
Accompanying drawing explanation
Fig. 1 is the inventive method schematic flow sheet.
Detailed description of the invention
Referring to shown in Fig. 1, the present invention is flash plug-in unit and the service end IE browser of a kind of client
The mutual method of page script, define a service end BHO plug-in unit in service end, define in client
One redirects plug-in unit;
Described service end BHO plug-in unit is used for: by Hook technical intercept client Flash plug-in unit
CallFunction function, described CallFunction function is for calling in Flash object to webpage offer
The function (function that this CallFunction function is derived by Flash ActiveX plug-in unit) of portion's function,
Obtain the function information of this function and pass to client;Described redirection plug-in unit is used for: to client
The packaging of Flash plug-in unit, transmits message between client browser and Flash plug-in unit, intercepts Flash simultaneously
Plug-in unit is to page script call request and is transferred to service end BHO plug-in unit;
Run client browser and load described redirection plug-in unit, redirecting plug-in unit and reload client
Flash plug-in unit;When browser calls NP_Initialize function (the NP_Initialize letter of redirection plug-in unit
Number is that NPAPI plug-in unit end standard derives function, for the overall situation initialization of plug-in unit) and/or
(NP_GetEntryPoints function is that NPAPI plug-in unit end standard derives to NP_GetEntryPoints function
Function, is used for providing plug-in unit entrance function to called side, only exists at windows platform) time,
Redirect plug-in unit and recall the respective function of Flash plug-in unit, and by evaluate in NP_Initialize function
Function pointer points to the NPN_Evaluate function redirecting the red fox Firefox plug-in unit arranged in plug-in unit
(function that NPN_Evaluate function is provided by browser is used for performing to specify script);So do
Be in order to: when NPAPI Flash plug-in unit invoking web page script, redirect plug-in unit and can obtain and to call
Function information, and pass to service end BHO plug-in unit.
When page script calls the function that Flash object is derived, client Flash plug-in unit can be called
CallFunction function, now service end BHO plug-in unit intercepts this function, is passed to by function parameter
Described redirection plug-in unit;Redirect plug-in unit and perform the CallFunction function of client Flash plug-in unit also
Result is passed back described service end BHO plug-in unit, realizes service end and call to the page script of client;
(Flash of the browser of NPAPI plug-in unit is i.e. supported for Firefox etc. at client Flash plug-in unit
Plug-in unit) invoking web page script time, redirect plug-in unit and Flash plug-in unit packed, and trigger described clothes
Page script on business end BHO plug-in unit invoking web page, and result is passed back redirection plug-in unit, it is achieved visitor
Family end calls to the page script of service end.
Wherein, described when client Flash plug-in unit invoking web page script, redirect plug-in unit by Flash
Plug-in unit is packed, and triggers the page script on described service end BHO plug-in unit invoking web page, and will
Result passes redirection plug-in unit back, it is achieved the page script of client to service end calls, particularly as follows: visitor
During the end Flash plug-in unit invoking web page script of family, redirecting the NPN_Evaluate function in plug-in unit will be by
Call (why NPN_Evaluate function can be called, and is by NP_Initialize letter due to above-mentioned
In number, evaluate function pointer points to and redirects the NPN_Evaluate function arranged in plug-in unit), weight
This function parameter is passed to service end BHO plug-in unit by orientation plug-in unit;BHO plug-in unit receive redirection insert
After the parameter that part transmits, by IWebBrowser2 interface (IWebBrowser2 interface by
The interface for controlling WebBrowser control that InternetExplorer example realizes)
Get_Document function obtains IHTMLDocument2 type object, then passes through
(IHTMLDocument2 interface is for controlling connecing of html document for IHTMLDocument2 interface
Mouthful) get_parentWindow function obtain IHTMLWindow2 type object, finally by
(IHTMLWindow2 interface is used for controlling HTML window object IHTMLWindow2 interface
Interface) execScript function (execScript function be used for perform specify script) invoking web page
On page script, and back function return value is passed redirection plug-in unit, thus realizes client to service end
Page script call.
In a word, the service end page script of the present invention and client this locality Flash object method can carry out double
To calling, the most not only it is only capable of i.e. can determine that download location to by the flashVars attribute of Flash object
Video redirect, also can to play time webpage Flash object need to call JavaScript webpage
Script, or need JavaScript page script call Flash object derive function could correctly broadcast
The video put redirects;So that Flash redirecting technique range of application can extend all Flash
Video.
The foregoing is only presently preferred embodiments of the present invention, all according to scope of the present invention patent done equal
Deng change and modification, the covering scope of the present invention all should be belonged to.
Claims (3)
1. the flash plug-in unit of client and the mutual method of the page script of service end IE browser,
It is characterized in that: define a service end BHO plug-in unit in service end, insert client definition one redirection
Part;
Described service end BHO plug-in unit is used for: by Hook technical intercept client Flash plug-in unit
CallFunction function, described CallFunction function is for calling in Flash object to webpage offer
The function of portion's function, obtains the function information of this function and passes to client;Described redirection plug-in unit is used
In: the packaging to client Flash plug-in unit, between client browser and Flash plug-in unit, transmit message,
Intercept Flash plug-in unit simultaneously and to page script call request and be transferred to service end BHO plug-in unit;
When page script calls the function that Flash object is derived, client Flash plug-in unit can be called
CallFunction function, now service end BHO plug-in unit intercepts this function, is passed to by function parameter
Described redirection plug-in unit;Redirect plug-in unit and perform the CallFunction function of client Flash plug-in unit also
Result is passed back described service end BHO plug-in unit, realizes service end and call to the page script of client;
When client Flash plug-in unit invoking web page script, redirect plug-in unit and Flash plug-in unit is wrapped
Dress, and trigger the page script on described service end BHO plug-in unit invoking web page, and result is passed back weight
Orientation plug-in unit, it is achieved the page script of client to service end calls.
The flash plug-in unit of client the most according to claim 1 and the net of service end IE browser
The method that page script is mutual, it is characterised in that:
Perform page script call Flash object derive function or client Flash plug-in unit call net
Before page script, may further comprise: operation client browser and load described redirection plug-in unit, weight
Orientation plug-in unit reloads the Flash plug-in unit of client;The overall situation of plug-in unit is redirected initially when browser calls
Change NP_Initialize function and/or for providing plug-in unit entrance function to called side
During NP_GetEntryPoints function, redirect plug-in unit and recall the respective function of Flash plug-in unit, and will
In NP_Initialize function, evaluate function pointer points to and redirects the red fox Firefox arranged in plug-in unit
The NPN_Evaluate function for performing script of plug-in unit.
The flash plug-in unit of client the most according to claim 2 and the net of service end IE browser
The method that page script is mutual, it is characterised in that:
Described when client Flash plug-in unit invoking web page script, redirect plug-in unit and Flash plug-in unit is entered
Row packaging, and trigger the page script on described service end BHO plug-in unit invoking web page, and result is passed
Return and redirect plug-in unit, it is achieved the page script of client to service end calls, particularly as follows: in client
During Flash plug-in unit invoking web page script, redirecting the NPN_Evaluate function in plug-in unit will be called,
Redirect plug-in unit and this function parameter is passed to service end BHO plug-in unit;BHO plug-in unit is receiving redirection
After the parameter that plug-in unit transmits, by for controlling IE browser WebBrowser control
The get_Document function of IWebBrowser2 interface obtains IHTMLDocument2 type object,
Then by the IHTMLDocument2 interface for controlling html document
Get_parentWindow function obtains IHTMLWindow2 type object, finally by being used for controlling
The execScript for performing script of the IHTMLWindow2 interface of HTML window object
Page script on function call webpage, and function return value is passed back redirection plug-in unit, thus realize visitor
Family end calls to the page script of service end.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310475791.9A CN103544067B (en) | 2013-10-12 | 2013-10-12 | The method that the flash plug-in unit of client is mutual with the page script of service end IE browser |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310475791.9A CN103544067B (en) | 2013-10-12 | 2013-10-12 | The method that the flash plug-in unit of client is mutual with the page script of service end IE browser |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103544067A CN103544067A (en) | 2014-01-29 |
| CN103544067B true CN103544067B (en) | 2016-08-24 |
Family
ID=49967542
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310475791.9A Expired - Fee Related CN103544067B (en) | 2013-10-12 | 2013-10-12 | The method that the flash plug-in unit of client is mutual with the page script of service end IE browser |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103544067B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105204883B (en) * | 2014-06-26 | 2019-03-15 | 优视科技有限公司 | Plug-in loading processing method and device |
| CN107818020B (en) * | 2016-09-12 | 2021-04-27 | 平安科技(深圳)有限公司 | Parameter transmission method and device |
| CN106874408B (en) * | 2017-01-19 | 2020-11-17 | 杭州云灵科技有限公司 | Html information input method supporting various browser kernels |
| CN110134450B (en) * | 2018-02-08 | 2021-08-10 | 中兴通讯股份有限公司 | Video redirection method, device and computer readable storage medium |
| US20230334108A1 (en) * | 2022-04-14 | 2023-10-19 | Robert Lewis Michaels, Jr. | Method and System for Virtualization of On-Line Navigation |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1991827A (en) * | 2005-12-30 | 2007-07-04 | 腾讯科技(深圳)有限公司 | Method and system for webpage development |
| CN102436507A (en) * | 2011-12-28 | 2012-05-02 | 奇智软件(北京)有限公司 | Method and device for browsing webpage |
| CN102761603A (en) * | 2012-06-07 | 2012-10-31 | 福建升腾资讯有限公司 | Webpage flash video redirection method in VDI environment |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2002021404A1 (en) * | 2000-09-06 | 2002-03-14 | Envoii | Method and apparatus for a portable information account access agent |
| US7051119B2 (en) * | 2001-07-12 | 2006-05-23 | Yahoo! Inc. | Method and system for enabling a script on a first computer to communicate and exchange data with a script on a second computer over a network |
-
2013
- 2013-10-12 CN CN201310475791.9A patent/CN103544067B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1991827A (en) * | 2005-12-30 | 2007-07-04 | 腾讯科技(深圳)有限公司 | Method and system for webpage development |
| CN102436507A (en) * | 2011-12-28 | 2012-05-02 | 奇智软件(北京)有限公司 | Method and device for browsing webpage |
| CN102761603A (en) * | 2012-06-07 | 2012-10-31 | 福建升腾资讯有限公司 | Webpage flash video redirection method in VDI environment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103544067A (en) | 2014-01-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103544067B (en) | The method that the flash plug-in unit of client is mutual with the page script of service end IE browser | |
| US10771525B2 (en) | System and method of discovery and launch associated with a networked media device | |
| US9591381B2 (en) | Automated discovery and launch of an application on a network enabled device | |
| CN107124430B (en) | Page hijacking monitoring method, device, system and storage medium | |
| US9264435B2 (en) | Apparatus and methods for access solutions to wireless and wired networks | |
| US9928088B2 (en) | Method, apparatus, server and system for implementing web application | |
| US9866583B2 (en) | Fuzzing server responses to malicious client devices | |
| US10291722B1 (en) | Method and apparatus for implementing co-browsing between domains | |
| US20150012614A1 (en) | Efficient delivery of webpages | |
| US10270835B2 (en) | Determination of information relating to messages | |
| CN103116645B (en) | The method and device of browsing page by mobile equipment | |
| CN107562548A (en) | The method and apparatus for transmitting data | |
| CN103023930A (en) | Webpage sharing method and device | |
| CN103607454B (en) | The method that android system browser arranges privately owned proxy server | |
| CN105095220B (en) | A browser implementation method, terminal and virtualized proxy device | |
| CN103618779A (en) | Method and system for resource sharing | |
| CN104202403B (en) | Webpage browsing acceleration method, cloud server and browser | |
| CN105871976A (en) | Data cross-domain request method and system, and devices | |
| CN103365859B (en) | The method processing webpage mouse click event | |
| CN103634338B (en) | Method for modifying primary domain name of webpage online, data processing device and system | |
| US20210097115A1 (en) | Dynamic generation and injection of edge-cached meta-data | |
| CN112541136B (en) | Network address information acquisition method and device, storage medium and electronic equipment | |
| CN104156485B (en) | Web data transmission method, apparatus and system | |
| US12111748B2 (en) | Automated multi-tier debug information collection | |
| US20160100217A1 (en) | System and method for optimizing delivery of video content in native mobile applications |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160824 |