The method in strange land is write in smooth broadcasting in real time in the netmeeting
Technical field
The present invention relates to network communication field, the method in strange land is write in the broadcasting that relates in particular to netmeeting.Said network teleconference system is based on the multimedia communications system of network IM, supports functions such as many people video conference, video communication, multi-person speech, Screen sharing, dynamically PPT speech, written communication, note message, electronic whiteboard, many people desktop are shared, file transfer." meeting " among the present invention promptly is the abbreviation to " network teleconference ".
Background technology
Netmeeting is to be the multimedia conferencing platform of media with the network, but the communicative effect as the realization face-to-face of the restricted passage the Internet of user's break through region.System adopts advanced audio/video encoding/decoding technology, guarantees product voice and video effect clearly; Powerful data sharing function more the participant provide electronic whiteboard, webpage synchronously, procedure sharing, speech draft synchronously, abundant meeting miscellaneous functions such as virtual printing, file transfer; Can satisfy comprehensively that Remote Video Conference, data are shared, various demands such as collaborative work, strange land commercial affairs, remote training and long-range speculation in stocks; Thereby the communication new way of efficient quick is provided for the participant; Effectively the operation cost of reduction company improves the operational paradigm of enterprise.
The application of computer system, universal, the fast-developing and socioeconomic demand of network communications technology and transmission technology is the development and the universal necessary conditions that provides of Web conference.
In Web conference, blank is write and transmitted is its indispensable part.And in Web conference, traditional writes or mark and transmission means thereof, writes or marks at the enterprising running hand of local screen through mouse or touch apparatus, can show glibly in this locality, that is to say and can see the order of strokes observed in calligraphy.But when sharing to other side of attending a meeting of meeting; Because just pass to far-end to the sequence of all coordinates of whole stroke in the time of will lifting by the time; So far-end can only be seen each stroke and jump out one by one; And can't see and the order of strokes observed in calligraphy inside each stroke cause serious not smooth sense, bring serious sticky feeling for the side of attending a meeting.
Summary of the invention
The objective of the invention is to overcome shortcoming of the prior art, the smooth method of writing the strange land of broadcasting in real time in a kind of netmeeting is provided.For this reason, the present invention adopts following technical scheme:
Each stroke in writing is assigned with a unique stroke ID; Each stroke is configured its attribute; Said attribute comprises contained number of coordinates in color, the thickness of paintbrush specific category sign, paintbrush, the position of starting to write, check code, stroke creation-time, stroke coordinate set, the stroke coordinate set, affiliated participant's sequence number, end mark whether, lifts a position;
When the participant when participant's client is started to write; Said participant's client is that said stroke is created unique ID in the whole meeting to the application of netmeeting application server; The attribute that participant's client is had when starting to write this ID together with this stroke is packaged into the stroke bag and is sent to the netmeeting application server, is broadcast to other participant's client in real time by application server again;
Said method is a writing process setting-up time sheet; Every at a distance from a timeslice; Contained number of coordinates is packaged into the stroke bag and is sent to application server in just write together with participant in this timeslice the ID of stroke at the terminal in this stroke all stroke coordinate sets, the stroke coordinate set; And be broadcast to other participant's client in real time by application server, when end mark when being, a position of lifting of said this stroke also is packed up in the said stroke bag;
After other participant's client is received the stroke bag, treated, according to the data in the stroke bag, be presented at stroke on the screen in real time; Continue this process, till the participant lifts pen always.
On the basis of adopting technique scheme, the present invention also can adopt following further technical scheme:
Among the present invention, each meeting all has unique meeting number, and in application server the unique meeting path of registration; For example, the path of video conference in application server of meeting numbers 68080012 is: 68080012; Because meeting is number unique, this meeting path is just unique.
Each meeting all has unique meeting number, and in application server the unique meeting path of registration;
Among the present invention; Whiteboard module in each participant terminal has identical unique whiteboard module path; The whiteboard module path is registered under the meeting path; Wherein whiteboard module is the electronic whiteboard module in the network teleconference system, and its function comprises: 1>receive the writing of local user, picture shows and editor, mark operation, and with its demonstration; Simultaneously the various operations of local user on this module are transferred to application server with the data format formulated in advance (such as, the data format shown in the accompanying drawing 4); 2>receive the data that application server sends, be converted into after the data parsing on this module various operations and with its demonstration; 3>after the local user sends " preservation " order, will work as all the elements retain costs ground file (filename and position are imported by the local user) on the front module; The relevant operation of writing of all participant's clients all transfers to and leaves under the whiteboard module path in the meeting; For example, the path of whiteboard module in application server is in the video conference of meeting numbers 68080012: 68080012 w, then all participants will transfer to and leave under this path in the operation that whiteboard module is carried out in this meeting.
Among the present invention; Application server is that the written operations of said participant's client disposes unique path of writing; It is registered under the whiteboard module path, and the relevant operation of writing of participant's client all transfers to and leave in writing under the path of each participant's client under the whiteboard module path in the meeting; The participant has own unique sequence number in concrete certain meeting, and if sequence number is identical, and then the back participant can kick out of meeting with preceding participant, to guarantee the sequence number uniqueness.Just can create and exist when the whiteboard module path has only whiteboard module to exist, use in case whiteboard module is cancelled or finishes, its path also can together be nullified thereupon; The path of writing when for example No. 1 participant's client is carried out the whiteboard module written operations in the video conference of meeting numbers 68080012 in application server is: w.
Among the present invention; Each stroke that the written operations at participant terminal produces all has unique stroke path of corresponding its stroke ID; It is registered in writes under the path; As the deposit path of stroke at application server, said stroke ID is made up of the sequence number of paintbrush generic operation code name+this this generic operation of participant.For example: stroke121, wherein stroke is a paintbrush generic operation code name, the 121st, the 121st the paintbrush generic operation that this participant client is carried out whiteboard module in this meeting.In sum; The stroke ID that the 121st time the paintbrush generic operation is produced that can notify in the video conference of view numbers 68080012 that No. 1 participant's client carries out whiteboard module in application server deposit the path be: 1, so just can guarantee the uniqueness of stroke fully.
Among the present invention, the time that the stroke creation-time=conference creation time+meeting has been held is long, and application server is judged the sequencing that stroke is created according to the time attribute of stroke and broadcasted successively.When written operations was carried out at the same time in a plurality of participants terminal, because the uncertainty of network transmission speed, the stroke of writing after possibly causing transferred to application server earlier; And transfer to application server after the stroke of writing earlier; For preventing that meeting procedure from can not correctly show the sequencing of stroke, each stroke all can have a creation-time, and the time that creation-time=conference creation time+meeting has been held is long; This time attribute according to stroke; Sequencing and correct handling that server and program can the right judgement stroke be created are added above-mentioned stroke ID uniqueness and guaranteed, and be real unaffected mutually to guarantee between the participant.
Among the present invention, the code name of writing father path, path is participant's sequence number.
In sum, this civilized method can guarantee that any side of attending a meeting participant writes on a terminal, and its other side of attending a meeting of whole writing process participant can both be smooth, nature, see in real time.
Description of drawings
Accompanying drawing 1 is the basic framework block diagram of netmeeting of the present invention.
Accompanying drawing 2 is an operating process sketch map of the present invention.
Accompanying drawing 3 is the general structure sketch map of stroke bag among the present invention.
Accompanying drawing 4 is the data structure sketch map of stroke bag among the present invention.
Embodiment
With reference to accompanying drawing, the method that smoothness provided by the present invention is broadcasted the realization of writing the strange land in real time comprises:
At first; Each stroke in writing is assigned with a unique stroke ID; Each stroke is configured its attribute; Said attribute comprises contained number of coordinates in color, the thickness of paintbrush specific category sign, paintbrush, the position of starting to write, check code, stroke creation-time, affiliated participant's sequence number, stroke coordinate set, the stroke coordinate set, affiliated participant's sequence number, end mark whether, lifts a position;
When the participant when participant's client is started to write; Said participant's client is that said stroke is created unique ID in the whole meeting to the application server application; Participant's client is packaged into the stroke bag to this ID together with the attribute of this stroke and is sent to the netmeeting application server, is broadcast to other participant's client by application server again;
Said method is a writing process setting-up time sheet; Every at a distance from a timeslice (as 100 milliseconds); Just write together with participant in this timeslice the ID of stroke at the terminal in this stroke all stroke coordinate sets are packaged into the stroke bag and are sent to application server, and are broadcast to other participant's client by application server;
After other participant's client is received the stroke bag, treated, according to the data in the stroke bag, be presented at stroke on the screen in real time; Continue this process, till the participant lifts pen always.
Accompanying drawing 1 is broadcasted the basic framework block diagram of writing the netmeeting that implementation method adopted of leading ground in real time for smoothness of the present invention.Participant's client and application server two large divisions have been comprised.
When beginning to write; Whiteboard module is created stroke ID in participant's client 101; And its attached attribute of paintbrush packing together with this moment reached the whiteboard module interface; Reach the client application layer by the whiteboard module interface; Reach application server 102 and be broadcast to other participant's clients 103,104,105 etc. by the client application layer again, after participant's client 103,104,105 application layers receive stroke bag data, reach the whiteboard module interface by application server; By the whiteboard module interface stroke bag data are reached whiteboard module again; Whiteboard module is carried out verification according to check code to data validity, confirms its effective back according to data in the stroke bag and the attached attribute of paintbrush, shows in real time after stroke is played up; Contained number of coordinates is sent to application server 102 and is broadcast to other participant's clients 103,104,105 etc. by application server through above-mentioned path together with stroke ID in stroke coordinate set in every this stroke that participant's client 101 is write in a fixed time slicing is about to this timeslice, the stroke coordinate set, and this process of continuing is write end until this stroke.In this realization system, any one has participant's client of the authority of writing can become participant's client 101.
The operating process sketch map that accompanying drawing 2 is broadcasted the implementation method of writing the strange land in real time for smoothness of the present invention.Smoothness of the present invention is broadcasted the implementation method of writing the strange land in real time and mainly may further comprise the steps:
The first step: see label 201, the participant starts to write in the whiteboard module of participant's client, and the whiteboard module of participant's client begins to create stroke ID.Here for realizing the present invention, we must guarantee that this stroke ID must be that whole meeting is unique.
Second step: see label 202; After creating stroke ID; Participant's client transmits stroke ID together with contained number of coordinates in paintbrush specific category sign, brush color, thickness, the position of starting to write, check code, creation-time, affiliated participant's sequence number, stroke coordinate set, the stroke coordinate set, end mark and lift a position (if it is effective to finish this attribute whether; Otherwise invalid) to application server, see label 205, by application server the stroke bag is broadcast to other participant's clients in real time again.
The 3rd step: see label 203; In the writing process, participant's client judges that at interval whether writing time expired a timeslice, do not satisfy then wait for continue to write full or write end to timeslice; Satisfied then see label 204; Participant's client is sent to application server with stroke ID together with all coordinate sets that participant in this timeslice writes in this stroke, and sees label 205, and application server is broadcast to other participant's clients in real time with the stroke bag.
The 4th step: see label 206, after other participant's client is received the stroke bag, be presented on the screen in fact the time after handling through data analysis, so just let other participants see the interior stroke track of timeslice.
The 5th step: circulated for the 3rd, the 4th step, until seeing label 207, meeting person's client judges that the participant lifts pen for true.
The 6th step: the writing process that finishes this stroke of participant.
Accompanying drawing 3 is broadcasted the general structure sketch map of writing stroke bag in the implementation method of leading ground in real time for smoothness of the present invention.It is (unique that stroke bag 301 mainly comprises stroke ID302; The sequence number of paintbrush generic operation code name+this this generic operation of participant is formed), contained number of coordinates 307 and other attribute 308 of stroke in the paintbrush specific category sign 303, brush color 304, thickness 305, stroke coordinate set 306, stroke coordinate set, wherein 1>paintbrush specific category sign 303 can be divided into common paintbrush 309, e-Pointer 310, literal 311, erasing rubber 312 and directional beacon 313; 2>other attribute 308 of stroke comprises check code 314, creation-time 315, affiliated participant's sequence number 316, end mark 317 and lift a position 318 (if it is effective to finish this attribute, otherwise invalid) whether.
Accompanying drawing 4 is broadcasted the data structure sketch map of writing stroke bag in the implementation method of leading ground in real time for smoothness of the present invention.Stroke bag data structure accounts for 72 bytes altogether, and wherein: 0-3Byte is that check code, 4-7Byte are that paintbrush specific category flag bit, 8-11Byte are that paintbrush thickness, 12-15Byte are that brush color, 16-23Byte are that creation-time, 24-26Byte are that affiliated participant's sequence number, 26-30Byte are contained number of coordinates in the stroke coordinate set, 31-38Byte whether for end mark, 48-71Byte are the stroke coordinate set in order to lift a coordinate position, 47Byte for the coordinate position of starting to write, 39-46Byte.