Summary of the invention
Embodiment of the present invention technical problem to be solved is to provide a kind of screen sharing method and system based on looking networking, to solve cannot realize in depending on networking, captures the screen-picture of specifying PC terminal, and based on carrying out shared problem depending on networking.
In order to address the above problem, the invention discloses a kind of screen sharing method based on looking networking, it is characterized in that, comprising:
PC terminal is looked networked server by PC screen coding device access wherein;
Described PC screen coding device captures the screen-picture of described PC terminal, described screen-picture is generated to the first video packets of data that comprises the first routing information, and according to described the first routing information, described the first video packets of data is looked to networked server described in transferring to depending on networking; Wherein, described in described the first path message identification, the first video data wraps in the transmission path depending on transmitting in networking;
Accessed depending on networked server depending on networking terminal, to the described networked server of looking, send video data request, and described in receiving depending on networked server by described the second video packets of data that comprises the second routing information that issue depending on networking, that generate according to the video data in described the first video packets of data; Wherein, described the second routing information identifies described the second video data and wraps in the transmission path depending on transmitting in networking.
Alternatively, described PC terminal is looked networked server by PC screen coding device access wherein, comprising:
What described in described PC screen coding device receives, depending on networked server, issue looks the instruction of networking ID inquiring, described in depending on the instruction of networking ID inquiring comprise described PC terminal MAC Address and described in depending on networked server be described PC terminal distribution look networking address;
Whether described PC screen coding device detects described MAC Address correct, when correct, to described, depending on networked server, send depending on networking ID inquiring and reply instruction, described in depending on networking ID inquiring, reply the sign that instruction comprises described PC terminal;
The networking success instruction issuing depending on networked server described in described PC screen coding device receives, the successful instruction of described networking comprise described PC terminal depending on networking address and described in depending on networked server, be the Subscriber Number of described PC terminal distribution, the successful instruction of described networking is depending on networked server, the sign of described PC terminal to be verified, and is verified rear transmission;
Described PC screen coding device is looked networked server described in the instruction of networking successful respond is sent to, and described in described PC terminal successfully accesses, looks networked server.
Alternatively, after PC terminal is looked networked server by PC screen coding device access wherein, also comprise:
Described in described PC screen coding device receives, depending on networked server, send comprise described in look the coded address of networked server coding and decoding instruction, described coding and decoding instruction is used for notifying described PC screen coding device to send video data stream to the described networked server of looking.
Alternatively, described the first path packets of information draw together described in depending on the MAC Address of networked server and the MAC Address of coded address and described PC terminal and look networking address, wherein, the MAC Address of described PC terminal and be source address depending on networking address, described in depending on MAC Address and the coded address of networked server, be destination address;
Described the first video packets of data that comprises the first routing information that described screen-picture is generated, and according to described the first routing information, described the first video packets of data is looked to networked server described in transferring to depending on networking, comprising:
Described screen-picture packing is encapsulated in and is looked in networking protocol message body, be encapsulated as the first video packets of data that comprises described the first routing information;
Described in being sent to according to the source address in described the first routing information and destination address, described the first video packets of data looks the coded address of networked server.
Alternatively, before described screen-picture generation is comprised to the first video packets of data of the first routing information, also comprise: described screen-picture is compressed;
Described the first video packets of data that comprises the first routing information that described screen-picture is generated, comprising: the screen-picture after compression is generated to the first video packets of data that comprises the first routing information.
Alternatively, described PC screen coding device captures the screen-picture of described PC terminal, comprising:
By calling the bitmap function BitBlt copy of windows GDI, obtain screen-picture content;
By calling the GetDIBits function of windows GDI, obtain the message bit pattern of described screen-picture content;
The message bit pattern of described screen-picture content is carried out to YUV coding, generate the image of yuv format, the image of described yuv format is the screen-picture of crawl.
Alternatively, the request of obtaining of described video data comprises the Subscriber Number of described PC terminal, described in described the second routing information comprises depending on the MAC Address of networked server and described in look the MAC Address of networking terminal, wherein, the described MAC Address depending on networked server is source address, described in depending on networking terminal MAC Address be destination address;
Described video data corresponding to Subscriber Number of searching described PC terminal depending on networked server, described video data is generated and comprises the second video packets of data of the second routing information, and look networking terminal described in described the second video packets of data is sent to according to the source address in described the second routing information and destination address.
On the other hand, the invention also discloses a kind of Screen Sharing System based on looking networking, it is characterized in that, comprising: PC terminal, access depending on networked server depending on networking terminal and look networked server,
Wherein, described PC terminal comprises PC screen coding device, and described PC screen coding device comprises:
Access module is looked networked server described in accessing;
Picture handling module, for capturing the screen-picture of described PC terminal;
Generate transport module, for described screen-picture being generated to the first video packets of data that comprises the first routing information, and according to described the first routing information, described the first video packets of data is looked to networked server described in transferring to depending on networking; Wherein, described in described the first path message identification, the first video data wraps in the transmission path depending on transmitting in networking;
Described accessed depending on networked server depending on networking terminal comprising:
Request sending module, for sending video data request to the described networked server of looking;
Data reception module, for described in receiving depending on networked server by described the second video packets of data that comprises the second routing information that issue depending on networking, that generate according to described the first video packets of data; Wherein, described the second routing information identifies described the second video data and wraps in the transmission path depending on transmitting in networking.
Alternatively, described access module comprises:
First receives submodule, for what issue depending on networked server described in receiving, looks the instruction of networking ID inquiring, described in depending on the instruction of networking ID inquiring comprise described PC terminal MAC Address and described in depending on networked server be described PC terminal distribution look networking address;
Whether first sends submodule, correct for detection of described MAC Address, when correct, to described, depending on networked server, send depending on networking ID inquiring and reply instruction, described in depending on networking ID inquiring, reply the sign that instruction comprises described PC terminal;
Second receives submodule, be used for the networking success instruction issuing depending on networked server described in receiving, the successful instruction of described networking comprise described PC terminal depending on networking address and described in depending on networked server, be the Subscriber Number of described PC terminal distribution, the successful instruction of described networking is depending on networked server, the sign of described PC terminal to be verified, and is verified rear transmission;
Second sends submodule, described in the instruction of networking successful respond is sent to, looks networked server, described in described PC terminal successfully accesses, looks networked server.
Alternatively, described PC screen coding device also comprises:
Command reception module, for after looking networked server described in described access module access, described in reception, depending on networked server, send comprise described in look the coded address of networked server coding and decoding instruction, described coding and decoding instruction is used for notifying described PC screen coding device to send video data stream to the described networked server of looking.
Alternatively, described the first path packets of information draw together described in depending on the MAC Address of networked server and the MAC Address of coded address and described PC terminal and look networking address, wherein, the MAC Address of described PC terminal and be source address depending on networking address, described in depending on MAC Address and the coded address of networked server, be destination address;
Described generation transport module comprises:
Encapsulation submodule, for described screen-picture packing is encapsulated in and looks networking protocol message body, is encapsulated as the first video packets of data that comprises described the first routing information;
Send submodule, for looking the coded address of networked server described in described the first video packets of data is sent to according to the source address of described the first routing information and destination address.
Alternatively, described PC screen coding device also comprises:
Compression module, before described screen-picture generation being comprised to the first video packets of data of the first routing information at generation transport module, compresses described screen-picture;
Described generation transport module generates the screen-picture after compression the first video packets of data that comprises the first routing information.
Alternatively, described picture handling module comprises:
Content obtaining submodule, for obtaining screen-picture content by calling the bitmap function BitBlt copy of windows GDI;
Acquisition of information submodule, for obtaining the message bit pattern of described screen-picture content by calling the GetDIBits function of windows GDI;
Conversion submodule, for the message bit pattern of described screen-picture content is carried out to YUV coding, generates the image of yuv format, and the image of described yuv format is the screen-picture of crawl.
Compared with prior art, the embodiment of the present invention comprises following advantage:
First can be in PC terminal in the embodiment of the present invention installation and operation PC screen coding device, by this PC screen coding device, the PC terminal that need to be shared screen-picture can be looked to networked server with a kind of identity access depending on networking terminal, this PC screen coding device can capture the screen-picture of PC terminal, screen-picture is generated to the first video packets of data comprise the first routing information, and according to the first routing information by the first video packets of data by transferring to and look networked server depending on networking; Then accessed and depending on networking terminal, can send video data request depending on networked server to looking networked server, and receive depending on networked server by the second video packets of data that comprises the second routing information issuing depending on networking, generate according to described the first video packets of data, thereby depending on networking terminal, can share the screen-picture of above-mentioned PC terminal.
On the one hand, due to PC terminal is looked to networked server with a kind of identity access depending on networking terminal, so the data of this PC terminal can transmit in depending on networking, thereby realize the screen-picture of sharing this PC terminal in looking networking; On the other hand, above-mentioned first path message identification the first video data wraps in the transmission path depending on transmitting in networking, the second routing information identifies the second video data and wraps in the transmission path depending on transmitting in networking, therefore in the transmitting procedure of packet, directly according to above-mentioned transmission path, transmit, and without adopting agreement (the Internet Protocol interconnecting between existing network, IP) solution, by each packet, consult voluntarily transmission route, thereby can guarantee the stable and unobstructed of transmission channel, avoid the time delay of multimedia service.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Due in looking networking, sometimes need special displaying to specify the screen-picture of PC terminal, to improve, link up interactive efficiency and effect, such as in the processes such as video conference, video monitoring, video request program, all need to realize sharing of screen-picture.But current PC terminal cannot realize transfer of data in depending on networking, in depending on networking, also cannot realize at present and capture the screen-picture of specifying PC terminal, and based on sharing depending on networking.
The present invention is exactly a kind of screen sharing method and the system based on looking networking proposing for the problems referred to above, PC terminal can be looked to networked server with a kind of identity access depending on networking terminal, thereby realizes data the sharing in looking networking of PC terminal.PC terminal in the present invention can be desktop computer, all-in-one, notebook computer, palmtop PC, panel computer etc.
Embodiment mono-:
With reference to Fig. 1, show a kind of flow chart based on looking the screen sharing method of networking of the embodiment of the present invention one, the method can comprise the following steps:
Step S100, PC terminal is looked networked server by PC screen coding device access wherein.
Depending on having its own terminal in networking, first these terminals will access and look networked server, can be used as depending on networking terminal by looking networking transmission data after access.But PC terminal cannot be transmitted data in depending on networking at present, so in the embodiment of the present invention, proposed a kind of method that the access of PC terminal is looked to networked server, thereby realize, the data of PC terminal have been transmitted in depending on networking.
In the embodiment of the present invention, can in PC terminal, move PC screen coding device, this PC screen coding device can, for being arranged on a PC screen coding device software in PC terminal, can be realized the access of PC terminal is looked to networked server by this PC screen coding device in PC terminal.For concrete access procedure, will discuss in detail in the following embodiments.
Step S102, described PC screen coding device captures the screen-picture of described PC terminal, described screen-picture is generated to the first video packets of data that comprises the first routing information, and according to described the first routing information, described the first video packets of data is looked to networked server described in transferring to depending on networking.
PC terminal is after networked server is looked in access, and this PC terminal can be used as a kind of identity depending on networking terminal and in depending on networking, transmit data.
First, the PC screen coding device in PC terminal can capture the screen-picture of described PC terminal; Then described screen-picture is generated to the first video packets of data that comprises the first routing information, wherein, the first video data wraps in the transmission path depending on transmitting in networking described in the first path message identification; Finally, the transmission path that PC screen coding device can identify according to described the first routing information by the first video packets of data by transferring to and look networked server depending on networking.
Step S104, accessed depending on networked server depending on networking terminal, to the described networked server of looking, send video data request, and described in receiving depending on networked server by described the second video packets of data that comprises the second routing information that issue depending on networking, that generate according to the video data in described the first video packets of data.
Depending on networked server, receive the first video packets of data that PC terminal sends, video data in this video packets of data is the screen-picture of the PC terminal of above-mentioned PC screen coding device crawl, depending on networked server this screen-picture can be sent to access depending on networked server look networking terminal, to realize the screen-picture of sharing this PC terminal in looking networking.
When access depending on networked server depending on networking terminal need to share the screen-picture of PC terminal time, first this can send video data request to looking networked server depending on networking terminal; Depending on networked server after receiving this video data request, can search the first video packets of data that PC terminal sends, then the video data this first video packets of data being comprised generates the second video packets of data that comprises the second routing information, wherein, the second routing information identifies described the second video data and wraps in the transmission path depending on transmitting in networking; Depending on networked server, can by the second video packets of data being sent to this depending on networking, look networking terminal according to the transmission path of the second routing information sign.Finally, depending on networking terminal, the second video packets of data receiving can be processed, the signal that generation can show shows.
In the embodiment of the present invention one, on the one hand, due to PC terminal is looked to networked server with a kind of identity access depending on networking terminal, so the data of this PC terminal can transmit in depending on networking, thereby realize the screen-picture of sharing this PC terminal in looking networking; On the other hand, first path message identification the first video data wraps in the transmission path depending on transmitting in networking, the second routing information identifies the second video data and wraps in the transmission path depending on transmitting in networking, therefore in the transmitting procedure of packet, directly according to above-mentioned transmission path, transmit, and without the solution that adopts existing IP agreement, by each packet, consult voluntarily transmission route, thereby can guarantee the stable and unobstructed of transmission channel, avoid the time delay of multimedia service.
Below, by bis-pairs of a kind of screen sharing methods based on depending on networking of the present invention of embodiment, describe in detail.
Embodiment bis-:
With reference to Fig. 2, show a kind of flow chart based on looking the screen sharing method of networking of the embodiment of the present invention two, the method can comprise the following steps:
Step S200, PC terminal is looked networked server by PC screen coding device access wherein.
In PC terminal, can comprise PC screen coding device, this PC screen coding device can be for being arranged in advance the PC screen coding device software in PC terminal, by moving this PC screen coding device software, can realize the access of PC terminal is looked to networked server.
First every allows the terminal networking all need in depending on networked server, register, and does not have the terminal of registration to network.Therefore, in looking networked server, can safeguard a Registry, in this Registry, can comprise the information such as sign, medium access control (Medium/Media Access Control, MAC) address of registered terminals.Be that in the embodiment of the present invention, first PC terminal will be registered in depending on networked server, after succeeding in registration, depending on networked server, the sign of this PC terminal, MAC Address be saved in Registry.
In the embodiment of the present invention, this step S200 specifically can comprise following sub-step:
A1, what described in described PC screen coding device receives, depending on networked server, issue looks the instruction of networking ID inquiring, described in depending on the instruction of networking ID inquiring comprise described PC terminal MAC Address and described in depending on networked server be described PC terminal distribution look networking address.
When PC terminal will access while looking in networking, depending on networked server, first can from Registry, search the MAC Address of this PC terminal, then according to the log-on message of this PC terminal in Registry, obtaining depending on networked server is that one of PC terminal distribution is looked networking address.Depending on networked server after getting above-mentioned information, can issue to the PC screen coding device in PC terminal and look networking ID inquiring instruction (for example 8a01 instruction), this instruction comprise above-mentioned PC terminal MAC Address and depending on networked server be PC terminal distribution look networking address.
A2, whether described PC screen coding device detects described MAC Address correct, when correct, to described, depending on networked server, send depending on networking ID inquiring and reply instruction, described in depending on networking ID inquiring, reply the sign that instruction comprises described PC terminal.
PC screen coding device receive depending on networked server, issue look networking ID inquiring instruction after, first can detect this depending on the MAC Address in the instruction of networking ID inquiring whether correct (whether identically with the MAC Address of PC terminal detecting this MAC Address).If correct, PC screen coding device will for example, to sending depending on networking ID inquiring and reply instruction (8a03 instruction) depending on networked server, and this replys depending on networking ID inquiring the sign that instruction comprises described PC terminal.If incorrect, do not continue to carry out follow-up step, can detect the mistake occurring, or can resend and look the instruction of networking ID inquiring to PC screen coding device depending on networked server.
A3, the networking success instruction issuing depending on networked server described in described PC screen coding device receives, the successful instruction of described networking comprise described PC terminal depending on networking address and described in depending on networked server, be the Subscriber Number of described PC terminal distribution, the successful instruction of described networking is depending on networked server, the sign of described PC terminal to be verified, and is verified rear transmission.
Depending on networked server, receive depending on networking ID inquiring and reply after instruction, first will to comprising the sign of PC terminal verify (verifying that the sign of this PC terminal is identical with the sign of PC terminal corresponding in Registry).After being verified, depending on networked server, it can be Subscriber Number of PC terminal distribution, afterwards will for example, to the successful instruction (8a11 instruction) that send to network of PC screen coding device, this successful instruction that networks comprise described PC terminal depending on networking address and described in depending on networked server, be the Subscriber Number of described PC terminal distribution.If checking is not passed through, do not continue to carry out follow-up step, can detect the mistake occurring, or carry out some other processing.For above-mentioned depending on networked server, be the detailed process of PC terminal distribution Subscriber Number, those skilled in the art carry out relevant treatment according to practical experience, the embodiment of the present invention is discussed no longer in detail at this.
A4, looks networked server described in described PC screen coding device is sent to the instruction of networking successful respond, described in described PC terminal successfully accesses, looks networked server.
PC screen coding device receives after the instruction of networking successful respond, for example, to return to networking successful respond instruction (8a12 instruction) depending on networked server, after receiving, described in PC terminal successfully accesses, looks networked server depending on networked server.
Step S202, described in described PC screen coding device receives, depending on networked server, send comprise described in look the coded address of networked server coding and decoding instruction, described coding and decoding instruction is used for notifying described PC screen coding device to send video data stream to the described networked server of looking.
After networked server is looked in the access of PC terminal, PC terminal can be transmitted data in depending on networking.What in the embodiment of the present invention, will realize is in looking networking, to share the screen-picture of PC terminal, therefore preferably depending on networked server, can also distribute a coded address, makes PC terminal video data transmitting can be delivered to the coded address that this looks networked server.The order dynamic assignment coded address that embodiment of the present invention Union of Central Vision network server can be initiated according to terminal to apply video traffic, no longer describes in detail for concrete assigning process.
Depending on networked server, the coding and decoding instruction (for example 8704 instructions) depending on the coded address of networked server described in comprising can be sent to PC screen coding device, this coding and decoding instruction is used for notifying described PC screen coding device to send video data stream to the described networked server of looking.
Step S204, described PC screen coding device captures the screen-picture of described PC terminal, described screen-picture is generated to the first video packets of data that comprises the first routing information, and according to described the first routing information, described the first video packets of data is looked to networked server described in transferring to depending on networking.
First, PC screen coding device can capture the real-time screen-picture of PC terminal, and this crawl process specifically can comprise following sub-step:
B1, obtains screen-picture content by calling the bitmap function BitBlt copy of windows GDI (Graphics Device Interface, GDI).
GDI is Windows API(Application Programming Interface) an important component part.It is the bridge between Windows graphic display program and actual physical device, and GDI makes user without the details of being concerned about concrete equipment, and only need in a virtual environment (being logical device), operate.
BitBlt is a bitmap function in GDI function, and the effect of BitBlt function is that the pixel in the source device environmental area of appointment is carried out to a piece (bit_block) conversion, to be sent to target device environment.
B2, obtains the message bit pattern of described screen-picture content by calling the GetDIBits function of windows GDI.
The effect of GetDIBits function is to obtain the position of specifying compatible bitmap, and the specified format of then being done a device independent bit (Device-Independent Bitmap, DIB) use copies in a buffering area.
B3, carries out YUV coding by the message bit pattern of described screen-picture content, generates the image of yuv format, and the image of described yuv format is the screen-picture of crawl.
A kind of colour coding method that YUV is adopted by eurovision system, wherein " Y " represents lightness (Luminance or Luma), namely GTG value; That " U " and " V " represents is colourity (Chrominance or Chroma), and effect is to describe colors of image and saturation, is used to specify the color of pixel.
Then, PC screen coding device can generate the first video packets of data that comprises the first routing information by described screen-picture.Described the first path packets of information is drawn together depending on the MAC Address of networked server and the MAC Address of coded address and PC terminal and is looked networking address, wherein, the MAC Address of described PC terminal and depending on networking address be source address, the described MAC Address depending on networked server and coded address are destination address, and the first video data wraps in the transmission path depending on transmitting in networking described in this first path message identification.
Above-mentioned the first video packets of data comprise the first routing information that screen-picture is generated, and according to the first routing information, the first video packets of data can be comprised to following sub-step by the process depending on networked server described in transferring to depending on networking:
C1, is encapsulated in described screen-picture packing for example, depending in networking protocol message body (looking networking protocol 2002 message bodies), is encapsulated as the first video packets of data that comprises described the first routing information.
For example, packet header that can be using the first routing information as the first video packets of data, source address and destination address while wherein having indicated this first video packets of data transmission.
C2, looks the coded address of networked server described in described the first video packets of data is sent to according to the source address in described the first routing information and destination address.
Preferably, in the embodiment of the present invention, before described screen-picture generation is comprised to the first video packets of data of the first routing information, PC screen coding device can also compress described screen-picture, therefore in above-mentioned steps 204, described screen-picture is generated to the first video packets of data that comprises the first routing information, process be the screen-picture after compression generated to the first video packets of data comprise the first routing information.
For example, PC screen coding device can become H.264 video flowing by the Image Coding of continuous yuv format, thereby can packed data volume, the requirement to bandwidth while reducing Internet Transmission.Then PC screen coding device is incited somebody to action H.264 video stream data, is encapsulated in and looks in networking protocol 2002 message bodies, by sending to and look networked server depending on networking according to protocol format packing.
Step S206, accessed depending on networked server depending on networking terminal, to the described networked server of looking, send video data request, and described in receiving depending on networked server by described the second video packets of data that comprises the second routing information that issue depending on networking, that generate according to the video data in described the first video packets of data.
Depending on networked server, receive the first video packets of data that PC screen coding device sends, in this first packet, can comprise the first routing information and video data, this video data is the screen-picture of above-mentioned PC terminal.Depending on networked server, video data wherein can be stored, for example can stored video data depending on networked server and the corresponding relation of the Subscriber Number of PC terminal.When follow-up have depending on networking terminal request while watching the screen-picture of PC terminal, can send it to this and look networking terminal.
In the embodiment of the present invention, to the terminal depending on networked server request video data, should be and look networking terminal, this terminal has accessed and has looked networked server.For example can for Set Top Box, also can be for accessing other PC terminals of looking networked server, for the access procedure embodiment of the present invention of Set Top Box, be not described in detail in this, for the access procedure of PC terminal, with reference to the concrete access procedure of above-mentioned PC terminal.
When access depending on networked server depending on networking terminal, need to share the screen-picture of above-mentioned PC terminal time, first can send video data request to looking networked server, this video data request can comprise the Subscriber Number of described PC terminal.Depending on networked server, receive this request, can according to above-mentioned video data and the corresponding relation of the Subscriber Number of PC terminal, search the video data corresponding to Subscriber Number of described PC terminal, this video data is the screen-picture of above-mentioned PC terminal.
After finding video data depending on networked server, can generate the second video packets of data that comprises the second routing information according to this video data.Described in described the second routing information comprises depending on the MAC Address of networked server and described in look the MAC Address of networking terminal, wherein, the described MAC Address depending on networked server is source address, the described MAC Address depending on networking terminal is destination address, and this second routing information identifies described the second video data and wraps in the transmission path depending on transmitting in networking.What therefore, depending on networked server, the second video packets of data can be sent to request shares PC terminal screen picture according to the source address in above-mentioned the second routing information and destination address looks networking terminal.
Depending on networking terminal receive depending on networked server by described the second video packets of data that comprises the second routing information that issue depending on networking, that generate according to described video data after, can process to it (for example this second video packets of data being decoded etc.) and generate the signal that can show, then can on the screen of self, show above-mentioned PC terminal screen picture.
In the embodiment of the present invention, by move PC screen coding device software in PC terminal, PC terminal can be looked to networked server with a kind of identity access depending on networking terminal, therefore the data of this PC terminal can be transmitted in depending on networking, thereby realize the screen-picture of sharing this PC terminal in looking networking.
In the embodiment of the present invention, the screen-picture information of PC terminal is imported into and is looked after networking, can apply with various forms, for example: when internal training meeting, the teaching materials picture that speaker teacher's PC can be opened, in the real-time display screen that is illustrated in conference hall, enhancement training effect; The picture effect that other equipment (for example Set Top Box) cannot be able to be realized, is presented in distribution of multimedia information screen in real time by PC screen; Can remote monitoring PC screen, etc.For concrete process, the embodiment of the present invention is discussed no longer in detail.
Embodiment tri-:
Fig. 3 is a kind of structured flowchart based on looking the Screen Sharing System of networking of the embodiment of the present invention three, this system can comprise PC terminal 30, access depending on networked server depending on networking terminal 32 and look networked server 34, wherein, described PC terminal 30 can comprise PC screen coding device 300.
Described PC screen coding device 300 can comprise:
Access module 3000 is looked networked server described in accessing, and is about to the access of PC terminal and looks networked server.
Preferably, access module described in the embodiment of the present invention 3000 can comprise:
First receives submodule, for what issue depending on networked server described in receiving, looks the instruction of networking ID inquiring, described in depending on the instruction of networking ID inquiring comprise described PC terminal MAC Address and described in depending on networked server be described PC terminal distribution look networking address;
Whether first sends submodule, correct for detection of described MAC Address, when correct, to described, depending on networked server, send depending on networking ID inquiring and reply instruction, described in depending on networking ID inquiring, reply the sign that instruction comprises described PC terminal;
Second receives submodule, be used for the networking success instruction issuing depending on networked server described in receiving, the successful instruction of described networking comprise described PC terminal depending on networking address and described in depending on networked server, be the Subscriber Number of described PC terminal distribution, the successful instruction of described networking is depending on networked server, the sign of described PC terminal to be verified, and is verified rear transmission;
Second sends submodule, described in the instruction of networking successful respond is sent to, looks networked server, described in described PC terminal successfully accesses, looks networked server.
Preferably, described PC screen coding device can also comprise: command reception module 3002, for after looking networked server described in described access module access, described in reception, depending on networked server, send comprise described in look the coded address of networked server coding and decoding instruction, described coding and decoding instruction is used for notifying described PC screen coding device to send video data stream to the described networked server of looking.
Picture handling module 3004, for capturing the screen-picture of described PC terminal.
Preferably, described picture handling module 3004 can comprise:
Content obtaining submodule, for obtaining screen-picture content by calling the bitmap function BitBlt copy of windows GDI;
Acquisition of information submodule, for obtaining the message bit pattern of described screen-picture content by calling the GetDIBits function of windows GDI;
Conversion submodule, for the message bit pattern of described screen-picture content is carried out to YUV coding, generates the image of yuv format, and the image of described yuv format is the screen-picture of crawl.
Generate transport module 3006, for described screen-picture being generated to the first video packets of data that comprises the first routing information, and according to described the first routing information, described the first video packets of data is looked to networked server described in transferring to depending on networking; Wherein, described in described the first path message identification, the first video data wraps in the transmission path depending on transmitting in networking.
Wherein, described the first path packets of information draw together described in depending on the MAC Address of networked server and the MAC Address of coded address and described PC terminal and look networking address, wherein, the MAC Address of described PC terminal and be source address depending on networking address, described in depending on MAC Address and the coded address of networked server, be destination address.
Described generation transport module 3006 can comprise:
Encapsulation submodule, for described screen-picture packing is encapsulated in and looks networking protocol message body, is encapsulated as the first video packets of data that comprises described the first routing information;
Send submodule, for looking the coded address of networked server described in described the first video packets of data is sent to according to the source address of described the first routing information and destination address.
Preferably, described PC screen coding device can also comprise: compression module 3008, before described screen-picture generation being comprised to the first video packets of data of the first routing information at generation transport module, compresses described screen-picture.Now described generation transport module can generate the first video packets of data that comprises the first routing information by the screen-picture after compression.
Described depending on networking terminal 32 can comprise:
Request sending module 320, for sending video data request to the described networked server of looking;
Data reception module 322, for described in receiving depending on networked server by described the second video packets of data that comprises the second routing information that issue depending on networking, that generate according to described the first video packets of data; Wherein, described the second routing information identifies described the second video data and wraps in the transmission path depending on transmitting in networking.
Wherein, the request of obtaining of described video data comprises the Subscriber Number of described PC terminal, described in described the second routing information comprises depending on the MAC Address of networked server and described in look the MAC Address of networking terminal, wherein, the described MAC Address depending on networked server is source address, described in depending on networking terminal MAC Address be destination address.Described video data corresponding to Subscriber Number of searching described PC terminal depending on networked server, described video data is generated and comprises the second video packets of data of the second routing information, and look networking terminal described in described the second video packets of data is sent to according to the source address in described the second routing information and destination address.
First can be in PC terminal in the embodiment of the present invention installation and operation PC screen coding device, by this PC screen coding device, the PC terminal that need to be shared screen-picture can be looked to networked server with a kind of identity access depending on networking terminal, this PC screen coding device can capture the screen-picture of PC terminal, screen-picture is generated to the first video packets of data comprise the first routing information, and according to the first routing information by the first video packets of data by transferring to and look networked server depending on networking; Then accessed and depending on networking terminal, can send video data request depending on networked server to looking networked server, and receive depending on networked server by the second video packets of data that comprises the second routing information issuing depending on networking, generate according to described the first video packets of data, thereby depending on networking terminal, can share the screen-picture of above-mentioned PC terminal.
On the one hand, due to PC terminal is looked to networked server with a kind of identity access depending on networking terminal, so the data of this PC terminal can transmit in depending on networking, thereby realize the screen-picture of sharing this PC terminal in looking networking; On the other hand, above-mentioned first path message identification the first video data wraps in the transmission path depending on transmitting in networking, the second routing information identifies the second video data and wraps in the transmission path depending on transmitting in networking, therefore in the transmitting procedure of packet, directly according to above-mentioned transmission path, transmit, and without the solution that adopts existing IP agreement, by each packet, consult voluntarily transmission route, thereby can guarantee the stable and unobstructed of transmission channel, avoid the time delay of multimedia service.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.
The embodiment of the present invention can be described in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), by the teleprocessing equipment being connected by communication network, be executed the task.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
For aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, commodity or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, commodity or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises key element and also have other identical element.
Above to a kind of screen sharing method and system based on looking networking provided by the present invention, be described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention meanwhile.