CN117998038A - Method and device for managing network video recorder, electronic equipment and storage medium - Google Patents

Method and device for managing network video recorder, electronic equipment and storage medium Download PDF

Info

Publication number
CN117998038A
CN117998038A CN202211333287.0A CN202211333287A CN117998038A CN 117998038 A CN117998038 A CN 117998038A CN 202211333287 A CN202211333287 A CN 202211333287A CN 117998038 A CN117998038 A CN 117998038A
Authority
CN
China
Prior art keywords
video recorder
network video
target network
request
current client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211333287.0A
Other languages
Chinese (zh)
Inventor
朱欣莹
董缘缘
陈骏
赵国平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202211333287.0A priority Critical patent/CN117998038A/en
Publication of CN117998038A publication Critical patent/CN117998038A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a method, a device, electronic equipment and a storage medium for managing a network video recorder. The method comprises the following steps: under the condition that a management request of a target network video recorder sent by a current client is received, acquiring login information of the target network video recorder; based on the login information, sending a login request to the target network video recorder so that the target network video recorder can determine response information according to the login request; and receiving response information returned by the target network video recorder, and setting a management relationship between the current client and the target network video recorder according to the response information so that the current client can manage the target network video recorder based on the management relationship. According to the technical scheme, the management relation between the current client and the target network client is determined, so that the target network video recorder can be managed directly based on the current client. The management efficiency of the network video recorder is improved, and resources are saved.

Description

Method and device for managing network video recorder, electronic equipment and storage medium
Technical Field
The present invention relates to the field of security monitoring technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for managing a network video recorder.
Background
The current security monitoring has wide application prospect around the world, and NVR (Network Video Recorder ) with functions of management, preview, video storage and the like plays an important role in a monitoring system.
Engineering maintenance personnel can manage the NVR through a webpage client of the NVR. However, since each NVR has a respective Web client, a plurality of Web pages need to be opened for login operation during management, which is very complicated. The method not only requires engineering maintenance personnel to memorize the IP address and account number and password of each NVR at any time, but also has certain requirements on networking between each device and the Web client.
Disclosure of Invention
The invention provides a method, a device, electronic equipment and a storage medium for managing a network video recorder, which can directly manage the network video recorder based on a current client by determining the management relationship between the current client and a target network client.
According to an aspect of the present invention, there is provided a method of managing a network video recorder, the method comprising:
under the condition that a management request of a target network video recorder sent by a current client is received, acquiring login information of the target network video recorder; the current client side refers to a client side with a management relationship with the current network video recorder;
based on the login information, sending a login request to the target network video recorder so that the target network video recorder can determine response information according to the login request;
And receiving response information returned by the target network video recorder, and setting a management relationship between the current client and the target network video recorder according to the response information so that the current client can manage the target network video recorder based on the management relationship.
According to another aspect of the present invention, there is provided an apparatus for managing a network video recorder, the apparatus comprising:
the login information acquisition module is used for acquiring login information of the target network video recorder under the condition that a management request of the target network video recorder sent by the current client is received; the current client side refers to a client side with a management relationship with the current network video recorder;
The login request sending module is used for sending a login request to the target network video recorder based on the login information so that the target network video recorder can determine response information according to the login request;
And the management relation setting module is used for receiving response information returned by the target network video recorder, and setting the management relation between the current client and the target network video recorder according to the response information so that the current client can manage the target network video recorder based on the management relation.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a method of managing a network video recorder in accordance with any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method of managing a network video recorder according to any one of the embodiments of the present invention.
According to the technical scheme, under the condition that the management request of the target network video recorder sent by the current client is received, the login information of the target network video recorder is obtained, and the login request is sent to the target network video recorder based on the login information. And then receiving response information returned by the target network video recorder, setting the management relationship between the current client and the target network video recorder according to the response information, and performing management operation on the target network video recorder based on the management relationship on the basis of the current client. According to the technical scheme, the management relation between the current client and the target network client is determined, so that the target network video recorder can be managed directly based on the current client. The management efficiency of the network video recorder is improved, and resources are saved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for managing a network video recorder according to a first embodiment of the present invention;
FIG. 2 is a topology diagram of a network video recorder with a single network card according to an embodiment of the present application;
FIG. 3 is a topology diagram of a multi-network card network video recorder according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a target network video recorder switch according to a first embodiment of the present application;
FIG. 5 is a schematic diagram of a process for managing a network video recorder according to a second embodiment of the present invention;
FIG. 6 is a schematic diagram of acquiring dynamic resources of a target network video recorder according to a second embodiment of the present application;
Fig. 7 is a schematic structural diagram of an apparatus for managing a network video recorder according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device implementing a method for managing a network video recorder according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for managing a network video recorder according to a first embodiment of the present invention, where the method may be performed by an apparatus for managing a network video recorder, and the apparatus for managing a network video recorder may be implemented in hardware and/or software, and the apparatus for managing a network video recorder may be configured in an electronic device. As shown in fig. 1, the method includes:
S110, under the condition that a management request of a target network video recorder sent by a current client is received, acquiring login information of the target network video recorder; the current client refers to a client with a management relationship with the current network video recorder.
In this scheme, when all network video recorders are in the same local area network, one or more of the network video recorders can be used as the current network video recorder. When all the network video recorders are not in the same local area network, the network video recorder which can be accessed to the Internet and can be accessed to the local area network can be used as the current network video recorder.
Exemplary, fig. 2 is a topology diagram of a single network card network video recorder according to a first embodiment of the present application, where M1 represents a network video recorder, M2 represents a network video recorder, M3 represents a network video recorder, M4 represents a router, and M5 represents a client. Fig. 3 is a topology diagram of a multi-network card network video recorder according to an embodiment of the present application. N1 denotes a network recorder, N2 denotes a network recorder, N3 denotes a network recorder, N4 denotes a router, N5 denotes a client, and N6 denotes the internet. As shown in fig. 2, the network video recorders M1, M2 and M3 are located in the same local area network, and the current network video recorder may be any one or more of the network video recorders M1, M2 and M3. As shown in fig. 3, one network card of the network video recorder N1 is connected to the intranet router N4, and one network card is connected to the internet N6. The network recorder N1 may be used as the current network recorder.
The target network video recorder may refer to any network video recorder except the current network video recorder among all network video recorders. For example, there are a network recorder M1, a network recorder M2, and a network recorder M3 in the local area network. The network video recorder M1 is used as a current network video recorder, and both the network video recorder M2 and the network video recorder M3 can be used as target network video recorders.
In this embodiment, each network video recorder has a respective client, and the network video recorders need to be managed by the respective client. When in management, a plurality of webpages are required to be opened for login operation, and the operation is very complicated. Therefore, the management operation of the target network video recorder can be directly performed based on the current client by establishing the management relationship between the current client and the target network client. The user does not need to log in the target network video recorder, so that the management efficiency of the network video recorder can be improved, and resources can be saved.
Wherein the login information may consist of a user name and a password.
In this scheme, the target network recorder management request may refer to a request for establishing a management relationship for the target network recorder.
In this embodiment, when the current network video recorder receives the target network video recorder management request sent by the current client, the address information of the target network video recorder may be read from the target network video recorder management request, and the login information of the target network video recorder may be obtained based on the address information.
In this technical scheme, optionally, under the condition of receiving a management request of a target network video recorder sent by a current client, obtaining login information of the target network video recorder includes steps A1-A3:
A1, receiving a target network video recorder management request sent by a current client;
Specifically, after all network video recorders are online, a user can log in the current client through login information, click operation is performed on the network video recorders in the interface of the current client, and a target network video recorder is selected. And the current client side responds to the clicking operation of the user, and brings the address information of the target network video recorder into the request body to generate a management request of the target network video recorder. And sending a target network recorder management request to the current network recorder.
A2, determining address information of the target network video recorder according to the management request of the target network video recorder;
The address information may refer to an IP address (Internet Protocol Address) of the network video recorder.
In this embodiment, the current network video recorder reads the management request of the target network video recorder, obtains the address information of the target network video recorder, and stores the address information in the environment variable.
And A3, searching from a database based on the address information, and determining login information corresponding to the address information.
In the scheme, the association relation between the address information and the login information is preset. After the address information is acquired, the address information can be searched from the database based on the address information, so that login information corresponding to the address information is obtained.
By acquiring the login information of the target network video recorder, the management relationship between the current client and the target network video recorder can be determined based on the login information, management of a plurality of other network video recorders based on the client can be realized, and the management efficiency of the network video recorder is improved.
In this technical solution, optionally, before obtaining the login information of the target network video recorder in the case of receiving the management request of the target network video recorder sent by the current client, the method further includes steps B1-B2:
step B1, receiving a network video recorder search request sent by a current client;
And B2, according to the network video recorder search request, storing login information of other network video recorders except the current network video recorder in at least one local area network into a database.
Specifically, a user enters a current client through login information, clicks and searches in an interface of the current client, searches all network video recorders in a local area network, and then adds the searched network video recorders to the current network video recorders. After the successful addition, the login information of the network video recorders is stored in a database of the current network video recorders. The searched network video recorder can be added to the current network video recorder in response to clicking operation of a user, and the current network video camera can also automatically add the searched network video recorder.
In the scheme, when the current network video recorder supports multiple network cards, the current network video recorder can be connected to all network video recorders of a local area network where each network card is located. The current client corresponding to the current network video recorder can manage all network video recorders in the non-same local area network. The current client can access the current network video recorder through the Internet, and then the local area network card of the current network video recorder sends a search request to the network video recorder in the local area network.
By storing the login information of the network video recorder in the database of the current network video recorder, each network video recorder can be managed based on the current client.
And S120, based on the login information, sending a login request to the target network video recorder so that the target network video recorder can determine response information according to the login request.
In this embodiment, the login request may refer to a request to login to the target network video recorder. For example, the login request may be a HIIP request.
Wherein the response information may consist of field identifications.
In the scheme, a current network video recorder sends a login request to a target network video recorder, and the target network video recorder generates response information after receiving the login request.
In this technical solution, optionally, the login request includes a first login request and a second login request;
correspondingly, based on the login information, sending a login request to the target network video recorder so that the target network video recorder can determine response information according to the login request, wherein the method comprises the following steps of:
Step C1, a first login request is sent to the target network video recorder so that the target network video recorder can determine authentication information according to the first login request;
wherein the authentication information may consist of an authentication field identity.
In this embodiment, the current network video recorder sends a first login request to the target network video recorder, and if the target network video recorder supports the access of the current client, authentication information supporting the access of the current client is generated.
And C2, receiving authentication information returned by the target network video recorder, generating a second login request according to the login information and the authentication information, and sending the second login request to the target network video recorder so that the target network video recorder can determine response information according to the second login request.
In this embodiment, after receiving the authentication information returned by the target network video recorder, the current network video recorder generates a second login request based on the login information and the authentication information, and requests to login the target network video recorder again.
In this scenario, all requests sent by the current client or the current network recorder will have an identifier in the authentication header to mark whether the current network request source is the current client or the current network recorder. The accessed target network video recorder is not accessed to other network video recorders.
By logging in the target network video recorder, communication between the current client and the target network video recorder can be realized. And the target network video recorder can be managed based on the current client, so that the management efficiency of the network video recorder is improved.
In this technical solution, optionally, generating the second login request according to the login information and the authentication information includes:
splicing the login information and the authentication information to obtain target information;
encrypting the target information, and carrying the encrypted target information into a request header of a second login request to construct the second login request.
Specifically, the login information and the authentication information are spliced and then encrypted and brought into a request header, a HIIP request is sent to log in the target network video recorder, and the target network video recorder verifies the login information. If the verification is successful, the verification result is carried into a response message and is sent to the current network video recorder.
By logging in the target network video recorder, communication between the current client and the target network video recorder can be realized. And the target network video recorder can be managed based on the current client, so that the management efficiency of the network video recorder is improved.
S130, receiving response information returned by the target network video recorder, and setting a management relationship between the current client and the target network video recorder according to the response information so that the current client can manage the target network video recorder based on the management relationship.
In the scheme, if the response message returned by the target network video recorder is received, the successful switching between the current network video recorder and the target network video recorder is indicated, namely, the current client and the target network video recorder establish a management relationship, and a user can directly manage the target network video recorder through the current client.
In this technical solution, optionally, after setting the management relationship between the current client and the target network video recorder, the method further includes:
And if a management relationship logout request of the target network video recorder sent by the current client is received, deleting the management relationship between the current client and the target network video recorder.
Specifically, the user clicks a logout button on the interface of the current client to issue a logout request. After receiving the logout request, if the address information of the target network video recorder exists in the environment variable, the current network video recorder redirects to the management interface of the current client, and the address information in the environment variable is deleted, namely the management relation between the current client and the target network video recorder is deleted. And if the address information of the target network video recorder does not exist in the environment variable, redirecting to the login interface.
By deleting the management relationship between the current client and the target network video recorder, management resources of the network video recorder can be saved.
Fig. 4 is a schematic diagram illustrating a switch of a target network video recorder according to an embodiment of the present application, and as shown in fig. 4, after the network video recorder is on line, a user may select a target NVR and issue a request to switch to the target NVR. The current client brings the IP address of the target NVR into a request body for issuing, the current NVR stores the IP address of the target NVR into an environment variable after receiving the request, a DAO module of a core process retrieves a user name password corresponding to the IP of the target NVR in a database, the issuing request logs in the target NVR, and the successful response of the target NVR means successful switching.
According to the technical scheme, under the condition that the management request of the target network video recorder sent by the current client is received, the login information of the target network video recorder is obtained, and the login request is sent to the target network video recorder based on the login information. And then receiving response information returned by the target network video recorder, setting the management relation between the current client and the target network video recorder according to the response information, and then performing management operation on the target network video recorder based on the management relation based on the current client. By executing the technical scheme, the management relation between the current client and the target network client is determined, so that the management operation of the target network video recorder can be directly performed based on the current client. The management efficiency of the network video recorder is improved, and resources are saved.
Example two
Fig. 5 is a schematic diagram of a process for managing a network video recorder according to a second embodiment of the present invention, and a detailed description of a process for managing a network video recorder according to a relationship between the present embodiment and the above embodiments is provided. As shown in fig. 5, the method includes:
S510, under the condition that a management request of a target network video recorder sent by a current client is received, acquiring login information of the target network video recorder; the current client refers to a client with a management relationship with the current network video recorder.
S520, based on the login information, sending a login request to the target network video recorder so that the target network video recorder can determine response information according to the login request.
And S530, receiving response information returned by the target network video recorder, and setting a management relationship between the current client and the target network video recorder according to the response information so that the current client can manage the target network video recorder based on the management relationship.
S540, under the condition that a target network video recorder resource request sent by a current client is received, identifying the type of the target network video recorder resource request to obtain an identification result, and if the identification result is a dynamic resource request, sending the target network video recorder resource request to the target network video recorder based on the management relationship between the current client and the target network video recorder so that the target network video recorder can determine target data according to the target network video recorder resource request.
Specifically, the user continues to operate the current client to manage the target network video recorder. Under the condition that a target network video recorder resource request sent by a current client is received, namely when the target network video recorder resource request is a dynamic resource request and the environment variable has address information of the target network video recorder, the current network video recorder takes a role of a reverse proxy server, and the target network video recorder resource request is forwarded to the target network video recorder. The current network video recorder repackages a message, the destination address in the message is the address information of the target network video recorder, and the message body is consistent with the received message body. Dynamic resources may refer to resources that are changeable on a client page, among other things.
In this technical solution, optionally, after setting the management relationship between the current client and the target network video recorder, the method further includes:
under the condition that a target network video recorder resource request sent by a current client is received, identifying the type of the target network video recorder resource request to obtain an identification result;
And if the identification result is a static resource request, the static resource of the current network video recorder is sent to the current client side so that the current client side can display the static resource. In the scheme, when the request sent by the current client is received as the static resource request, the static resource is directly returned to the current client. The static resource may be a resource that the picture, text, etc. of the customer service page will not change. The static resources of the current network video recorder and the target network video recorder are consistent.
When the user continues to operate the current client to manage the target network video recorder, the target address of the request issued by the current client at the moment is still the address information of the current network video recorder.
S550, receiving target data returned by the target network video recorder, and sending the target data to the current client for the current client to display the target data.
Specifically, after the target network video recorder responds, the current network video recorder repackages the target data responded by the target network video recorder into a message with the target address being the address information of the current client, sends the message to the current client, and displays the target data based on the current client.
Fig. 6 is a schematic diagram illustrating obtaining dynamic resources of a video recorder according to a second embodiment of the present application. P1 represents the current client, P2 represents the current network recorder, P3 represents the target network recorder, and P4 represents the other network recorders. As shown in fig. 6, when the current client P1 acquires the dynamic resource of the target network video recorder, it first sends a request to the current network video recorder P2, and the current network video recorder P2 forwards the request to the target network video recorder P3. When the target network video recorder P3 returns the target data in response to the request, the target data is sent to the current network video recorder P2, and the current network video recorder P2 forwards the target data to the current client P1. After the current client P1 establishes a management relationship with the target network video recorder P3, the data displayed by the current client P1 is already switched to the target data responded by the target network video recorder P3.
According to the technical scheme, under the condition that the management request of the target network video recorder sent by the current client is received, the login information of the target network video recorder is obtained, and the login request is sent to the target network video recorder based on the login information. And then receiving response information returned by the target network video recorder, and setting the management relationship between the current client and the target network video recorder according to the response information. And under the condition that the target network video recorder resource request sent by the current client is received, sending the target network video recorder resource request to the target network video recorder based on the management relation between the current client and the target network video recorder. And receiving target data returned by the target network video recorder, sending the target data to the current client, and then displaying the target data based on the current client. By executing the technical scheme, the management relation between the current client and the target network client is determined, so that the management operation of the target network video recorder can be directly performed based on the current client. The management efficiency of the network video recorder is improved, and resources are saved.
Example III
Fig. 7 is a schematic structural diagram of an apparatus for managing a network video recorder according to a third embodiment of the present invention. As shown in fig. 7, the apparatus includes:
The login information obtaining module 710 is configured to obtain login information of the target network video recorder when receiving a management request of the target network video recorder sent by the current client; the current client side refers to a client side with a management relationship with the current network video recorder;
A login request sending module 720, configured to send a login request to the target network video recorder based on the login information, so that the target network video recorder determines response information according to the login request;
And the management relationship setting module 730 is configured to receive response information returned by the target network video recorder, and set a management relationship between the current client and the target network video recorder according to the response information, so that the current client performs management operation on the target network video recorder based on the management relationship.
In this embodiment, optionally, the login information obtaining module 710 is specifically configured to:
Receiving a target network video recorder management request sent by a current client;
Determining address information of the target network video recorder according to the management request of the target network video recorder;
and searching from a database based on the address information, and determining login information corresponding to the address information.
In this technical solution, optionally, the login request includes a first login request and a second login request;
Correspondingly, the login request sending module 720 includes:
The first login request sending unit is used for sending a first login request to the target network video recorder so that the target network video recorder can determine authentication information according to the first login request;
And the second login request sending unit is used for receiving authentication information returned by the target network video recorder, generating a second login request according to the login information and the authentication information, and sending the second login request to the target network video recorder so that the target network video recorder can determine response information according to the second login request.
In this technical solution, optionally, the apparatus further includes:
the identification result obtaining module is used for identifying the type of the target network video recorder resource request under the condition that the target network video recorder resource request sent by the current client is received, so as to obtain an identification result;
And the static resource sending module is used for sending the static resource of the current network video recorder to the current client side if the identification result is a static resource request so that the current client side can display the static resource.
In this technical solution, optionally, the apparatus further includes:
The target network video recorder resource request sending module is used for identifying the type of the target network video recorder resource request under the condition that the target network video recorder resource request sent by the current client is received, and obtaining an identification result;
If the identification result is a dynamic resource request, based on the management relationship between the current client and the target network video recorder, sending the target network video recorder resource request to the target network video recorder so that the target network video recorder can determine target data according to the target network video recorder resource request;
and the target data receiving module is used for receiving target data returned by the target network video recorder and sending the target data to the current client so as to be displayed by the current client.
In this technical solution, optionally, the apparatus further includes:
and the management relationship deleting module is used for deleting the management relationship between the current client and the target network video recorder if receiving the management relationship logout request of the target network video recorder sent by the current client.
In this technical solution, optionally, the apparatus further includes:
The network video recorder search request receiving module is used for receiving a network video recorder search request sent by a current client;
and the login information storage module is used for storing the login information of other network video recorders except the current network video recorder in at least one local area network into a database according to the network video recorder search request.
The device for managing the network video recorder provided by the embodiment of the invention can execute the method for managing the network video recorder provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 8 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 8, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a method of managing a network video recorder.
In some embodiments, a method of managing a network video recorder may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. One or more of the steps of a method of managing a network video recorder described above may be performed when the computer program is loaded into RAM 13 and executed by processor 11. Alternatively, in other embodiments, the processor 11 may be configured to perform a method of managing a network video recorder in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of managing a network video recorder, comprising:
under the condition that a management request of a target network video recorder sent by a current client is received, acquiring login information of the target network video recorder; the current client side refers to a client side with a management relationship with the current network video recorder;
based on the login information, sending a login request to the target network video recorder so that the target network video recorder can determine response information according to the login request;
And receiving response information returned by the target network video recorder, and setting a management relationship between the current client and the target network video recorder according to the response information so that the current client can manage the target network video recorder based on the management relationship.
2. The method according to claim 1, wherein, in case of receiving a target network recorder management request sent by a current client, obtaining login information of the target network recorder comprises:
Receiving a target network video recorder management request sent by a current client;
Determining address information of the target network video recorder according to the management request of the target network video recorder;
and searching from a database based on the address information, and determining login information corresponding to the address information.
3. The method of claim 1, wherein the login request comprises a first login request and a second login request;
Correspondingly, based on the login information, sending a login request to the target network video recorder so that the target network video recorder can determine response information according to the login request, and the method comprises the following steps:
Sending a first login request to the target network video recorder so that the target network video recorder can determine authentication information according to the first login request;
Receiving authentication information returned by the target network video recorder, generating a second login request according to the login information and the authentication information, and sending the second login request to the target network video recorder so that the target network video recorder can determine response information according to the second login request.
4. The method of claim 1, wherein after setting the management relationship of the current client and the target network recorder, the method further comprises:
under the condition that a target network video recorder resource request sent by a current client is received, identifying the type of the target network video recorder resource request to obtain an identification result;
and if the identification result is a static resource request, the static resource of the current network video recorder is sent to the current client side so that the current client side can display the static resource.
5. The method of claim 1, wherein after setting the management relationship of the current client and the target network recorder, the method further comprises:
under the condition that a target network video recorder resource request sent by a current client is received, identifying the type of the target network video recorder resource request to obtain an identification result;
If the identification result is a dynamic resource request, based on the management relationship between the current client and the target network video recorder, sending the target network video recorder resource request to the target network video recorder so that the target network video recorder can determine target data according to the target network video recorder resource request;
And receiving target data returned by the target network video recorder, and sending the target data to the current client for the current client to display the target data.
6. The method of claim 1, wherein after setting the management relationship of the current client and the target network recorder, the method further comprises:
And if a management relationship logout request of the target network video recorder sent by the current client is received, deleting the management relationship between the current client and the target network video recorder.
7. The method of claim 1, wherein, in the case of receiving a target network recorder management request sent by the current client, before obtaining login information of the target network recorder, the method further comprises:
Receiving a network video recorder search request sent by a current client;
and according to the network video recorder search request, storing login information of other network video recorders except the current network video recorder in at least one local area network into a database.
8. An apparatus for managing a network video recorder, comprising:
the login information acquisition module is used for acquiring login information of the target network video recorder under the condition that a management request of the target network video recorder sent by the current client is received; the current client side refers to a client side with a management relationship with the current network video recorder;
The login request sending module is used for sending a login request to the target network video recorder based on the login information so that the target network video recorder can determine response information according to the login request;
And the management relation setting module is used for receiving response information returned by the target network video recorder, and setting the management relation between the current client and the target network video recorder according to the response information so that the current client can manage the target network video recorder based on the management relation.
9. An electronic device, the electronic device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a method of managing a network video recorder as claimed in any one of claims 1 to 7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform a method of managing a network video recorder as claimed in any one of claims 1 to 7.
CN202211333287.0A 2022-10-28 2022-10-28 Method and device for managing network video recorder, electronic equipment and storage medium Pending CN117998038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211333287.0A CN117998038A (en) 2022-10-28 2022-10-28 Method and device for managing network video recorder, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211333287.0A CN117998038A (en) 2022-10-28 2022-10-28 Method and device for managing network video recorder, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117998038A true CN117998038A (en) 2024-05-07

Family

ID=90889769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211333287.0A Pending CN117998038A (en) 2022-10-28 2022-10-28 Method and device for managing network video recorder, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117998038A (en)

Similar Documents

Publication Publication Date Title
US9501335B2 (en) Web service API for unified contact store
WO2021023149A1 (en) Method and apparatus for dynamically returning message
US11244153B2 (en) Method and apparatus for processing information
CN115001967B (en) Data acquisition method and device, electronic equipment and storage medium
US11005797B2 (en) Method, system and server for removing alerts
US10133442B2 (en) Method and apparatus for accessing a chat room
CN114390239B (en) Communication method, device, system, electronic device, and storage medium
CN117998038A (en) Method and device for managing network video recorder, electronic equipment and storage medium
CN110768855B (en) Method and device for testing linkmzation performance
CN114500438B (en) File sharing method and device, electronic equipment and storage medium
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN116107878A (en) Remote debugging method, device, equipment and storage medium
CN112783507B (en) Data stream guiding playback method and device, electronic equipment and readable storage medium
CN111984893B (en) System log configuration conflict reminding method, device and system
CN117725568A (en) Account management method and device, electronic equipment and storage medium
CN116455851A (en) Message pushing method, electronic equipment and storage medium
CN114564133A (en) Application program display method, device, equipment and medium
CN117827458A (en) Resource matching method and device, electronic equipment and storage medium
CN117081939A (en) Traffic data processing method, device, equipment and storage medium
CN113824645A (en) Data transmission method, device, equipment and storage medium
CN116366637A (en) File pushing method, device, equipment and readable medium
CN118034749A (en) Updating method and electronic equipment
CN115766260A (en) Method, device, equipment and storage medium for generating network access white list
CN116582317A (en) Control authority acquisition method and device, electronic equipment and storage medium
CN117675561A (en) Software configuration method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination