Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
An air conditioner passing control method and apparatus according to embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Fig. 1 is a scene diagram of an application scene of an embodiment of the present disclosure. The application scenario may include terminal devices 101, 102, and 103, server 104, and network 105.
The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102 and 103 are hardware, they may be various electronic devices having a display screen and supporting communication with the server 104, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, etc., and when the terminal devices 101, 102 and 103 are software, they may be installed in the electronic devices as above. Terminal devices 101, 102, and 103 may be implemented as multiple software or software modules, or as a single software or software module, as embodiments of the present disclosure are not limited in this regard. Further, various applications, such as a data processing application, an instant messaging tool, social platform software, a search class application, a shopping class application, and the like, may be installed on the terminal devices 101, 102, and 103.
The server 104 may be a server that provides various services, for example, a background server that receives a request transmitted from a terminal device with which communication connection is established, and the background server may perform processing such as receiving and analyzing the request transmitted from the terminal device and generate a processing result. The server 104 may be a server, a server cluster formed by a plurality of servers, or a cloud computing service center, which is not limited in the embodiments of the present disclosure.
It should be noted that, the server 104 may be hardware, or may be software. When the server 104 is hardware, it may be various electronic devices that provide various services to the terminal devices 101, 102, and 103. When the server 104 is software, it may be a plurality of software or software modules providing various services to the terminal devices 101, 102, and 103, or may be a single software or software module providing various services to the terminal devices 101, 102, and 103, which is not limited by the embodiments of the present disclosure.
The network 105 may be a wired network using coaxial cable, twisted pair wire, and optical fiber connection, or may be a wireless network that can implement interconnection of various Communication devices without wiring, for example, bluetooth (Bluetooth), near Field Communication (NFC), infrared (Infrared), etc., which are not limited by the embodiments of the present disclosure.
The user can establish a communication connection with the server 104 via the network 105 through the terminal devices 101, 102, and 103 to receive or transmit information or the like. It should be noted that the specific types, numbers and combinations of the terminal devices 101, 102 and 103, the server 104 and the network 105 may be adjusted according to the actual requirements of the application scenario, which is not limited by the embodiment of the present disclosure.
Fig. 2 is a flow chart of a method for playing a monitoring video of a plurality of interfaces according to an embodiment of the present disclosure. The monitoring video playing method of the various interfaces of fig. 2 may be performed by the terminal device or the server of fig. 1.
As shown in fig. 2, the method for playing the monitoring video of the multiple interfaces includes:
S201, logging in a configuration tool by utilizing a target account number, and acquiring an identification number list corresponding to the target account number from the configuration tool, wherein the identification number list comprises a plurality of user identification numbers, and each user identification number corresponds to one user;
s202, acquiring an interface address of a video interface corresponding to each user identification number in the identification number list from a video monitoring configuration platform;
S203, calling each video interface by a calling tool based on the interface address of each video interface so as to acquire the video address of the user corresponding to each video interface;
s204, based on the video address of each user, playing the monitoring video of each user through the front-end player.
The target account number is the account number of the login person, a plurality of users responsible for the login person are arranged under the login person, and the plurality of users responsible for the login person can be determined by providing a plurality of user identification numbers in the identification number list. The user is a client, and can be an enterprise, a person and the like. The identification number list corresponding to the target account number is obtained from the configuration tool, or the account number information of the target account number is obtained, and the identification number list corresponding to the account number information is obtained from a platform providing video monitoring service, wherein the account number information is related information of the target account number, such as a mobile phone number and a login personnel name bound with the target account number. The embodiment of the disclosure is applied to a platform needing to provide video monitoring service, and an execution end of the embodiment of the disclosure can be a video monitoring tool of the platform. The configuration tool, the video monitoring configuration platform, the calling tool and the front-end player independently exist in the video monitoring tool, and the configuration tool, the video monitoring configuration platform, the calling tool and the front-end player can be sequentially connected in series from front to back.
According to the technical scheme, a configuration tool is logged in by using a target account number, an identification number list corresponding to the target account number is obtained from the configuration tool, the identification number list comprises a plurality of user identification numbers, each user identification number corresponds to one user, an interface address of a video interface corresponding to each user identification number in the identification number list is obtained from a video monitoring configuration platform, each video interface is called by a calling tool based on the interface address of each video interface to obtain the video address of a user corresponding to each video interface, and monitoring video of each user is played by a front-end player based on the video address of each user. By adopting the technical means, the problem that in the prior art, the research and development cost of the video monitoring tool is wasted because one version of video monitoring tool cannot serve a plurality of clients can be solved, and further the research and development cost of the video monitoring tool is reduced, and resource waste is avoided.
After step S201 is executed, that is, after the configuration tool is logged in by using the target account number, the method further includes obtaining a target user identification number of the target user through the user information management module, obtaining target video related information of the target user through the video source storage module based on the target user identification number, wherein the target video related information includes a target interface address of a target video interface, obtaining a target video address of the target user through the video source output module according to the target video related information, playing a target monitoring video of the target user through the front-end player according to the target video address, and the video monitoring configuration platform includes a user information management module, a video source storage module and a video source output module.
The video source storage module stores video related information of the user and the user, the video related information of the user can also comprise content description, theme and the like of monitoring video of the user, and the video source output module is used for determining video addresses according to the video related information (such as interface addresses).
Before the target user identification number of the target user is obtained through the user information management module, the method further comprises the steps of completing verification of the authority management module by utilizing the target account number, adding or deleting one or more pieces of user information in the user information management module by utilizing the authority management module, wherein the user information comprises the user identification number, adding or deleting one or more pieces of video related information in the video source editing module by utilizing the authority management module, wherein the video related information comprises an interface address of a video interface, and storing one or more pieces of video related information in the video source storage module by utilizing the video source editing module.
In order to improve security, operations of the embodiments of the present disclosure in the user information management module, the video source editing module, and the video source storage module are performed using the rights management module.
After step S201 is executed, that is, after the configuration tool is logged in by using the target account number, the method further includes obtaining a target user identification number of the target user, and based on the target user identification number, obtaining a target interface address of a target video interface of the target user through a video source storage module, where the video monitoring configuration platform includes a video source storage module, calling the target video interface according to the target interface address to obtain a target video address corresponding to the target video interface, and playing a target monitoring video of the target user through a front-end player according to the target video address.
For example, a target user is an enterprise, an enterprise identification number of the enterprise is obtained, an interface address of a video interface of the enterprise is obtained through a video source storage module based on the enterprise identification number, the video interface is called according to the interface address to obtain a video address corresponding to the video interface, and a monitoring video of the enterprise is played through a front-end player according to the video address.
After step S202 is executed, that is, after the interface address of the video interface corresponding to each user identification number in the identification number list is obtained from the video monitoring configuration platform, the method further includes using the first order of the arrangement of the plurality of user identification numbers in the identification number list as the second order of the arrangement of the interface addresses of the plurality of video interfaces, calling the plurality of video interfaces one by a calling tool based on the interface addresses of the plurality of video interfaces according to the second order to judge whether the target video address of the target user corresponding to the target video interface can be obtained or not, and ending the calling until the target video address is obtained, and playing the target monitoring video by the front-end player based on the target video address.
The user identification numbers and the video interfaces have a corresponding relationship, so that the second order of the interface address arrangement of the plurality of video interfaces can be determined according to the first order of the arrangement of the plurality of user identification numbers in the identification number list. According to a second sequence, based on interface addresses of a plurality of video interfaces, calling the video interfaces one by one through a calling tool, when the video address of a user corresponding to a certain video interface is obtained, taking the video interface as a target video interface, wherein the user corresponding to the video interface is a target user, and the video address of the user corresponding to the video interface is the target video address.
According to a second sequence, based on interface addresses of a plurality of video interfaces, calling the plurality of video interfaces one by one through a calling tool to judge whether the target video address of a target user corresponding to the target video interface can be acquired or not, and ending the calling until the target video address is acquired, wherein the calling comprises the step of calling the current video interface through the calling tool based on the interface address of the current video interface to judge whether the video address of the user corresponding to the current video interface can be acquired or not; when the video address of the user corresponding to the current video interface is not acquired, the next video interface of the current video interface is called through a calling tool based on the video address of the user corresponding to the next video interface of the current video interface according to a second sequence so as to judge whether the video address of the user corresponding to the next video interface of the current video interface can be acquired.
The call to the next video interface of the current video interface is the same as the call to the current video interface. If the video address of the user corresponding to the next video interface of the current video interface is acquired, the next video interface of the current video interface is used as a target video interface, if the video address of the user corresponding to the next video interface of the current video interface is not acquired, the next video interface of the current video interface is continuously called until the video address of the user corresponding to a certain video interface is acquired, and the call is ended.
In step S203, calling each video interface by a calling tool based on the interface address of each video interface to acquire the video address of the user corresponding to each video interface, including calling each camera video interface by the calling tool based on the camera interface address of each camera video interface to acquire the video address of the user corresponding to each camera video interface; or calling each cloud platform video interface through a calling tool based on the cloud platform interface address of each cloud platform video interface to acquire the video address of the user corresponding to each cloud platform video interface, wherein the video interfaces comprise a camera video interface and a cloud platform video interface, and the interface addresses comprise a camera interface address and a cloud platform interface address.
The monitoring video of a user can be obtained through a camera video interface or a cloud platform video interface.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method of the present disclosure.
Fig. 3 is a schematic diagram of a monitoring video playing device with multiple interfaces according to an embodiment of the present disclosure. As shown in fig. 3, the monitoring video playing device of the multiple interfaces includes:
A first obtaining module 301, configured to log in a configuration tool by using a target account, and obtain an identification number list corresponding to the target account from the configuration tool, where the identification number list includes a plurality of user identification numbers, each user identification number corresponds to a user;
A second obtaining module 302, configured to obtain, from the video monitoring configuration platform, an interface address of the video interface corresponding to each user identification number in the identification number list;
A calling module 303, configured to call each video interface through a calling tool based on the interface address of each video interface, so as to obtain the video address of the user corresponding to each video interface;
the playing module 304 is configured to play the monitoring video of each user through the front-end player based on the video address of each user.
The target account number is the account number of the login person, a plurality of users responsible for the login person are arranged under the login person, and the plurality of users responsible for the login person can be determined by providing a plurality of user identification numbers in the identification number list. The user is a client, and can be an enterprise, a person and the like. The identification number list corresponding to the target account number is obtained from the configuration tool, or the account number information of the target account number is obtained, and the identification number list corresponding to the account number information is obtained from a platform providing video monitoring service, wherein the account number information is related information of the target account number, such as a mobile phone number and a login personnel name bound with the target account number. The embodiment of the disclosure is applied to a platform needing to provide video monitoring service, and an execution end of the embodiment of the disclosure can be a video monitoring tool of the platform. The configuration tool, the video monitoring configuration platform, the calling tool and the front-end player independently exist in the video monitoring tool, and the configuration tool, the video monitoring configuration platform, the calling tool and the front-end player can be sequentially connected in series from front to back.
According to the technical scheme, a configuration tool is logged in by using a target account number, an identification number list corresponding to the target account number is obtained from the configuration tool, the identification number list comprises a plurality of user identification numbers, each user identification number corresponds to one user, an interface address of a video interface corresponding to each user identification number in the identification number list is obtained from a video monitoring configuration platform, each video interface is called by a calling tool based on the interface address of each video interface to obtain the video address of a user corresponding to each video interface, and monitoring video of each user is played by a front-end player based on the video address of each user. By adopting the technical means, the problem that in the prior art, the research and development cost of the video monitoring tool is wasted because one version of video monitoring tool cannot serve a plurality of clients can be solved, and further the research and development cost of the video monitoring tool is reduced, and resource waste is avoided.
Optionally, the second obtaining module 301 is further configured to obtain a target user identification number of the target user through the user information management module, obtain target video related information of the target user through the video source storage module based on the target user identification number, where the target video related information includes a target interface address of the target video interface, obtain a target video address of the target user through the video source output module according to the target video related information, play a target monitoring video of the target user through the front-end player according to the target video address, and the video monitoring configuration platform includes a user information management module, a video source storage module and a video source output module.
The video source storage module stores video related information of the user and the user, the video related information of the user can also comprise content description, theme and the like of monitoring video of the user, and the video source output module is used for determining video addresses according to the video related information (such as interface addresses).
Optionally, the second obtaining module 301 is further configured to complete verification of the rights management module by using the target account number, add or delete one or more pieces of user information at the user information management module by using the rights management module, wherein the user information includes a user identification number, add or delete one or more pieces of video related information at the video source editing module by using the rights management module, wherein the video related information includes an interface address of the video interface, and store the one or more pieces of video related information in the video source storage module by using the video source editing module.
In order to improve security, operations of the embodiments of the present disclosure in the user information management module, the video source editing module, and the video source storage module are performed using the rights management module.
Optionally, the second obtaining module 301 is further configured to obtain a target user identification number of the target user, obtain, based on the target user identification number, a target interface address of a target video interface of the target user through the video source storage module, where the video monitoring configuration platform includes a video source storage module, call the target video interface according to the target interface address to obtain a target video address corresponding to the target video interface, and play, according to the target video address, a target monitoring video of the target user through the front-end player.
For example, a target user is an enterprise, an enterprise identification number of the enterprise is obtained, an interface address of a video interface of the enterprise is obtained through a video source storage module based on the enterprise identification number, the video interface is called according to the interface address to obtain a video address corresponding to the video interface, and a monitoring video of the enterprise is played through a front-end player according to the video address.
Optionally, the calling module 303 is further configured to use the first order of the arrangement of the plurality of user identification numbers in the identification number list as the second order of the arrangement of the interface addresses of the plurality of video interfaces, call the plurality of video interfaces one by one through a calling tool based on the interface addresses of the plurality of video interfaces according to the second order to judge whether the target video address of the target user corresponding to the target video interface can be acquired or not, and end the call until the target video address is acquired, and play the target monitoring video through the front-end player based on the target video address.
The user identification numbers and the video interfaces have a corresponding relationship, so that the second order of the interface address arrangement of the plurality of video interfaces can be determined according to the first order of the arrangement of the plurality of user identification numbers in the identification number list. According to a second sequence, based on interface addresses of a plurality of video interfaces, calling the video interfaces one by one through a calling tool, when the video address of a user corresponding to a certain video interface is obtained, taking the video interface as a target video interface, wherein the user corresponding to the video interface is a target user, and the video address of the user corresponding to the video interface is the target video address.
Optionally, the calling module 303 is further configured to call the current video interface through the calling tool based on the interface address of the current video interface to determine whether the video address of the user corresponding to the current video interface can be obtained, when the video address of the user corresponding to the current video interface is obtained, take the current video interface as the target video interface to end the call, when the video address of the user corresponding to the current video interface is not obtained, call the next video interface of the current video interface through the calling tool based on the video address of the user corresponding to the next video interface of the current video interface according to the second sequence to determine whether the video address of the user corresponding to the next video interface of the current video interface can be obtained.
The call to the next video interface of the current video interface is the same as the call to the current video interface. If the video address of the user corresponding to the next video interface of the current video interface is acquired, the next video interface of the current video interface is used as a target video interface, if the video address of the user corresponding to the next video interface of the current video interface is not acquired, the next video interface of the current video interface is continuously called until the video address of the user corresponding to a certain video interface is acquired, and the call is ended.
Optionally, the calling module 303 is further configured to call each camera video interface through a calling tool based on the camera interface address of each camera video interface to obtain the video address of the user corresponding to each camera video interface, or call each cloud platform video interface through a calling tool based on the cloud platform interface address of each cloud platform video interface to obtain the video address of the user corresponding to each cloud platform video interface, wherein the video interfaces comprise a camera video interface and a cloud platform video interface, and the interface addresses comprise a camera interface address and a cloud platform interface address.
The monitoring video of a user can be obtained through a camera video interface or a cloud platform video interface.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not constitute any limitation on the implementation process of the embodiments of the disclosure.
Fig. 4 is a schematic diagram of an electronic device 4 provided by an embodiment of the present disclosure. As shown in fig. 4, the electronic device 4 of this embodiment comprises a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and executable on the processor 401. The steps of the various method embodiments described above are implemented by processor 401 when executing computer program 403. Or the processor 401, when executing the computer program 403, performs the functions of the modules/units in the above-described device embodiments.
Illustratively, the computer program 403 may be partitioned into one or more modules/units, which are stored in the memory 402 and executed by the processor 401 to complete the present disclosure. One or more of the modules/units may be a series of computer program instruction segments capable of performing a specific function for describing the execution of the computer program 403 in the electronic device 4.
The electronic device 4 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the electronic device 4 and is not meant to be limiting of the electronic device 4, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device may also include an input-output device, a network access device, a bus, etc.
The Processor 401 may be a central processing unit (Central Processing Unit, CPU) or may be other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or a memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device 4. Further, the memory 402 may also include both internal storage units and external storage devices of the electronic device 4. The memory 402 is used to store computer programs and other programs and data required by the electronic device. The memory 402 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of modules or elements is merely a logical functional division, and there may be additional divisions of actual implementations, multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method of the above-described embodiments, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of the method embodiments described above. The computer program may comprise computer program code, which may be in source code form, object code form, executable file or in some intermediate form, etc. The computer readable medium can include any entity or device capable of carrying computer program code, recording medium, USB flash disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals, and software distribution media, among others. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
The foregoing embodiments are merely for illustrating the technical solutions of the present disclosure, and not for limiting the same, and although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that the technical solutions described in the foregoing embodiments may be modified or some of the technical features may be replaced with the same, and that the modifications or the replacement should not depart from the spirit and scope of the technical solutions of the embodiments of the present disclosure.