Embodiment
For the load that reduces Control Server, the burden that alleviates Control Server, in technical scheme of the present invention, the examination of program request authority is changeed by being handled by the EC of program request, and further just the DC and the EC that change by the demand (telecommunication) service communicating pair of the transmission work of demand (telecommunication) service handle, the management work of demand (telecommunication) service is assigned on each role of whole system, realize the Reduction of Students' Study Load of Control Server, improved the robustness of whole system.
Referring to Fig. 2, Fig. 2 is the overview flow chart of the inventive method.In step 201, when the user logined DC, the video camera tabulation that Control Server can program request in DC issues this user right scope comprised video camera information and corresponding program request authority in this video camera tabulation.In step 202, DC answers the request of user's program request video camera, sends order request according to video camera information to the EC that this video camera connects, and wherein carries user's program request authority.In step 203, EC receives the order request of DC, determines whether to send the camera video stream of being asked to current DC according to the program request authority of carrying in the request with from Control Server acquisition authority comparison rule.In step 204, EC determines to send the video flowing of institute's request video camera to DC when current DC sends the camera video stream of being asked.
EC receives the order request of DC in the step 203, determine whether to send the concrete mode of the camera video stream of being asked to current DC, can be identical with definite mode of Control Server in the prior art, the mode of concrete audit can be carried out according to the authority comparison rule that obtains from Control Server.EC can obtain the authority comparison rule when Control Server is registered from Control Server.Concrete executive mode can be: EC carries out following operation according to the authority comparison rule after receiving order request, judge whether self current video way by program request has reached by the limit of program request, if, check the program request authority of having put broadcasting user, judge whether to exist the some broadcasting user littler than active user's program request authority, if exist, then stop to send video flowing to the broadcasting user of point of program request authority minimum, determine to send the camera video stream of being asked to current DC; Otherwise, refuse the order request of current DC.If self current video way by program request does not arrive by the limit of program request, then determine to send the camera video stream of being asked to current DC.
EC is different according to specific circumstances to the channel that DC sends the camera video stream of being asked.When the forwarding by media server (MS, Media Server) receives camera video stream as DC, promptly directly receive the camera video stream of being asked from EC, DC further carries the receiving port of self in the order request that sends; EC directly sends the camera video stream of being asked to DC according to the receiving port of DC.When the forwarding of DC by MS receives camera video stream, be that EC sends to MS with the video flowing of DC request earlier, send to DC by MS again, comprise that further DC is before EC request camera video stream, transmit professional to the MS application earlier, return this professional receiving port that uses to DC after MS confirms, like this, DC further carries the receiving port of MS in the order request that sends; EC then sends the camera video stream of being asked according to the receiving port of MS to MS, and MS is transmitted to DC with the video flowing of receiving.
In addition,, therefore there is being EC to roll off the production line or user's program request authority when changing, needing in time to operate, making a mistake in case stop is broadcast business to the renewal that corresponding DC and EC carry out authority because EC of the present invention is responsible for the audit of program request authority.
For not online user, when the user logins DC, the video camera tabulation after DC can obtain to upgrade from Control Server.Specifically can carry out following operation for the online user: roll off the production line as video camera, Control Server is searched the online user who obtains having this video camera program request authority; And sending the DC of updating message to the current place of user, DC deletes the program request authority of this video camera of current online user program request.
When online user's program request authority changes, need on the DC at the current place of user, the video camera tabulation to the user upgrade; Simultaneously, the video camera that changes for the program request authority, under the current situation of checking this camera video stream of user, need upgrade user's program request authority at the EC that video camera connected, so that when the video camera that has this EC of other user's program requests to be connected, EC can carry out the authority audit according to upgrading back program request authority, in order to avoid demand (telecommunication) service is made a mistake.Concrete, Control Server is searched the DC that obtains the current login of this online user, sends updating message to DC; DC upgrades this user's video camera tabulation according to the updating message of receiving.And Control Server sends the EC that video camera connected that updating message is modified to the program request authority; When this video camera is put sowing time by the user, be updated under the situation of deletion in the program request authority of video camera, EC disconnects the camera video stream that mails to this user.When the program request authority of video camera raise or reduce, EC upgraded this user's program request authority.
Video camera in user's program request provides multicast service, under the situation that multicast group has been created, after EC receives user's order request, needn't examine directly the user is added multicast group.Under the situation that does not have to create in multicast group, EC determines whether to provide corresponding video flowing to the user according to this user's program request authority and authority comparison rule, creates multicast group.
In technical scheme of the present invention, a update cycle also can be set, when the update cycle arrived, DC and EC upgraded to the Control Server application, to obtain up-to-date subscriber authorisation.
When the method for video monitoring of the present invention is applied to DC, this method comprises: video camera tabulation that can program request in this user right scope that Control Server issued when DC received the user and logins comprises video camera information and corresponding program request authority in this video camera tabulation; DC answers the request of user's program request video camera, sends order request according to video camera information to the encoder EC that this video camera connects, and wherein carries this user's program request authority.
Accordingly, as DC when the forwarding by media server MS does not receive camera video stream, described DC further carries the receiving port of self in the order request that sends; When the forwarding of DC by MS received camera video stream, this method further comprised: DC transmits professional to the MS application, sends the receiving port of self to MS; Receive this professional receiving port that uses that returns after MS confirms; And in the order request that sends, further carry the receiving port of MS.
And further when video camera rolls off the production line, Control Server is searched the online user who obtains having this video camera program request authority, sends the DC of updating message to the active user place; DC receives this updating message and upgrades the video camera tabulation of current online user.
Equally further when online user's program request authority changed, Control Server was searched the DC that obtains the current login of this online user, sent updating message to DC; DC upgrades this user's video camera tabulation according to the updating message of receiving.
When the method for video monitoring of the present invention is applied to EC, this method comprises: EC receives the order request of DC, determines whether to send the camera video stream of being asked to current DC according to the program request authority of carrying in the request and from Control Server acquisition authority comparison rule; EC determines when current DC sends the camera video stream of being asked, and sends the camera video stream of being asked to DC.
Concrete, EC determines whether that according to the program request authority of carrying in the request and from Control Server acquisition authority comparison rule sending the camera video stream of being asked to current DC is: after EC receives order request, carry out following operation according to the authority comparison rule: judge whether self current video way by program request has reached by the limit of program request, if, check the program request authority of having put broadcasting user, judge whether to exist the some broadcasting user littler than active user's program request authority, if exist, then stop to send video flowing, determine to send the camera video stream of being asked to current DC to the broadcasting user of point of program request authority minimum; Otherwise, refuse the order request of current DC; If not, determine to send the camera video stream of being asked to current DC.
Simultaneously, as DC when the forwarding by media server MS does not receive camera video stream, described EC sends the camera video stream of being asked according to the receiving port of DC to DC; When the forwarding of DC by MS received camera video stream, described EC sent the camera video stream of being asked according to the receiving port of MS to MS, is used for MS the video flowing of receiving is transmitted to DC.
And when further online user's program request authority changed, Control Server sent the EC that video camera connected that updating message is modified to the program request authority; When this video camera is put sowing time by the user, under the deleted situation of the program request authority of video camera, EC disconnects the camera video stream that mails to this user; When the program request authority of video camera raise or reduce, EC upgraded the program request authority of this user at self.
In addition, technical scheme of the present invention also provides a kind of system of video monitoring.This system comprises the video camera that Control Server, decoder DC, encoder EC and EC connect, and system construction drawing as shown in Figure 1.
Concrete in technical scheme of the present invention, DC is used for when the user logins, from Control Server obtain in this user right scope can program request the video camera tabulation, comprise video camera information and corresponding program request authority in this video camera tabulation; And answer the request of user's program request video camera, and send order request according to video camera information to the EC that this video camera connects, wherein carry user's program request authority.EC is used to receive the order request of DC, determines whether to send the camera video stream of being asked to current DC according to the program request authority of carrying in the request with from the authority comparison rule that Control Server obtains; Determining when current DC sends the camera video stream of being asked, sending the camera video stream of being asked to DC.Control Server is used to preserve user's video camera tabulation, answers the DC request to send user's video camera tabulation to DC; To EC sending permission comparison rule.
EC is determining whether when current DC sends the camera video stream of being asked, carry out following operation according to the authority comparison rule: judge whether self current video way by program request has reached by the limit of program request, if, check the program request authority of having put broadcasting user, judge whether to exist the some broadcasting user littler than active user's program request authority, if exist, then stop to send video flowing to the broadcasting user of point of program request authority minimum, determine to send the camera video stream of being asked to current DC; Otherwise, refuse the order request of current DC; If not, determine to send the camera video stream of being asked to current DC.
In addition, this system further comprises media server MS; DC when the forwarding by MS does not receive camera video stream, further carries the receiving port of self in the order request that sends; When the forwarding by MS receives camera video stream, further transmit business to the MS application, send the receiving port of self to MS; Receive this professional receiving port that self uses that returns after MS confirms, in the order request that sends, further carry the receiving port of MS.
Accordingly, EC sends the receiving port that carries in the request with camera video stream when sending the camera video stream of being asked to DC.MS is used to receive the forwarding service request that DC sends, and after confirming self can provide the forwarding business, returns this professional receiving port to DC; Receive the camera video stream that EC sends, be transmitted to DC according to the receiving port of DC and with it.
For EC can be operated demand (telecommunication) service according to user's program request authority accurately.Control Server is further used for having video camera to roll off the production line, and searches the online user who obtains having this video camera program request authority; And the transmission updating message is to the DC at the current place of user; DC is further used for receiving the updating message of Control Server, upgrades the video camera tabulation of current online user according to the updating message of receiving.
Accordingly, Control Server can also be further used for searching the DC that obtains the current login of this online user when online user's program request authority changes, and sends updating message to DC; And send the EC that video camera connected that updating message is modified to the program request authority; DC is further used for receiving the updating message of Control Server, upgrades this user's video camera tabulation according to the updating message of receiving; EC is further used for receiving the updating message of Control Server, and when this video camera is put sowing time by the user, under the deleted situation of the program request authority of video camera, EC disconnects the camera video stream that mails to this user; When the program request authority of video camera raise or reduce, EC upgraded the program request authority of this user at self.
Simultaneously, the present invention also specifically provides DC that is used for video monitoring and the EC that uses in this system.
Referring to Fig. 3, Fig. 3 is the structure chart of DC provided by the invention, comprises acquiring unit and processing unit.Wherein, acquiring unit is used for when the user logins, from Control Server obtain in this user right scope can program request the video camera tabulation, comprise video camera information and corresponding program request authority in this video camera tabulation; Processing unit is used to answer the request of user's program request video camera, and the video camera information that obtains according to acquiring unit sends order request to the EC that this video camera connects, and wherein carries user's program request authority.
Processing unit when the forwarding by media server MS does not receive camera video stream, further carries the receiving port of self in the order request that sends; When the forwarding by MS receives camera video stream, further transmit business to the MS application, send the receiving port of self to MS; Receive this professional receiving port that self uses that returns after MS confirms, in the order request that sends, further carry the receiving port of MS.
Processing unit, be further used for receiving the updating message of Control Server, wherein updating message be Control Server when having video camera to roll off the production line, search the online user who obtains having this video camera program request authority, send to the message of the DC at this current place of online user; Processing unit is tabulated according to this online user's that the updating message renewal acquiring unit of receiving obtains video camera.In addition, updating message be Control Server when online user's program request authority changes, search the DC that obtains the current login of this online user, send to the message of DC; Processing unit then upgrades this user's that acquiring unit obtains video camera tabulation according to the updating message received.
Referring to Fig. 4, Fig. 4 a kind of EC that is used for video monitoring provided by the invention, this EC comprises receiving element and control unit.Wherein, receiving element is used to receive the order request of DC; Control unit is used for the program request authority of carrying according to the request that receiving element receives and determines whether to send the camera video stream of being asked to current DC from the authority comparison rule that Control Server obtains; Determining when current DC sends the camera video stream of being asked, sending the camera video stream of being asked to DC.
Wherein, control unit is determining whether when current DC sends the camera video stream of being asked, carry out following operation according to the authority comparison rule: judge whether self current video way by program request has reached by the limit of program request, if, check the program request authority of having put broadcasting user, judge whether to exist the some broadcasting user littler than active user's program request authority, if exist, then stop to send video flowing, determine to send the camera video stream of being asked to current DC to the broadcasting user of point of program request authority minimum; Otherwise, refuse the order request of current DC; If not, determine to send the camera video stream of being asked to current DC.
In addition, described control unit sends to camera video stream the receiving port that carries in the order request when sending the camera video stream of being asked to DC; Wherein, DC carries the receiving port of self in the order request that sends when the forwarding by media server MS does not receive camera video stream; When the forwarding by MS receives camera video stream, in the order request that sends, carry the receiving port of MS.
In addition, control unit is further used for receiving the updating message of Control Server, when the program request authority of the video camera that described updating message self place EC is connected is revised by the online user, and the message that Control Server sends; When this video camera is put sowing time by the user, under the deleted situation of the program request authority of video camera, disconnect the camera video stream that mails to this user; When the program request authority of video camera raises or reduce, upgrade the program request authority of this user at self.
The technical scheme that provides is for a better understanding of the present invention now enumerated embodiment technical scheme of the present invention is described in further detail.
In the technical scheme of the embodiment of the invention, needed authority comparison rule when EC obtains the authority audit from Control Server when registration.The flow process of present embodiment specifically comprises as shown in Figure 5:
In step 501, the user logins DC, and DC sends login request of users to Control Server.
According to concrete application, the DC here can be a personal computer (PC).DC can connect a plurality of decoder passages, can provide a plurality of video images to a plurality of users.
In step 502, the video camera tabulation that Control Server can program request in DC issues this user right scope comprises video camera information and corresponding program request authority in this video camera tabulation.
In step 503, DC receives the video camera tabulation that Control Server sends, and shows the user.
In step 504, the user is according to the video camera of video camera tabulation selection program request, DC answers the request of user's program request video camera, send order request according to video camera information to the EC that this video camera connects, wherein carry user's program request authority, and the receiving port of self this demand (telecommunication) service, DC opens receiving port.
The user can select the video camera of a plurality of needs program requests according to the video camera tabulation, and DC then answers the user to ask to show a plurality of camera videos, the corresponding decoder passage of each camera video.Wherein, the handling process of each video camera can be according to follow-up flow processing.
In step 505, after EC receives order request, judge whether self current video way by program request has reached by the limit of program request, if, execution in step 506; Otherwise, execution in step 508.
In step 506, EC checks the program request authority of having put broadcasting user, judges whether to exist the some broadcasting user littler than active user's program request authority, if there is execution in step 507; Otherwise, execution in step 509.
In step 507, EC stops to send video flowing to the broadcasting user of point of program request authority minimum, closes receiving port, execution in step 508.
In step 508, EC sends the camera video stream of being asked according to the receiving port that DC sends to current DC, finishes current handling process.
In step 509, EC refuses the order request of current DC, and can further specify Reason For Denial.
Wherein step 505~step 507 is that EC is according to the performed decision operation of authority comparison rule.The authority comparison rule is that EC obtains from Control Server, and the concrete form of rule can be the employed rule of Control Server in the prior art.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.