CN104462220B - Web page screen-cutting and coding and transmission method and device - Google Patents

Web page screen-cutting and coding and transmission method and device Download PDF

Info

Publication number
CN104462220B
CN104462220B CN201410627834.5A CN201410627834A CN104462220B CN 104462220 B CN104462220 B CN 104462220B CN 201410627834 A CN201410627834 A CN 201410627834A CN 104462220 B CN104462220 B CN 104462220B
Authority
CN
China
Prior art keywords
webpage
web page
coding
target webpage
window
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
Application number
CN201410627834.5A
Other languages
Chinese (zh)
Other versions
CN104462220A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A kind of Web page screen-cutting and coding and transmission method and device, the method includes the steps:Obtain the network address of each target webpage of output to be encoded, resolution ratio and display location on the table;The process of the corresponding webpage loading application of each target webpage is created, display location by the network address of each target webpage and on the table is transferred to corresponding process, each process is made to load and show corresponding target webpage by loading interface;The window handle of corresponding web page loading application is obtained according to the ID of each process, according to each window handle of acquisition and the windows content of window sectional drawing API interception corresponding web page loading applications;Each windows content of interception is exported according to corresponding resolution encoding.The present invention realizes the coding output to multichannel webpage, greatly reduces the complexity of business management system and the difficulty of management service.

Description

Web page screen-cutting and coding and transmission method and device
Technical field
The present invention relates to business management system technical field, more particularly to a kind of Web page screen-cutting and coding and transmission method, Web page screen-cutting and coding transmission device.
Background technology
With the continuous development of encoding and decoding technique, it is more and more widely used in all kinds of service management.Such as Shown in Fig. 1, a business management system generally include service server 110, encoding device 120, decoding device 130, display set For 140 and management control computer 150.The output interface of encoding device 120 and service server 110, such as VGA (Video Graphics Array, video transmission standard) interface, DVI (Digital Visual Interface, digital visual interface) etc. Connection, for the desktop of service server 110 to be carried out coding output, while the mouse-keyboard control of take over service server 110 System.Decoding device 130 is used to parse IP (Internet Protocol, the agreement interconnected between network) code of encoding device 120 Stream, and pass through output interface such as DVI, HDMI (High Definition Multimedia Interface, the more matchmakers of fine definition Body interface) etc. shown on display device 140.Management control computer 150 passes through for being managed collectively each service server 110 Soft decoded mode realizes display of the desktop in local desktop of each service server 110, while by local mouse-keyboard message Encoding device 120 is passed to, and then realizes the remote control to service server 110.
With being continuously increased for client traffic, the service server of user is more and more, and with Web (webpage) technology Continuous development, more and more client traffics design using Web, and the encoding device needed therewith can be also continuously increased, It is greatly improved so as to cause the complexity of system, adds the difficulty of system administration maintenance.
The content of the invention
Based on this, it is necessary to be cut in view of the above-mentioned problems, providing a kind of webpage that can reduce business management system complexity Screen and coding and transmission method and device.
A kind of Web page screen-cutting and coding and transmission method, including step:
Obtain the network address of each target webpage of output to be encoded, resolution ratio and display location on the table;
The process of the corresponding webpage loading application of each target webpage is created, by the network address of each target webpage and on the table Display location be transferred to corresponding process, each process is made to load and show corresponding target webpage by webpage loading interface;
The window handle of corresponding web page loading application is obtained according to the ID of each process, according to each window handle and window of acquisition The windows content of mouth sectional drawing API interception corresponding web page loading applications;
Each windows content of interception is exported according to corresponding resolution encoding.
A kind of Web page screen-cutting and coding transmission device, including:
Target webpage data obtaining module, for obtain the network address of each target webpage of output to be encoded, resolution ratio and Display location on the table;
Target webpage display module, for creating the process of each target webpage corresponding webpage loading application, and by each mesh The network address and display location on the table for marking webpage are transferred to corresponding process, and each process is made to add by webpage loading interface Carry and show corresponding target webpage;
Windows content interception module, for obtaining the window handle of corresponding web page loading application, root according to the ID of each process According to the windows content of each window handle and window sectional drawing API the interception corresponding web page loading application of acquisition;
Windows content encodes output module, and each windows content for that will intercept is exported according to corresponding resolution encoding.
Web page screen-cutting of the present invention and coding and transmission method and device are added by the unified corresponding webpage of each target webpage that creates The process of application is carried, make each webpage loading application loading and shows corresponding target webpage, then intercepts each webpage loading application Windows content, each windows content of interception according to corresponding resolution encoding is exported, is realized while to multiple webpages Coding output.The method of the present invention and device can be realized by program or chip, you can to install on the server, then one Server can encode the multiple webpages of output, and an encoding device of the prior art is only capable of coding one webpage of output, institute The complexity of business management system and the difficulty of management service are greatly reduced with the present invention.
Description of the drawings
Fig. 1 is the structure diagram of business management system in the prior art;
Fig. 2 is the flow diagram of the method for the present invention embodiment;
Fig. 3 is the structure diagram of apparatus of the present invention embodiment one;
Fig. 4 is the structure diagram of apparatus of the present invention embodiment two;
Fig. 5 is the structure diagram of business management system of the present invention.
Specific embodiment
The specific embodiment of Web page screen-cutting of the present invention and coding and transmission method is described in detail below in conjunction with the accompanying drawings.
As shown in Fig. 2, a kind of Web page screen-cutting and coding and transmission method, including step:
S210, the network address of each target webpage for obtaining output to be encoded, resolution ratio and display location on the table;
S220, the process for creating the corresponding webpage loading application of each target webpage, by the network address of each target webpage and Display location on desktop is transferred to corresponding process, and each process is made to load and show corresponding target by webpage loading interface Webpage;
S230, the window handle that corresponding web page loading application is obtained according to the ID of each process, according to each window sentence of acquisition Handle and the windows content of window sectional drawing API interception corresponding web page loading applications;
S240, each windows content of interception is exported according to corresponding resolution encoding.
The webpage of target webpage service server to be shown as on display device or management control computer, resolution ratio It needs to encode the resolution ratio exported for each target webpage, webpage loads application for loading and showing corresponding according to target network address Target webpage.The acquisition of each target webpage relevant information directly can input acquisition of information by user in step S210, also may be used The information such as the network address of each target webpage inputted, resolution ratio and display location on the table are stored in database In, the information is then obtained from database again.
Behind network address and display location that target webpage is obtained by step S210, create the corresponding webpage of each target webpage and add The process of application is carried, and display location using the network address of each target webpage and on the table is transferred to as process initiation parameter Corresponding process.Each process can be loaded by webpage loading interface on corresponding display location and display target webpage, Middle webpage loading interface can include webpage loading interface of WebBrowser etc..
Application is loaded by each webpage and shows after corresponding target webpage the target window, it is necessary to the loading application of each webpage It is intercepted, the research content output that will be intercepted.It is obtained according to the ID (identification, identity number) of each process After the window handle for taking corresponding web page loading application, it can be the process creation and start a windows content interception thread, In windows content interception thread, pass through the window handle of acquisition and window sectional drawing API (Application Programming Interface, application programming interface) cycle the windows content for intercepting webpage loading application.Then Each windows content of interception is subjected to coding output according to the resolution ratio obtained in step S210.
Due to it is existing by encoding device coding output be service server entire desktop, and user need only Only it is effective business datum part, so in order to improve data processing rate and reduce transmission bandwidth waste etc., window sectional drawing PrintWindow etc. may be employed in API, so as to ensure that is intercepted is the content of the content, i.e. client area in the most effective region of webpage. In addition webpage loading application can be designed as single document structure, and target webpage is shown in document views area, and the document view Area is also the window for subsequently needing to intercept.
The present invention can also realize the remote control of target webpage, and method is:Receive the mouse that management control computer is sent The mouse-keyboard message is transmitted to the corresponding webpage loading application of process to be controlled, and records mouse-keyboard by Keyboard Message The code stream address of message and the mapping relations of process to be controlled.Management control computer is according to target network address and code stream group of addresses established practice Target code stream address is then generated, obtaining object code stream by target code stream address is shown, while is realized to target webpage Remote control.Before the step of receiving the mouse-keyboard message for managing control computer transmission, it can also create and start mouse Keyboard Message receiving thread realizes the remote control to target webpage in the mouse-keyboard message sink thread.
The method of the present invention can realize that management application program may be mounted to be set similar to coding by managing application program On the server of standby function.Management application program creates and starts each webpage loading application, and unification is carried out to webpage loading application Management, and timing intercepts the target window of each webpage loading application, by the content for each target window being truncated to according to corresponding Resolution ratio carries out coding output, realizes the coding output to multiple webpages.And encoding device of the prior art only can be right One webpage is handled, and that is to say that a server for being equipped with the management application program is equivalent to multiple encoding devices, greatly The big complexity for reducing business management system.
Based on same inventive concept, the present invention also provides a kind of Web page screen-cutting and coding transmission device, below in conjunction with the accompanying drawings The specific embodiment of apparatus of the present invention is described in detail.
As shown in figure 3, a kind of Web page screen-cutting and coding transmission device, including:
Target webpage data obtaining module 310, for obtain the network address of each target webpage of output to be encoded, resolution ratio with And display location on the table;
Target webpage display module 320, for creating the process of the corresponding webpage loading application of each target webpage, and will be each The network address of target webpage and display location on the table are transferred to corresponding process, and each process is made to pass through webpage loading interface Load and show corresponding target webpage;
Windows content interception module 330, for obtaining the window handle of corresponding web page loading application according to the ID of each process, According to each window handle of acquisition and the windows content of window sectional drawing API interception corresponding web page loading applications;
Windows content encodes output module 340, defeated according to corresponding resolution encoding for each windows content that will intercept Go out.
Apparatus of the present invention can also include the target webpage information being connected with target webpage data obtaining module 310 storage mould Block, for the network address of each target webpage inputted, resolution ratio and display location on the table etc. to be stored in data In storehouse.Target webpage data obtaining module 310 can be inputted directly by user obtains target webpage network address and other related letters Breath, can also obtain the information such as the target webpage network address of storage from target webpage information storage module.
After target webpage data obtaining module 310 obtains network address and the display location of each target webpage, target webpage is shown Module 320 creates the process of the corresponding webpage loading application of each target webpage, and by the network address of each target webpage and in desktop On display location be transferred to corresponding process as process initiation parameter.Each process can by webpage loading interface load and Show corresponding target webpage, wherein webpage loading interface can include webpage loading interface of WebBrowser etc..
After target webpage display module 320 loads the corresponding target webpage of application display by each webpage, windows content is cut Modulus block 330 needs to intercept the target window of each webpage loading application.Windows content interception module 330 is according to each process ID obtain corresponding web page loading application window handle after, can be the process creation and start a windows content intercepting line Journey in windows content interception thread, intercepts the webpage by the window handle and window sectional drawing API Xun Huan of acquisition and loads The windows content of application.Windows content encodes output module 340 by each windows content of interception according to target webpage acquisition of information The resolution ratio that module 310 obtains carries out coding output.
Due to it is existing by encoding device coding output be service server entire desktop, and user need only Only it is effective business datum part, so in order to improve data processing rate and reduce transmission bandwidth waste etc., window sectional drawing PrintWindow etc. may be employed in API, so as to ensure that is intercepted is the content of the content, i.e. client area in the most effective region of webpage. In addition webpage loading application can be designed as single document structure, and target webpage is shown in document views area, and the document view Area is also the window for subsequently needing to intercept.
As shown in figure 4, apparatus of the present invention can also include remote control module 350, control computer 150 is managed for receiving The mouse-keyboard message is transmitted to the corresponding webpage loading application of process to be controlled, and remembered by the mouse-keyboard message of transmission Record the code stream address of mouse-keyboard message and the mapping relations of process to be controlled.Management control computer 150 according to target network address and Code stream address composition rule generation target code stream address obtains object code stream by target code stream address and is shown, while real Now to the remote control of target webpage.Remote control module 350 manages the mouse-keyboard message of the control transmission of computer 150 receiving Before, it can also create and start mouse-keyboard message sink thread, be realized in the mouse-keyboard message sink thread to mesh Mark the remote control of webpage.
Apparatus of the present invention can be realized by managing application chip, as shown in figure 5, management application chip may be mounted at clothes It is engaged on device 300.Server 300 carries out coding output to multiple web page contents of service server 110, while can receive management Control the remote control of computer 150.The IP code streams that decoding device 130 transmits server 300 are decoded, and are passed through output and connect Decoded data are transferred to display device 140 and shown by mouth.And encoding device of the prior art only can be to one Webpage is handled, and that is to say that a server for being equipped with the management application chip 300 is equivalent to multiple encoding devices, significantly Reduce the complexity of business management system.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of Web page screen-cutting and coding and transmission method, which is characterized in that including step:
Obtain the network address of each target webpage of output to be encoded, resolution ratio and display location on the table;
The process of each target webpage corresponding webpage loading application is created, by the network address of each target webpage and on the table aobvious Show that location transmission to corresponding process, makes each process load and show corresponding target webpage by webpage loading interface;
The window handle of corresponding web page loading application is obtained according to the ID of each process, is cut according to each window handle and window of acquisition Scheme the windows content of API interception corresponding web page loading applications;
Each windows content of interception is subjected to coding output according to corresponding resolution ratio.
2. Web page screen-cutting according to claim 1 and coding and transmission method, which is characterized in that further include step:
The mouse-keyboard message that management control computer is sent is received, the mouse-keyboard message is transmitted to process to be controlled corresponds to Webpage loading application, and record 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, which is characterized in that obtained according to the ID of each process After the step of window handle of corresponding web page loading application, phase is intercepted according to each window handle of acquisition and window sectional drawing API Before the step of answering the windows content of webpage loading application, step is further included:It creates and starts the windows content of each process Intercept thread;
Before the step of receiving the mouse-keyboard message that management control computer is sent, step is further included:It creates and starts mouse button Disk message sink thread.
4. Web page screen-cutting according to claim 1 and coding and transmission method, which is characterized in that obtain each of output to be encoded Before the step of network address of target webpage, resolution ratio and display location on the table, step is further included:
By the network address of each target webpage of input, resolution ratio and on the table display location storage in the database.
5. Web page screen-cutting according to any one of claims 1 to 4, and coding and transmission method, which is characterized in that the net Page loading interface includes the webpage loading interface of WebBrowser, and the window sectional drawing API includes PrintWindow.
6. a kind of Web page screen-cutting and coding transmission device, which is characterized in that including:
Target webpage data obtaining module, for obtaining the network address of each target webpage of output to be encoded, resolution ratio and in table Display location on face;
Target webpage display module, for creating the process of each target webpage corresponding webpage loading application, and by each target network The network address of page and display location on the table are transferred to corresponding process, make each process by the loading of webpage loading interface and Show corresponding target webpage;
Windows content interception module, for obtaining the window handle of corresponding web page loading application according to the ID of each process, according to obtaining The windows content of each window handle and window sectional drawing API the interception corresponding web page loading application taken;
Windows content encodes output module, for each windows content intercepted to be carried out coding output according to corresponding resolution ratio.
7. Web page screen-cutting according to claim 6 and coding transmission device, which is characterized in that further include remote control mould The mouse-keyboard message for receiving the mouse-keyboard message for managing control computer and sending, is transmitted to process to be controlled by block Corresponding webpage loading application, and record 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, which is characterized in that the windows content intercepts mould After root tuber obtains the window handle of corresponding web page loading application according to the ID of each process, according to each window handle and window of acquisition Before the windows content of sectional drawing API interception corresponding web page loading applications, it is additionally operable to create and starts in the window of each process Hold interception thread;
Before the remote control module receives the mouse-keyboard message that management control computer is sent, it is additionally operable to create and start mouse Mark Keyboard Message receiving thread.
9. Web page screen-cutting according to claim 6 and coding transmission device, which is characterized in that further include and the target network The target webpage information storage module that page information acquisition module is connected, network address for each target webpage that will input, point Resolution and on the table display location storage in the database.
10. Web page screen-cutting and coding transmission device according to claim 6 to 9 any one, which is characterized in that the net Page loading interface includes the webpage loading interface of WebBrowser, and the window sectional drawing API includes 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 CN104462220A (en) 2015-03-25
CN104462220B true 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)

Families Citing this family (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
CN114610405B (en) * 2022-03-03 2024-03-29 深圳盛显科技有限公司 Multi-application screen capturing and network code output method, equipment, medium and product

Citations (3)

* 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
CN103593196A (en) * 2013-11-25 2014-02-19 深信服网络科技(深圳)有限公司 Page layout self-adaptation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012141902A (en) * 2011-01-05 2012-07-26 Nec Corp Information processing terminal and control method thereof

Patent Citations (3)

* 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
CN103593196A (en) * 2013-11-25 2014-02-19 深信服网络科技(深圳)有限公司 Page layout self-adaptation method and device

Also Published As

Publication number Publication date
CN104462220A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
DE112018000226T5 (en) Mobile cloud computing device and operating method
KR101037263B1 (en) Session description message extensions
US10769353B2 (en) Dynamic streaming content provided by server and client-side tracking application
US9350763B1 (en) HTTP tunnelling over websockets
US9779069B2 (en) Model traversing based compressed serialization of user interaction data and communication from a client-side application
CN102223368B (en) System and method capable of realizing operation identification during monitoring of remote desktop protocol (RDP)
US20200274908A1 (en) Screencast orchestration
US11916992B2 (en) Dynamically-generated encode settings for media content
US9680897B2 (en) Throttled scanning for optimized compression of network communicated data
US20210006617A1 (en) Content snip capture and sharing
US11315605B2 (en) Method, device, and computer program product for storing and providing video
TWI475490B (en) Virtual file transmission system and method of transmitting virtual file thereof
US10200434B1 (en) Encoding markers in transport streams
US9204175B2 (en) Providing partial file stream for generating thumbnail
CN104462220B (en) Web page screen-cutting and coding and transmission method and device
US20150222683A1 (en) Apparatus And Method For Associating Related Data From Multiple Sources
US10673919B1 (en) Concurrent input monitor and ingest
CN113486018B (en) Production data storage method, storage device, electronic equipment and storage medium
WO2018177792A1 (en) Rule-based communicating of equipment data from an industrial system to an analysis system using uni-directional interfaces
Simoens et al. Optimized mobile thin clients through a MPEG-4 BiFS semantic remote display framework
US10176150B2 (en) Remotely providing fonts for an electronic document
EP3189666B1 (en) Partial headers for system set-up
US20170269894A1 (en) Fast keyboard for screen mirroring
US20200329087A1 (en) Relaying and restreaming media
US10367876B2 (en) Environmentally adaptive and segregated media pipeline architecture for multiple streaming sessions

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

Granted publication date: 20180522

Termination date: 20211107

CF01 Termination of patent right due to non-payment of annual fee