CN104462220A - Method and device for web page screen shot and code transmission - Google Patents

Method and device for web page screen shot and code transmission Download PDF

Info

Publication number
CN104462220A
CN104462220A CN201410627834.5A CN201410627834A CN104462220A CN 104462220 A CN104462220 A CN 104462220A CN 201410627834 A CN201410627834 A CN 201410627834A CN 104462220 A CN104462220 A CN 104462220A
Authority
CN
China
Prior art keywords
web page
target web
load application
web
coding
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.)
Granted
Application number
CN201410627834.5A
Other languages
Chinese (zh)
Other versions
CN104462220B (en
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 CN201410627834.5A priority Critical patent/CN104462220B/en
Publication of CN104462220A publication Critical patent/CN104462220A/en
Application granted granted Critical
Publication of CN104462220B publication Critical patent/CN104462220B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention relates to a method and device for web page screen shot and code transmission. The method comprises the steps that web addresses, resolution rates and display positions, on a desk top, of all target web pages to be coded and output are obtained; progresses of web page loading applications corresponding to the target web pages are created, the web addresses and the display positions, on the desk top, of the target web pages are transmitted to the corresponding processes, and the processes are made to load and display the corresponding target web pages through loading interfaces; window handles of the corresponding web page loading applications are obtained according to IDs of the progresses, and window content of the corresponding web page loading applications are obtained according to the obtained window handles and window screenshot APIs; the intercepted window content is output according to the corresponding resolution rates in a coded mode. By means of the method and device for web page screen shot and code transmission, the coded output of multi-path web pages is achieved, and the complex degree of a service management system and the difficulty of management maintenance are greatly lowered.

Description

Web page screen-cutting and coding and transmission method and device
Technical field
The present invention relates to business management system technical field, particularly relate to a kind of Web page screen-cutting and coding and transmission method, Web page screen-cutting and coding transmission device.
Background technology
Along with the development of encoding and decoding technique, it obtains and applies more and more widely in all kinds of service management.As shown in Figure 1, a business management system generally includes service server 110, encoding device 120, decoding device 130, display device 140 and management and controls computer 150.The output interface of encoding device 120 and service server 110, as VGA (Video Graphics Array, video transmission standard) interface, DVI (Digital Visual Interface, digital visual interface) etc. connection, export for the desktop of service server 110 being carried out coding, the mouse-keyboard of adapter service server 110 controls simultaneously.Decoding device 130 is for resolving IP (the Internet Protocol of encoding device 120, the agreement interconnected between network) code stream, and by output interface as DVI, HDMI (High Definition Multimedia Interface, HDMI (High Definition Multimedia Interface)) etc. show on display device 140.Management controls computer 150 for each service server 110 of unified management, the display of desktop at local desktop of each service server 110 is realized by the mode of soft decoding, simultaneously by local mouse-keyboard Message Transmission to encoding device 120, and then realize Long-distance Control to service server 110.
Along with the continuous increase of client traffic, the service server of user gets more and more, and along with the development of Web (webpage) technology, increasing client traffic application uses Web design, the encoding device thereupon needed also can constantly increase, thus cause the complexity of system greatly to improve, add the difficulty of system management maintenance.
Summary of the invention
Based on this, be necessary for the problems referred to above, provide a kind of can reduce business management system complexity Web page screen-cutting and coding and transmission method and device.
A kind of Web page screen-cutting and coding and transmission method, comprise step:
Obtain the network address of each target web of output to be encoded, resolution and display position on the table;
Create the process of webpage load application corresponding to each target web, the network address of each target web and display position are on the table transferred to corresponding process, make each process be loaded by webpage loading interface and show corresponding target web;
Obtain the window handle of corresponding web page load application according to the ID of each process, intercept the windows content of corresponding web page load application according to each window handle obtained and window sectional drawing API;
The each windows content intercepted is exported according to corresponding resolution encoding.
A kind of Web page screen-cutting and coding transmission device, comprising:
Target web data obtaining module, for obtaining the network address of each target web of output to be encoded, resolution and display position on the table;
Target web display module, for creating the process of webpage load application corresponding to each target web, and the network address of each target web and display position are on the table transferred to corresponding process, make each process be loaded by webpage loading interface and show corresponding target web;
Windows content interception module, for obtaining the window handle of corresponding web page load application according to the ID of each process, intercepts the windows content of corresponding web page load application according to each window handle obtained and window sectional drawing API;
Windows content coding output module, for exporting each windows content intercepted according to corresponding resolution encoding.
Web page screen-cutting of the present invention and coding and transmission method and device, by the unified process creating webpage load application corresponding to each target web, each webpage load application is made to load and show corresponding target web, then the windows content of each webpage load application is intercepted, the each windows content intercepted is exported according to corresponding resolution encoding, achieves and the coding of multiple webpage is exported simultaneously.The inventive method and device can be realized by program or chip, namely can be arranged on server, so a server can be encoded and be exported multiple webpage, output webpage and an encoding device of the prior art only can be encoded, so the present invention greatly reduces the complexity of business management system and the difficulty of management maintenance.
Accompanying drawing explanation
Fig. 1 is the structural representation of business management system in prior art;
Fig. 2 is the schematic flow sheet of the inventive method embodiment;
Fig. 3 is the structural representation of apparatus of the present invention embodiment one;
Fig. 4 is the structural representation of apparatus of the present invention embodiment two;
Fig. 5 is the structural representation of business management system of the present invention.
Embodiment
Be described in detail below in conjunction with the embodiment of accompanying drawing to Web page screen-cutting of the present invention and coding and transmission method.
As shown in Figure 2, a kind of Web page screen-cutting and coding and transmission method, comprise step:
S210, the network address obtaining each target web of output to be encoded, resolution and display position on the table;
S220, create the process of webpage load application corresponding to each target web, the network address of each target web and display position are on the table transferred to corresponding process, make each process be loaded by webpage loading interface and show corresponding target web;
S230, obtain the window handle of corresponding web page load application according to the ID of each process, intercept the windows content of corresponding web page load application according to each window handle obtained and window sectional drawing API;
S240, by intercept each windows content export according to corresponding resolution encoding.
Target web is the webpage controlling service server to be shown on computer at display device or management, and resolution is the resolution that each target web needs coding output, and webpage load application is used for according to the target web that target network address loads and display is corresponding.In step S210, the acquisition of each target web relevant information can directly be obtained by user's input information, also the information such as the network address of each described target web of input, resolution and display position on the table can be stored in a database, and then from database, obtain this information.
Obtained network address and the display position of target web by step S210 after, create the process of webpage load application corresponding to each target web, and using the network address of each target web and display position on the table as process initiation parameter transmission to corresponding process.Namely each process can be loaded and display-object webpage on corresponding display position by webpage loading interface, and wherein webpage loading interface can comprise the webpage loading interface etc. of WebBrowser.
After showing corresponding target web by each webpage load application, need to intercept the target window of each webpage load application, export with the research content that will intercept.According to the ID (identification of each process, identify label number) obtain the window handle of corresponding web page load application after, can be this process creation and start a windows content to intercept thread, intercept in thread at this windows content, by this window handle of acquisition and the windows content of this webpage load application of window sectional drawing API (Application Programming Interface, application programming interface) circulation intercepting.Then each windows content intercepted is carried out coding according to the resolution obtained in step S210 to export.
What exported by encoding device coding is the whole desktop of service server due to existing, and user's needs is only effective business datum part, so in order to improve data processing rate and reduce transmission bandwidth waste etc., window sectional drawing API can adopt PrintWindow etc., thus what ensure to intercept is the content of the most effective coverage of webpage, i.e. the content of client area.Webpage load application can be designed as single document structure in addition, and target web is presented in document views district, and the document view area is also the follow-up window needing to intercept.
The Long-distance Control of all right realize target webpage of the present invention, method is: receiving management controls the mouse-keyboard message that computer sends, described mouse-keyboard message is transmitted to webpage load application corresponding to process to be controlled, and records the code stream address of mouse-keyboard message and the mapping relations of process to be controlled.Management controls computer and generates target code stream address according to target network address and code stream address composition rule, is shown, realize the Long-distance Control to target web simultaneously by target code stream address acquisition object code stream.Control the step of the mouse-keyboard message that computer sends at receiving management before, can also create and start mouse-keyboard message sink thread, in this mouse-keyboard message sink thread, realizing the Long-distance Control to target web.
The inventive method can by management application program realize, management application program can be arranged on be similar to encoding device function server on.Management application program creates and starts each webpage load application, unified management is carried out to webpage load application, and timing intercepts the target window of each webpage load application, the content of each target window be truncated to is carried out coding according to corresponding resolution export, achieve and the coding of multiple webpage is exported.And encoding device of the prior art only can process a webpage, that is to say that a server being provided with this management application program is equivalent to multiple encoding device, greatly reduce the complexity of business management system.
Based on same inventive concept, the present invention also provides a kind of Web page screen-cutting and coding transmission device, is described in detail below in conjunction with the embodiment of accompanying drawing to apparatus of the present invention.
As shown in Figure 3, a kind of Web page screen-cutting and coding transmission device, comprising:
Target web data obtaining module 310, for obtaining the network address of each target web of output to be encoded, resolution and display position on the table;
Target web display module 320, for creating the process of webpage load application corresponding to each target web, and the network address of each target web and display position are on the table transferred to corresponding process, make each process be loaded by webpage loading interface and show corresponding target web;
Windows content interception module 330, for obtaining the window handle of corresponding web page load application according to the ID of each process, intercepts the windows content of corresponding web page load application according to each window handle obtained and window sectional drawing API;
Windows content coding output module 340, for exporting each windows content intercepted according to corresponding resolution encoding.
Apparatus of the present invention can also comprise the target web information storage module be connected with target web data obtaining module 310, for the network address of each described target web of input, resolution and display position on the table etc. being stored in a database.Target web data obtaining module 310 directly can be inputted by user and obtain target web network address and other relevant information, also can obtain the information such as the target web network address of storage from target web information storage module.
After the network address that target web data obtaining module 310 obtains each target web and display position, target web display module 320 creates the process of webpage load application corresponding to each target web, and gives corresponding process using the network address of each target web and display position on the table as process initiation parameter transmission.Namely each process can be loaded by webpage loading interface and show corresponding target web, and wherein webpage loading interface can comprise the webpage loading interface etc. of WebBrowser.
After target web display module 320 shows corresponding target web by each webpage load application, windows content interception module 330 needs to intercept the target window of each webpage load application.After windows content interception module 330 obtains the window handle of corresponding web page load application according to the ID of each process, can be this process creation and start a windows content to intercept thread, intercept in thread at this windows content, by this window handle of acquisition and the windows content of this webpage load application of window sectional drawing API circulation intercepting.The each windows content intercepted is carried out coding according to the resolution that target web data obtaining module 310 obtains and exports by windows content coding output module 340.
What exported by encoding device coding is the whole desktop of service server due to existing, and user's needs is only effective business datum part, so in order to improve data processing rate and reduce transmission bandwidth waste etc., window sectional drawing API can adopt PrintWindow etc., thus what ensure to intercept is the content of the most effective coverage of webpage, i.e. the content of client area.Webpage load application can be designed as single document structure in addition, and target web is presented in document views district, and the document view area is also the follow-up window needing to intercept.
As shown in Figure 4, apparatus of the present invention can also comprise remote control module 350, the mouse-keyboard message of computer 150 transmission is controlled for receiving management, described mouse-keyboard message is transmitted to webpage load application corresponding to process to be controlled, and records the code stream address of mouse-keyboard message and the mapping relations of process to be controlled.Management controls computer 150 and generates target code stream address according to target network address and code stream address composition rule, is shown, realize the Long-distance Control to target web simultaneously by target code stream address acquisition object code stream.Remote control module 350, before receiving management controls the mouse-keyboard message of computer 150 transmission, can also create and start mouse-keyboard message sink thread, realizing the Long-distance Control to target web in this mouse-keyboard message sink thread.
Apparatus of the present invention can be realized by management application chip, and as shown in Figure 5, management application chip can be arranged on server 300.Multiple web page contents of server 300 pairs of service servers 110 carry out coding and export, and can control the Long-distance Control of computer 150 by receiving management simultaneously.The IP code stream that the decoding device 130 pairs of servers 300 transmit is decoded, and by output interface, decoded data is transferred to display device 140 and shows.And encoding device of the prior art only can process a webpage, that is to say that a server 300 being provided with this management application chip is equivalent to multiple encoding device, greatly reduce the complexity of business management system.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. Web page screen-cutting and a coding and transmission method, is characterized in that, comprises step:
Obtain the network address of each target web of output to be encoded, resolution and display position on the table;
Create the process of webpage load application corresponding to each target web, the network address of each target web and display position are on the table transferred to corresponding process, make each process be loaded by webpage loading interface and show corresponding target web;
Obtain the window handle of corresponding web page load application according to the ID of each process, intercept the windows content of corresponding web page load application according to each window handle obtained and window sectional drawing API;
The each windows content intercepted is exported according to corresponding resolution encoding.
2. Web page screen-cutting according to claim 1 and coding and transmission method, is characterized in that, also comprises step:
Receiving management controls the mouse-keyboard message that computer sends, and described mouse-keyboard message is transmitted to webpage load application corresponding to process to be controlled, and records the code stream address of mouse-keyboard message and the mapping relations of process to be controlled.
3. Web page screen-cutting according to claim 2 and coding and transmission method, it is characterized in that, after obtaining the step of the window handle of corresponding web page load application according to the ID of each process, before intercepting the step of the windows content of corresponding web page load application according to each window handle obtained and window sectional drawing API, also comprise step: create and start the windows content intercepting thread of each described process;
Receiving management also comprises step: create and start mouse-keyboard message sink thread before controlling the step of the mouse-keyboard message that computer sends.
4. Web page screen-cutting according to claim 1 and coding and transmission method, is characterized in that, before obtaining the step of the network address of each target web of output to be encoded, resolution and display position on the table, also comprises step:
The network address of each described target web of input, resolution and display position are on the table stored in a database.
5. the Web page screen-cutting according to Claims 1-4 any one and coding and transmission method, is characterized in that, described webpage loading interface comprises the webpage loading interface of WebBrowser, and described window sectional drawing API comprises PrintWindow.
6. Web page screen-cutting and a coding transmission device, is characterized in that, comprising:
Target web data obtaining module, for obtaining the network address of each target web of output to be encoded, resolution and display position on the table;
Target web display module, for creating the process of webpage load application corresponding to each target web, and the network address of each target web and display position are on the table transferred to corresponding process, make each process be loaded by webpage loading interface and show corresponding target web;
Windows content interception module, for obtaining the window handle of corresponding web page load application according to the ID of each process, intercepts the windows content of corresponding web page load application according to each window handle obtained and window sectional drawing API;
Windows content coding output module, for exporting each windows content intercepted according to corresponding resolution encoding.
7. Web page screen-cutting according to claim 6 and coding transmission device, it is characterized in that, also comprise remote control module, the mouse-keyboard message of computer transmission is controlled for receiving management, described mouse-keyboard message is transmitted to webpage load application corresponding to process to be controlled, and records the code stream address of mouse-keyboard message and the mapping relations of process to be controlled.
8. Web page screen-cutting according to claim 7 and coding transmission device, it is characterized in that, after described windows content interception module obtains the window handle of corresponding web page load application according to the ID of each process, before intercepting the windows content of corresponding web page load application according to each window handle obtained and window sectional drawing API, also for create and the windows content starting each described process intercepts thread;
Before described remote control module receiving management controls the mouse-keyboard message of computer transmission, also for creating and starting mouse-keyboard message sink thread.
9. Web page screen-cutting according to claim 6 and coding transmission device, it is characterized in that, also comprise the target web information storage module be connected with described target web data obtaining module, for the network address of each described target web of input, resolution and display position on the table being stored in a database.
10. the Web page screen-cutting according to claim 6 to 9 any one and coding transmission device, is characterized in that, described webpage loading interface comprises the webpage loading interface of WebBrowser, and described window sectional drawing API comprises PrintWindow.
CN201410627834.5A 2014-11-07 2014-11-07 Web page screen-cutting and coding and transmission method and device Expired - Fee Related CN104462220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410627834.5A CN104462220B (en) 2014-11-07 2014-11-07 Web page screen-cutting and coding and transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410627834.5A CN104462220B (en) 2014-11-07 2014-11-07 Web page screen-cutting and coding and transmission method and device

Publications (2)

Publication Number Publication Date
CN104462220A true CN104462220A (en) 2015-03-25
CN104462220B CN104462220B (en) 2018-05-22

Family

ID=52908256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410627834.5A Expired - Fee Related CN104462220B (en) 2014-11-07 2014-11-07 Web page screen-cutting and coding and transmission method and device

Country Status (1)

Country Link
CN (1) CN104462220B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471739A (en) * 2018-10-24 2019-03-15 百度在线网络技术(北京)有限公司 Data transmission method and device between local application and webpage kernel
CN114610405A (en) * 2022-03-03 2022-06-10 深圳盛显科技有限公司 Multi-application screen capture and network code output method, device, medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073650A (en) * 2009-11-25 2011-05-25 阿里巴巴集团控股有限公司 Adaptive adjustment method and equipment for webpage
CN103135956A (en) * 2013-03-18 2013-06-05 广东威创视讯科技股份有限公司 Splicing display method and browser for achieving splicing display
US20130241802A1 (en) * 2011-01-05 2013-09-19 Nec Corporation Information processing terminal and control method thereof
CN103593196A (en) * 2013-11-25 2014-02-19 深信服网络科技(深圳)有限公司 Page layout self-adaptation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073650A (en) * 2009-11-25 2011-05-25 阿里巴巴集团控股有限公司 Adaptive adjustment method and equipment for webpage
US20130241802A1 (en) * 2011-01-05 2013-09-19 Nec Corporation Information processing terminal and control method thereof
CN103135956A (en) * 2013-03-18 2013-06-05 广东威创视讯科技股份有限公司 Splicing display method and browser for achieving splicing display
CN103593196A (en) * 2013-11-25 2014-02-19 深信服网络科技(深圳)有限公司 Page layout self-adaptation method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471739A (en) * 2018-10-24 2019-03-15 百度在线网络技术(北京)有限公司 Data transmission method and device between local application and webpage kernel
CN114610405A (en) * 2022-03-03 2022-06-10 深圳盛显科技有限公司 Multi-application screen capture and network code output method, device, medium and product
CN114610405B (en) * 2022-03-03 2024-03-29 深圳盛显科技有限公司 Multi-application screen capturing and network code output method, equipment, medium and product

Also Published As

Publication number Publication date
CN104462220B (en) 2018-05-22

Similar Documents

Publication Publication Date Title
US9411789B1 (en) Clickable links within live collaborative web meetings
CN103294438B (en) The controls transfer method and system of virtual desktop image
US9557878B2 (en) Permitting participant configurable view selection within a screen sharing session
DE112018000226T5 (en) Mobile cloud computing device and operating method
CN104199723B (en) Camera mapping method based on virtual equipment
US11310204B2 (en) Centralized access to data repository from a multi-cloud computing environment
US9930130B2 (en) Processing hybrid data using a single web client
CN102223368B (en) System and method capable of realizing operation identification during monitoring of remote desktop protocol (RDP)
US10983810B2 (en) Implementing web browser in virtual machine
CN103414751A (en) PC screen content sharing/interaction control method
US20210099553A1 (en) Integration of a standard network protocol layer in a web browser by compilation to webassembly and use of a websocket
CN103530160A (en) Page loading method and device
US20170099507A1 (en) Method and apparatus for transmitting data in intelligent terminal to television terminal
CN102611878A (en) Low-bandwidth-occupancy high-definition camera mapping method
CN104268781A (en) National and local tax sharing self-service tax handling method
CN103188341A (en) Remote management system, remote management device, and remote management method
CN103997482A (en) Method of user registration in desktop cloud service, and system
CN104462220A (en) Method and device for web page screen shot and code transmission
CN103685536A (en) Monopolized type virtual desktop management method
US20150365500A1 (en) Remote client application
CN103618784B (en) VNC multipath interaction method
US10025550B2 (en) Fast keyboard for screen mirroring
US20160062957A1 (en) Remotely providing fonts for an electronic document
CN110830760B (en) Secure network data interaction system and method
US20150149582A1 (en) Sending mobile applications to mobile devices from personal computers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
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: 20180522

Termination date: 20211107