Background technology
Along with the development of video/audio encoding and decoding technology and Network storage technology, by the view data digitlization by EC (Encoder, encoder), and carry out transmitting and storing in Internet network, thus define Video Supervision Technique.The basic service function of Video Supervision Technique comprises fact, storage, program request, camera control, alarming processing etc., and the digitized video data of video monitoring can be used for real-time monitoring (being realized by live flow process), also can first store for follow-up playback (being realized by playback flow process).
The networking schematic diagram of video monitoring system as shown in Figure 1, at least comprises in this video monitoring system: EC, is the terminal of image data, analog audio-video signal is converted to digital signal, and clean culture or multicast give other client program requests; DC (Decoder, decoder), decodes video data, and shows decoded data by equipment such as video walls; VC (Video Client, monitor client), for receiving the client of data, can carry out live video monitoring, to EC fixed time section playback history video, formulates storage plan to EC; VM (Video Management, video management) server, for operations such as certification, configuration, control signal forwarding and total system management; MS (exchange of media) server, that is responsible for live data copies forwarding, can receive clean culture/multicast packet that EC sends, and forwards and is distributed to decoding client carry out decoding broadcasting with clean culture/multicast mode; DM (Data Management, data management) server, for managing I PSAN (Storage Area Network, storage area network, i.e. memory device), sets up playback business; IPSAN; Corresponding software management system and web-transporting device.
In existing live flow process (as VC checks real-time data by XP (decoding players) pane or monitor etc.), comprising: the information such as the receiving port of the passage of mutual EC and window number and VC and IP address between (1) VM server and VC.(2) VM server is by message notice such as the receiving port of VC and IP addresses to MS server, and MS server returns receiving port and the transmit port of self to VM server.(3) receiving port of MS server and transmit port are informed to EC and VC by VM server respectively, and EC will use this receiving port as the destination interface of data, and VC reception destination interface is the data of this transmit port.(4) after the preparation before the data of above-mentioned 3 steps send, carry out the transmission of data between VM server notice EC, MS server, VC, afterwards, EC sends the data to MS server, and MS server sends the data to VC.
In existing playback flow process (Video data namely on VC program request memory device, this process is realized by DM server), comprising: between (1) VM server and VC, learn the EC and temporal information that need playback alternately.(2) pass through retrieval and the inquiry deadline segment information of database between VM server and DM server, and information is returned VC.(3) when playback starts, RTSP (Real Time Streaming Protocol is set up between VC and DM server, real time streaming transport protocol) connect, and the broadcasting of Video data is carried out by play (broadcasting) message of RTSP agreement.
In existing live flow process, MS server is very large as the pressure of forwarding unit, when forwarding way and being a lot, has a strong impact on the performance of MS server, and can cause the delay of data playback.In existing playback flow process, DM server is very large as the pressure of forwarding unit, when forwarding way and being a lot, has a strong impact on the performance of DM server, and can cause the delay of data playback.
Summary of the invention
The invention provides a kind of data transmission method based on screen protection and equipment, to reduce the forwarding pressure of the equipment such as DM server and MS server.
In order to achieve the above object; the invention provides a kind of data transmission method based on screen protection; be applied in the supervisory control system comprising video management VM server, videoconference client VC and data transfer equipment; send in the process of data to described VC at described data transfer equipment, the method comprises the following steps:
Described VM server obtains the current screen protection state of described VC, and described screen protection state is for being in screen protection state or not being in screen protection state;
When the current screen protection state of described VC is for being in screen protection state, described VM server notifies that described data transfer equipment stops sending data to described VC.
Described VM server obtains the current screen protection state of described VC, specifically comprises:
Self is monitored by when not being in screen protection state variation for being in screen protection state at described VC, the current message notice being in screen protection state is given described VM server by described VC, determines that the current screen protection state of described VC is for being in screen protection state by described VM server; Self is monitored by when being in screen protection state variation for not being in screen protection state at described VC, the current message notice not being in screen protection state is given described VM server by described VC, determines that the current screen protection state of described VC is not for be in screen protection state by described VM server; Or,
According to predetermined period, described VM server inquires about whether described VC is current is in screen protection state, and when to be that described VC is current be in screen protection state to Query Result, determines that the current screen protection state of described VC is for being in screen protection state; When to be that described VC is current be not in screen protection state to Query Result, determine that the current screen protection state of described VC is not for be in screen protection state.
Described method comprises further: described VC is by presetting the situation of change of monitoring program monitoring current screen guard mode; and monitor self by not being in screen protection state variation for being in screen protection state; or, monitor self by being in screen protection state variation for not to be in screen protection state.
Described data transfer equipment is exchange of media MS server or data management DM server; Described VM server notifies that described data transfer equipment stops sending data to described VC, also comprises afterwards:
When described data transfer equipment is MS server, described MS server, after receiving the data sending to described VC, abandons the data sending to described VC, to stop sending data to described VC;
When described data transfer equipment is DM server, described DM server stops obtaining the data sending to described VC, to stop sending data to described VC.
Described data transfer equipment is MS server or DM server; Described VM server notifies that described data transfer equipment stops sending data to described VC, also comprises afterwards:
When described data transfer equipment is MS server, determine that the current screen protection state of described VC is not for after being in screen protection state at described VM server, described VM server notifies that described MS server continues to send data to described VC, by described MS server after receiving the data sending to described VC, the data received are sent to described VC;
When described data transfer equipment is DM server; determine that the current screen protection state of described VC is not for after being in screen protection state at described VM server; described VM server notifies that described DM server continues to send data to described VC; again obtain by described DM server the data sending to described VC, and the data of acquisition are sent to described VC.
When described data transfer equipment is DM server, described VM server notifies that described data transfer equipment stops sending data to described VC, also comprises afterwards:
Self is monitored by being in screen protection state variation for after not being in screen protection state at described VC, described VC obtains the time point s being in the time period t of screen protection state and the data of playback before being in screen protection state, and gives described VM server by the message notice of time period t and time point s;
Described VM server notifies that described DM server continues to data corresponding to described VC transmitting time section t and time point s, by described DM server from time point s adds data corresponding to time period t, again obtain the data sending to described VC, and the data of acquisition are sent to described VC.
A kind of video management VM server, be applied in the supervisory control system comprising described VM server, videoconference client VC and data transfer equipment, send in the process of data to described VC at described data transfer equipment, this VM server comprises:
Acquisition module, for obtaining the current screen protection state of described VC, described screen protection state is for being in screen protection state or not being in screen protection state;
Communication module, for when the current screen protection state of described VC is for being in screen protection state, notifies that described data transfer equipment stops sending data to described VC.
Described acquisition module, specifically for monitoring self at described VC by when not being in screen protection state variation for being in screen protection state, receiving the current information being in screen protection state that described VC notifies, determining that the current screen protection state of described VC is for being in screen protection state; Monitoring self by when being in screen protection state variation for not being in screen protection state at described VC, receiving the current information not being in screen protection state that described VC notifies, determine that the current screen protection state of described VC is not for be in screen protection state; Or,
Inquiring about whether described VC is current is in screen protection state according to predetermined period, and when to be that described VC is current be in screen protection state to Query Result, determining that the current screen protection state of described VC is for being in screen protection state; When to be that described VC is current be not in screen protection state to Query Result, determine that the current screen protection state of described VC is not for be in screen protection state.
Described data transfer equipment is MS server or DM server;
Described communication module, also for stopping to after described VC sends data at notice MS server, determining that the current screen protection state of described VC is not for after being in screen protection state, notify that described MS server continues to send data to described VC, by described MS server after receiving the data sending to described VC, the data received are sent to described VC;
Stop to after described VC sends data at notice DM server; determining that the current screen protection state of described VC is not for after being in screen protection state; notify that described DM server continues to send data to described VC; again obtain by described DM server the data sending to described VC, and the data of acquisition are sent to described VC.
When described data transfer equipment is DM server;
Described communication module, also for stopping to after described VC sends data at notice DM server, monitoring self by being in screen protection state variation for after not being in screen protection state at described VC, receiving the time point s of the data of the time period t being in screen protection state that described VC that described VC notifies obtains and playback before being in screen protection state;
And notify that described DM server continues to data corresponding to described VC transmitting time section t and time point s, by described DM server from time point s adds data corresponding to time period t, again obtain the data sending to described VC, and the data of acquisition are sent to described VC.
A kind of videoconference client VC, is applied in the supervisory control system comprising video management VM server, described VC and data transfer equipment, and send in the process of data to described VC at described data transfer equipment, this VC comprises:
Monitoring module, for monitoring self current screen protection state, described screen protection state is for being in screen protection state or not being in screen protection state;
Communication module, for monitoring self by when not being in screen protection state variation for being in screen protection state, giving described VM server by the current message notice being in screen protection state, determining that the current screen protection state of described VC is for being in screen protection state by described VM server;
Monitor self by be in screen protection state variation for be not in screen protection state time; give described VM server by the current message notice not being in screen protection state, determine that the current screen protection state of described VC is not for be in screen protection state by described VM server.
Described monitoring module; specifically for the situation of change by presetting monitoring program monitoring current screen guard mode; and monitor self by not being in screen protection state variation for being in screen protection state; or, monitor self by being in screen protection state variation for not to be in screen protection state.
Described monitoring module, also for monitoring self by being in screen protection state variation for after not being in screen protection state, obtains the time point s being in the time period t of screen protection state and the data of playback before being in screen protection state;
Described notification module, also for giving described VM server by the message notice of time period t and time point s.
Compared with prior art; the present invention at least has the following advantages: in live flow process (namely VC checks live data) or playback flow process (namely VC checks Video data); when the screen protection state of VC is for being in screen protection state; notify that MS server or DM server stop sending data to VC by VM server, thus reduce the forwarding pressure of the equipment such as DM server and MS server.
Embodiment
The present invention proposes a kind of data transmission method based on screen protection, the method is applied in the supervisory control system comprising VM server, VC and data transfer equipment, in live flow process (namely VC checks live data), this data transfer equipment is MS server, namely sends data (i.e. live data) by MS server to VC; In playback flow process (namely VC checks Video data), this data transfer equipment is DM server, namely sends data (i.e. Video data) by DM server to VC.
In the process of data transfer equipment to VC transmission data, (namely in live flow process, MS server sends data to VC; Or in playback flow process, DM server sends data to VC), as shown in Figure 2, the data transmission method based on screen protection provided by the invention comprises the following steps:
Step 201, VM server obtains the current screen protection state of VC, and this screen protection state is for being in screen protection state (i.e. screen protection enabled state) or not being in screen protection state (namely enabled state is gone in screen protection).
VM server obtains the current screen protection state of VC, specifically comprises:
Mode one, monitor self by when not being in screen protection state variation for being in screen protection state at VC; by VM server, the current message notice being in screen protection state to VM server, is determined that the current screen protection state of VC is for being in screen protection state by VC (can realize correlation function by the XP on VC).
Self is monitored by when being in screen protection state variation for not being in screen protection state at VC; by VM server, the current message notice not being in screen protection state to VM server, is determined that the current screen protection state of VC is not for be in screen protection state by VC.
In the present invention, the default monitoring program (by installing corresponding plug-in unit to realize when installing video monitoring software) monitored screen protection process can be installed on VC, and by presetting the situation of change of monitoring program monitoring current screen guard mode; Current by not being in screen protection state variation for after being in screen protection state at VC, VC monitors situation of change by default monitoring program, thus monitors self by not being in screen protection state variation for being in screen protection state; Current by being in screen protection state variation for after not being in screen protection state at VC, VC monitors situation of change by default monitoring program, thus monitors self by being in screen protection state variation for not to be in screen protection state.
It should be noted that; VC by HTTP (Hyper Text Transfer Protocol, HTML (Hypertext Markup Language)) message by self current be in screen protection state information or self current message notice not being in screen protection state to VM server.
In actual applications, owing to VC can there be multiple use pane, and received by different use panes and show different data, therefore VC can also carry all use pane information of self in HTTP message, in subsequent process, notification data forwarding unit stops sending data corresponding to all use panes, the handling process corresponding due to each use pane is identical, follow-uply repeats no more, and uses the process of pane to be described for one.
(this predetermined period can be selected according to practical experience according to predetermined period for mode two, VM server, such as, 10 minutes) inquire about whether VC is current is in screen protection state, and when to be that VC is current be in screen protection state (namely VC responds self and is currently in screen protection state) to Query Result, determine that the current screen protection state of VC is for being in screen protection state; When to be that VC is current be not in screen protection state (namely VC responds self and is not currently in screen protection state) to Query Result, determine that the current screen protection state of VC is not for be in screen protection state.
It should be noted that, VM server is by SIP (Session Initiation Protocol, conversation initialized protocol) message regularly inquires about whether VC is current is in screen protection state, VC is current be in screen protection state time, self current result being in screen protection state can be responded; VC is current be not in screen protection state time, can be responded self and currently not be in screen protection state.
Step 202, when the current screen protection state of VC is for being in screen protection state, VM server notification data forwarding unit stops sending data to VC.
In the present invention, in live flow process, this data transfer equipment is MS server, and VM server can utilize MAI message informing MS server to stop sending data to VC; Afterwards, MS server will directly abandon the data sending to VC send to the data of VC (namely EC sends to the data of VC by MS server) receiving after, to stop sending data to VC, namely MS server receives only the data sending to VC, but not by data retransmission to VC.
Further; determine that the current screen protection state of VC is by after to be in screen protection state variation be not in screen protection state (two kinds of modes by step 201 are known) at VM server; then VM server needs notice MS server to continue to send data to VC; afterwards; the data received directly can be sent to VC send to the data of VC (namely EC sends to the data of VC by MS server) receiving after by MS server.
It should be noted that VM server is when notifying that MS server stops sending data to VC, EC can't stop sending data to MS server, just MS server not by data retransmission to VC; Therefore, when needs continue to send data to VC, the data from EC directly can be sent to VC by MS server, do not need to re-establish the processes such as the negotiation of live data.
In the present invention, in playback flow process, this data transfer equipment is DM server, and VM server can utilize RTSP (Real Time Streaming Protocol, real time streaming transport protocol) message informing DM server to stop sending data to VC; Afterwards, DM server sends to the data of VC (namely DM server is not reading the data sending to VC from memory device) by stopping obtaining, to stop sending data to VC, namely DM server does not obtain the data sending to VC, does not send data to VC yet.
Further; determine that the current screen protection state of VC is by after to be in screen protection state variation be not in screen protection state (two kinds of modes by step 201 are known) at VM server; then VM server needs notice DM server to continue to send data (the play message by RTSP realizes) to VC; afterwards; DM server obtains again needs to send to the data of VC (namely DM server reads from memory device the data needing to send to VC), and the data of acquisition are sent to VC.
Owing to needing the temporal information of the Video data knowing playback in playback flow process, therefore can also comprise in the present invention: monitor self by being in screen protection state variation for after not being in screen protection state at VC, VC needs to be obtained from the time point s (namely before user program request to time point s) of the data be in the time period t (being in the time period t of screen protection state by starting timer record self) of screen protection state and playback before being in screen protection state; Afterwards, VC by the message notice of time period t and time point s to VM server; VM server notice DM server continues to data corresponding to VC transmitting time section t and time point s, by DM server from time point s adds data corresponding to time period t (namely playback duration is time period t+time point s), again obtain the data sending to VC, and the data of acquisition are sent to VC.
Such as; before being in screen protection state, the time point s of playback of data is 2011.10.10.08.10.10; and the time period t being in screen protection state is when being 30s, then DM server needs from the data that 2011.10.10.08.10.40 is corresponding, again obtains the data sending to VC.
It should be noted that, VM server continues to data corresponding to VC transmitting time section t and time point s by the play message informing DM server of RTSP, and VM server only needs to add above-mentioned time period t and time point s sum (for starting the time of playing) in the clock field of play message.
Based on the inventive concept same with said method, the invention allows for a kind of video management VM server, be applied in the supervisory control system comprising described VM server, videoconference client VC and data transfer equipment, send in the process of data at described data transfer equipment to described VC, as shown in Figure 3, this VM server comprises:
Acquisition module 11, for obtaining the current screen protection state of described VC, described screen protection state is for being in screen protection state or not being in screen protection state;
Communication module 12, for when the current screen protection state of described VC is for being in screen protection state, notifies that described data transfer equipment stops sending data to described VC.
Described acquisition module 11, specifically for monitoring self at described VC by when not being in screen protection state variation for being in screen protection state, receiving the current information being in screen protection state that described VC notifies, determining that the current screen protection state of described VC is for being in screen protection state; Monitoring self by when being in screen protection state variation for not being in screen protection state at described VC, receiving the current information not being in screen protection state that described VC notifies, determine that the current screen protection state of described VC is not for be in screen protection state; Or,
Inquiring about whether described VC is current is in screen protection state according to predetermined period, and when to be that described VC is current be in screen protection state to Query Result, determining that the current screen protection state of described VC is for being in screen protection state; When to be that described VC is current be not in screen protection state to Query Result, determine that the current screen protection state of described VC is not for be in screen protection state.
Described data transfer equipment is MS server or DM server;
Described communication module 12, also for stopping to after described VC sends data at notice MS server, determining that the current screen protection state of described VC is not for after being in screen protection state, notify that described MS server continues to send data to described VC, by described MS server after receiving the data sending to described VC, the data received are sent to described VC;
Stop to after described VC sends data at notice DM server; determining that the current screen protection state of described VC is not for after being in screen protection state; notify that described DM server continues to send data to described VC; again obtain by described DM server the data sending to described VC, and the data of acquisition are sent to described VC.
When described data transfer equipment is DM server;
Described communication module 12, also for stopping to after described VC sends data at notice DM server, monitoring self by being in screen protection state variation for after not being in screen protection state at described VC, receiving the time point s of the data of the time period t being in screen protection state that described VC that described VC notifies obtains and playback before being in screen protection state;
And notify that described DM server continues to data corresponding to described VC transmitting time section t and time point s, by described DM server from time point s adds data corresponding to time period t, again obtain the data sending to described VC, and the data of acquisition are sent to described VC.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Based on the inventive concept same with said method, the present invention also proposes a kind of videoconference client VC, be applied in the supervisory control system comprising video management VM server, described VC and data transfer equipment, send in the process of data at described data transfer equipment to described VC, as shown in Figure 4, this VC comprises:
Monitoring module 21, for monitoring self current screen protection state, described screen protection state is for being in screen protection state or not being in screen protection state;
Communication module 22, for monitoring self by when not being in screen protection state variation for being in screen protection state, giving described VM server by the current message notice being in screen protection state, determining that the current screen protection state of described VC is for being in screen protection state by described VM server;
Monitor self by be in screen protection state variation for be not in screen protection state time; give described VM server by the current message notice not being in screen protection state, determine that the current screen protection state of described VC is not for be in screen protection state by described VM server.
Described monitoring module 21; specifically for the situation of change by presetting monitoring program monitoring current screen guard mode; and monitor self by not being in screen protection state variation for being in screen protection state; or, monitor self by being in screen protection state variation for not to be in screen protection state.
Described monitoring module 21, also for monitoring self by being in screen protection state variation for after not being in screen protection state, obtains the time point s being in the time period t of screen protection state and the data of playback before being in screen protection state;
Described notification module 22, also for giving described VM server by the message notice of time period t and time point s.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention can by hardware implementing, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
The invention described above sequence number, just to describing, does not represent the quality of embodiment.
Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.