Data processing method and device, equipment, medium and program product

By establishing a long connection between the monitoring management platform and the video recording device, and using the video recording device as a management gateway, directly calling the function page of the video camera device, the problem that the network camera management platform in the prior art is difficult to adapt to the equipment adjustment needs, and efficient equipment management and system compatibility are achieved.

CN120281879APending Publication Date: 2025-07-08杭州普联系统技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510563489.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In the prior art, network camera management platforms are difficult to adapt to the adjustment requirements when equipment functions are updated or new network cameras are connected, resulting in low management efficiency and poor system compatibility.

Method used

By establishing a long connection between the monitoring management platform and the video recording device, using the video recording device as a management gateway, directly calling the function page of the video camera device without modifying or adding new access interfaces, unified management of different video camera devices is achieved.

Benefits of technology

It improves the management efficiency and system compatibility of camera equipment, reduces management costs, and can quickly adapt to equipment adjustment needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120281879A_ABST
    Figure CN120281879A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, equipment, a medium and a program product, and the method comprises the steps: receiving an access request of terminal equipment for a function page of camera equipment, and triggering the access request through a monitoring page window provided by the data processing device; after determining that the video equipment corresponding to the camera equipment establishes a first long connection with the data processing device, sending an access request to the video equipment through the first long connection, so that the video equipment accesses a function page of the camera equipment in response to the access request, and receives function page data of the camera equipment sent by the camera equipment, the first long connection corresponds to the camera equipment; receiving function page data sent by the video equipment through the first long connection channel; and based on the function page data, controlling the terminal equipment to display a function page of the camera equipment. According to the scheme, the function page of the camera equipment can be directly called, an access interface of the camera equipment does not need to be modified or newly added, and the management efficiency of the camera equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular, to a data processing method, apparatus, device, medium and program product. Background Art

[0002] In the field of security monitoring, a large number of network cameras need to be deployed in many scenarios. The network cameras set at different positions are used to monitor the surrounding environment to ensure the security of the monitoring area. Among them, to meet the management requirements of network cameras, these network cameras usually need to be connected to a monitoring management platform, and the monitoring management platform is used to uniformly manage these network cameras.

[0003] In the related art, dedicated access interfaces need to be set for each network camera on the monitoring management platform so that users can access and manage the network cameras through the corresponding access interfaces. Such a camera management solution is difficult to adapt to the continuously changing device adjustment requirements. For example, when the functions of the network cameras are updated or new network cameras are connected, the monitoring management platform needs to modify the interface parameters in the data processing device or add new access interfaces, resulting in low camera management efficiency. Summary of the Invention

[0004] The present invention provides a data processing method, apparatus, device, medium and program product to solve the problem that the camera management solution in the related art is difficult to adapt to the continuously changing device adjustment requirements, resulting in low camera management efficiency.

[0005] In a first aspect, an embodiment of the present application provides a data processing method, including:

[0006] Receiving an access request from a terminal device to a function page of a camera device, the access request being triggered through a monitoring page window provided by a data processing device;

[0007] After determining that a video recording device corresponding to the camera device establishes a first long connection with the data processing device, sending an access request to the video recording device through the first long connection, so that the video recording device accesses the function page of the camera device in response to the access request, and receiving function page data sent by the camera device, the first long connection corresponds to the camera device and is used to transmit data related to the camera device;

[0008] Receiving function page data of the camera device sent by the video recording device through the first long connection channel, and at least one camera device is associated with one video recording device;

[0009] Based on the function page data, controlling the terminal device to display the function page of the camera device.

[0010] In one embodiment, determining that a video recording device corresponding to the camera device establishes a first long connection with the data processing device includes:

[0011] Determine the long connection status for the camera device based on the identification information of the camera device in the access request;

[0012] When the long connection status indicates that the video recording device has not established a long connection for the camera device, send a long connection instruction for the camera device to the video recording device through the second long connection, so that the video recording device responds to the long connection instruction and establishes a long connection for the camera device with the data processing device. The second long connection is the long connection established between the video recording device and the data processing device after the video recording device is started;

[0013] When it is detected that the long connection with the video recording device carries the identification information of the camera device, determine that the video recording device and the data processing device have established a first long connection.

[0014] In one embodiment, after receiving an access request from a terminal device for the function page of a camera device, the method further includes:

[0015] Generate access authentication information for the terminal device for the camera device according to the device identification information in the access request, and obtain the uniform resource locator of the camera device;

[0016] Send the access authentication information and the uniform resource locator of the camera device to the terminal device, so that the terminal device, based on the uniform resource locator of the camera device, triggers the generation and operation of the management page window of the camera device in the monitoring page window to send an authentication request carrying the access authentication information;

[0017] Receive the authentication request sent by the terminal device when running the management page window, and authenticate the terminal device according to the access authentication information in the authentication request;

[0018] After the terminal device passes the authentication, determine whether the video recording device corresponding to the camera device has established a first long connection with the data processing device.

[0019] In one embodiment, based on the function page data, controlling the terminal device to display the function page of the camera device includes:

[0020] Generate redirection information for the function page of the camera device according to the function page data;

[0021] Send the redirection information to the terminal device, so that the terminal device, based on the redirection information, displays the function page of the camera device in the management page window. The management page window is the page window triggered and generated from the monitoring page window.

[0022] In one embodiment, after controlling the terminal device to display the function page of the camera device, the method further includes:

[0023] The receiving terminal device receives an operation request for the function page and sends the operation request to the imaging device through the video recording device, so that the imaging device performs corresponding data operations on the function page in response to the operation request.

[0024] In one embodiment, the function page of the imaging device is displayed in the management page window, and the management page window is a page window triggered and generated from the monitoring page window. After the control terminal device displays the function page of the imaging device, the method further includes:

[0025] Receiving a play request for the target video of the imaging device, where the play request is generated by triggering a video play control on the management page window;

[0026] In response to the play request, sending a pull stream request for the target video to the video recording device, so that the video recording device obtains the video stream of the target video from the imaging device based on the pull stream request;

[0027] Receiving the video stream of the target video sent by the video recording device;

[0028] Sending the video stream of the target video to the terminal device to play the target video on the video play page of the management page window.

[0029] In one embodiment, in response to the play request, sending a pull stream request for the target video to the video recording device, so that the video recording device obtains the video stream of the target video based on the pull stream request, includes:

[0030] Obtaining the resource file of the player in response to the play request;

[0031] Sending the resource file of the player to the terminal device, so that the terminal device runs the player in the video play page running in the management page window;

[0032] Receiving a pull stream request from the player, where the pull stream request carries the uniform resource locator of the video stream in the imaging device;

[0033] Sending the pull stream request to the video recording device, so that the video recording device obtains the video stream of the target video based on the uniform resource locator in the pull stream request.

[0034] In a second aspect, an embodiment of the present application provides a data processing device, including:

[0035] A receiving module, configured to receive an access request from the terminal device for the function page of the imaging device, where the access request is triggered by the monitoring page window provided by the data processing device;

[0036] A sending module, configured to, after determining that a video recording device corresponding to a camera device has established a first long connection with a data processing device, send an access request to the video recording device through the first long connection, so that the video recording device accesses a function page of the camera device in response to the access request, and receive function page data sent by the camera device. The first long connection corresponds to the camera device and is used to transmit data related to the camera device;

[0037] A receiving module, further configured to receive function page data of the camera device sent by the video recording device through the first long connection channel. At least one camera device is associated with one video recording device;

[0038] A control module, configured to control a terminal device to display the function page of the camera device based on the function page data.

[0039] In a third aspect, an embodiment of the present application provides a data processing system, including a video recording device, at least one camera device connected and managed by the video recording device, and a data processing device communicating with the video recording device.

[0040] In a fourth aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above data processing method are implemented.

[0041] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above data processing method are implemented.

[0042] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program is run, the above data processing method is executed.

[0043] In one solution provided by the above data processing method, device, equipment, medium and program product, a receiving terminal device receives an access request for a function page of a camera device, and the access request is triggered through a monitoring page window provided by a data processing device; after determining that a video recording device corresponding to the camera device establishes a first long connection with the data processing device, the access request is sent to the video recording device through the first long connection, so that the video recording device accesses the function page of the camera device in response to the access request, and receives function page data of the camera device sent by the camera device. The first long connection corresponds to the camera device and is used to transmit data related to the camera device. At least one camera device is associated with one video recording device; the function page data sent by the video recording device through the first long connection channel is received; based on the function page data, the terminal device is controlled to display the function page of the camera device. In this embodiment, the data processing device manages the camera devices under different video recording devices through the function page. In the actual management process, through the long connection established between the video recording device and the data processing device, a transfer device capable of performing data access management with the video recording device as the management gateway can manage different camera devices under it. This solution can directly call the function page of the camera device, and can quickly adapt to the continuously changing device adjustment requirements without modifying or adding access interfaces for the corresponding camera devices, improving the management efficiency of the camera devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.

[0045] Figure 1 is a schematic structural diagram of a data processing system in an embodiment of the present invention;

[0046] Figure 2 is a schematic flowchart of a data processing method in an embodiment of the present invention;

[0047] Figure 3 、 Figure 4 is another schematic flowchart of a data processing method in an embodiment of the present invention;

[0048] Figure 5 is Figure 2 an implementation flowchart of step S40 in

[0049] Figure 6 is yet another schematic flowchart of a data processing method in an embodiment of the present invention;

[0050] Figure 7It is a schematic framework diagram of a data processing system in an embodiment of the present invention;

[0051] Figure 8 It is a schematic signaling interaction diagram of a data processing method in an embodiment of the present invention;

[0052] Figure 9 It is a schematic signaling interaction diagram during the process of playing a video in an embodiment of the present invention;

[0053] Figure 10 is Figure 1 a schematic structural diagram of a data processing device in

[0054] Figure 11 It is a schematic structural diagram of a computer device in an embodiment of the present invention. Detailed implementation manners

[0055] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0056] It should be understood that when used in the specification of the present invention and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations. It should also be understood that the term "and / or" as used in the specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0057] In addition, in the description of the specification of the present invention and the appended claims, the terms "first", "second", "third", etc. are only used for descriptive distinction and cannot be understood as indicating or implying relative importance.

[0058] The reference to "one embodiment" or "some embodiments" etc. in the specification of the present invention means that a specific feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present invention. Thus, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different parts of this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0059] It should be understood that the magnitudes of the sequence numbers of the steps in the following embodiments do not imply the order of execution, and the order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

[0060] In order to illustrate the technical solution of the present invention, it will be described below through specific embodiments.

[0061] It should be understood that imaging devices (such as cameras, video cameras) generally provide preset function pages for displaying and modifying their function parameters by themselves. When managing different imaging devices through a monitoring and management platform, such as managing the function parameters, it is necessary to set up dedicated access interfaces for each imaging device on the monitoring and management platform so that users can access and manage data such as the function pages of the imaging devices through the corresponding access interfaces. However, this type of imaging device management method is difficult to adapt to the continuously changing device adjustment requirements. When the functions of the imaging devices are updated or new imaging devices need to be connected, the monitoring and management platform needs to modify the interface parameters in the monitoring and management platform or add new access interfaces to achieve the access management of the corresponding imaging devices, resulting in low management efficiency of the imaging devices, poor system compatibility, and relatively high management costs.

[0062] In some embodiments, to manage the parameters of the function page carried by the imaging device itself, it is necessary to send an access request for the function page to the recording device through the web page of the monitoring and management platform, so that the web page of the recording device requests to access the function page of the corresponding imaging device. In this process, the monitoring and management platform and the recording device, and the recording device and the imaging device interact through a preset web protocol. The platform also needs to parse the requests of the web page and interact with the recording device in a certain way based on the parsed content. The recording device also needs to parse the requests of the web page and know how to interact with the camera device, collect, parse and display the function page of the imaging device to achieve the parameter management of the imaging device. This type of solution requires layer-by-layer parsing of requests and responses, resulting in low access management efficiency of the imaging device.

[0063] In view of the above problems, embodiments of the present application provide a data processing method, apparatus, system, device, medium, and program product. Among them, a data processing apparatus (which may be a background server of a monitoring and management platform) receives an access request from a terminal device to the function page of a camera device. The access request is triggered through a monitoring page window provided by the monitoring and management platform. After determining that a video recording device corresponding to the camera device establishes a first long connection with the data processing apparatus, an access request is sent to the video recording device through the first long connection, so that the video recording device accesses the function page of the camera device in response to the access request, and receives the function page data of the camera device sent by the camera device. The first long connection corresponds to the camera device and is used to transmit data related to the camera device. At least one camera device is associated with one video recording device. Receive the function page data sent by the video recording device through the first long connection channel; based on the function page data, control the terminal device to display the function page of the camera device. The monitoring and management platform manages the camera devices under different video recording devices through the function page. In the actual management process, through the long connection established between the video recording device and the monitoring and management platform, a transfer device that can use the video recording device as a management gateway for data access management can manage different camera devices under it. This solution can directly call the function page of the camera device without modifying or adding the access interface of the corresponding camera device, and can quickly adapt to the continuously changing device adjustment requirements, improving the management efficiency and system compatibility of the camera device and reducing the cost.

[0064] The data processing method provided by the embodiments of the present invention can be applied in a data processing system as Figure 1 shown. The data processing system includes a terminal device, a data processing apparatus, a video recording device, and at least one camera device managed by the video recording device. Among them, the video recording device communicates with its associated camera device through a cable or a local area network, and the video recording device and the terminal device communicate with the data processing apparatus through a public network such as the Internet or a wide area network. Among them, the data processing apparatus may be a background server of a monitoring and management platform.

[0065] In the actual application process, the user uses the terminal device to log in to the monitoring and management platform. The terminal device displays a monitoring page window provided by the monitoring and management platform. The monitoring page window displays at least one camera device associated with at least one video recording device, and each camera device is correspondingly displayed with a management control for triggering a management instruction. When the user has a management requirement for a certain camera device, that is, when there is a need to open the function page of the camera device, the user clicks the management control (such as the icon button of the camera device) of the corresponding camera device under the corresponding video recording device in the monitoring page window. When the terminal device detects that the management control of the camera device is triggered, it sends an access request for the function page of the camera device to the background server of the monitoring and management platform.

[0066] After receiving the access request for the function page of the pair of camera devices, the background server of the monitoring and management platform determines whether the video recording device corresponding to the camera device has established a first long connection with the monitoring and management platform. The first long connection corresponds to the camera device and is used to transmit data related to the camera device. After determining that the video recording device corresponding to the camera device has established the first long connection with the monitoring and management platform, an access request is sent to the video recording device through the first long connection. The video recording device responds to the access request to access the function page of the camera device, receives the function page data of the camera device sent by the camera device, and sends the function page data of the camera device to the background server of the monitoring and management platform. The background server receives the function page data sent by the video recording device through the first long connection channel, and based on the function page data, controls the terminal device to display the function page of the camera device.

[0067] In this embodiment, the monitoring and management platform manages the camera devices under different video recording devices through the function page. In the actual management process, through the long connection established between the video recording device and the monitoring and management platform, the video recording device can be used as a management gateway for data access management transfer device to manage different camera devices under it. This solution can directly call the function page of the camera device, without modifying or adding the function data of the corresponding device in the monitoring and management platform, and can quickly adapt to the changing device adjustment requirements, improving the management efficiency and system compatibility of the camera device, and reducing the cost.

[0068] Among them, the application service provided by the monitoring and management platform is installed on the terminal device; the terminal device includes but is not limited to various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices. The server can be implemented by an independent server or a server cluster composed of multiple servers.

[0069] In one embodiment, as Figure 2 shown, a data processing method is provided. Taking the application of this method in a data processing device as an example for description; among them, the data processing device can be Figure 1 the background server of the monitoring and management platform in

[0070] S10: Receive an access request from the terminal device for the function page of the camera device.

[0071] The terminal device displays a monitoring page window provided by the data processing device. The monitoring page window is used to display at least one camera device associated with at least one video recording device, and management controls for triggering management instructions for each camera device are correspondingly displayed.

[0072] When a user has a management requirement for a certain camera device, that is, when there is a need to open the function page of the camera device, the user clicks on the management control of the corresponding camera device under the corresponding video recording device in the monitoring page window (such as the icon button of the camera device). When the terminal device detects that the management control of the camera device is triggered, that is, when it receives the management instruction of the camera device, it sends an access request for the function page of the camera device to the data processing device (i.e., the background server of the monitoring management platform). That is, the access request is triggered by the management control of the camera device in the monitoring page window provided by the data processing device. Among them, the access request carries device identification information, and the device identification information includes the identification information of the video recording device corresponding to the camera device and the identification information of the camera device (such as the camera device number).

[0073] The data processing device receives the access request for the function page of the camera device from the terminal device, and determines whether a first long connection with the data processing device has been established for the video recording device corresponding to the camera device. The first long connection is a data transmission channel for the camera device, that is, the first long connection corresponds to the camera device and is used to transmit data related to the camera device, such as various requests for the camera device and the data of the camera device. When accessing the function pages of multiple camera devices simultaneously, each camera device corresponds to a first long connection.

[0074] S20: After determining that the video recording device corresponding to the camera device has established a first long connection with the data processing device, send an access request to the video recording device through the first long connection, so that the video recording device accesses the function page of the camera device in response to the access request, and receives the function page data sent by the camera device.

[0075] After determining that the video recording device corresponding to the camera device has established a first long connection with the data processing device, the data processing device sends an access request to the video recording device through the first long connection. The video recording device receives the access request for the function page of the camera device, accesses the function page of the camera device in response to the access request, and receives the function page data sent by the camera device.

[0076] Among them, after the video recording device receives the access request for the function page of the camera device, according to the identification information of the camera device in the access request, it sends a login request for its function page to the camera device; the login request carries the authorization information of the camera device, such as the Token for authorizing the login to its function page, that is, the webToken. The login request is used for password-free login to the camera device. Among them, the webToken can be the authorization information obtained after the video recording device sends a login request carrying the login password to the camera device when adding the camera device, that is, when the video recording device first connects to the camera device.

[0077] After the camera device receives the login request sent by the video recording device carrying the webToken, it authenticates the webToken in the login request to determine whether the video recording device is the video recording device that has been authorized to log in by the camera device, or to determine whether the webToken of the video recording device has expired; if the authentication passes, that is, the video recording device is the video recording device that has been authorized to log in by the camera device and the webToken of the video recording device has not expired, the camera device will send its own function page data to the video recording device. After receiving the function page data of the camera device, the video recording device sends the function page data of the camera device to the data processing device through the first long connection. Among them, the function page data carries the webToken authorized by the camera device for logging in, so as to request relevant data of the camera device based on the webToken subsequently, ensuring the legality of the request and the security of data transmission.

[0078] If the video recording device is a video recording device that has not been authorized to log in, or the webToken of the video recording device has expired, the camera device sends a re-login prompt message to the video recording device. After receiving the re-login prompt message, the video recording device sends a login request carrying the login password of the camera device to the camera device; after receiving the login request, the camera device verifies the login password in the login request; after the verification passes, the camera device generates the authorization information of the camera device (that is, the new webToken), and binds and stores the webToken, the address information of the video recording device (such as the IP address) and the access time, so as to match the IP address, request time and the webToken carried in the request of the video recording device that requests to log in with the stored information subsequently, to determine whether the requested video recording device is the video recording device that has been authorized to log in by the camera device, or to determine whether the webToken of the video recording device has expired.

[0079] At the same time, the camera device sends the webToken to the video recording device. After receiving the webToken of the camera device, the video recording device saves it for subsequent invocation.

[0080] S30: Receive the function page data of the camera device sent by the video recording device through the first long connection channel.

[0081] The data processing device receives the function page data of the camera device sent by the video recording device through the first long connection channel.

[0082] S40: Based on the function page data, control the terminal device to display the function page of the camera device.

[0083] After receiving the function page data of the imaging device, the data processing device controls the terminal device to display the function page of the imaging device based on the function page data of the imaging device. Through the first long connection of the video recording device, the transparent transmission and forwarding of the function page request and response data of the imaging device can be realized, and the function interface of the imaging device can be accessed across the local area network, which can cope with the network environment with Network Address Translation (NAT). By forwarding and multiplexing the function page of the imaging device through the first long connection to manage the parameters of the imaging device, the management efficiency of the imaging device parameters can be improved, the software development resources of the platform side and the video recording device side can be saved, and the development and testing costs can be reduced.

[0084] For example, the data processing device sends the function page data of the imaging device to the terminal device, and the terminal device renders and displays the function page data of the imaging device in the management page window to form the function page of the imaging device, so that the user can perform corresponding operations on the relevant data of the imaging device through the function page. Among them, the management page window is a page window triggered and generated from the monitoring page window.

[0085] Among them, the function page is used to display various types of data of the imaging device, such as the operating parameters of the imaging device and the collected monitoring images or video data. The function page is a web page configured by the imaging device itself. Through the function page, various operations can be performed on the parameters of the imaging device, and the collected data of the imaging device can be browsed and played, realizing the data access and management of the imaging device.

[0086] In this embodiment, the data processing device manages the imaging devices under different video recording devices through the function page. In the actual management process, through the long connection established between the video recording device and the data processing device, a transfer device for data access management can be used as the management gateway with the video recording device to manage different imaging devices under it. This solution can directly call the function page of the imaging device without modifying or adding the access interface of the corresponding imaging device, can quickly adapt to the changing device adjustment requirements, improve the management efficiency and system compatibility of the imaging device, and reduce the cost.

[0087] In one embodiment, as Figure 3 shown, after step S10, that is, after receiving the access request of the terminal device for the function page of the imaging device, the method further includes the following steps:

[0088] S101: Generate the access authentication information of the terminal device for the imaging device according to the device identification information in the access request, and obtain the uniform resource locator of the imaging device.

[0089] After receiving an access request from a receiving terminal device to the function page of a camera device, the data processing device generates access authentication information for the terminal device with respect to the camera device based on the device identification information in the access request, that is, authenticates the terminal device according to the identification information of the video recording device and the identification information of the camera device in the access request to determine whether the terminal device has the permission to access the camera device under the video recording device. Among them, the access authentication information is obtained by mapping the identification information of the video recording device and the identification information of the camera device.

[0090] Meanwhile, the data processing device can also obtain the Uniform Resource Locator (URL) of the camera device. Among them, the URL of the camera device is the URL of the function page in the camera device. By accessing this URL, the function page data of the camera device can be obtained to realize the access to the function page in the camera device. Among them, this URL has a mapping relationship with the identification information of the video recording device and the camera device. Accessing this URL can send an access request carrying the identification information of the video recording device and the camera device to the corresponding video recording device, so that the video recording device requests to access the function page of the corresponding camera device.

[0091] S102: Send the access authentication information and the Uniform Resource Locator of the camera device to the terminal device, so that the terminal device, based on the Uniform Resource Locator of the camera device, triggers the generation and operation of the management page window of the camera device in the monitoring page window to send an authentication request carrying the access authentication information.

[0092] After generating the access authentication information for the terminal device with respect to the camera device and obtaining the Uniform Resource Locator of the camera device, the data processing device sends the access authentication information and the Uniform Resource Locator of the camera device to the terminal device. After receiving the access authentication information and the Uniform Resource Locator, the terminal device, based on the Uniform Resource Locator of the camera device, triggers the generation and operation of the management page window of the camera device in the monitoring page window, so that the monitoring page window triggers an authentication request. The terminal device sends the authentication request triggered by the monitoring page window to the data processing device.

[0093] S103: Receive the authentication request sent when the terminal device runs the management page window, and authenticate the terminal device according to the access authentication information in the authentication request.

[0094] The data processing device receives the authentication request sent when the terminal device runs the management page window, and authenticates the terminal device according to the access authentication information in the authentication request to determine the legality of the access to the function page of the camera device.

[0095] S104: After the terminal device passes the authentication, determine whether the video recording device corresponding to the camera device has established a first long connection with the data processing device.

[0096] After the terminal device passes authentication, that is, after it is determined that the access of the terminal device to the function page is legal, the data processing device can determine whether the video recording device corresponding to the camera device has established a first long connection with the data processing device.

[0097] In this embodiment, the data processing device receives an access request from the terminal device to the function page of the camera device, generates access authentication information for the terminal device for the camera device according to the device identification information in the access request, and obtains the uniform resource locator of the camera device; sends the access authentication information and the uniform resource locator of the camera device to the terminal device, so that the terminal device can trigger the generation and operation of the management page window of the camera device in the monitoring page window based on the uniform resource locator of the camera device, and send the access authentication information; receives the authentication request sent when the terminal device runs the management page window, and authenticates the terminal device according to the access authentication information in the authentication request; after the terminal device passes authentication, determines whether the video recording device corresponding to the camera device has established a first long connection with the data processing device. First, generate access authentication information according to the access request, and send the uniform resource locator of the camera device, so that the terminal device can trigger the generation and operation of the management page window of the camera device in the monitoring page window, trigger the legal authentication of the function page access, and only execute the next step after the authentication passes, improving the legality and security of page access.

[0098] In one embodiment, as Figure 4 shown, in step S20, that is, determining that the video recording device corresponding to the camera device has established a first long connection with the data processing device, specifically includes the following steps:

[0099] S201: Based on the identification information of the camera device in the access request, determine the long connection situation for the camera device.

[0100] The data processing device receives an access request from the terminal device to the function page of the camera device, and the access request carries device identification information, that is, it carries the identification information of the camera device and the identification information of the corresponding video recording device.

[0101] It should be understood that when the video recording device establishes a long connection for the camera device with the data processing device (that is, establishes the first long connection), it will send the identification information of the camera device corresponding to the long connection (and the identification information of the video recording device) to the data processing device, so that the data processing device can store the identification information of the camera device (and the identification information of the video recording device) as the identification information of the corresponding long connection.

[0102] After receiving the access request, the data processing device may match the identification information of the camera device (and the identification information of the video recording device) in the access request with the identification information of the long connection in the data processing device, and determine the long connection situation for the camera device according to the matching situation.

[0103] Among them, if the identification information of the camera device in the access request matches the identification information of the long connection in the data processing device, it is determined that the long connection situation for the camera device is that a long connection for the camera device has been established; if the identification information of the camera device in the access request does not match the identification information of the long connection in the data processing device, it is determined that the long connection situation for the camera device is that a long connection for the camera device has not been established.

[0104] S202: When the long connection situation indicates that the video recording device has not established a long connection for the camera device, send a long connection instruction for the camera device to the video recording device through the second long connection, so that the video recording device responds to the long connection instruction and establishes a long connection for the camera device with the data processing device.

[0105] Among them, when the long connection situation of the camera device indicates that the video recording device has not established a long connection for the camera device, the data processing device sends a long connection instruction for the camera device to the video recording device through the second long connection. After receiving the long connection instruction, the video recording device responds to the long connection instruction and establishes a long connection for the camera device with the data processing device.

[0106] Among them, the second long connection is the long connection established between the video recording device and the data processing device after the video recording device is started; the second long connection is used to transmit simple signals and requests between the video recording device and the data processing device.

[0107] For example, the data processing device may be a server cluster composed of multiple servers in the monitoring and management platform, that is, the background servers of the monitoring and management platform are composed of multiple servers; different servers have different functions. Among them, the second long connection may be the long connection established between the video recording device and the access server in the monitoring and management platform; the first long connection may be the long connection established between the video recording device and the transfer server in the monitoring and management platform for transmitting camera data. When the long connection situation of the camera device indicates that the video recording device has not established a long connection for the camera device, the transfer server in the data processing device sends a long connection instruction for the camera device to the video recording device through the second long connection of the access server.

[0108] Among them, the relay server sends a long connection instruction for the camera device to the access server in a pass-through manner, and the long connection instruction carries the identification information of the video recording device and the identification information of the camera device; after receiving the long connection instruction, the access server, according to the identification information of the video recording device carried by it, sends a long connection instruction carrying the identification information of the camera device to the corresponding video recording device through a second long connection in a pass-through manner. After receiving the long connection instruction, the video recording device sends a long connection request carrying the identification information of the camera device to the relay server to complete the establishment of the first long connection.

[0109] S203: When it is detected that the long connection with the video recording device carries the identification information of the camera device, it is determined that the video recording device and the data processing device establish a first long connection.

[0110] The relay server of the data processing device detects whether there is a long connection request carrying the identification information of the camera device (and the identification information of the video recording device); if there is a long connection request carrying the identification information of the camera device, it responds to the request to complete the establishment of the long connection. At this time, that is, it is detected that the long connection with the video recording device carries the identification information of the camera device, it is determined that the video recording device and the data processing device establish a first long connection, and the identification information of the camera device is associated with the first long connection established, so as to call the first long connection to transmit the relevant data of the camera device subsequently.

[0111] In this embodiment, based on the identification information of the camera device in the access request, the long connection situation for the camera device is determined; when the long connection situation indicates that the video recording device has not established a long connection for the camera device, a long connection instruction for the camera device is sent to the video recording device through the second long connection, so that the video recording device responds to the long connection instruction and establishes a long connection for the camera device with the data processing device; when it is detected that the long connection with the video recording device carries the identification information of the camera device, it is determined that the video recording device and the data processing device establish a first long connection. A separate long connection is established for data transmission when accessing the camera device, and different types of data are transmitted through different types of long connections, avoiding data interference caused by receiving and sending different types of data or accessing multiple devices using the same long connection, which can improve the security and efficiency of transmission.

[0112] In one embodiment, as Figure 5 shown, in step S40, that is, based on the function page data, the terminal device is controlled to display the function page of the camera device, which specifically includes the following steps:

[0113] S41: Generate redirection information for the function page of the camera device according to the function page data.

[0114] After receiving the function page data of the imaging device sent by the video recording device, the data processing device (such as the relay server of the monitoring and management platform) generates redirection information for the function page of the imaging device according to the function page data. That is, the function page data of the imaging device is assembled to obtain the redirection information of the web page adapted to the management page window, so that the terminal device can jump based on the redirection information to obtain and display the function page of the imaging device.

[0115] S42: Send the redirection information to the terminal device, so that the terminal device can display the function page of the imaging device in the management page window based on the redirection information.

[0116] After obtaining the redirection information of the function page, the data processing device sends the redirection information to the terminal device. After receiving the redirection information, the terminal device performs a page jump in response to the redirection information to display the function page of the imaging device in the management page window for the user to view or modify the imaging device parameters on the function page. Among them, the management page window is a page window triggered and generated from the monitoring page window. When the management control of the imaging device displayed in the management page window is triggered, that is, when an access request to the function page of the imaging device is received, the data processing device controls the terminal device to display the management page window of the imaging device; that is to say, the management page window is a page window re-popped up from the monitoring page window.

[0117] In this embodiment, the redirection information of the function page of the imaging device is generated according to the function page data; the redirection information is sent to the terminal device, so that the terminal device can display the function page of the imaging device in the management page window popped up in the monitoring page window based on the redirection information. By assembling the function page data into the redirection information of the function page, so that the terminal device can directly perform a page jump based on the redirection information of the function page and display it in the management page window, the built-in function page of the imaging device can be directly called without parsing the response content of the imaging device, which is simple and convenient.

[0118] In one embodiment, after step S40, that is, after controlling the terminal device to display the function page of the imaging device, the method further includes the following steps:

[0119] S50: Receive the operation request of the terminal device for the function page, and send the operation request to the imaging device through the video recording device, so that the imaging device performs corresponding data operations on the function page in response to the operation request.

[0120] After controlling the terminal device to display the function page of the imaging device, that is, after the function page of the imaging device is displayed in the management page window popped up in the monitoring page window, the user can perform relevant data operations on the function page to modify the relevant function parameters of the imaging device in the function page.

[0121] Among them, when the user has a modification requirement for the function parameters in the function page, the user can perform operations on the function page to send an operation request, and the operation request can be sent through the relevant input focus (such as a parameter input box) in the function interface. When the terminal device detects the operation request of the user on the function page, it sends the operation request of the function page to the data processing device.

[0122] The data processing device receives the operation request of the function page sent by the terminal device, and sends the operation request to the video recording device through the first long connection, so that the video recording device sends the operation request to the camera device, so that the camera device performs corresponding data operations on the function page in response to the operation request, thereby updating the function page of the camera device displayed in the management page window.

[0123] Specifically, after the data processing device receives the operation request of the function page sent by the terminal device, it sends the operation request to the corresponding video recording device through the first long connection of the corresponding camera device. The video recording device receives the operation request of the camera device and sends the operation request to the camera device; after receiving the operation request, the camera device performs parameter operations on its own function page in response to the operation request to update the data of the function page, and sends the update result of the function page to the data processing device through the video recording device. The data processing device updates the function page of the camera device in the management page window with the update result of the function page, realizing the data operation and update of the function page.

[0124] In this embodiment, after controlling the terminal device to display the function page of the camera device, the operation request of the function page sent by the terminal device is received, and corresponding data operations are performed on the function page in response to the operation request. By forwarding and multiplexing the function page of the camera device, the management of the parameters of the camera device can be realized, the management effect of the camera device can be improved, and the management cost can be reduced.

[0125] In one embodiment, the function page of the camera device is displayed in the management page window. As Figure 6 shown, after step S40, that is, after controlling the terminal device to display the function page of the camera device, the method further includes the following steps:

[0126] S60: Receive a play request for the target video of the camera device.

[0127] After the control terminal device displays the function page of the camera device, that is, after the management page window popped up in the monitoring page window displays the function page of the camera device, the management page window can also synchronously display the video playback control of the camera device, so that the user can trigger (such as click) the video playback control to execute the video playback process of the camera device. Among them, the video playback function of the camera device can be implemented by the video service.

[0128] Among them, after the terminal device detects and triggers the video playback control of the management page window, it generates a playback request and sends it to the data processing device. That is, the playback request is generated by triggering the video playback control of the management page window. The video server in the data processing device receives the playback request for the target video of the camera device. Among them, the playback request includes the identification information of the recording device and the identification information of the camera device (such as can be represented by the identification code of the recording device and the camera device number under this identification code), as well as the stream number (main / secondary stream) of the target video, etc.

[0129] S70: In response to the playback request, send a pull stream request for the target video to the recording device, so that the recording device can obtain the video stream of the target video based on the pull stream request.

[0130] Among them, in other embodiments, the recording device can pre-store the video data collected by the camera devices it manages, and the video data of these camera devices is stored in the local database of the recording device.

[0131] After receiving the playback request for the target video of the camera device, the video server of the data processing device responds to the playback request and sends a pull stream request for the target video to the recording device. The recording device receives the pull stream request, obtains the video stream of the target video from the camera device or the database of the recording device based on the pull stream request, and continuously sends the obtained video stream to the video server of the data processing device. Among them, the pull stream request sent by the video server includes information such as the identification information of the camera device and the stream number (main / secondary stream) of the target video.

[0132] S80: Receive the video stream of the target video sent by the recording device.

[0133] The video server of the data processing device continuously receives the video stream of the target video sent by the recording device.

[0134] S90: Send the video stream of the target video to the terminal device to play the target video on the video playback page of the management page window.

[0135] The video server of the data processing device sends the video stream of the target video continuously sent by the video recording device to the terminal device. The terminal device receives the video stream of the continuously sent target video and plays the target video on the video playback page of the management page window.

[0136] Among them, the video playback page is the web page displayed when the video playback control of the management page window is triggered. That is, when the user triggers the video playback control of the management page window, the terminal device displays the video playback page in the management page window and generates a playback request for the target video to send to the data processing device.

[0137] In this embodiment, after the management page window popped up in the monitoring page window displays the camera device, a playback request for the target video of the camera device is received. The playback request is generated by triggering the video playback control of the management page window. In response to the playback request, a pull stream request for the target video is sent to the video recording device so that the video recording device obtains the video stream of the target video based on the pull stream request. The video stream of the target video sent by the video recording device is received. The video stream of the target video is sent to the terminal device to play the target video on the video playback page of the management page window. By forwarding and multiplexing the function page of the camera device through the management page window, while managing the function parameters of the camera device, the acquisition and playback of the video stream of the camera device can be realized, improving the data management efficiency and data access effect of the camera device and improving the system compatibility.

[0138] In one embodiment, in step S70, that is, in response to the playback request, a pull stream request for the target video is sent to the video recording device so that the video recording device obtains the video stream of the target video based on the pull stream request, specifically including the following steps:

[0139] S71: Obtain the resource file of the player in response to the playback request.

[0140] Among them, after receiving the playback request for the target video of the camera device, the video server of the data processing device obtains the resource file of the player in response to the playback request.

[0141] S72: Send the resource file of the player to the terminal device so that the terminal device runs the player on the video playback page of the management page window.

[0142] The video server of the data processing device sends the resource file of the player to the terminal device. After the terminal device obtains the resource file of the player, it executes the player installation program of the management page window based on the resource file to run the player on the video playback page running in the management page window.

[0143] S73: Receive the pull stream request from the player.

[0144] After the player runs on the video playback page of the management page window, the player on the video playback page triggers a pull stream request for the target video based on the uniform resource locator URL of the video stream. The terminal device sends the pull stream request to the video server of the data processing device. The video server receives the pull stream request from the player.

[0145] Among them, the pull stream request carries the uniform resource locator URL of the video stream in the camera device. The video stream URL is automatically obtained by the video server of the data processing device after receiving the access request to the function page of the camera device to run the management page window of the camera device. After the video server obtains the video stream URL of the camera device, it sends the video stream URL to the management page window of the terminal device so that the player can use the video stream URL to trigger the pull stream request of the video stream UPL after running, that is, trigger the pull stream request of the target video of the camera device.

[0146] S74: Send the pull stream request to the recording device so that the recording device can obtain the video stream of the target video based on the uniform resource locator in the pull stream request.

[0147] The video server of the data processing device sends the pull stream request to the recording device. After the recording device receives the pull stream request, it determines whether the pull stream request is for the live video collected by the camera device or the historical video; that is, it determines whether the pull stream request is a preview request or a playback request. The preview request corresponds to pulling the live video collected by the camera device, and the playback request corresponds to pulling the historical video collected by the camera device. When it is determined that the pull stream request is for the live video collected by the camera device, the recording device obtains the video stream of the target video from the camera device based on the uniform resource locator in the pull stream request and sends it to the video server. The video server receives the video stream of the target video sent by the recording device and sends the video stream of the target video to the terminal device to play the target video on the video playback page of the management page window.

[0148] The recording device can pre-store the video data collected by the camera devices it manages (that is, the data of the historical videos collected), and the video data of these camera devices is stored in the local database of the recording device. After the recording device receives the pull stream request, when it is determined that the pull stream request is for the historical video collected by the camera device, the recording device can query the video data corresponding to the identification information of the camera device from the local database of the recording device based on the uniform resource locator in the pull stream request, obtain the video stream of the target video from the video data, and send the queried video stream of the target video to the video server of the data processing device.

[0149] In this embodiment, in response to a play request, a resource file of the player is obtained; the resource file of the player is sent to a terminal device so that the terminal device runs the player in a video play page running in a management page window; a pull stream request from the player is received, and the pull stream request carries a uniform resource locator of a video stream in a camera device; the pull stream request is sent to a recording device so that the recording device obtains a video stream of a target video based on the uniform resource locator in the pull stream request. Through the interaction between web windows, the obtained video stream URL is transmitted, so that the management page window can access the platform accordingly to obtain the video stream, and video playback is performed through the web page of the management page window. The video acquisition and playback of the camera device can be realized through the management page window provided by the platform, which is simple and convenient, and can improve the efficiency of viewing the monitoring video of the device.

[0150] In one embodiment, taking the data processing device in a data processing system as the background server of the monitoring and management platform as an example, the background server includes multiple servers for implementing different functions, such as a web server, a transit server, an access server, and a video server. The data processing method provided in the embodiments of the present application is applied in a data processing system as Figure 7 shown. For the framework diagram of the data processing system, see Figure 7 shown. The data processing system includes a terminal device, a monitoring and management platform, a recording device, and a camera device managed by the recording device.

[0151] Among them, a browser is installed on the terminal device, and a monitoring page window provided by the monitoring and management platform, a management page window of the camera device, and a player for playing videos are running on the browser. The monitoring page window is a browser window provided by the monitoring and management platform for the user to uniformly manage the camera device. The monitoring page window is used to display at least one camera device associated with at least one recording device, and each camera device is correspondingly displayed with a management control for triggering a management instruction. That is, by clicking the management control of the camera device provided in the monitoring page window, a browser sub-window, that is, the management page window of the camera device, can be opened. The management page window can obtain resource parameters in the monitoring and management platform through interaction with the monitoring page window; the management page window is responsible for requesting access to the function page of the camera device from the camera device and displaying the function page of the camera device for the user to view and manage the parameters of the camera device.

[0152] The monitoring and management platform includes a web server for receiving and sending requests of the monitoring page window, as well as a transit server, a video server, and an access server (not shown). The transit server establishes a first long connection for any camera device with the recording device and is a transit server for managing the camera device. The video server is used to obtain the video stream of the camera device. The access server establishes a second long connection for regular communication with the recording device to realize request transit to cope with a network environment with NAT.

[0153] The video recording device includes a relay client and a video client; the relay client establishes a first long connection channel with the relay server to perform data relay transmission on the data of the imaging device. The video client is used to obtain the video stream from the video stream module of the imaging device and communicate with the video server for video stream transmission. The imaging device includes a Hypertext Transfer Protocol (HTTP) server and a video stream module. The HTTP server is used to provide a function page for the imaging device to browse and manage parameters. The video stream module is used to store the video stream collected by the imaging device so that the video recording device can access this module to obtain the video stream.

[0154] Among them, the data processing method provided in the embodiments of the present application is applied in Figure 7 taking the data processing system in Figure 8 as an example to illustrate the implementation process of the data processing method. The functions of the terminal device are implemented through the monitoring page window. As

[0155] shown, the method specifically includes the following steps:

[0155] S1: After the monitoring page window is displayed on the terminal device, when the terminal device detects that the management control of the imaging device under the video recording device on the page is triggered through the monitoring page window, it sends an access request for the function page of the imaging device to the relay server.

[0156] Among them, the terminal device used by the user logs in to the monitoring management platform, and the terminal device displays the monitoring page window provided by the monitoring management platform. The page of the monitoring page window is used to display at least one imaging device associated with at least one video recording device, and each imaging device is correspondingly displayed with a management control for triggering a management instruction. The user can trigger the management control of the imaging device under the corresponding video recording device according to the needs to request access to the function page of the imaging device.

[0157] The terminal device detects that the management control of the imaging device under the video recording device in the monitoring page window is triggered, and sends an access request for the function page of the imaging device to the relay server. This access request carries the identification information of the video recording device (i.e., NVR ID) and the identification information of the imaging device (i.e., IPC ID).

[0158] S2: After receiving the access request, the relay server generates access authentication information for the terminal device according to the access request, and sends the access authentication information and the URL of the imaging device to the monitoring page window of the terminal device.

[0159] S3: After receiving the access authentication information and the URL of the imaging device, the terminal device triggers the generation and operation of the management page window of the imaging device in the monitoring page window based on the URL of the imaging device to send an authentication request carrying the access authentication information.

[0160] S4: After receiving the authentication request, the relay server authenticates the terminal device according to the access authentication information in the authentication request. When the authentication is passed, step S5 is executed; when the authentication fails, the access process is terminated.

[0161] S5: Based on the identification information of the camera device in the access request, the relay server determines whether the recording device has established a first long connection for the camera device. If not, step S6 is executed; if so, step S8 is executed.

[0162] S6: The relay server sends the long connection instruction for the camera device to the access server, so that the server sends the long connection instruction to the recording device through the second long connection.

[0163] S7: The recording device replies with the acknowledgment information of receiving the instruction through the access server and establishes a first long connection for the camera device with the relay server.

[0164] S8: After successfully establishing the first long connection, the relay server sends the access request for the function page of the camera device to the recording device through the first long connection.

[0165] S9: After receiving the access request, the recording device sends a login request for accessing the function page to the camera device to request to log in to the camera device and access the function page.

[0166] S10: After receiving the login request, the camera device authenticates the login request, and after the authentication is passed, it sends the function page data carrying the authorization information webToken to the recording device.

[0167] S11: After receiving the function page data, the recording device sends the function page data to the relay server through the first long connection.

[0168] S12: After receiving the function page data, the relay server generates the redirect information for the function page of the camera device and sends the redirect information to the terminal device.

[0169] S13: The terminal device will display the function page of the camera device in the management page window based on the redirect information.

[0170] S14: After detecting the operation request for the function page through the management page window, the terminal device sends the operation request to the relay server.

[0171] S15: The relay server sends the operation request to the camera device through the recording device, receives the acknowledgment information sent by the camera device in response to the operation request through the recording device, and sends the acknowledgment information to the terminal device.

[0172] S16: After the terminal device receives the response information of the operation request, it updates the function page in the management page window according to the response information.

[0173] For the specific implementation processes of the above steps, as well as the definitions of each request and data, please refer to the above text and will not be elaborated here.

[0174] In this embodiment, the monitoring and management platform manages the camera devices under different video recording devices through the function page. During the actual management process, through the long connection established between the video recording device and the monitoring and management platform, a transfer device capable of performing data access management with the video recording device as the management gateway can manage different camera devices under it. This solution can directly call the function page of the camera device without modifying or adding the access interface and access interface of the corresponding camera device in the monitoring and management platform, can quickly adapt to the continuously changing device adjustment requirements, improve the management efficiency and system compatibility of the camera device, and reduce costs.

[0175] In an embodiment, when the terminal device detects through the monitoring page window that the management control of the camera device under the video recording device in the page is triggered, it can also send a video stream URL request of the camera device to the video server of the monitoring and management platform. The video server responds to this request to obtain the video stream UR of the camera device and sends it to the management page window of the terminal device, so that when the subsequent user has a play request for the camera device, based on this video stream UR request, it accesses the video server to obtain the video stream of the target video to be played and plays the video on the video play page of the management page window. Specifically, as Figure 9 shown, it includes the following steps:

[0176] 1. When the terminal device detects through the monitoring page window that the management control of the camera device under the video recording device in the page is triggered, it sends a video stream URL request carrying the identification information of the camera device to the video server of the monitoring and management platform.

[0177] 2. After the video server receives this video stream URL request, it sends this video stream URL request of the camera device to the terminal device.

[0178] 3. The terminal device receives the video stream URL request of the camera device, triggers the generation and operation of the management page window of the camera device in the monitoring page window, and passes the video stream URL to the management page window through the monitoring page window.

[0179] 4. After the terminal device detects a play request for the target video of the camera device through the management page window, it sends a resource request of the player to the video server.

[0180] 5. The video server responds to the play request and sends the resource file of the player to the terminal device.

[0181] 6. The terminal device runs the player in the video playback page of the management page window based on the resource file of the player.

[0182] 7. When the player accesses the video stream URL to trigger a pull stream request for the target video, the terminal device sends the pull stream request for the target video to the video server.

[0183] 8. The video server sends the pull stream request to the recording device to access the imaging device through the recording device to obtain the video stream of the target video.

[0184] 9. The video server sends the obtained video stream to the terminal device so that the player in the video playback page plays the target video.

[0185] In this embodiment, through the interaction between web windows, the obtained video stream URL is passed to enable the management page window to access the platform accordingly to obtain the video stream, and video playback is performed through the web page of the management page window. The video acquisition and playback of the imaging device can be realized through the management page window provided by the platform, which is simple and convenient and can improve the efficiency of viewing the device monitoring video.

[0186] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

[0187] In one embodiment, a data processing device is provided, which corresponds one-to-one to the data processing method in the above embodiment. As Figure 10 shown, the data processing device includes a receiving module 101, a sending module 102, and a control module 103. The detailed descriptions of each functional module are as follows:

[0188] In a second aspect, an embodiment of the present application provides a data processing device, including:

[0189] A receiving module 101, configured to receive an access request from the terminal device to the function page of the imaging device, where the access request is triggered by the monitoring page window provided by the data processing device;

[0190] A sending module 102, configured to, after determining that the recording device corresponding to the imaging device establishes a first long connection with the data processing device, send an access request to the recording device through the first long connection, so that the recording device accesses the function page of the imaging device in response to the access request, and receive the function page data sent by the imaging device. The first long connection corresponds to the imaging device and is used to transmit data related to the imaging device;

[0191] The receiving module 101 is further configured to receive the function page data of the camera device sent by the video recording device through the first long connection channel, and at least one camera device is associated with one video recording device;

[0192] The control module 103 is configured to control the terminal device to display the function page of the camera device based on the function page data.

[0193] In an embodiment, the data processing device further includes a determining module, and the determining module is configured to: determine the long connection situation for the camera device based on the identification information of the camera device in the access request;

[0194] The sending module 102 is further configured to, when the long connection situation indicates that the video recording device has not established a long connection for the camera device, send a long connection instruction for the camera device to the video recording device through the second long connection, so that the video recording device establishes a long connection for the camera device with the data processing device in response to the long connection instruction, and the second long connection is the long connection established between the video recording device and the data processing device after the video recording device is started;

[0195] The determining module is further configured to: when it is detected that the long connection with the video recording device carries the identification information of the camera device, determine that the video recording device and the data processing device establish the first long connection.

[0196] In an embodiment, the data processing device further includes a generating module, and the generating module is configured to, after receiving the access request for the function page of the camera device from the terminal device, generate the access authentication information for the terminal device for the camera device according to the device identification information in the access request, and obtain the uniform resource locator of the camera device;

[0197] The sending module 102 is further configured to send the access authentication information and the uniform resource locator of the camera device to the terminal device, so that the terminal device triggers the generation and operation of the management page window of the camera device in the monitoring page window based on the uniform resource locator of the camera device to send an authentication request carrying the access authentication information;

[0198] The receiving module 101 is further configured to receive the authentication request sent by the terminal device when running the management page window, and the determining module is further configured to authenticate the terminal device according to the access authentication information in the authentication request;

[0199] The determining module is further configured to determine whether the video recording device corresponding to the camera device has established the first long connection with the data processing device after the terminal device passes the authentication.

[0200] In an embodiment, the generating module is further configured to generate the redirection information of the function page of the camera device according to the function page data;

[0201] The sending module 102 is further configured to send the redirection information to the terminal device, so that the terminal device displays the function page of the camera device based on the redirection information in the management page window, and the management page window is a page window triggered and generated from the monitoring page window.

[0202] In one embodiment, the data processing device further includes an operation module;

[0203] The receiving module 101 is further configured to receive an operation request of the function page from the terminal device after controlling the terminal device to display the function page of the camera device;

[0204] The operation module is configured to send the operation request to the camera device through the video recording device, so that the camera device performs corresponding data operations on the function page in response to the operation request.

[0205] In one embodiment, the function page of the camera device is displayed in the management page window, and the management page window is a page window triggered and generated from the monitoring page window. After controlling the terminal device to display the function page of the camera device, the method further includes:

[0206] The receiving module 101 is further configured to receive a play request for the target video of the camera device, and the play request is generated by triggering the video play control of the management page window;

[0207] The sending module 102 is further configured to send a pull stream request for the target video to the video recording device in response to the play request, so that the video recording device obtains the video stream of the target video based on the pull stream request;

[0208] The receiving module 101 is further configured to receive the video stream of the target video sent by the video recording device;

[0209] The sending module 102 is further configured to send the video stream of the target video to the terminal device to play the target video on the video play page of the management page window.

[0210] In one embodiment, the data processing device further includes an acquisition module;

[0211] The acquisition module is configured to acquire the resource file of the player in response to the play request;

[0212] The sending module 102 is further configured to send the resource file of the player to the terminal device, so that the terminal device runs the player on the video play page running in the management page window;

[0213] The receiving module 101 is further configured to receive a pull stream request from the player, and the pull stream request carries the uniform resource locator of the video stream in the camera device;

[0214] The sending module 102 is further configured to send a video streaming request to the video recording device, so that the video recording device obtains the video stream of the target video based on the uniform resource locator in the video streaming request.

[0215] It should be noted that, for the information interaction, execution process, etc. between the above-mentioned device / units, since they are based on the same concept as the method embodiments of the present application, the specific functions and the technical effects brought thereby can be specifically referred to the method embodiment part, and will not be elaborated herein.

[0216] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above-mentioned functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into a processing unit, or each unit exists physically alone, or two or more units are integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the foregoing method embodiments and will not be elaborated herein.

[0217] The embodiment of the present application further provides a computer device, as Figure 11 shown. The computer device 11 includes: at least one processor 111, a memory 112, and a computer program 113 stored in the memory 112 and executable on the at least one processor 111. When the processor 111 executes the computer program 113, it implements the steps in any of the foregoing method embodiments, or when the processor 111 executes the computer program 113, it implements the functions of each module / unit in the foregoing device embodiments.

[0218] Exemplarily, the computer program 113 can be divided into one or more modules / units. The one or more modules / units are stored in the memory 112 and executed by the processor 111 to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 113 in the computer device 11.

[0219] Those skilled in the art can understand that Figure 11The above are merely examples of the computer device and do not constitute a limitation on the computer device. It may include more or fewer components than those shown in the figure, or combine certain components, or have different components. For example, the computer device may also include input / output devices, network access devices, buses, etc.

[0220] The above processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0221] The memory may be an internal storage unit of the computer device, such as the hard disk or memory of the computer device. The memory may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the memory may also include both the internal storage unit and the external storage device of the computer device.

[0222] The embodiments of the present application also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in the above various method embodiments can be implemented.

[0223] The embodiments of the present application provide a computer program product, and when the computer program product runs on an electronic device, the electronic device can implement the steps in the above various method embodiments when executed.

[0224] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-described embodiment methods of this application, a computer program can be used to instruct the relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.

[0225] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0226] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functional pages, but such implementation should not be considered to exceed the scope of this application.

[0227] In the embodiments provided in this application, it should be understood that the disclosed apparatus / devices and methods can be implemented in other ways. For example, the apparatus / device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0228] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0229] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A data processing method, characterized in that, Including: Receiving an access request from a receiving terminal device to a function page of a camera device, where the access request is triggered by a monitoring page window provided by a data processing device; After determining that a video recording device corresponding to the camera device establishes a first long connection with the data processing device, sending the access request to the video recording device through the first long connection, so that the video recording device accesses the function page of the camera device in response to the access request, and receives function page data sent by the camera device, where the first long connection corresponds to the camera device and is used to transmit data related to the camera device; Receiving the function page data of the camera device sent by the video recording device through the first long connection channel, and at least one camera device is associated with one video recording device; Based on the function page data, controlling the terminal device to display the function page of the camera device.

2. The data processing method according to claim 1, wherein The determining that the video recording device corresponding to the camera device establishes a first long connection with the data processing device includes: Based on the identification information of the camera device in the access request, determining the long connection situation for the camera device; When the long connection situation indicates that the video recording device has not established a long connection for the camera device, sending a long connection instruction for the camera device to the video recording device through a second long connection, so that the video recording device establishes a long connection for the camera device with the data processing device in response to the long connection instruction, where the second long connection is a long connection established between the video recording device and the data processing device after the video recording device is started; When it is detected that the long connection with the video recording device carries the identification information of the camera device, determining that the video recording device and the data processing device establish the first long connection.

3. The data processing method according to claim 1, characterized in that, After receiving the access request from the receiving terminal device to the function page of the camera device, the method further includes: Generating access authentication information for the terminal device for the camera device according to the device identification information in the access request, and obtaining the uniform resource locator of the camera device; Sending the access authentication information and the uniform resource locator of the camera device to the terminal device, so that the terminal device generates and runs a management page window of the camera device in the monitoring page window based on the uniform resource locator of the camera device to send an authentication request carrying the access authentication information; Receiving the authentication request sent by the terminal device when running the management page window, and authenticating the terminal device according to the access authentication information in the authentication request; After the terminal device passes the authentication, determining whether the video recording device corresponding to the camera device establishes a first long connection with the data processing device.

4. The data processing method according to any one of claims 1 to 3, characterized in that The controlling the terminal device to display the function page of the camera device based on the function page data includes: Generating redirect information for the function page of the camera device according to the function page data; Send the redirection information to the terminal device so that the terminal device displays the function page of the camera device in the management page window based on the redirection information, where the management page window is a page window triggered and generated from the monitoring page window.

5. The data processing method according to any one of claims 1 to 3, characterized in that After controlling the terminal device to display the function page of the camera device, the method further includes: Receive an operation request of the terminal device for the function page, and send the operation request to the camera device through the video recording device so that the camera device performs corresponding data operations on the function page in response to the operation request.

6. The data processing method according to any one of claims 1 to 3, characterized in that After the function page of the camera device is displayed in the management page window, where the management page window is a page window triggered and generated from the monitoring page window, and after controlling the terminal device to display the function page of the camera device, the method further includes: Receive a play request for the target video of the camera device, where the play request is generated by triggering a video play control of the management page window; In response to the play request, send a pull stream request for the target video to the video recording device so that the video recording device obtains the video stream of the target video based on the pull stream request; Receive the video stream of the target video sent by the video recording device; Send the video stream of the target video to the terminal device to play the target video on the video play page of the management page window.

7. The data processing method according to claim 6, wherein The step of, in response to the play request, sending a pull stream request for the target video to the video recording device so that the video recording device obtains the video stream of the target video based on the pull stream request includes: In response to the play request, obtain the resource file of the player; Send the resource file of the player to the terminal device so that the terminal device runs the player in the video play page running in the management page window; Receive a pull stream request from the player, where the pull stream request carries the uniform resource locator of the video stream in the camera device; Send the pull stream request to the video recording device so that the video recording device obtains the video stream of the target video based on the uniform resource locator in the pull stream request.

8. A data processing device, characterized in that, It includes: A receiving module, configured to receive an access request of the terminal device for the function page of the camera device, where the access request is triggered by a monitoring page window provided by a data processing device; A sending module, configured to, after determining that the video recording device corresponding to the camera device establishes a first long connection with the data processing device, send the access request to the video recording device through the first long connection so that the video recording device accesses the function page of the camera device in response to the access request and receives the function page data sent by the camera device, where the first long connection corresponds to the camera device and is used to transmit data related to the camera device; The receiving module is further configured to receive the function page data of the camera device sent by the video recording device through the first long connection channel, and at least one camera device is associated with one video recording device; A control module, configured to control the terminal device to display a function page of the imaging device based on the function page data.

9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the data processing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the data processing method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program, characterized in that, When the computer program runs, the data processing method according to any one of claims 1 to 7 is caused to be executed.