A video acquisition system, method, network camera and video recorder

By pre-configuring the connection method between the streaming media device and the server, and using the binding command of the terminal device to realize the direct communication connection between the recorder and the network camera, the problem of communication between devices in different local area networks requiring the use of third-party devices is solved, reducing costs and realizing cross-device control.

CN120475128BActive Publication Date: 2026-07-03HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
Filing Date
2025-05-30
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In existing technologies, video recorders and network cameras on different local area networks need to form a virtual local area network (VLAN) with the help of third-party equipment to establish a communication connection, which increases equipment and maintenance costs.

Method used

By pre-configuring the connection method between the streaming media device and the server, a communication connection is established, and with the assistance of the server, a direct communication connection between the recorder and the network camera is achieved through the binding command of the terminal device, without the need to introduce third-party equipment.

Benefits of technology

It enables direct communication between video recorders and network cameras in different local area networks, reducing equipment and maintenance costs, and the video recorder can control other streaming media devices besides itself.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120475128B_ABST
    Figure CN120475128B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a video acquisition system, method, network camera and video recorder. The system comprises a terminal device, a server and a plurality of stream media devices. Each stream media device sends a device identifier to the server. The terminal device acquires a first device identifier of a video recorder indicated by a binding instruction and a second device identifier of a device to be bound indicated by the binding instruction. The server determines a device corresponding to the first device identifier as a target video recorder and a device corresponding to the second device identifier as a target device to be bound, and establishes a first target communication connection. The video recorder determines a target device to be controlled to which a control instruction is directed. The target device to be controlled is controlled to perform an operation indicated by the control instruction through the target communication connection established with the target device to be controlled. The video acquisition system provided by the embodiments of the present application can establish a communication connection without a third party device, regardless of whether the stream media devices are in the same local area network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of video capture technology, and in particular to a video capture system, method, network camera, and video recorder. Background Technology

[0002] In video capture systems, a communication connection is typically established between the video recorder and the network camera to enable the video recorder to manage the network camera. In related technologies, video recorders and network cameras that are on the same local area network can directly establish a communication connection. However, for video recorders and network cameras that are not on the same local area network, a virtual local area network (VLAN) needs to be formed with the help of third-party equipment to establish a communication connection, which increases equipment and maintenance costs. Summary of the Invention

[0003] The purpose of this application is to provide a video capture system, method, network camera, and recorder to achieve communication between a recorder and a network camera located on different local area networks without introducing third-party equipment. The specific technical solution is as follows:

[0004] In a first aspect, embodiments of this application provide a video capture system, the system including a terminal device, a server, and multiple streaming media devices; the streaming media devices include at least one video recorder; each streaming media device is pre-configured with a connection method for connecting to the server;

[0005] Each of the aforementioned streaming media devices is configured to establish a communication connection with the server according to a configured connection method; and to send the device identifier of the streaming media device to the server through the established communication connection.

[0006] The server is used to record the received device identifier and the device that sent the device identifier.

[0007] The terminal device is configured to, in response to an add command, obtain the device identifier of the streaming media device indicated by the add command, as the device identifier to be added; and send the account identifier of the account logged into by the terminal device and the device identifier to be added to the server.

[0008] The server is also configured to respond to the account identifier and the device identifier to be added sent by the terminal device, determine the device corresponding to the device identifier to be added, and record the determined device and the account identifier accordingly;

[0009] The terminal device is also used to send the account identifier of the account that the terminal device has logged into to the server in response to the list display instruction;

[0010] The server is further configured to, in response to an account identifier sent by the terminal device, determine the device corresponding to the account identifier; and send a device list representing the determined device to the terminal device.

[0011] The terminal device is further configured to display the device list; receive a binding instruction input for a streaming media device in the device list, obtain a first device identifier of the recorder indicated by the binding instruction, and obtain a second device identifier of the device to be bound indicated by the binding instruction; and send the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction.

[0012] The server is further configured to, in response to a first device identifier and a second device identifier sent by the terminal device, determine the device corresponding to the first device identifier as the target recorder and determine the device corresponding to the second device identifier as the target device to be bound; establish a communication connection between the target recorder and the target device to be bound, as a first target communication connection; the first target communication connection consists of a communication connection established between the server and the target recorder and a communication connection established between the server and the target device to be bound;

[0013] The recorder is further configured to, in response to a control command for a streaming media device other than the recorder, determine the device to which the control command is directed as a target device to be controlled; and, through a target communication connection established with the target device to be controlled, control the target device to be controlled to perform the operation indicated by the control command.

[0014] Secondly, embodiments of this application also provide a video capture method applied to a video recorder in a video capture system. The video capture system further includes a terminal device, a server, and multiple streaming media devices other than the video recorder. The video recorder and the streaming media devices are pre-configured with a connection method for connecting to the server. The method includes:

[0015] A communication connection is established with the server according to the configured connection method; the fifth device identifier of the video recorder is sent to the server through the established communication connection; so that the server records the received fifth device identifier and the device that sent the fifth device identifier accordingly;

[0016] In response to a control command for the streaming media device, the device to which the control command is directed is identified as the target device to be controlled; and the target device to be controlled is controlled to perform the operation indicated by the control command through a target communication connection established with the target device to be controlled.

[0017] The server also records a sixth device identifier and the device that sent the sixth device identifier. The sixth device identifier is sent to the server in the following manner.

[0018] Each of the streaming media devices establishes a communication connection with the server according to the configured connection method; through the established communication connection, each of the streaming media devices sends a sixth device identifier to the server; so that the server records the sixth device identifier and the device that sent the sixth device identifier accordingly;

[0019] The communication connection between the video recorder and the streaming media device is established in the following ways, serving as the target communication connection:

[0020] In response to the add command, the terminal device obtains the device identifier of the streaming media device indicated by the add command as the device identifier to be added; and sends the account identifier of the account logged into by the terminal device and the device identifier to be added to the server;

[0021] In response to the account identifier and the device identifier to be added sent by the terminal device, the server determines the device corresponding to the device identifier to be added, and records the determined device and the account identifier accordingly;

[0022] In response to the list display command, the terminal device sends the account identifier of the account that the terminal device is logged into to the server;

[0023] In response to an account identifier sent by the terminal device, the server determines the device corresponding to the account identifier; and sends a device list to the terminal device to represent the determined device.

[0024] The terminal device displays the device list; and receives a binding instruction input for a streaming media device in the device list, obtains a first device identifier of the network recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction.

[0025] In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target recorder and determines the device corresponding to the second device identifier as the target streaming media device; a communication connection is established between the target recorder and the target streaming media device as the first target communication connection, which consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target streaming media device.

[0026] Thirdly, embodiments of this application also provide a video acquisition method applied to a network camera in a video acquisition system, wherein the video acquisition system further includes a terminal device, a server, and at least one video recorder, and the method includes:

[0027] Establish a communication connection with the server according to the configured connection method, and send the ninth device identifier of the network camera to the server through the established communication connection, so that the server records the received ninth device identifier and the device that sent the ninth device identifier accordingly;

[0028] In response to a control command, perform the operation indicated by the control command;

[0029] The control commands are sent to the network camera in the following manner;

[0030] In response to a control command for the network camera, the recorder determines the network camera to which the control command is directed as the target network camera, and sends the control command to the target network camera through a target communication connection established with the target network camera.

[0031] The communication connection between the video recorder and the network camera is established using the following method, which serves as the target communication connection:

[0032] Each of the video recorders establishes a communication connection with the server according to the configured connection method, and sends the tenth device identifier of each video recorder to the server through the established communication connection; so that the server records the tenth device identifier and the device that sent the tenth device identifier accordingly;

[0033] In response to the add command, the terminal device obtains the device identifier of the streaming media device indicated by the add command as the device identifier to be added; and sends the account identifier of the account logged into by the terminal device and the device identifier to be added to the server;

[0034] In response to the account identifier and the device identifier to be added sent by the terminal device, the server determines the device corresponding to the device identifier to be added, and records the determined device and the account identifier accordingly;

[0035] In response to the list display command, the terminal device sends the account identifier of the account that the terminal device is logged into to the server;

[0036] In response to an account identifier sent by the terminal device, the server determines the device corresponding to the account identifier; and sends a device list to the terminal device to represent the determined device.

[0037] The terminal device displays the device list; and receives a binding instruction input for a streaming media device in the device list, obtains a first device identifier of the recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction.

[0038] In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder and determines the device corresponding to the second device identifier as the target network camera; a communication connection is established between the target video recorder and the target network camera as the first target communication connection, which consists of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target network camera.

[0039] Fourthly, embodiments of this application also provide a network video recorder, including:

[0040] Memory, used to store computer programs;

[0041] The processor, when executing a program stored in memory, implements any of the video capture methods described above for use in a video recorder.

[0042] Fifthly, embodiments of this application also provide a network camera, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement any of the video acquisition methods described above for a network camera.

[0043] Beneficial effects of the embodiments in this application:

[0044] Each streaming media device establishes a communication connection with the server according to a pre-configured connection method, and sends its device identifier to the server through the established communication connection. This allows the server to record the received device identifier and the device that sent it. Then, the terminal device inputs a binding command for a streaming media device from the device list displayed on the terminal device. In response to the binding command, the terminal device determines the first device identifier of the recorder indicated by the binding command and obtains the second device identifier of the device to be bound, and sends the obtained first and second device identifiers to the server. Based on the first and second device identifiers sent by the terminal device, the server can determine the recorder corresponding to the first device identifier as the target recorder and the device to be bound corresponding to the second device identifier as the target device to be bound. The communication connection between the server and the target recorder and the communication connection between the server and the target device to be bound constitute the target communication connection between the target recorder and the target device to be bound. Therefore, in response to the binding command, a communication connection can be established regardless of whether the recorder and the device to be bound are on the same local area network, without the need for third-party devices.

[0045] Based on the aforementioned method, a communication connection can be established between any video recorder and the device to be bound. Therefore, in response to control commands for other streaming media devices besides the video recorder, once the device targeted by the control command is identified as the target device to be controlled, the video recorder can control the target device to execute the operation indicated by the control command through the established target communication connection. In other words, based on the target communication connection, the video recorder can control other streaming media devices besides itself.

[0046] Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other embodiments can be obtained based on these drawings.

[0048] Figure 1 A schematic diagram of an information configuration interface for establishing a communication connection between a video recorder and a network camera in related technologies;

[0049] Figure 2 This is a schematic diagram illustrating the binding of network cameras and video recorders within different local area networks in related technologies.

[0050] Figure 3This is a schematic diagram of the structure of a video acquisition system provided in an embodiment of this application;

[0051] Figure 4 This is a schematic diagram of a first type of process interaction for a video acquisition system provided in an embodiment of this application;

[0052] Figure 5 A schematic diagram of a device list provided in an embodiment of this application;

[0053] Figure 6 This is a second flowchart illustrating the video capture system provided in an embodiment of this application.

[0054] Figure 7 This is a third flowchart illustrating the video capture system provided in the embodiments of this application.

[0055] Figure 8 This is a schematic diagram of a fourth process interaction of the video acquisition system provided in the embodiments of this application;

[0056] Figure 9 This is a fifth flowchart illustrating the video capture system provided in the embodiments of this application.

[0057] Figure 10 This is a schematic diagram illustrating the process interaction between binding a network camera and a video recorder according to an embodiment of this application;

[0058] Figure 11 This is a schematic diagram illustrating the process of acquiring video stream data provided in an embodiment of this application.

[0059] Figure 12 A flowchart illustrating a video acquisition method provided in this application embodiment;

[0060] Figure 13 This is a schematic flowchart of another video acquisition method provided in an embodiment of this application. Detailed Implementation

[0061] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art based on this application are within the scope of protection of this application.

[0062] In video capture systems, communication connections are typically established between video recorders and network cameras, and / or between video recorders themselves, to enable the video recorder to manage other video recorders and network cameras within the system. The following section uses the establishment of a communication connection between a video recorder and a network camera as an example to illustrate the difficulties encountered in establishing such a connection in related technologies. The principle for establishing a communication connection between video recorders is the same as that for establishing a communication link between a video recorder and a network camera; only the network camera needs to be replaced with a video recorder. Therefore, it will not be elaborated upon here.

[0063] In related technologies, establishing a communication connection between a video recorder and a network camera involves configuring the network camera's Internet Protocol Address (IP address), the port used for communication with the video recorder, username, password, and other information into the video recorder. See the following for details. Figure 1 The description in [the document] is as follows. Afterwards, the video recorder initiates a network connection to the network camera. At this point, if the video recorder and the network camera are on the same local area network (LAN), the video recorder can directly establish a communication connection with the network camera without needing a third-party device to form a virtual LAN. If the video recorder and the network camera are not on the same LAN, they cannot directly establish a communication connection and must use a third-party device to form a virtual LAN to establish a communication connection. See the following for details. Figure 2 The description in the text.

[0064] like Figure 1 As shown, Figure 1 This is a schematic diagram of an information configuration interface for establishing a communication connection between a video recorder and a network camera in related technologies. Figure 1 The interface shown displays the following data: the first line is the IP channel address, which is the IP address of the network camera; the second line is the protocol, which is the communication protocol between the recorder and the network camera; the third line is the management port, which is the port number used by the network camera to communicate with the recorder; the fourth line is the username; and the fifth line is the administrator password. "******" indicates fields to be filled in. For example, "******" after the IP channel protocol address indicates the IP channel protocol address to be filled in; "******" after the username indicates the username to be filled in.

[0065] Depend on Figure 1 Therefore, to establish a communication connection between the video recorder and the network camera, it is necessary to... Figure 1The interface shown allows you to configure the IP channel address, protocol, management port, username, and administrator password. However, users typically lack network knowledge and struggle to understand the meaning of these information. Therefore, configuring this information is often difficult for users. In other words, the data required to establish a communication connection between the recorder and the network camera in related technologies is complex, making the operation challenging for users.

[0066] like Figure 2 As shown, the headquarters is equipped with services, storage, switches, decoders, and a monitoring screen wall. Storage refers to devices with storage capabilities, and services refer to devices with service provision capabilities. Branches 1-3 are each equipped with routers, IPCs, and hard drives. However, the headquarters network is a separate LAN, and the networks of branches 1-3 are also separate LANs. That is, the headquarters and the branches are not on the same LAN. Therefore, to establish a communication connection between the headquarters' NVR and the branch IPCs, a third-party device is needed to create a virtual LAN (VLAN). The connection is then established through this VLAN. Thus, the headquarters' NVR and the branch IPCs can be considered devices within the same LAN, and a direct communication connection can be established when the NVR and IPCs are on the same LAN. Figure 2 While the method shown can enable communication between recorders and network cameras that are not on the same local area network, users need to add third-party equipment and activate the service to achieve this, which will increase equipment and maintenance costs.

[0067] To address the deficiencies in the aforementioned related technologies, this application provides a video acquisition system. Through the technical solution provided in this application, each streaming media device establishes a communication connection with the server according to a pre-configured connection method, and sends its device identifier to the server through the established communication connection, so that the server records the received device identifier and the device that sent the device identifier. Then, in response to a binding command, the terminal device determines the first device identifier of the recorder indicated by the binding command and obtains the second device identifier of the device to be bound indicated by the binding command, and sends the obtained first and second device identifiers to the server. Based on the first and second device identifiers sent by the terminal device, the server can determine the recorder corresponding to the first device identifier as the target recorder and determine the device to be bound corresponding to the second device identifier as the target device to be bound. The communication connection between the server and the target recorder and the communication connection between the server and the target device to be bound constitutes a target communication connection, serving as the communication connection between the target recorder and the target device to be bound. Therefore, in response to a binding command, a communication connection can be established regardless of whether the recorder and the device to be bound are devices within the same local area network, without the need for third-party devices.

[0068] Based on the aforementioned method, a communication connection can be established between any video recorder and the device to be bound. Therefore, in response to control commands for other streaming media devices besides the video recorder, once the device targeted by the control command is identified as the target device to be controlled, the video recorder can control the target device to execute the operation indicated by the control command through the established target communication connection. In other words, based on the target communication connection, the video recorder can control other streaming media devices besides itself.

[0069] The video acquisition system provided in this application will now be described in detail with specific examples.

[0070] The video capture system provided in this application includes a terminal device, a server, and multiple streaming media devices, wherein each streaming media device includes at least one video recorder. Taking a video capture system with five streaming media devices, where three are network cameras and the other two are video recorders, as an example... Figure 3 As shown, Figure 3 This is a schematic diagram of a video acquisition system provided in an embodiment of this application. The terminal device 31 is connected to the server 32, and the server 32 is connected to the streaming media device 33. The first network camera 331, the second network camera 332, the third network camera 333, the first video recorder 334, and the second video recorder 335 are all streaming media devices 33. The first video recorder 334 can establish communication connections with any one or more of the first network camera 331, the second network camera 332, the third network camera 333, and the second video recorder 335; the second video recorder 335 can establish communication connections with any one or more of the first network camera 331, the second network camera 332, the third network camera 333, and the first video recorder 334.

[0071] Specifically, such as Figure 4 As shown, the video acquisition system includes terminal equipment, a server, and multiple streaming media devices, among which at least one video recorder is included; each streaming media device is pre-configured with a connection method for connecting to the server. Figure 4 A first flowchart illustrating the video capture system provided in this application includes the following steps:

[0072] Step S41: Each streaming media device establishes a communication connection with the server according to the configured connection method; the device identifier of the streaming media device is sent to the server through the established communication connection;

[0073] Step S42: The server records the received device identifier and the device that sent the device identifier;

[0074] Step S43: The terminal device responds to the add command by obtaining the device identifier of the streaming media device indicated by the add command, which is used as the device identifier to be added; and sends the account identifier of the account logged in by the terminal device and the device identifier to be added to the server;

[0075] Step S44: The server responds to the account identifier and the device identifier to be added sent by the terminal device, determines the device corresponding to the device identifier to be added, and records the determined device and account identifier accordingly;

[0076] Step S45: In response to the list display command, the terminal device sends the account identifier of the account that the terminal device is logged into to the server;

[0077] Step S46: The server responds to the account identifier sent by the terminal device, determines the device corresponding to the account identifier, and sends a device list to the terminal device to represent the determined device;

[0078] Step S47: The terminal device displays a device list; and receives a binding instruction input for a streaming media device in the device list, obtains the first device identifier of the recorder indicated by the binding instruction, and obtains the second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction.

[0079] Step S48: In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target recorder and determines the device corresponding to the second device identifier as the target device to be bound; a communication connection is established between the target recorder and the target device to be bound, as the first target communication connection; wherein, the first target communication connection consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target device to be bound;

[0080] Step S49: In response to a control command for a streaming media device other than the recorder, the recorder determines the device to which the control command is directed as the target device to be controlled; and through the target communication connection established with the target device to be controlled, controls the target device to be controlled to execute the operation indicated by the control command.

[0081] In the technical solution provided in this application embodiment, each streaming media device establishes a communication connection with the server according to a pre-configured connection method, and sends the device identifier of the streaming media device to the server through the established communication connection, so that the server records the received device identifier and the device that sent the device identifier. Then, a binding command for a streaming media device in the device list displayed on the terminal device is input. In response to the binding command, the terminal device determines the first device identifier of the recorder indicated by the binding command and obtains the second device identifier of the device to be bound indicated by the binding command, and sends the obtained first and second device identifiers to the server. Based on the first and second device identifiers sent by the terminal device, the server can determine the recorder corresponding to the first device identifier as the target recorder and determine the device to be bound corresponding to the second device identifier as the target device to be bound. The communication connection between the server and the target recorder and the communication connection between the server and the target device to be bound constitutes the target communication connection between the target recorder and the target device to be bound. Therefore, in response to the binding command, a communication connection can be established regardless of whether the recorder and the device to be bound are devices within the same local area network, and no third-party device is required.

[0082] Based on the aforementioned method, a communication connection can be established between any video recorder and the device to be bound. Therefore, in response to control commands for other streaming media devices besides the video recorder, once the device targeted by the control command is identified as the target device to be controlled, the video recorder can control the target device to execute the operation indicated by the control command through the established target communication connection. In other words, based on the target communication connection, the video recorder can control other streaming media devices besides itself.

[0083] In step S41 above, the streaming media device can be either a network camera or a video recorder. A network camera (Internet Protocol Camera, IPC) can transmit video streams over a network. Specifically, a network camera can encode captured video footage into data signals and transmit them to a video recorder or other receiving device via the network. Video recorders can be further divided into digital video recorders (DVRs) and network video recorders (NVRs). A network video recorder can receive video streams from network cameras over a network and store and remotely manage the received video streams.

[0084] The server is a cloud platform. Each streaming media device establishes a communication connection with the server according to a pre-configured connection method, and sends its device identifier to the server through this connection. The timing for establishing a communication connection between the streaming media device and the server is when the device meets pre-set communication establishment conditions, such as network access or power-on. For example, if the communication establishment condition is network access, a communication connection is established with the server once the streaming media device is connected to the network; similarly, if the communication establishment condition is power-on, a communication connection is established with the server once the streaming media device is powered on.

[0085] It is understandable that a video capture system includes multiple streaming media devices, which can be network cameras and video recorders. Therefore, in some embodiments, taking network access as an example for establishing communication, step S61 can be understood as follows: after accessing the network, the video recorder establishes a communication connection with the server through a pre-configured connection method, and sends its own device identifier to the server through the established communication connection; after accessing the network, the network camera establishes a communication connection with the server through a pre-configured connection method, and sends its own device identifier to the server through the established communication connection. Here, "network" refers to a network capable of connecting to the server.

[0086] Specifically, for example, taking the streaming media devices in the video capture system as video recorder 1, video recorder 2, network camera 3, and network camera 4; and taking network access as the communication establishment condition, when video recorder 1 accesses the network, it establishes a communication connection with the server through a pre-configured connection method and sends its device identifier 1 to the server through the established communication connection; when video recorder 2 accesses the network, it establishes a communication connection with the server through a pre-configured connection method and sends its device identifier 2 to the server through the established communication connection; network camera 3 establishes a communication connection with the server through a pre-configured connection method and sends its device identifier 3 to the server through the established communication connection; when network camera 4 accesses the network, it establishes a communication connection with the server through a pre-configured connection method and sends its device identifier 4 to the server through the established communication connection.

[0087] In this embodiment of the application, the device identifier includes information describing the device's capabilities and characteristics, such as the device model, device serial number, and device type. For example, the device identifier of a video recorder includes information describing the video recorder's capabilities and characteristics, such as the video recorder's model, video recorder serial number, and video recorder performance. The device identifier of a network camera includes information describing the network camera's capabilities and characteristics, such as the network camera's model, network camera serial number, and network camera performance.

[0088] In step S41 above, the streaming media device only sends its own device identifier to the server for recording. At this time, no operation is performed on the streaming media device, and the device waits for the user to add it.

[0089] In step S42 above, the device that the server records the received device identifier and the device that sends the device identifier can be understood as the communication information of the device that the server records the received device identifier and the device that sends the device identifier. Based on this communication information, the device can be identified. Specifically, the communication information may only include the device's network address, or it may include the device's network address and other information.

[0090] Taking the example where the communication information only includes the network address of the device, and continuing with the example shown in step S41 above, the content of step S42 will be explained as follows: After the server receives the device identifier 1 sent by the recorder 1, it records the device identifier 1 and the network address 1 of the recorder 1 accordingly; after the server receives the device identifier 2 sent by the recorder 2, it records the device identifier 2 and the network address 2 of the recorder 2 accordingly; after the server receives the device identifier 3 sent by the network camera 3, it records the device identifier 3 and the network address 3 of the network camera 3 accordingly; after the server receives the device identifier 4 sent by the network camera 4, it records the device identifier 4 and the network address 4 of the network camera 4 accordingly.

[0091] In step S43 above, the device identifier to be added refers to the device identifier of the streaming media device indicated by the add command. In response to the add command, the terminal device sends the streaming media device identifier indicated by the add command and the account identifier of the account the terminal device is logged into to the server. The add command is a user-issued command to add the streaming media device to the account identifier. It is understood that the account identifier in this document is not equivalent to account information in related technologies. For example, account information in related technologies typically includes a username and password, but the account identifier in this document does not include a password.

[0092] In some embodiments, the streaming media device carries an identifier, such as a QR code or barcode, to describe its own device identity. The device identifier can be obtained by scanning the identifier on the device. Based on this, a user can use a terminal device or an image acquisition device connected to the terminal device to scan the identifier on the streaming media device to obtain the device identifier. Then, the user uses the device identifier to determine from the server whether the streaming media device has been added, such as by using the serial number in the device identifier or directly using the device identifier. If the streaming media device has been added, the server can return information to the terminal device indicating that the streaming media device has been added. If the streaming media device has not been added, the server continues with the subsequent step S44, adding the streaming media device to the account identifier of the currently logged-in account on the terminal device.

[0093] To illustrate with a specific example, network camera 1 carries a QR code on its body to identify itself. The user scans the QR code on network camera 1 with a terminal device to obtain the device identifier of network camera 1. Then, the user determines whether network camera 1 has been added based on the device identifier of network camera 1. If network camera 1 has been added, the server returns information to the terminal device indicating that network camera 1 has been added. If network camera 1 has not been added, the service adds network camera 1 to the account identifier of the account currently logged in by the terminal device, that is, executes the subsequent step S44.

[0094] The step of determining whether a streaming media device has been added by sending its device identifier to the server can be understood as using the device identifier to determine whether the streaming media device has been added to the account identifier of the currently logged-in account, or to another account identifier. "Other account identifiers" refers to account identifiers other than the account identifier of the currently logged-in account. It is understood that steps S43-S44 will be executed whenever a streaming media device is added to an account identifier. That is, if a streaming media device has been added to an account identifier, the server should have a corresponding record of the device identifier and the account identifier. Based on this, after scanning and obtaining the device identifier of the streaming media device, it can be sent to the server. The server can determine whether the streaming media device has been added by querying whether a corresponding record of the device identifier and the account identifier exists. Specifically, if the server has a corresponding record of the device identifier and an account identifier, it indicates that the streaming media device has been added; if the server does not have a corresponding record of the device identifier and the account identifier, it indicates that the streaming media device has not been added.

[0095] Additionally, it is understood that the device identifier may include the device serial number. Therefore, in some embodiments, after scanning and obtaining the device identifier of the streaming media device, the device serial number can also be used to determine whether the streaming media device has been added. Specifically, the terminal device can send the serial number of the streaming media device to the server, which then determines the device identifier corresponding to the serial number. That is, the device identifier includes the serial number. Furthermore, the server can determine whether the streaming media device has been added by querying whether a corresponding device identifier and account identifier corresponding to the serial number are recorded.

[0096] In other embodiments, in addition to a device identifier describing its own identity, the streaming media device may also carry verification information for security verification. This verification information may be embedded in a QR code, barcode, or other identifier, which can be obtained by scanning it by a terminal device; alternatively, it may be represented as a numerical sequence, which can be directly read by the user. The server also records the device and its verification information.

[0097] Based on this, after determining that the streaming media device has not been added, the server can also return a message to the terminal device to obtain verification information. Upon receiving this message, the terminal device can display a prompt to instruct the user to enter verification information. At this point, the terminal device can obtain the verification information of the streaming media device by scanning an identifier carrying verification information or by having the user enter a numerical sequence, and then send the verification information to the server. Understandably, after receiving the device identifier sent by the terminal device, the server can determine the streaming media device corresponding to that identifier. Furthermore, upon receiving the verification information of that streaming media device, based on the corresponding device and its verification information, it can determine whether the verification information is the verification information of the device corresponding to the device identifier sent by the terminal device. If the verification information is the verification information of the device corresponding to the device identifier sent by the terminal device, then the device and account identifier determined by the corresponding record in step S44 below are executed. This prevents other users from obtaining the identifier representing the device identifier and pre-adding the streaming media device to their own account identifier, thus improving the security of device addition.

[0098] In step S44 above, after the server receives the account identifier and the identifier to be added sent by the terminal device, it determines the device corresponding to the identifier to be added and records the determined device and account identifier accordingly.

[0099] For example, the server receives account identifier 1 from a terminal device, and device identifiers 1, 2, and 3 to be added. It then determines that device identifier 1 corresponds to network recorder 1, device identifier 2 corresponds to network camera 2, and device identifier 3 corresponds to network camera 3. Therefore, the server records account identifier 1 with network recorder 1, network camera 2, and network camera 3. Alternatively, it can be understood that the server records account identifier 1 with device identifiers 1, 2, and 3.

[0100] In step S45 above, the list display command is a command issued by the user to view the devices managed by their account. In response to the list display command, the terminal device sends the account identifier of the logged-in account to the server.

[0101] In step S46 above, in response to the account identifier sent by the terminal device, the server determines the device corresponding to the account identifier, that is, determines the streaming media device corresponding to the record of the account identifier, and then sends a device list to the terminal device to represent the determined device.

[0102] Here, the device list represents the devices corresponding to the account identifier determined by the server based on the account identifier. It is understood that each time a streaming media device is added, the aforementioned steps S43-S44 are executed. That is, each time a streaming media device is added, the server records the corresponding account identifier and the added device. Therefore, when the terminal device sends an account identifier to the server in response to the list display command, the devices corresponding to the account identifier found by the server are all the devices added under that account identifier.

[0103] In step S47 above, the terminal device can be a desktop computer, a laptop computer, a smart mobile terminal, or other similar devices. The binding instruction is a user-issued instruction to bind a video recorder to a device to be bound; that is, the device indicated by the binding instruction must include at least one video recorder. The device to be bound is a streaming media device other than the network video recorder indicated by the binding instruction. The first device identifier is the device identifier of the video recorder indicated by the binding instruction; the second device identifier is the second device identifier of the device to be bound indicated by the binding instruction.

[0104] In response to the binding command, the terminal device obtains a first device identifier and a second device identifier, and sends the obtained first device identifier and second device identifier to the server. Specifically, after obtaining the device list, the terminal device displays the device list. Based on this device list, the terminal device can receive binding commands for network cameras and recorders in the device list. That is, based on the device list, the user can determine the network recorder to be bound and the devices to be bound, and issue a binding command according to the displayed device list. The devices indicated by the binding command include at least one recorder.

[0105] For example, such as Figure 5 As shown, Figure 5 This is a schematic diagram of a device list provided in an embodiment of this application. Figure 5 The system displays both a list of added devices and a list of online devices. The list of added devices represents devices already added to the account of the currently logged-in account on the terminal device. The "+Custom Add" option appears under the added devices list, allowing users to add devices based on the functions indicated by this option. This is merely an example; other functions may be included in actual applications, and this is not a limitation. Each row in the added devices list represents a device and is divided into 8 columns: channel number, IP address, channel name, status, protocol, binding status, operation, and security. The online devices list represents devices currently online and awaiting addition. It includes controls for adding, one-click adding, activating, batch IP modification, refreshing, and cross-network segment search. Each row in the online devices list represents a device and is divided into 8 columns: serial number, IP address, status, operation, protocol, management port, device type, and serial number.

[0106] In step S48 above, after receiving the first device identifier and the second device identifier sent by the terminal device, the server determines the device identifier that matches the first device identifier sent by the terminal device from the device identifier and device records recorded on the server, and then designates the device recorded with the device identifier as the target recorder. Furthermore, the server determines the device identifier that matches the second device identifier sent by the terminal device from the device identifier and device records recorded on the server, and then designates the device recorded with the device identifier as the target device to be bound.

[0107] After the server determines the target recorder and the target device to be bound, it establishes a communication connection between the target recorder and the target device to be bound, which is the first target communication connection. The first target communication connection consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target device to be bound.

[0108] Understandably, the first target communication connection refers to the communication connection between the target recorder and the target device to be bound, as indicated by the binding instruction. In some embodiments, a binding instruction can instruct the establishment of a communication connection between a video recorder and multiple devices to be bound. For example, in response to a binding instruction, the terminal device obtains the first device identifier of the video recorder, the device identifier 1 of device 1 to be bound, and the device identifier 2 of device 2 to be bound, as indicated by the binding instruction. Device identifier 1 and device identifier 2 are both second device identifiers. Then, after receiving the first device identifier and device identifiers 1 and 2 sent by the terminal device, the server determines the video recorder corresponding to the first device identifier as the target video recorder; it determines that the device corresponding to device identifier 1 is device 1 to be bound, and the device corresponding to device identifier 2 is device 2 to be bound. Thus, device 1 and device 2 to be bound are both target devices to be bound. Based on this, the server establishes communication connection 1 between the target video recorder and device 1 to be bound. Communication connection 1 consists of a communication connection between the target video recorder and the server and a communication connection between device 1 to be bound and the server. Furthermore, the server establishes communication connection 2 between the target video recorder and device 2 to be bound. Communication connection 2 consists of a communication connection between the target video recorder and the server and a communication connection between device 2 to be bound and the server. At this time, both communication connection 1 and communication connection 2 are target communication connections.

[0109] In step S49 above, the control command is a user-issued command instructing the recorder to control other streaming media devices besides itself to execute the operation indicated by the control command. Specifically, the control commands issued by the recorder to the network camera can be streaming commands, intercom commands, PTZ control commands, etc., and the control commands issued by the recorder to each other can be storage policy synchronization commands, system status synchronization commands, etc. Among them, the storage policy synchronization command is used to synchronize recording storage parameters to other recorders to ensure storage configuration consistency; the system status synchronization command is used to synchronize device operating status to support clustered resource scheduling.

[0110] The target device to be controlled is the device to which the control command is directed; the first target communication connection is the target communication connection. Taking the control command as a stream-fetching command as an example, in response to the stream-fetching command, the recorder obtains video stream data from the target device to be controlled through the target communication connection established with it. Specifically, when the target communication connection is the first target communication connection, the server obtains video stream data from the target device to be controlled through the communication connection with it, and then the server sends the obtained video stream data to the recorder through the communication connection with it.

[0111] Taking the PTZ control command as an example, when the target communication connection is the first target communication connection, in response to the PTZ control command, the recorder sends the PTZ control command to the server through the communication connection between the recorder and the server. Then, the server sends the received PTZ control command to the target device through the communication connection between the server and the target device to be controlled, so that the target device to be controlled can perform the operation indicated by the PTZ control command.

[0112] Understandably, the above Figure 4 In the illustrated embodiment, steps S41-S42, S43-S46, S47-S48, and S49 are not necessarily closely sequential in execution time; that is, for the above... Figure 4 In the example shown, only during the initial execution can steps S41-S42 be executed before steps S43-S46, and then steps S47-S48 and S49. However, after the initial execution, steps S41-S48 may not be executed before step S49; steps S41-S42 may not be executed before steps S43-S46; steps S41-S48 may not be executed before steps S47-S48, or steps S41-S42 may not be executed before steps S47-S48, or steps S43-S46 may not be executed before steps S47-S48. Furthermore, whether in the initial execution or subsequent execution processes, the execution times between steps S41-S42, S43-S46, S47-S48, and S49 are not necessarily closely linked. That is, after executing steps S41-S42, there can be a period of time before executing steps S43-S46, or steps S43-S46 can be executed immediately. Similarly, after executing steps S43-S46, there can be a period of time before executing steps S47-S48, or steps S47-S48 can be executed immediately; after executing steps S47-S48, there can be a period of time before executing step S49, or steps S49 can be executed immediately.

[0113] See Figure 6 , Figure 6 A second flowchart illustrating the video acquisition system provided in this application embodiment may include the following steps:

[0114] Step S61: Each streaming media device establishes a communication connection with the server according to the configured connection method; the device identifier of the streaming media device is sent to the server through the established communication connection; same as step S41 above;

[0115] Step S62: The server records the received device identifier and the device that sent the device identifier; this is the same as step S42 above.

[0116] Step S63: The terminal device responds to the add command by obtaining the device identifier of the streaming media device indicated by the add command, and uses it as the identifier of the device to be added; it sends the account identifier of the account logged in by the terminal device and the identifier of the device to be added to the server; the same as step S43 above;

[0117] Step S64: The server responds to the account identifier and the device identifier to be added sent by the terminal device, determines the device corresponding to the device identifier to be added, and records the determined device and account identifier accordingly; same as step S44 above.

[0118] Step S65: In response to the list display command, the terminal device sends the account identifier of the account that the terminal device has logged into to the server; the same as step S45 above.

[0119] Step S66: The server responds to the account identifier sent by the terminal device, determines the device corresponding to the account identifier, and sends a device list to the terminal device to represent the determined device; the same as step S46 above.

[0120] Step S67: The terminal device displays a device list; and receives a binding instruction input for a streaming media device in the device list, obtains the first device identifier of the recorder indicated by the binding instruction, and obtains the second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; the device to be bound is a streaming media device other than the recorder indicated by the binding instruction; same as step S47 above;

[0121] Step S68: The server responds to the first device identifier and the second device identifier sent by the terminal device, determines the device corresponding to the first device identifier as the target recorder, and determines the device corresponding to the second device identifier as the target device to be bound;

[0122] Step S69: The server determines the network address used by the target device to be bound when establishing a communication connection with the target device; and sends the determined network address to the target video recorder through the communication connection with the target video recorder.

[0123] Step S610: The target recorder responds to the network address sent by the server and determines whether a communication connection with the network address can be successfully established; if a communication connection with the network address cannot be successfully established, it sends a message to the server indicating that the communication connection could not be successfully established through the established communication connection with the server.

[0124] Step S611: In response to the message sent by the target recorder indicating that a communication connection cannot be established, the server establishes a communication connection between the target recorder and the target device to be bound, as the first target communication connection; the first target communication connection consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target device to be bound.

[0125] Step S612: In response to a control command for a streaming media device other than itself, the recorder determines the device to which the control command is directed as the target device to be controlled; and through the target communication connection established with the target device to be controlled, controls the target device to execute the operation indicated by the control command. This is the same as step S49 above.

[0126] In the technical solution provided in this application embodiment, during the process of establishing a target communication connection between the target recorder and the target device to be bound, after determining the target recorder and the target device to be bound, the server also determines the network address used by the target device to be bound when establishing the communication connection with the target device, and sends the network address to the target recorder. The target recorder then determines whether it can successfully establish a communication connection with the network address. If the target recorder cannot successfully establish a communication connection with the network address, the server then establishes the communication connection between the target recorder and the target device to be bound, i.e., the establishment of the first target communication connection. If the target recorder can successfully establish a communication connection with the network address, communication is conducted through the established communication connection, without needing to establish a communication connection through the server again. Thus, based on the technical solution provided in this application embodiment, the communication connection between the target recorder and the target device to be bound is only established through the server when the target recorder cannot successfully establish a communication connection with the network address, reducing the consumption of server resources.

[0127] In step S68 above, after receiving the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target recorder based on the pre-recorded device identifier and device, and determines the device corresponding to the second device identifier as the target device to be bound. See step S48 above for details.

[0128] In step S69 above, after the server determines the target recorder and the target device to be bound, it determines the network address used by the target device to be bound when establishing a communication connection with the target device to be bound, and sends the determined network address to the target recorder through the communication connection with the target recorder.

[0129] Specifically, for example, the terminal device sends a first device identifier to the server, designated as Device Identifier 1, and second device identifiers, designated as Device Identifier 2, Device Identifier 3, and Device Identifier 4. The server determines that Device Identifier 1 corresponds to Video Recorder 1, Device Identifier 2 corresponds to Network Camera 2, Device Identifier 3 corresponds to Network Camera 3, and Device Identifier 4 corresponds to Network Camera 4. At this point, the server determines the network address 2 used by Network Camera 2 when establishing a communication connection with Network Camera 2, the network address 3 used by Network Camera 3 when establishing a communication connection with Network Camera 3, and the network address 4 used by Network Camera 4 when establishing a communication connection with Network Camera 4. Therefore, the server then sends network addresses 2, 3, and 4 to Video Recorder 1 through the communication connection with Video Recorder 1.

[0130] In step S610 above, in response to the network address sent by the server, the target recorder determines whether it can successfully establish a communication connection with the network address. Specifically, after receiving the network address sent by the server, the target recorder attempts to establish a communication connection with that network address. If a communication connection can be established, it indicates that the communication connection with the network address has been successfully established; if a communication connection cannot be established, it indicates that the communication connection with the network address has not been successfully established.

[0131] If a communication connection cannot be successfully established, the target recorder sends a message to the server through the communication connection established with the server, indicating that the communication connection could not be successfully established, so that the server can execute the subsequent step S77 to establish a communication connection between the target recorder and the target device to be bound, i.e., the first communication connection.

[0132] In some embodiments, if the target recorder can successfully establish a communication connection with the network address, the established communication connection is used as the second target communication connection.

[0133] Continuing with the example shown in step S69 above, after receiving network address 2, network address 3, and network address 4, the recorder 1 determines that it can successfully establish communication connections with network address 2 and network address 4, but cannot successfully establish a communication connection with network address 3. Therefore, the established communication connection between the recorder 1 and network address 2 is the communication connection between the recorder 1 and the network camera 2; the established communication connection between the recorder 1 and network address 4 is the communication connection between the recorder 1 and the network camera 4. Furthermore, the recorder 1 sends a message to the server indicating that it cannot successfully establish a communication connection with network address 3, so that the server can establish a communication connection between the recorder 1 and the network camera 3 corresponding to network address 3 through step S611 below. Thus, the communication connection between the recorder 1 and the network camera 2, and the communication connection between the recorder 1 and the network camera 4 are both second target communication connections, and the communication connection between the recorder 1 and the recorder 3 is the first target communication connection.

[0134] In step S611 above, after receiving a message from the target recorder indicating that a communication connection cannot be established, the server establishes a communication connection between the target recorder and the target device to be bound, which serves as the first target communication connection. For a detailed description of the first target communication connection, please refer to the description in step S48 above.

[0135] In some embodiments, in response to an add instruction, the terminal device can also obtain the device identifier of the streaming media device indicated by the add instruction as the device identifier to be added, and send the account identifier of the account logged in by the terminal device and the device identifier to be added to the server, as described in step S43 above. The server, in response to the account identifier and device identifier to be added sent by the terminal device, determines the device corresponding to the device identifier to be added, and records the determined device and account identifier accordingly, as described in step S44 above. In this embodiment, the present application also provides two other process interaction diagrams for the video acquisition system, as detailed below. Figure 7 and Figure 8 The description in the text.

[0136] See Figure 7 , Figure 7 A third flowchart illustrating the video acquisition system provided in this application embodiment may include the following steps:

[0137] Step S71: Each streaming media device establishes a communication connection with the server according to the configured connection method; the device identifier of the streaming media device is sent to the server through the established communication connection; same as step S41 above;

[0138] Step S72: The server records the received device identifier and the device that sent the device identifier; this is the same as step S42 above.

[0139] Step S73: The terminal device responds to the add command by obtaining the device identifier of the streaming media device indicated by the add command, and uses it as the identifier of the device to be added; it sends the account identifier of the account logged in by the terminal device and the identifier of the device to be added to the server; the same as step S43 above;

[0140] Step S74: The server responds to the account identifier and the device identifier to be added sent by the terminal device, determines the device corresponding to the device identifier to be added, and records the determined device and account identifier accordingly; the same as step S44 above.

[0141] Step S75: The terminal device responds to the binding command by obtaining the first device identifier of the recorder indicated by the binding command and obtaining the second device identifier of the device to be bound indicated by the binding command; and sends the obtained first device identifier, second device identifier and account identifier of the account logged in by the terminal device to the server; wherein, the device to be bound is a streaming media device other than the recorder indicated by the binding command.

[0142] Step S76: The server responds to the first device identifier and the second device identifier sent by the terminal device, and determines whether the device corresponding to the first device identifier is the target recorder, the device corresponding to the second device identifier is the target device to be bound, and whether the target recorder and the target device to be bound are the devices corresponding to the account identifier; if yes, then proceed to the next step S77; if no, then proceed to the next steps S78-S79.

[0143] Step S77: The server establishes a communication connection between the target recorder and the target device to be bound, which serves as the first target communication connection; wherein, the first target communication connection consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target device to be bound; the same as step S48 above.

[0144] Step S78: The server sends a message to the terminal device indicating that the binding failed;

[0145] Step S79: The terminal device displays a prompt message.

[0146] In the technical solution provided in this application embodiment, in response to an add command, the terminal device sends an account identifier and a device identifier to be added to the server, so that the server determines the device corresponding to the device identifier to be added and records the determined device and account identifier accordingly. Based on this, when the terminal device sends the account identifier and the first device identifier and the second device identifier indicated by the binding command to the server in response to a binding command, the server determines the device corresponding to the first device identifier as the target recorder and the device corresponding to the second device identifier as the target device to be bound. Based on the recorded device and account identifiers, the server determines whether the target recorder and the target device to be bound are devices corresponding to the account identifier. When the target recorder and the target device to be bound are devices corresponding to the account identifier, a communication connection is established between the target recorder and the target device to be bound, serving as the first target communication connection. This improves the security of the video capture system and prevents the binding of devices not added to the account.

[0147] In step S75 above, the specific description of the terminal device obtaining the first device identifier and the second device identifier in response to the binding instruction can be found in step S47 above. Compared to step S47 above, which only sends the first device identifier and the second device identifier to the server, step S75 sends the account identifier of the account logged in by the terminal device to the server in addition to sending the first device identifier and the second device identifier to the server.

[0148] In step S76 above, it can be understood that, based on step S74 above, the server has corresponding records of account identifiers and devices; that is, the server has corresponding records of account identifiers and devices added under that account identifier. Therefore, in step S76, the server's determination of whether the target recorder and the target device to be bound are devices corresponding to the account identifier can be understood as the server determining whether the target recorder and the target device to be bound exist in the device records corresponding to the account identifier. If the target recorder and the target device to be bound exist in the device records corresponding to the account identifier, it indicates that the target recorder and the target device to be bound are devices corresponding to the account identifier; if the target recorder or the target device to be bound does not exist in the device records corresponding to the account identifier, it indicates that the target recorder and the target device to be bound are not devices corresponding to the account identifier.

[0149] To illustrate with a specific example, consider the following: The server records account identifier 1 and corresponding devices: Recorder 1, Network Camera 2, and Network Camera 3; account identifier 2 and corresponding devices: Recorder 4, Network Camera 5, and Network Camera 6. In response to the binding command, the terminal device sends device identifier 1 (the first device identifier), device identifier 2 (the second device identifier), and account identifier 1 (the account identifier of the account the terminal device is logged into) to the server. The server determines that device identifier 1 corresponds to recorder 1, and device identifier 2 corresponds to network camera 2. Based on this, since the server records that account identifier 1 corresponds to recorder 1, network camera 2, and network camera 3, it is clear that recorder 1 and network camera 2 are among the devices corresponding to account identifier 1. Therefore, recorder 1 and network camera 2 are the devices corresponding to account identifier 1.

[0150] In this step, the server determines the target recorder and the target device to be bound in response to the first device identifier and the second device identifier sent by the terminal device. For a detailed description of this step, please refer to step S48 above, which will not be repeated here.

[0151] In step S78 above, if the target recorder and the target device to be bound are not devices corresponding to the account identifier of the account logged into by the terminal device, the server sends a prompt message to the terminal device, which indicates that the binding has failed. Alternatively, in some embodiments, the prompt message may also indicate that the reason for the binding failure is that the current target recorder or the target device to be bound has not been added to the account logged into by the terminal device.

[0152] In step S79 above, after receiving the prompt message indicating that the binding failed, the terminal device displays the prompt message to inform the user that the binding failed.

[0153] See Figure 8 , Figure 8 A fourth flowchart illustrating the video capture system provided in this application embodiment may include the following steps:

[0154] Step S81: Each streaming media device establishes a communication connection with the server according to the configured connection method; the device identifier of the streaming media device is sent to the server through the established communication connection; same as step S71 above;

[0155] Step S82: The server records the received device identifier and the device that sent the device identifier; the same as step S72 above;

[0156] Step S83: The terminal device responds to the add command by obtaining the device identifier of the streaming media device indicated by the add command, and uses it as the identifier of the device to be added; it sends the account identifier of the account logged in by the terminal device and the identifier of the device to be added to the server; the same as step S73 above;

[0157] Step S84: The server responds to the add command by obtaining the device identifier of the streaming media device indicated by the add command, using it as the device identifier to be added, and records the determined device identifier and account identifier accordingly; the same as step S74 above.

[0158] Step S85: The terminal device responds to the binding command, obtains the first device identifier of the recorder indicated by the binding command, and obtains the second device identifier of the device to be bound indicated by the binding command; sends the obtained first device identifier, second device identifier and the account identifier of the account logged in by the terminal device to the server; wherein, the device to be bound is a streaming media device other than the recorder indicated by the binding command; same as step S75 above;

[0159] Step S86: In response to the first device identifier and the second device identifier sent by the terminal device, the server determines whether the device corresponding to the first device identifier is the target recorder, the device corresponding to the second device identifier is the target device to be bound, and whether the target recorder and the target device to be bound are the devices corresponding to the account identifier; if yes, then proceed to the next step S87; if no, then proceed to the next steps S88-S89; the same as step S76 above.

[0160] Step S87: The server establishes a communication connection between the target recorder and the target device to be bound, which serves as the target communication connection;

[0161] Step S88: The server sends a message to the terminal device indicating that the binding failed; the same as step S78 above.

[0162] Step S89: The terminal device displays a prompt message. This is the same as step S79 above.

[0163] In the technical solution provided in this application embodiment, before establishing a communication connection between the target recorder and the target device to be bound, the server first determines whether the target recorder and the target device to be bound are devices corresponding to the account identifier. When the target recorder and the target device to be bound are devices corresponding to the account identifier, a communication connection is then established between the target recorder and the target device to be bound, serving as the target communication connection. This improves the security of the video acquisition system.

[0164] In step S87 above, after the server determines that the target recorder and the target device to be bound are the devices corresponding to the account identifier, it proceeds according to the above... Figure 6The communication connection between the target recorder and the target device to be bound is established as shown in steps S69-S611, serving as the target communication connection.

[0165] Specifically, in some embodiments, after the server determines that the target recorder and the target device to be bound are devices corresponding to the account identifier, it determines the network address used by the target device to be bound when establishing a communication connection with it. Then, it sends the determined network address to the target recorder through the communication connection with it. The target recorder then determines whether it can successfully establish a communication connection with the determined network address. If the communication connection can be successfully established, it is used as the second target communication connection; if the communication connection cannot be successfully established, the target recorder sends a message to the server indicating that the communication connection could not be established, so that the server establishes a communication connection between the target recorder and the target device to be bound, which is then used as the first target communication connection.

[0166] Based on the above Figure 8 The scheme shown takes the control instruction as the stream fetching instruction as an example. See [link / reference]. Figure 9 , Figure 9 A fifth flowchart illustrating the video capture system provided in this application embodiment may include the following steps:

[0167] Step S91: Each streaming media device establishes a communication connection with the server according to the configured connection method; the device identifier of the streaming media device is sent to the server through the established communication connection; same as step S41 above;

[0168] Step S92: The server records the received device identifier and the device that sent the device identifier; the same as step S42 above;

[0169] Step S93: The terminal device responds to the binding command by obtaining the first device identifier of the recorder indicated by the binding command, the second device identifier of the device to be bound indicated by the binding command, and the account identifier of the account logged in by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server;

[0170] Step S94: After the server establishes a communication connection between the target recorder and the target device to be bound, it records the account identifier and the binding relationship between the target recorder and the target device to be bound.

[0171] Step S95: In response to the stream retrieval command, the recorder obtains the third device identifier of the recorder, the fourth device identifier of the device to be retrieved by the stream retrieval command, and the account identifier of the account logged in by the terminal device; and sends the obtained third device identifier, fourth device identifier, and account identifier to the server.

[0172] Step S96: The server determines whether there is a binding relationship between the recorder corresponding to the third device identifier under the account identifier and the streaming device corresponding to the fourth device identifier; if there is a binding relationship between the recorder corresponding to the third device identifier under the account identifier and the streaming device corresponding to the fourth device identifier, then proceed to step S97; if there is no binding relationship between the recorder corresponding to the third device identifier under the account identifier and the streaming device corresponding to the fourth device identifier, then proceed to step S98.

[0173] Step S97: The recorder corresponding to the third device identifier obtains video stream data from the device to be retrieved corresponding to the fourth device identifier through the target communication connection established with the device to be retrieved corresponding to the fourth device identifier;

[0174] Step S98: The server sends a message to the recorder corresponding to the third device identifier, indicating that there is no binding relationship, through the communication connection established between the server and the recorder corresponding to the third device identifier;

[0175] Step S99: The recorder displays the video stream data in response to the video stream data obtained from the device to be streamed corresponding to the fourth device identifier; or, in response to the message sent by the server indicating that there is no binding relationship, it displays the message.

[0176] In the technical solution provided in this application embodiment, during the execution of the binding instruction, the server records the account identifier and the binding relationship between the target recorder and the target device to be bound. Based on this, during the subsequent stream retrieval process, the server, in response to the third device identifier, fourth device identifier, and account identifier sent by the terminal device, can determine whether there is a binding relationship between the recorder corresponding to the third device identifier under the account identifier and the device to be retrieval corresponding to the fourth device identifier. If there is a binding relationship between the recorder corresponding to the third device identifier and the device to be retrieval corresponding to the fourth device identifier under the account identifier of the account logged into by the terminal device, the subsequent stream retrieval steps can be executed. Based on this, the security of the video acquisition system is improved.

[0177] In step S93 above, step S93 is related to the above... Figure 7 The content disclosed in step S75 is the same, the only difference being that the above... Figure 7In the example shown, step S75 serves to help the server determine whether the target recorder and the target device to be bound are devices corresponding to the account identifier of the account logged into by the terminal device, thereby preventing the binding of devices not added to the account and improving the security of the video capture system. Step S93, however,... Figure 9 The role of this mechanism is to record the account identifier and the binding relationship between the target network camera and the target device to be bound after a successful communication connection is established. Subsequently, when the recorder responds to a streaming command to retrieve streams from the device to be bound, the server can determine whether the recorder and the device to be bound are bound under the account identifier of the account logged into the terminal device, based on the recorded account identifier and the binding relationship. If a binding relationship exists, streaming is retrieved; otherwise, streaming is not retrieved, thereby improving the security of the video capture system.

[0178] In step S94 above, after establishing the communication connection between the target recorder and the target device to be bound, the server records the account identifier and the binding relationship between the target recorder and the target device to be bound. It is understandable that, in response to the binding command, the terminal device executes step S93 each time, and the server executes step S94 each time. Therefore, the server should record the account identifier of each account logged into the terminal device and the binding relationship between each device under that account identifier.

[0179] For example, initially, in response to the binding command, the terminal device sends the server a first device identifier as Device Identifier 1, a second device identifier as Device Identifier 2, and an account identifier as Account Identifier 1. The server determines that the device corresponding to Device Identifier 1 is Recorder 1, and the device corresponding to Device Identifier 2 is Network Camera 1. After completing the communication connection between Recorder 1 and Network Camera 1, the server records that Recorder 1 and Network Camera 1 are bound under Account Identifier 1. Subsequently, in response to the binding command again, the terminal device sends the server a first device identifier as Device Identifier 3, a second device identifier as Device Identifier 4, and an account identifier as Account Identifier 2. The server determines that the device corresponding to Device Identifier 3 is Recorder 2, and the device corresponding to Device Identifier 4 is Network Camera 2. After completing the communication connection between Recorder 2 and Network Camera 2, the server records that Recorder 1 and Network Camera 1 are bound under Account Identifier 1, and Network Camera 2 and Network Camera 2 are bound under Account Identifier 2. Subsequently, in response to the binding command again, the terminal device sends the server a first device identifier (device identifier 5), a second device identifier (device identifier 6), and an account identifier (account identifier 1). The server determines that device identifier 5 corresponds to video recorder 3 and device identifier 6 corresponds to network camera 3. After completing the communication connection between video recorder 3 and network camera 3, the server records that video recorder 1 and network camera 1 are bound together under account identifier 1, and video recorder 3 and network camera 3 are bound together; similarly, network camera 2 and network camera 2 are bound together under account identifier 2. And so on, the server records the binding relationships between devices under each account identifier.

[0180] The specific process of the server receiving the first device identifier and the second device identifier sent by the terminal device and establishing a communication connection based on the first device identifier and the second device identifier can be found in steps S48, S68-S611, S76-S77, and S86-S87 above.

[0181] In step S95 above, the device to be streamed is the streaming media device targeted by the stream retrieval command; the third device identifier is the device identifier of the recorder responding to the stream retrieval command; and the fourth device identifier is the device identifier of the device to be streamed.

[0182] In response to the stream retrieval command, the recorder obtains its own third device identifier, the fourth device identifier of the device to be retrieved by the stream retrieval command, and the account identifier of the account logged in by the terminal device, and sends the obtained third device identifier, fourth device identifier, and account identifier to the server.

[0183] In step S96 above, it can be understood that, based on step S92 above, the server records the received device identifier and the device that sent the device identifier. Therefore, the server can determine the recorder corresponding to the third device identifier and the device to be streamed corresponding to the fourth device identifier. Furthermore, based on step S94 above, the server records the account identifier and the binding relationship between the target recorder and the target device to be bound. Therefore, after determining the recorder corresponding to the third device identifier, the device to be streamed corresponding to the fourth device identifier, and the account identifier of the account logged into the terminal device, the server can determine whether there is a binding relationship between the recorder corresponding to the third device identifier and the device to be streamed corresponding to the fourth device identifier under the account identifier of the account logged into the terminal device. Specifically, if the server records the account identifier of the account logged into the terminal device and the binding relationship between the recorder and the device to be streamed, then it is determined that there is a binding relationship between the recorder corresponding to the third device identifier and the device to be streamed corresponding to the fourth device identifier under the account identifier of the account logged into the terminal device.

[0184] Continuing with the example shown in step S94 above, it can be seen from the example shown in step S94 that the server records that recorder 1 and network camera 1 are bound together under account identifier 1, and recorder 3 and network camera 3 are bound together; network camera 2 and network camera 2 are bound together under account identifier 2. In response to the stream retrieval command, the terminal device sends device identifier 1 (i.e., the third device identifier), device identifier 2 (i.e., the fourth device identifier), and account identifier 1 (i.e., the account identifier of the account the terminal device is logged into) to the server. The server determines that the device corresponding to device identifier 1 is recorder 1, and the device corresponding to device identifier 2 is network camera 1. Therefore, since the server records that recorder 1 and network camera 1 are bound together under account identifier 1, the server can determine that recorder 1 corresponding to device identifier 1 under account identifier 1 and network camera 1 corresponding to device identifier 2 are bound together. That is, the recorder corresponding to the third device identifier and the device to be retrieved corresponding to the fourth device identifier under the account identifier of the account logged into by the terminal device are bound together.

[0185] If the recorder corresponding to the third device identifier under the account identifier and the device to be streamed corresponding to the fourth device identifier are bound together, proceed to step S97; if the recorder corresponding to the third device identifier under the account identifier and the device to be streamed corresponding to the fourth device identifier are not bound together, proceed to step S98.

[0186] In step S97 above, the recorder corresponding to the third device identifier obtains video stream data from the device to be streamed corresponding to the fourth device identifier through a target communication connection established with the device to be streamed corresponding to the fourth device identifier. Specifically, in some embodiments, the recorder corresponding to the third device identifier can obtain video stream data from the device to be streamed corresponding to the fourth device identifier through a first target communication connection established with the device to be streamed corresponding to the fourth device identifier. That is, the server obtains video stream data from the device to be streamed corresponding to the fourth device identifier through a communication connection with the device to be streamed corresponding to the fourth device identifier, and then sends the obtained video stream data to the recorder corresponding to the third device identifier through a communication connection with the recorder corresponding to the third device identifier. In other embodiments, the recorder corresponding to the third device identifier can obtain video stream data from the device to be streamed corresponding to the fourth device identifier through a second target communication connection established with the device to be streamed corresponding to the fourth device identifier. Alternatively, the recorder corresponding to the third device identifier can directly obtain video stream data from the device to be streamed corresponding to the fourth device identifier through a communication connection established between the recorder corresponding to the third device identifier and the network address of the device to be streamed corresponding to the fourth device identifier.

[0187] In step S98 above, if there is no binding relationship between the recorder corresponding to the third device identifier under the account identifier and the device to be streamed corresponding to the fourth device identifier, the server sends a message to the recorder corresponding to the third device identifier through the communication connection established with the recorder corresponding to the third device identifier to indicate that there is no binding relationship. This is to inform the user that the recorder responding to the stream retrieval command and the device to be streamed targeted by the stream retrieval command are not bound to each other under the account identifier of the account logged in by the terminal device, and that there is an abnormality in the stream retrieval.

[0188] In step S99 above, if the recorder receives video stream data from the device to be streamed corresponding to the fourth device identifier, it displays the acquired video stream data. If the recorder receives a message from the server indicating that there is no binding relationship, it displays the message indicating that there is no binding relationship.

[0189] Understandably, the above Figure 9 The example shown is only for the case where the control command is a binding command. When the control command is a command other than a binding command, the server can first determine whether there is a binding relationship between the device responding to the command under the account identifier of the account logged in by the terminal device and the device targeted by the command. If there is a binding relationship, the server can then control the device targeted by the command to execute the operation indicated by the command.

[0190] To facilitate understanding of the video capture system provided in the embodiments of this application, specific examples are given below. Figures 10-11The workflow interaction between devices in the video acquisition system provided in this application embodiment will be described again. See [link to relevant documentation]. Figure 10 Taking a mobile client as the terminal device, a cloud platform as the server, and streaming media devices that need to be bound as video recorders and network cameras as an example, Figure 10 A schematic diagram illustrating the interaction between a network camera and a video recorder provided in this application embodiment may include the following steps:

[0191] Step S101: The mobile client retrieves the device list from the client backend;

[0192] The message for retrieving the device list contains the account identifier of the account logged into by the mobile client, and the device list is a list of devices bound to the account identifier.

[0193] Step S102: The client backend returns the NVR and IPC list to the mobile client, that is, the client backend returns the device list to the mobile client.

[0194] For details of steps S101-S102, please refer to the descriptions in steps S43-S47 above.

[0195] Step S103: The mobile client sends an NVR binding IPC message to the client backend; the message includes the camera identifier of the network camera to be bound and the identifier of the recorder, as well as the binding relationship between the network camera and the recorder; see step S47 above.

[0196] Step S104: The client backend forwards the binding request to the information recording service in the cloud platform; see step S47 above.

[0197] Step S105: The information recording service in the cloud platform checks the device access permissions; that is, it checks whether the device belongs to the account currently logged into on the cloud platform. See steps S73-S76 above.

[0198] Step S106: The information recording service in the cloud platform sends the associated channel to the device access service. That is, the information recording service sends the channel required for each network camera and each recorder to be bound to the device access service.

[0199] Step S107: The device access service sends the association configuration to the NVR. That is, it informs the NVR which IPC to bind to, and the channel occupied by that IPC when binding; it can also inform the NVR of other information required for binding.

[0200] Step S108: Configure the NVR channel, that is, bind the NVR and IPC.

[0201] Step S109: The NVR returns the configuration result to the device access service. The configuration result may include the binding relationship between the NVR and the IPC, as well as the channel used for binding.

[0202] Step S1010: Device access service records channel information. That is, the device access service records the binding relationship between the NVR and the IPC, as well as the channel used for binding.

[0203] Step S1011: The device access service returns the configuration result to the information recording service;

[0204] Step S1012: The information recording service records the associated information. That is, the information recording service records the binding relationship between the NVR and the IPC, such as which IPCs the NVR is bound to. This makes it easier to check whether a binding relationship exists between the IPC to be retrieved and the NVR during subsequent stream retrieval. See step S94 above.

[0205] Step S1013: The information recording service returns the association result, that is, the binding result, to the client backend to indicate whether the binding was successful.

[0206] Step S1014: The client backend returns the association result to the mobile client.

[0207] See Figure 11 , Figure 11 A flowchart illustrating the process of acquiring video stream data provided in this application embodiment may include the following steps:

[0208] Step S111: The NVR obtains stream retrieval information from the device access service. The request to obtain stream retrieval information carries the identifier of the IPC for which stream retrieval is required, as well as the NVR's device identifier. See the description in step S95 above for details. The request to obtain stream retrieval information can be understood as the stream retrieval command in step S95; the IPC identifier can be understood as the fourth device identifier in step S95; and the NVR's device identifier can be understood as the third device identifier in step S95.

[0209] Step S112: The device access service obtains streaming information from the media module.

[0210] Step S113: The media module initiates authentication with the information recording service. This is used to enable the information recording service to check whether there is a binding relationship between the IPC and the NVR. See the description in step S96 above for details.

[0211] Step S114: View the binding relationship using the information recording service. See the description in step S96 above for details.

[0212] Step S115: The information recording service returns the authentication result to the media module.

[0213] Here, the authentication result indicates whether the NVR and IPC that need to retrieve the stream are bound together. If the NVR and IPC are bound together, the media module will retrieve the video stream from the IPC specified in the stream retrieval information after receiving the authentication result (this step is understandable). Figure 11 (not shown in the image), and then the acquired video stream information is returned to the NVR. See steps S116-S117 for details.

[0214] If the NVR and IPC that need to retrieve the stream do not have a binding relationship, the media module can send a message to the NVR to indicate that the stream retrieval failed. Alternatively, the message indicating the stream retrieval failure can also include the reason for the failure: that there is no binding relationship.

[0215] Step S116: The media module returns streaming information to the device access service; understandably, Figure 11 The example shown assumes that the IPC and NVR cannot connect without a server. Therefore, the video stream needs to be obtained from the IPC through the media module in the cloud platform, rather than the NVR directly obtaining the video stream from the IPC. Figure 11 In the example shown, after the media module obtains the video stream, it first sends the video stream to the device access service, and then the device access service sends it to the NVR. However, in some embodiments, the media module can also directly send the video stream to the NVR after obtaining it.

[0216] Step S117: The device access service sends the streaming information to the NVR.

[0217] Based on the above, the video acquisition system provided in this application embodiment can achieve the following beneficial effects:

[0218] (1) Based on the video acquisition system provided in this application embodiment, if the NVR and IPC cannot directly establish a communication connection, the data exchanged between the IPC and NVR will first pass through the server before being sent to each other. That is, whether it is bitstream data, control data, or alarm data, the data will first be sent to the server, and then the server will forward it to the IPC or NVR. In this way, regardless of whether the IPC and NVR are directly connected or the data is relayed through the server, what the user sees is that the IPC and NVR are successfully bound. The effect shown to the user is completely different whether it is an IPC in a remote network or an IPC in a local network, and the user's usage process is also completely the same.

[0219] (2) The video acquisition system provided in this application embodiment can achieve remote networking between NVR and IPC without the need for additional third-party equipment. Both the NVR and IPC automatically register with the server after startup. Users register their own accounts on the server. After the NVR and IPC are started, users add both to their accounts by scanning a QR code or other means. Then, users can bind and associate the NVR and IPC through a mobile APP client or the GUI interface of the local NVR. After association, the IPC can be used by the user just like an IPC added via IP address. This enables IPC preview, recording, playback, and alarm management.

[0220] (3) The video acquisition system provided in this application breaks the geographical limitations of NVR and IPC, realizing free connection between IPC and NVR. No matter what network environment the IPC and NVR are in, as long as they can register with the server, the IPC can be added to the NVR. This greatly expands the connection range between NVR and IPC, enabling free connection. Compared with traditional IPC addition, it is no longer limited by network topology. It also does not require additional third-party equipment, making network setup very convenient and fast.

[0221] (4) The video acquisition system provided in this application is applicable not only to situations where the IPC and NVR are not on the same local area network, but also to situations where the IPC and NVR are on the same local area network, allowing the NVR and IPC to break through the limitations of traditional network topology and achieve free addition and association. In addition, compared with the traditional method of adding an IPC to an NVR, which requires filling in a lot of device information using the IP address, this solution only requires scanning a code to associate the IPC to the NVR, simplifying the operation process and making the operation simpler and more convenient for users.

[0222] (5) In the video acquisition system provided in this application embodiment, the process of quickly adding IPC to NVR is realized through the scanning and association operation, which simplifies the workload of users adding IPC to NVR. Users do not need to worry about whether IPC and NVR are in the same local area network. It integrates remote networking and local networking functions. IPC can be added to NVR regardless of whether IPC and NVR are connected to the network. It unifies the process of adding and using IPC in remote networking and local networking and expands the connection range of IPC.

[0223] Corresponding to the aforementioned video capture system, this application also provides a video capture method applied to a video recorder in the video capture system. The video capture system further includes a terminal device, a server, and multiple streaming media devices other than the video recorder. The video recorder and streaming media devices are pre-configured with connection methods for connecting to the server, such as... Figure 12 As shown, the method includes the following steps:

[0224] Step S121: Establish a communication connection with the server according to the configured connection method; send the fifth device identifier of the recorder to the server through the established communication connection; so that the server records the received fifth device identifier and the device of the fifth device identifier accordingly;

[0225] Step S122: In response to the control command for the streaming media device, determine the device to which the control command is directed as the target device to be controlled; through the target communication connection established with the target device to be controlled, control the target device to be controlled to execute the operation indicated by the control command;

[0226] The server also records the sixth device identifier and the device that sent the sixth device identifier. The sixth device identifier is sent to the server in the following way.

[0227] Each streaming media device establishes a communication connection with the server according to the configured connection method; through the established communication connection, each streaming media device sends its sixth device identifier to the server; so that the server records the sixth device identifier and the device that sent the sixth device identifier accordingly;

[0228] The following methods are used to establish a communication connection between the video recorder and the streaming media device, serving as the target communication connection:

[0229] In response to the add command, the terminal device obtains the device identifier of the streaming media device indicated by the add command as the device identifier to be added; and sends the account identifier of the account logged into by the terminal device and the device identifier to be added to the server;

[0230] In response to the account identifier and the device identifier to be added sent by the terminal device, the server determines the device corresponding to the device identifier to be added, and records the determined device and the account identifier accordingly;

[0231] In response to the list display command, the terminal device sends the account identifier of the account that the terminal device is logged into to the server;

[0232] In response to an account identifier sent by the terminal device, the server determines the device corresponding to the account identifier; and sends a device list to the terminal device to represent the determined device.

[0233] The terminal device displays the device list; and receives a binding instruction input for a streaming media device in the device list, obtains a first device identifier of the recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction.

[0234] In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target recorder and the device corresponding to the second device identifier as the target streaming media device; a communication connection is established between the target recorder and the target streaming media device as the first target communication connection, which consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target streaming media device.

[0235] In this embodiment, the video recorder and each streaming media device establish a communication connection with the server according to a pre-configured connection method, and send their own device identifiers to the server through the established communication connection, so that the server records the received device identifiers and the device that sent the device identifiers. Then, in response to a binding command, the terminal device determines the first device identifier of the video recorder indicated by the binding command, and obtains the second device identifier of the streaming media device indicated by the binding command, and sends the obtained first and second device identifiers to the server. Based on the first and second device identifiers sent by the terminal device, the server can determine the video recorder corresponding to the first device identifier as the target video recorder, and determine the device corresponding to the second device identifier as the target streaming media device. The communication connection between the server and the target video recorder and the communication connection between the server and the target streaming media device then form a target communication connection, serving as the communication connection between the target video recorder and the target streaming media device. Therefore, in response to the binding command, a communication connection can be established regardless of whether the video recorder and the streaming media device are devices within the same local area network, and no third-party device is required.

[0236] In some embodiments, establishing a communication connection between the target recorder and the target streaming media device, as a first target communication connection, includes:

[0237] The server determines the network address used by the target device when establishing a communication connection with it; and sends the determined network address to the target recorder through the communication connection with the target recorder.

[0238] The target recorder responds to the network address sent by the server and determines whether a communication connection can be successfully established with the network address. If a communication connection cannot be successfully established with the network address, it sends a message to the server indicating that the communication connection could not be successfully established through the established communication connection with the server.

[0239] In response to a message sent by the target recorder indicating that a communication connection could not be established, the server establishes a communication connection between the target recorder and the target device to be bound, which serves as the first target communication connection.

[0240] In some embodiments, the method further includes,

[0241] If the target recorder can successfully establish a communication connection with the network address, the established communication connection will be used as the second target communication connection.

[0242] In some embodiments, the control command is a streaming command; in response to the control command for a streaming media device, the device to which the control command is directed is determined as the target control device; through a target communication connection established with the target control device, the target control device is controlled to perform the operation indicated by the control command, including...

[0243] In response to a streaming command, the system obtains the seventh device identifier of the recorder, the eighth device identifier of the device to be streamed as targeted by the streaming command, and the account identifier of the account logged into the terminal device; and sends the obtained seventh device identifier, eighth device identifier, and account identifier to the server; so that the server can determine whether there is a binding relationship between the recorder corresponding to the seventh device identifier and the device to be streamed as corresponding to the eighth device identifier under the account identifier.

[0244] If the recorder corresponding to the seventh device identifier under the account identifier and the device to be retrieved corresponding to the eighth device identifier are bound together, the recorder corresponding to the seventh device identifier obtains video stream data from the device to be retrieved corresponding to the eighth device identifier through the target communication connection established with the device to be retrieved corresponding to the eighth device identifier; and displays the obtained video stream data.

[0245] If the recorder corresponding to the seventh device identifier under the account identifier and the device to be streamed corresponding to the eighth device identifier are bound together, the recorder receives a message from the server indicating that there is no binding relationship and displays the message.

[0246] The following methods are used to establish the binding relationship between the server and the account identifier and the recorder and the device to be bound:

[0247] In response to the binding command, the terminal device obtains the first device identifier of the recorder indicated by the binding command, the second device identifier of the device to be bound indicated by the binding command, and the account identifier of the account logged into by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server;

[0248] After the target recorder establishes a communication connection with the target device to be bound, the server records the account identifier and the binding relationship between the target recorder and the target device to be bound.

[0249] Corresponding to the aforementioned video acquisition system, this application also provides a video acquisition method applied to a network camera in a video acquisition system. The video acquisition system further includes a terminal device, a server, and at least one video recorder, such as... Figure 13 As shown, the method includes:

[0250] Step S131: Establish a communication connection with the server according to the configured connection method, and send the ninth device identifier of the network camera to the server through the established communication connection, so that the server records the received ninth device identifier and the device that sent the ninth device identifier.

[0251] Step S132: In response to the control command, execute the operation indicated by the control command;

[0252] The control commands are sent to the network camera in the following ways;

[0253] The video recorder responds to control commands for network cameras, identifies the network camera to which the control command is directed, and sends the control command to the target network camera through the target communication connection established with the target network camera.

[0254] Establish a communication connection between the video recorder and the network camera using the following method, as the target communication connection:

[0255] Each video recorder establishes a communication connection with the server according to the configured connection method, and sends its tenth device identifier to the server through the established communication connection; so that the server records the tenth device identifier and the device that sent the tenth device identifier accordingly.

[0256] In response to the add command, the terminal device obtains the device identifier of the streaming media device indicated by the add command, as the device identifier to be added; and sends the account identifier of the account logged in by the terminal device and the device identifier to be added to the server;

[0257] In response to the account identifier and device identifier to be added sent by the terminal device, the server determines the device corresponding to the device identifier to be added and records the determined device and account identifier accordingly.

[0258] In response to the list display command, the terminal device sends the account identifier of the account that the terminal device is logged into to the server;

[0259] In response to the account identifier sent by the terminal device, the server determines the device corresponding to the account identifier; and sends a device list to the terminal device to represent the determined device.

[0260] The terminal device displays a device list; and receives a binding instruction input for a streaming media device in the device list, obtains a first device identifier of the recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction.

[0261] In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder and the device corresponding to the second device identifier as the target network camera; a communication connection is established between the target video recorder and the target network camera as the first target communication connection, which consists of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target network camera.

[0262] In this embodiment, the network camera and recorder establish a communication connection with the server according to a pre-configured connection method, and send their own device identifiers to the server through the established communication connection, so that the server records the received device identifiers and the device that sent the device identifiers. Then, in response to a binding command, the terminal device determines the first device identifier of the recorder indicated by the binding command, and obtains the second device identifier of the network camera indicated by the binding command, and sends the obtained first and second device identifiers to the server. Based on the first and second device identifiers sent by the terminal device, the server can determine the recorder corresponding to the first device identifier as the target recorder, and determine the device corresponding to the second device identifier as the target network camera. The communication connection between the server and the target recorder and the communication connection between the server and the target network camera then form a target communication connection, serving as the communication connection between the target recorder and the target network camera. Therefore, in response to the binding command, a communication connection can be established regardless of whether the recorder and the network camera are devices within the same local area network, and no third-party device is required.

[0263] In some embodiments, establishing a communication connection between the target video recorder and the target network camera, as a first target communication connection, includes:

[0264] The server determines the network address used by the target network camera when establishing a communication connection with it; and sends the determined network address to the target recorder through the communication connection.

[0265] The target recorder responds to the network address sent by the server and determines whether a communication connection can be successfully established with the network address. If a communication connection cannot be successfully established with the network address, it sends a message to the server indicating that the communication connection could not be successfully established through the established communication connection with the server.

[0266] In response to a message sent by the target recorder indicating that a communication connection could not be established, the server establishes a communication connection between the target recorder and the target network camera, which serves as the first target communication connection.

[0267] In some embodiments, the method further includes:

[0268] If the target recorder can successfully establish a communication connection with the network address, the established communication connection will be used as the second target communication connection.

[0269] In some embodiments, the control instruction is a stream fetching instruction, and in response to the control instruction, the operation indicated by the control instruction is executed, including:

[0270] If the recorder corresponding to the eleventh device identifier under the account identifier is bound to the stream-to-be-accessed device corresponding to the twelfth device identifier, the stream-to-be-accessed device corresponding to the twelfth device identifier will send the video stream data to the recorder corresponding to the eleventh device identifier through the target communication connection with the recorder corresponding to the eleventh device identifier, so that the recorder can display the video stream;

[0271] Among them, the account identifier is the identifier of the account logged into the terminal device; the eleventh device identifier is the device identifier of the recorder indicated by the stream retrieval command; the twelfth device identifier is the device identifier of the network camera indicated by the stream retrieval command; and the device to be retrieved is the network video camera indicated by the stream retrieval command.

[0272] Furthermore, the following methods are used to determine whether there is a binding relationship between the recorder corresponding to the eleventh device identifier under the account identifier and the device to be streamed corresponding to the twelfth device identifier:

[0273] In response to the binding command, the terminal device obtains the first device identifier of the recorder indicated by the binding command, the second device identifier of the device to be bound indicated by the binding command, and the account identifier of the account logged into by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server;

[0274] After the target recorder and the target network camera establish a communication connection, the server records the account identifier and the binding relationship between the target recorder and the target network camera.

[0275] In response to a streaming command, the recorder obtains the recorder's eleventh device identifier, the twelfth device identifier of the device to be streamed by the streaming command, and the account identifier of the account logged into the terminal device; and sends the obtained eleventh device identifier, twelfth device identifier, and account identifier to the server; so that the server can determine whether there is a binding relationship between the recorder corresponding to the eleventh device identifier and the device to be streamed corresponding to the twelfth device identifier under the account identifier.

[0276] This application also provides a network camera, including:

[0277] Memory, used to store computer programs;

[0278] When a processor executes a program stored in memory, it implements any of the video acquisition methods described above for use with network cameras.

[0279] This application also provides a video recorder, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement any of the video acquisition methods applied to the video recorder described above.

[0280] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements any of the video acquisition systems described above.

[0281] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the video acquisition systems described above.

[0282] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a solid-state drive (SSD), etc.

[0283] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0284] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the method, network camera, and video recorder embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0285] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

Claims

1. A video acquisition system, characterized in that, The system includes terminal devices, a server, and multiple streaming media devices; each streaming media device includes at least one video recorder; each streaming media device is pre-configured with a connection method for connecting to the server. Each of the aforementioned streaming media devices is used to establish a communication connection with the server according to the configured connection method; The device identifier of the streaming media device is sent to the server through the established communication connection; The server is used to record the received device identifier and the device that sent the device identifier. The terminal device is configured to, in response to an add command, obtain the device identifier of the streaming media device indicated by the add command, as the device identifier to be added; and send the account identifier of the account logged into by the terminal device and the device identifier to be added to the server. The server is also configured to respond to the account identifier and the device identifier to be added sent by the terminal device, determine the device corresponding to the device identifier to be added, and record the determined device and the account identifier accordingly; The terminal device is also used to send the account identifier of the account that the terminal device has logged into to the server in response to the list display instruction; The server is further configured to, in response to an account identifier sent by the terminal device, determine the device corresponding to the account identifier; and send a device list representing the determined device to the terminal device. The terminal device is further configured to display the device list; receive a binding instruction input for a streaming media device in the device list, obtain a first device identifier of the recorder indicated by the binding instruction, and obtain a second device identifier of the device to be bound indicated by the binding instruction; and send the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction. The server is further configured to respond to the first device identifier and the second device identifier sent by the terminal device, determine the device corresponding to the first device identifier as the target recorder, and determine the device corresponding to the second device identifier as the target device to be bound; A communication connection is established between the target video recorder and the target device to be bound, which serves as the first target communication connection. The first target communication connection consists of the communication connection established between the server and the target video recorder, and the communication connection established between the server and the target device to be bound. The recorder is further configured to, in response to a control command for a streaming media device other than the recorder, determine the device to which the control command is directed as a target device to be controlled; and, through a target communication connection established with the target device to be controlled, control the target device to be controlled to perform the operation indicated by the control command.

2. The system according to claim 1, characterized in that, The server is further configured to determine the network address used by the target device to be bound when establishing a communication connection with the target device to be bound; and to send the determined network address to the target video recorder through the communication connection with the target video recorder; The target video recorder is also configured to respond to the network address sent by the server, determine whether a communication connection with the network address can be successfully established; if a communication connection with the network address cannot be successfully established, the target video recorder sends a message to the server indicating that a communication connection cannot be successfully established through the communication connection established with the server. Specifically, the server is configured to respond to a message sent by the target recorder indicating that a communication connection cannot be established, and establish a communication connection between the target recorder and the target device to be bound, as a first target communication connection; the first target communication connection consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target device to be bound.

3. The system according to claim 2, characterized in that, The target video recorder is also configured to use the established communication connection as a second target communication connection if a communication connection with the network address can be successfully established.

4. The system according to claim 1, characterized in that, The terminal device is also configured to respond to an add command by obtaining the device identifier of the streaming media device indicated by the add command as the device identifier to be added; and sending the account identifier of the account logged into by the terminal device and the device identifier to be added to the server. The server is also configured to respond to the account identifier and the device identifier to be added sent by the terminal device, determine the device corresponding to the device identifier to be added, and record the determined device and the account identifier accordingly; Sending the obtained first device identifier and second device identifier to the server includes: The obtained first device identifier, second device identifier, and account identifier of the account logged into by the terminal device are sent to the server; The server is also used to determine whether the target recorder and the target device to be bound are devices corresponding to the account identifier; If so, a communication connection is established between the target video recorder and the target device to be bound, serving as the first target communication connection; If not, a prompt message indicating binding failure is sent to the terminal device; The terminal device is also used to display the prompt information.

5. The system according to claim 3, characterized in that, The terminal device is also configured to respond to an add command by obtaining the device identifier of the streaming media device indicated by the add command as the device identifier to be added; and sending the account identifier of the account logged into by the terminal device and the device identifier to be added to the server. The server is also configured to respond to the account identifier and the device identifier to be added sent by the terminal device, determine the device corresponding to the device identifier to be added, and record the determined device and the account identifier accordingly; Sending the obtained first device identifier and second device identifier to the server includes: The obtained first device identifier, second device identifier, and account identifier of the account logged into by the terminal device are sent to the server; The server is also used to determine whether the target recorder and the target device to be bound are devices corresponding to the account identifier; If so, a communication connection is established between the target recorder and the target device to be bound, serving as the target communication connection; If not, a prompt message indicating binding failure is sent to the terminal device; The terminal device is also used to display the prompt information.

6. The system according to claim 1, characterized in that, The terminal device is specifically configured to respond to a binding instruction by obtaining a first device identifier of the recorder indicated by the binding instruction, a second device identifier of the device to be bound indicated by the binding instruction, and an account identifier of the account logged into by the terminal device; and sending the obtained first device identifier, second device identifier, and account identifier to the server. The server is also used to record the account identifier and the binding relationship between the target recorder and the target device to be bound after establishing a communication connection between the target recorder and the target device to be bound. The control command is a stream retrieval command. Specifically, the video recorder is used to respond to the stream retrieval command by acquiring the third device identifier of the video recorder, the fourth device identifier of the device to be retrieved by the stream retrieval command, and the account identifier of the account logged into the terminal device; and sending the acquired third device identifier, fourth device identifier, and account identifier to the server. The server is further configured to determine whether there is a binding relationship between the recorder corresponding to the third device identifier under the account identifier and the streaming device corresponding to the fourth device identifier; if there is a binding relationship between the recorder corresponding to the third device identifier under the account identifier and the streaming device corresponding to the fourth device identifier, then the recorder corresponding to the third device identifier obtains video stream data from the streaming device corresponding to the fourth device identifier through the target communication connection established between the recorder and the streaming device corresponding to the fourth device identifier; If the recorder corresponding to the third device identifier under the account identifier and the streaming device corresponding to the fourth device identifier are not bound together, then a message indicating that there is no binding relationship is sent to the recorder through the communication connection established with the recorder corresponding to the third device identifier. The video recorder is also configured to display the video stream data in response to the video stream data obtained from the streaming device corresponding to the fourth device identifier; Alternatively, in response to a message sent by the server indicating that no binding relationship exists, the message can be displayed.

7. A video acquisition method, characterized in that, A video recorder is used in a video capture system, which also includes terminal devices, a server, and multiple streaming media devices other than the video recorder; the video recorder and the streaming media devices are pre-configured with a connection method for connecting to the server, and the method includes: A communication connection is established with the server according to the configured connection method; the fifth device identifier of the video recorder is sent to the server through the established communication connection; so that the server records the received fifth device identifier and the device that sent the fifth device identifier accordingly; In response to a control command for the streaming media device, the device to which the control command is directed is identified as the target device to be controlled; and the target device to be controlled is controlled to perform the operation indicated by the control command through a target communication connection established with the target device to be controlled. The server also records a sixth device identifier and the device that sent the sixth device identifier. The sixth device identifier is sent to the server in the following manner: Each of the streaming media devices establishes a communication connection with the server according to the configured connection method; through the established communication connection, each of the streaming media devices sends a sixth device identifier to the server; so that the server records the sixth device identifier and the device that sent the sixth device identifier accordingly; The communication connection between the video recorder and the streaming media device is established through the following methods, serving as the target communication connection: In response to the add command, the terminal device obtains the device identifier of the streaming media device indicated by the add command as the device identifier to be added; and sends the account identifier of the account logged into by the terminal device and the device identifier to be added to the server; In response to the account identifier and the device identifier to be added sent by the terminal device, the server determines the device corresponding to the device identifier to be added, and records the determined device and the account identifier accordingly; In response to the list display instruction, the terminal device sends the account identifier of the account that the terminal device is logged into to the server; In response to the account identifier sent by the terminal device, the server determines the device corresponding to the account identifier; and sends a device list to the terminal device to represent the determined device. The terminal device displays the device list; and receives a binding instruction input for a streaming media device in the device list, obtains a first device identifier of the network recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction. In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target recorder and determines the device corresponding to the second device identifier as the target device to be bound; a communication connection is established between the target recorder and the target device to be bound, as the first target communication connection, which consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target device to be bound.

8. The method according to claim 7, characterized in that, Establishing a communication connection between the target recorder and the target device to be bound, as the first target communication connection, includes: The server determines the network address used by the target device to be bound when establishing a communication connection with the target device to be bound; and sends the determined network address to the target video recorder through the communication connection with the target video recorder. The target recorder responds to the network address sent by the server and determines whether a communication connection can be successfully established with the network address. If a communication connection cannot be successfully established with the network address, it sends a message to the server indicating that the communication connection could not be successfully established through the established communication connection with the server. In response to a message sent by the target recorder indicating that a communication connection could not be established, the server establishes a communication connection between the target recorder and the target device to be bound, as the first target communication connection.

9. The method according to claim 8, characterized in that, The method also includes, If the target video recorder can successfully establish a communication connection with the network address, the established communication connection will be used as the second target communication connection.

10. The method according to claim 7, characterized in that, The control command is a streaming command; in response to the control command for the streaming media device, the device targeted by the control command is determined as the target control device; through a target communication connection established with the target control device, the target control device is controlled to execute the operation indicated by the control command, including... In response to the stream retrieval command, the system acquires the seventh device identifier of the recorder, the eighth device identifier of the device to be retrieved by the stream retrieval command, and the account identifier of the account logged into the terminal device; and sends the acquired seventh device identifier, eighth device identifier, and account identifier to the server; so that the server can determine whether there is a binding relationship between the recorder corresponding to the seventh device identifier under the account identifier and the device to be retrieved corresponding to the eighth device identifier. If the recorder corresponding to the seventh device identifier under the account identifier and the device to be retrieved corresponding to the eighth device identifier are bound together, the recorder corresponding to the seventh device identifier obtains video stream data from the device to be retrieved corresponding to the eighth device identifier through the target communication connection established between the recorder and the device to be retrieved corresponding to the eighth device identifier. The acquired video stream data will then be displayed. If the recorder corresponding to the seventh device identifier under the account identifier and the device to be streamed corresponding to the eighth device identifier are not bound together, the recorder receives a message from the server indicating that there is no binding relationship and displays the message. The server records the account identifier and the binding relationship between the video recorder and the device to be bound in the following way: In response to the binding command, the terminal device obtains the first device identifier of the recorder indicated by the binding command, the second device identifier of the device to be bound indicated by the binding command, and the account identifier of the account logged into by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server; After the target recorder establishes a communication connection with the target device to be bound, the server records the account identifier and the binding relationship between the target recorder and the target device to be bound.

11. A video acquisition method, characterized in that, A network camera used in a video capture system, the video capture system further including terminal equipment, a server, and at least one video recorder, the method comprising: Establish a communication connection with the server according to the configured connection method, and send the ninth device identifier of the network camera to the server through the established communication connection, so that the server records the received ninth device identifier and the device that sent the ninth device identifier accordingly; In response to a control command, perform the operation indicated by the control command; The control commands are sent to the network camera in the following manner: In response to a control command for the network camera, the recorder determines the network camera targeted by the control command as the target device to be bound, and sends the control command to the target device to be bound through a target communication connection established with the target device to be bound. The communication connection between the video recorder and the network camera is established using the following method, which serves as the target communication connection: Each of the video recorders establishes a communication connection with the server according to the configured connection method, and sends the tenth device identifier of each video recorder to the server through the established communication connection; so that the server records the tenth device identifier and the device that sent the tenth device identifier accordingly; In response to the add command, the terminal device obtains the device identifier of the streaming media device indicated by the add command as the device identifier to be added; and sends the account identifier of the account logged into by the terminal device and the device identifier to be added to the server; In response to the account identifier and the device identifier to be added sent by the terminal device, the server determines the device corresponding to the device identifier to be added, and records the determined device and the account identifier accordingly; In response to the list display instruction, the terminal device sends the account identifier of the account that the terminal device is logged into to the server; In response to the account identifier sent by the terminal device, the server determines the device corresponding to the account identifier; and sends a device list to the terminal device to represent the determined device. The terminal device displays the device list; and receives a binding instruction input for a streaming media device in the device list, obtains a first device identifier of the recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein, at least one recorder is included among the devices indicated by the binding instruction; and the device to be bound is a streaming media device other than the recorder indicated by the binding instruction. In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target recorder and determines the device corresponding to the second device identifier as the target device to be bound; a communication connection is established between the target recorder and the target device to be bound, as the first target communication connection, which consists of the communication connection established between the server and the target recorder and the communication connection established between the server and the target device to be bound.

12. The method according to claim 11, characterized in that, Establishing a communication connection between the target recorder and the target device to be bound, as the first target communication connection, includes: The server determines the network address used by the target device to be bound when establishing a communication connection with the target device to be bound; and sends the determined network address to the target video recorder through the communication connection with the target video recorder. The target recorder responds to the network address sent by the server and determines whether a communication connection can be successfully established with the network address. If a communication connection cannot be successfully established with the network address, it sends a message to the server indicating that the communication connection could not be successfully established through the established communication connection with the server. In response to a message sent by the target recorder indicating that a communication connection could not be established, the server establishes a communication connection between the target recorder and the target device to be bound, as the first target communication connection.

13. The method according to claim 12, characterized in that, The method further includes: If the target video recorder can successfully establish a communication connection with the network address, the established communication connection will be used as the second target communication connection.

14. The method according to claim 11, characterized in that, The control command is a stream fetching command, and the step of responding to the control command and executing the operation indicated by the control command includes: If the recorder corresponding to the eleventh device identifier under the account identifier is bound to the stream-to-be-accessed device corresponding to the twelfth device identifier, the stream-to-be-accessed device corresponding to the twelfth device identifier sends the video stream data to the recorder corresponding to the eleventh device identifier through the target communication connection with the recorder corresponding to the eleventh device identifier, so that the recorder can display the video stream; Wherein, the account identifier is the identifier of the account logged into the terminal device; the eleventh device identifier is the device identifier of the recorder indicated by the stream retrieval command; the twelfth device identifier is the device identifier of the network camera indicated by the stream retrieval command; and the device to be retrieved is the network video camera indicated by the stream retrieval command. Furthermore, the following method is used to determine whether there is a binding relationship between the recorder corresponding to the eleventh device identifier under the account identifier and the device to be streamed corresponding to the twelfth device identifier: In response to the binding command, the terminal device obtains the first device identifier of the recorder indicated by the binding command, the second device identifier of the device to be bound indicated by the binding command, and the account identifier of the account logged into by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server; After the target recorder establishes a communication connection with the target device to be bound, the server records the account identifier and the binding relationship between the target recorder and the target device to be bound. In response to the streaming command, the recorder acquires the eleventh device identifier of the recorder, the twelfth device identifier of the device to be streamed by the streaming command, and the account identifier of the account logged into by the terminal device; and sends the acquired eleventh device identifier, twelfth device identifier, and account identifier to the server; so that the server can determine whether there is a binding relationship between the recorder corresponding to the eleventh device identifier under the account identifier and the device to be streamed corresponding to the twelfth device identifier.

15. A network video recorder, characterized in that, include: Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 7-10.

16. A network camera, characterized in that, The method includes a processor and a machine-readable storage medium storing machine-executable instructions that can be executed by the processor, the processor being prompted by the machine-executable instructions to perform the method of any one of claims 11-14.