Summary of the invention
In view of this, the invention provides a kind of Internet video communication method and system, to solve the problem that lacks the video calling Rule of judgment in the existing instant messaging.
The invention provides a kind of Internet video communication method, when it initiates the video calling request in calling party, comprise the steps: to gather local real-time video information; This real-time video information is carried out encoding compression; Video information after the encoding compression is carried out buffer memory; Send the callee to after video information after the encoding compression is converted into flow data.
The invention provides a kind of Internet video communication method, when it receives the video calling request the callee, comprise the steps: the flow data that receipt of call side transmits; The described flow data of buffer memory; Extraction is also handled described flow data, obtains the video information of encoded compression; This video information is carried out playing behind the uncompressed encoding.
The invention provides a kind of Internet video communication method, it comprises: when calling party is initiated the video calling request, calling terminal is gathered local real-time video information, this real-time video information is carried out encoding compression, video information after the encoding compression is carried out buffer memory, send the callee to after the video information after the encoding compression is converted into flow data; When the callee receives the video calling request, the flow data that terminal called receipt of call side transmits; The described flow data of buffer memory; Extraction is also handled described flow data, obtains the video information of encoded compression; This video information is carried out playing behind the uncompressed encoding; The callee judges whether to accept this video calling request according to the video of playing.
The present invention provides a kind of Internet video AC system in addition, the calling terminal of this system comprises: control unit, when monitoring this calling terminal initiation video calling request, control is carried out following operation with lower module: acquisition module, the video information of collection local video equipment; Coding module carries out encoding compression to the video information of acquisition module collection; Memory module is carried out buffer memory to the video information after the described encoding compression; The flow data processing module is handled the video information after the encoding compression, is converted into flow data; Transport module sends described flow data to terminal called.
The present invention provides a kind of Internet video AC system in addition, the terminal called of this system comprises: control unit, monitor this terminal called when receiving the video calling request of calling terminal, control is carried out following operation with lower module: receiver module, the flow data that the receipt of call terminal transmits; Memory module, the described flow data of buffer memory; Described flow data is extracted and handled to the flow data processing module, obtains the video information of encoded compression; Decoder module carries out uncompressed encoding to the video information of described encoded compression; Playing module is play the video information behind the described uncompressed encoding.
The present invention provides a kind of Internet video AC system in addition, comprise calling terminal and terminal called, wherein calling terminal comprises: the calling terminal control unit, when monitoring this calling terminal initiation video calling request, control is carried out following operation with lower module: acquisition module, the video information of gathering local video equipment; Coding module carries out encoding compression to the video information of acquisition module collection; The calling terminal memory module is carried out buffer memory to the video information after the described encoding compression; Calling terminal flow data processing module is handled the video information after the encoding compression, is converted into flow data; Transport module sends described flow data to terminal called; Terminal called comprises: the terminal called control unit, monitor this terminal called when receiving the video calling request of calling terminal, and control is carried out following operation with lower module: receiver module, the flow data that the receipt of call terminal transmits; The terminal called memory module, the described flow data of buffer memory; Described flow data is extracted and handled to terminal called flow data processing module, obtains the video information of encoded compression; Decoder module carries out uncompressed encoding to the video information of described encoded compression; Playing module is play the video information behind the described uncompressed encoding.
When as seen above Internet video AC system and method being applied to the Internet video conversation, calling party is when initiating call request, the callee be handled and be sent to calling terminal just can with the video information that collects in real time automatically, and the callee is when receiving this call request, received the video information of calling party simultaneously, and terminal called is handled automatically and is shown and this video information judges whether to accept this video calling request in view of the above to make things convenient for the callee.So, enriched the connection Rule of judgment of point-to-point video calling between the user, the callee just can see calling party real-time video content before connecting video calling, optimized user experience.
Embodiment
For above-mentioned feature and advantage of the present invention can be become apparent, exemplary embodiment cited below particularly, and conjunction with figs. are described in detail below.
This method calls out, verifies that with the point-to-point video call function of user flow process is optimized, when calling party is initiated request, with local camera collection to real-time video compress and directly send the callee to, play after callee's decompress(ion), before whether callee's checking connects, can watch the real-time video of calling party.Specific implementation describes in detail by following examples:
Please refer to Fig. 1, it is the theory diagram of the Internet video AC system that one embodiment of the invention provided.As shown in the figure, this system comprises calling terminal 100 and terminal called 200, wherein calling terminal 100 comprises acquisition module 110, coding module 120, calling terminal memory module 130, calling terminal flow data processing module 140, transport module 150 and control unit 170, wherein control unit 170 is coordinated above each module work, it is when monitoring these calling terminal 100 initiation video calling requests, and control is carried out following operation with lower module:
The video information that acquisition module 110 is gathered local video equipment 160 (for example cameras); The video information that 120 pairs of acquisition modules of coding module 110 are gathered is carried out encoding compression; Video information after 130 pairs of encoding compression of calling terminal memory module is carried out buffer memory; Video information after 140 pairs of encoding compression of calling terminal flow data processing module is handled, and is converted into flow data; Transport module 150 sends flow data to terminal called.
Terminal called 200 comprises that receiver module 210, terminal called memory module 220, decoder module 230 are with, playing module 240 and control unit 260, wherein control unit 260 is coordinated the work of above each module, it is monitoring this terminal called 200 when receiving the video calling request of calling terminal 100, and control is carried out following operation with lower module:
The flow data that receiver module receipt of call terminal 100 transmits; This flow data of terminal called memory module 220 buffer memorys; Terminal called flow data processing module 230 is extracted and is handled this flow data, obtains the video information of encoded compression; The video information of 230 pairs of encoded compressions of decoder module is carried out uncompressed encoding; After the decoding, playing module 240 just can be play this video information by display device 250.
As seen, calling terminal 100 is when initiating the video calling request, under the control of control unit 170, the video information of calling terminal 100 just can send terminal called 200 to automatically, and terminal called 200 can the above video information of automatic reception also be play under the control of control unit 200 automatically, so that the callee determines that after having watched the calling party video whether setting up video connects again.
Need to prove that at this code encoding/decoding mode that does not limit coding module 120 and decoder module 230, its those skilled in the art can be provided with according to its selected compression of video data mode.Video compression coding standards such as X264 for example commonly used now and Xvib.
And why encoded video data is converted to flow data, and be because the Internet communication needs according to the existing network transmission protocol, are packaged as video data UDP (User Datagram Protocol) bag usually, transmit by the Internet.
When as seen above Internet video AC system being applied to the Internet video conversation, calling party is when initiating call request, the callee be handled and be sent to calling terminal just can with the video information that collects in real time automatically, and the callee is when receiving this call request, received the video information of calling party simultaneously, and terminal called is handled automatically and is shown and this video information judges whether to accept this video calling request in view of the above to make things convenient for the callee.So, enriched the connection Rule of judgment of point-to-point video calling between the user, the callee just can see calling party real-time video content before connecting video calling, optimized user experience.
Accordingly, the present invention also provides a kind of Internet video communication method.Specifically please refer to Fig. 2, it is that calling terminal carries out following operation automatically when calling party is initiated the video calling request:
S110: gather local real-time video information;
S120: this real-time video information is carried out encoding compression;
S130: the video information after the encoding compression is carried out buffer memory;
S140: send the callee to after the video information after the encoding compression is converted into flow data.
And when the callee received the video calling request, terminal called carried out following operation automatically, as Fig. 3:
S210: the flow data that receipt of call side transmits;
S220: this flow data of buffer memory;
S230: extract and handle this flow data, obtain the video information of encoded compression;
S240: this video information is carried out playing behind the uncompressed encoding.
So, called convenience can judge whether to accept this video calling request according to the video of playing.
Above Internet video AC system and method are applied in user's instant messaging, can enrich the connection Rule of judgment of point-to-point video calling between the user, make the callee before connecting video calling, can see calling party real-time video content, optimized user experience.The concrete operations flow process please refer to Fig. 4
At first, calling party initiates to land video instant communication software;
Then, after calling party is selected called party (good friend), initiate the video calling request; This moment is because the application of above system and method, local camera collection to real-time video directly send the callee to after will being compressed coding and packing.Need to prove that the present invention is different from prior art, the calling party local video does not need through the calling party checking, and directly compression sends the callee to.
Afterwards, in callee's terminal, play after video is extracted, the callee just can watch the real-time video of calling party before whether checking connects like this.
At last, whether called convenience can carry out video calling according to this real-time video decision, has solved the problem that lacks the video calling Rule of judgment in the existing instant messaging.
In addition,, promptly only can be watched, need on terminal server, set up authentication policy by the callee in order to guarantee the safety of video transmission.The present invention distributes unique ID to prevent to be obtained this video by other users by invite user (callee) to this at server end, specifically please refer to Fig. 5, and it comprises the steps:
S510: Administrator Client's notification service end is opened the formation application;
S520: service end is opened team's preface, opens and receives user applies;
S530: subscription client sends application;
S540: service end distributes unique random number for the application user;
S550: the Administrator Client sends expiry notification to service end;
S560: service end stops to receive, and according to the big minispread of random number team preface;
S570: service end issues formation and gives subscription client.
Certainly, only plant security strategy herein at this point and be described in detail, those skilled in the art can point out in view of the above, adopt any security strategy, the present invention at this not as limit.
More than show and described basic principle of the present invention, principal character and advantage of the present invention.Those skilled in the art should understand; the present invention is not restricted to the described embodiments; what describe in the foregoing description and the specification is principle of the present invention; the present invention also has various changes and modifications without departing from the spirit and scope of the present invention, and these changes and improvements all fall in the claimed scope of the present invention.The protection range that the present invention requires is defined by appending claims and equivalent thereof.