Time consumption optimization method for live broadcast stream pulling of low-power-consumption camera

By maintaining a simple TCP connection in a low-power camera and obtaining P2P information in parallel, the problem of long time spent on live streaming of low-power cameras is solved, and the user experience is improved.

CN119299846APending Publication Date: 2025-01-10E SURFING VISION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411519321.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The low-power camera takes a longer time from sleep to starting live video, resulting in a poor user experience.

Method used

By maintaining a simple TCP connection between the low-power WiFi module and the video capability platform during the camera sleep, receiving remote wake-up instructions and P2P live broadcast service information, triggering the camera master to start and obtaining P2P connection preparation information in parallel, shortening the overall consumption of live streaming to pull streams hour.

Benefits of technology

Quickly completing live streaming to improve user experience and reduce the overall time-consuming of users' remote wake-up to live streaming to improve streaming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299846A_ABST
    Figure CN119299846A_ABST
Patent Text Reader

Abstract

The invention discloses a time consumption optimization method for live broadcast stream pulling of a low-power-consumption camera. The method is used for solving or partially solving the technical problem that the time required by an existing low-power-consumption camera from a dormant state to start video live broadcast is relatively long. The method comprises the following steps: a client generates a remote wake-up instruction and P2P live broadcast service information in response to a remote live broadcast pull stream trigger operation of a user for a graphical user interface; directly sending a remote wake-up instruction and P2P live broadcast service information to a camera through a video capability platform; after the camera receives the information, acquiring P2P connection preparation information while triggering and starting a camera master control according to the remote wake-up instruction; and then, based on the P2P connection preparation information and the P2P live broadcast service information, P2P connection is established with the client, so that live broadcast stream pulling is quickly completed, the overall time consumption from remote wakeup to live broadcast stream pulling by the user is shortened, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of security video technology, and in particular to a method for optimizing the time consumption of live streaming with a low-power camera, a device for optimizing the time consumption of live streaming with a low-power camera, an electronic device and a storage medium. Background Art

[0002] P2P live broadcast, or peer-to-peer live broadcast, is an Internet live broadcast method that uses P2P network technology to transmit real-time video streams.

[0003] Low-power cameras connected to the unified SDK (Software Development Kit), such as low-power doorbell devices, low-power AOV (Angle Of View) cameras (wide-angle cameras), etc., are generally powered by batteries. In the low-power state, the camera main control is powered off to reduce power consumption. The low-power camera must go through the wake-up process, the P2P live broadcast information acquisition process, the P2P connection live broadcast streaming process, etc. It takes a long time from the sleep state to the start of the video live broadcast, resulting in a poor user experience. Summary of the invention

[0004] The present invention provides a method for optimizing the time consumption of live streaming with a low-power camera, a device for optimizing the time consumption of live streaming with a low-power camera, an electronic device and a storage medium, which are used to solve or partially solve the technical problem that it takes a long time for existing low-power cameras to start live video streaming from a sleep state.

[0005] The present invention provides a time-consuming optimization method for live streaming of a low-power camera, which is applied to a camera, wherein the camera includes a camera master control, and the method includes:

[0006] Receive remote wake-up instructions and P2P live broadcast service information sent by the client through the video capability platform;

[0007] While triggering and starting the camera master control according to the remote wake-up instruction, obtaining P2P connection preparation information;

[0008] Based on the P2P connection preparation information and the P2P live broadcast service information, a P2P connection is established with the client to complete the live broadcast streaming.

[0009] Optionally, the camera further includes a low-power WiFi module connected to the camera main control via a serial port, and while triggering and starting the camera main control according to the remote wake-up instruction, obtaining P2P connection preparation information includes:

[0010] Triggering and starting the camera master control through the low-power WiFi module according to the remote wake-up instruction;

[0011] During the startup phase of the camera master control, the P2P connection preparation information is obtained through the low-power WiFi module to implement live broadcast preprocessing; the P2P connection preparation information is information required before P2P connection is established, including local IP information and external network IP information.

[0012] Optionally, establishing a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information includes:

[0013] When the camera master control is started, the camera master control obtains the P2P connection preparation information and the P2P live broadcast service information from the low-power WiFi module;

[0014] The camera master triggers a client response based on the P2P connection preparation information and the P2P live broadcast service information, and establishes a P2P connection with the client.

[0015] Optionally, the method further comprises:

[0016] When the camera is in a dormant stage, the low-power WiFi module maintains a simple TCP connection with the video capability platform.

[0017] The present invention also provides a time-consuming optimization method for live streaming of a low-power camera, which is applied to a client, and the client corresponds to a graphical user interface. The method includes:

[0018] In response to a remote live streaming trigger operation by a user on the graphical user interface, a remote wake-up instruction and P2P live streaming service information are generated;

[0019] The remote wake-up instruction and the P2P live broadcast service information are sent to the camera through the video capability platform, so that the camera can obtain the P2P connection preparation information while triggering the start of the camera master control according to the remote wake-up instruction, and establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

[0020] Optionally, the process of establishing a P2P connection between the client and the camera includes:

[0021] After receiving the client response triggered by the camera master based on the P2P connection preparation information and the P2P live broadcast service information, a P2P connection is established with the camera.

[0022] The present invention also provides a time-consuming optimization device for live streaming of a low-power camera, which is applied to a camera, wherein the camera includes a camera master control, and the device includes:

[0023] An information receiving unit, used to receive a remote wake-up instruction and P2P live broadcast service information sent by a client via a video capability platform;

[0024] An information processing unit, configured to obtain P2P connection preparation information while triggering the camera master control to start according to the remote wake-up instruction;

[0025] The P2P connection establishing unit is used to establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

[0026] The present invention also provides a time-consuming optimization device for live streaming of a low-power camera, which is applied to a client, and the client corresponds to a graphical user interface. The device includes:

[0027] An information generating unit, configured to generate a remote wake-up instruction and P2P live broadcast service information in response to a remote live broadcast stream pulling trigger operation by a user on the graphical user interface;

[0028] An information sending unit is used to send the remote wake-up instruction and the P2P live broadcast service information to the camera through the video capability platform, so that the camera can obtain the P2P connection preparation information while triggering the start of the camera master control according to the remote wake-up instruction, so as to establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

[0029] The present invention also provides an electronic device, the device comprising a processor and a memory:

[0030] The memory is used to store program code and transmit the program code to the processor;

[0031] The processor is used to execute the time-consuming optimization method for live streaming of a low-power camera as described in any of the above items according to the instructions in the program code.

[0032] The present invention also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the time-consuming optimization method for live streaming of a low-power camera as described in any of the above items.

[0033] It can be seen from the above technical solutions that the present invention has the following advantages:

[0034] A time-consuming optimization method for live streaming of low-power cameras is provided. For the live streaming process of low-power cameras, the client generates a remote wake-up instruction and P2P live streaming service information in response to the user's remote live streaming trigger operation on the graphical user interface; then the remote wake-up instruction and P2P live streaming service information are directly sent to the camera through the video capability platform; after the camera receives the information, it triggers the start of the camera master control according to the remote wake-up instruction and obtains the P2P connection preparation information; then, based on the P2P connection preparation information and the P2P live streaming service information, a P2P connection is established with the client, thereby quickly completing the live streaming, shortening the overall time from user remote wake-up to live streaming, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 This is a structural diagram of a time-consuming optimization system for live streaming of a low-power camera;

[0037] Figure 2 A flowchart of the steps of a method for optimizing the time consumption of live streaming of a low-power camera;

[0038] Figure 3 A flowchart of the steps of another method for optimizing the time consumption of live streaming of a low-power camera;

[0039] Figure 4 It is a schematic diagram of the overall process of a time-consuming optimization method for live streaming of a low-power camera;

[0040] Figure 5 It is a structural block diagram of a time-consuming optimization device for live streaming of a low-power camera;

[0041] Figure 6 This is a structural block diagram of another time-consuming optimization device for live streaming of low-power cameras. DETAILED DESCRIPTION

[0042] The embodiments of the present invention provide a method for optimizing the time consumption of live streaming with a low-power camera, a device for optimizing the time consumption of live streaming with a low-power camera, an electronic device and a storage medium, which are used to solve or partially solve the technical problem that it takes a long time for existing low-power cameras to start live video streaming from a sleep state.

[0043] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] In order to enable those skilled in the art to better understand the technical solution provided by the embodiment of the present invention, some technical features involved in the solution are briefly described first:

[0045] Video Capability Platform: A comprehensive solution. It aims to provide enterprises with one-stop services in video processing, distribution, storage and management. This platform usually includes functions such as video uploading, transcoding, storage, distribution, playback, and analysis. The video capability platform is designed to help enterprises quickly build video applications and services without having to build complex infrastructure from scratch. In an embodiment of the present invention, the video capability platform maintains a simple TCP (Transmission Control Protocol) connection with the low-power WiFi (Wireless Fidelity) module of the camera. It has the feature of real-time distribution of P2P live service information to the target camera.

[0046] P2P live streaming service information: used to establish and maintain various information required for live streaming transmission in the P2P network, including but not limited to node information, media stream information, network topology information, control information and metadata information.

[0047] Camera Main Control Unit (Camera Controller): One of the core parts of the camera, responsible for controlling the various functions and operations of the camera, such as image processing, video encoding, control logic, data transmission, etc.

[0048] Low-power WiFi module: WiFi module in low-power cameras. When the camera is in low-power mode, the module runs at low power consumption. The WiFi module maintains a simple TCP connection with the video capability platform to achieve remote control.

[0049] P2P SDP (Session Description Protocol, a text format) information: information required before P2P connection. Mainly includes local IP information and external IP information.

[0050] As an example, low-power cameras, such as low-power doorbell devices and low-power AOV cameras, are generally powered by batteries. In the low-power state, the camera main control is powered off to reduce power consumption. The low-power camera needs to go through the wake-up process, the P2P live broadcast information acquisition process, the P2P connection live broadcast streaming process, etc. It takes a long time from the sleep state to the start of the video live broadcast, resulting in a poor user experience.

[0051] For example, the current main process of low-power camera live streaming is as follows:

[0052] During the camera sleep period, the camera's low-power WiFi module maintains a simple TCP connection with the video capability platform. The client triggers remote wake-up through the video capability platform. After the low-power WiFi module receives the remote wake-up, it triggers the camera master control to start. After the camera master control completes the startup, it connects to the video capability platform and is online successfully.

[0053] When the client detects that the camera connection platform is online, it triggers P2P live broadcast through the video capability platform, and the video capability platform allocates P2P live broadcast service information.

[0054] The camera master obtains P2P SDP information (live broadcast preprocessing) and establishes a P2P connection. The two parties successfully establish a connection and complete the live broadcast.

[0055] However, this approach has the following problems:

[0056] (1) Since the camera passively triggers P2P live broadcast, after the camera goes online through the platform, it needs to wait for the client to detect that the camera is online before triggering P2P live broadcast. The P2P process cannot be executed immediately, resulting in a time-consuming process.

[0057] (2) The camera master needs to connect to the video capability platform before it can distribute P2P live broadcast service information. In other words, in practice, the camera master is dependent on the video capability platform. This increases the overall time consumption and leads to a poor user experience.

[0058] Therefore, one of the core invention points of the embodiment of the present invention is: in order to solve the problem that the current low-power camera live streaming takes too long, a method and mechanism for optimizing the live streaming time consumption for low-power cameras is proposed. During the camera sleep period, the low-power WiFi module maintains a simple TCP connection with the video capability platform, so that even if the camera is in a low-power state, it can quickly respond to the remote wake-up command. When triggering remote wake-up, the client does not need to wait for the camera master to be fully started or connected to the video platform, but directly sends P2P live service information to the low-power WiFi module, thereby reducing the time consumed by data interaction. While the camera master is started, the low-power WiFi module obtains P2P SDP information (live preprocessing) in parallel, thereby reducing the time waiting to obtain information after startup. After the camera master is started, the P2P live service information and P2P SDP information can be directly obtained through the serial port without having to establish a connection with the video capability platform again, further reducing the time consumption.

[0059] By adopting the technical solution of the present invention, on the one hand, the simple TCP connection between the original low-power WiFi module and the video capability platform can be reasonably utilized, and the characteristic of the original video capability platform to distribute P2P live service information to the target camera in real time can be retained, so that the P2P service load of each service node is balanced. On the other hand, by optimizing the wake-up process, obtaining the P2P SDP information process, and the P2P connection live streaming process, and using the low-power WiFi module to perform live streaming preprocessing in parallel, the overall time consumed from remote wake-up to live streaming can be shortened, without waiting for the camera master control to be connected online with the video capability center, thus improving the user experience.

[0060] Reference Figure 1 , showing a structural schematic diagram of a time-consuming optimization system for live streaming of a low-power camera provided in an embodiment of the present invention.

[0061] Combination Figure 1 The time consumption optimization system 100 can mainly include three modules: a client 101, a video capability platform 102, and a camera 103. Among them, the camera 103 can mainly include a camera main control 1032, and a low-power WiFi module 1031 connected to the camera main control 1032 in a serial port manner. During the dormancy period of the camera 103, the low-power WiFi module 1031 of the camera 103 maintains a simple TCP connection with the video capability platform 102.

[0062] In actual applications, the user can remotely wake up the camera 103 through the client 101. Specifically, the video capability platform 102 sends a remote wake-up command to carry the P2P live broadcast service information to the low-power WiFi module 1031. The low-power WiFi module 1031 starts the camera master 1032 based on the remote wake-up command, and obtains the P2P SDP information (including local IP information and external network IP information) at the same time. After the camera master 1032 is started, the P2P live broadcast service information and P2P SDP information are obtained from the low-power WiFi module 1031 through the serial port to trigger the P2P connection live broadcast streaming, and the client 101 normally outputs the stream.

[0063] Therefore, based on the original low-power camera 103, new support is added to optimize the live broadcast time-consuming mechanism process, shortening the overall time from the user remotely waking up the low-power camera 103 to live broadcast streaming, thereby improving the user experience.

[0064] In combination with the above embodiments, refer to Figure 2 , shows a flowchart of the steps of a method for optimizing the time consumption of live streaming of a low-power camera provided by an embodiment of the present invention. The method is applied to the camera side and may specifically include the following steps:

[0065] Step 201, receiving a remote wake-up instruction and P2P live broadcast service information sent by a client via a video capability platform;

[0066] Combined with the previous discussion, we can know that during the camera sleep period (when the camera is in the sleep stage), the low-power WiFi module maintains a simple TCP connection with the video capability platform. Therefore, on the client side, there is no need to detect the online status of the camera master connection to the video capability platform, and wake-up and distribution of P2P live service information can be triggered immediately. Then on the camera side, it can directly receive the remote wake-up command and P2P live service information sent by the client through the video capability platform.

[0067] Step 202, while triggering the camera master control to start according to the remote wake-up instruction, obtaining P2P connection preparation information;

[0068] When the low-power WiFi module receives the remote wake-up command and P2P live broadcast service information, it triggers the camera master control to start. At the same time, during the camera master control startup phase, the low-power WiFi module synchronously obtains P2P SDP information (live broadcast preprocessing).

[0069] In a specific implementation, while triggering the startup of the camera master control according to a remote wake-up instruction, the P2P connection preparation information is obtained. This can be: triggering the startup of the camera master control according to the remote wake-up instruction through a low-power WiFi module; in the startup phase of the camera master control, obtaining the P2P connection preparation information through a low-power WiFi module to achieve live broadcast preprocessing; wherein the P2P connection preparation information is the information needed before P2P connection is established, including local IP information and external network IP information.

[0070] Step 203: Based on the P2P connection preparation information and the P2P live broadcast service information, a P2P connection is established with the client to complete live broadcast streaming.

[0071] After the camera master is started, it can actively obtain P2P information (i.e. P2P live service information and P2P SDP information) from the WiFi module through the serial port. Based on the obtained P2P information, the camera master can immediately establish a P2P connection with the client without connecting to the video capability platform. When the connection is successfully established, the live streaming is completed.

[0072] In a specific implementation, a P2P connection is established with the client based on the P2P connection preparation information and the P2P live broadcast service information. This can be done as follows: after the camera master controller is started, the P2P connection preparation information and the P2P live broadcast service information are obtained from the low-power WiFi module through the camera master controller; the camera master controller triggers a client response based on the P2P connection preparation information and the P2P live broadcast service information, and establishes a P2P connection with the client.

[0073] In an embodiment of the present invention, a time-consuming optimization method for live streaming of a low-power camera is provided based on the camera side. For the live streaming process of a low-power camera, firstly, the remote wake-up command and P2P live streaming service information sent by the client through the video capability platform are received; while the camera master control is triggered to start according to the remote wake-up command, the P2P connection preparation information is obtained; then, based on the P2P connection preparation information and the P2P live streaming service information, a P2P connection is established with the client, thereby quickly completing the live streaming, shortening the overall time consumed from user remote wake-up to live streaming, and improving the user experience.

[0074] In combination with the above embodiments, refer to Figure 3 , shows a flowchart of the steps of another method for optimizing the time consumption of live streaming of a low-power camera provided by an embodiment of the present invention. The method is applied to a client side, and the client corresponds to a graphical user interface. Specifically, the following steps may be included:

[0075] Step 301, in response to a user's remote live streaming triggering operation on the graphical user interface, generating a remote wake-up instruction and P2P live streaming service information;

[0076] When a user needs to use a low-power camera, such as waking up and using a low-power doorbell device to view the current surroundings of the doorbell device, the user can trigger remote live streaming through the client's graphical user interface (such as a control application interface pre-installed on a mobile phone or tablet for remote control of a low-power camera), and generate a remote wake-up instruction and P2P live streaming service information at the same time. Alternatively, a remote wake-up instruction is generated, and the remote wake-up instruction contains P2P live streaming service information.

[0077] Step 302, the remote wake-up instruction and the P2P live broadcast service information are sent to the camera through the video capability platform, so that the camera can obtain the P2P connection preparation information while triggering the start of the camera master control according to the remote wake-up instruction, and establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

[0078] Combined with the previous processing flow on the camera side, on the client side, the process of establishing a P2P connection between the client and the camera can be: after receiving the client response triggered by the camera master based on the P2P connection preparation information and the P2P live broadcast service information, a P2P connection is established with the camera (actually with the camera master).

[0079] In an embodiment of the present invention, a time-consuming optimization method for live streaming of a low-power camera is provided based on the client side. For the live streaming process of a low-power camera, first, the client generates a remote wake-up instruction and P2P live streaming service information in response to the user's remote live streaming trigger operation on the graphical user interface; then, the remote wake-up instruction and the P2P live streaming service information are directly sent to the camera through the video capability platform, so that the camera can obtain the P2P connection preparation information while starting the camera master control according to the remote wake-up instruction trigger, and then establish a P2P connection with the client based on the P2P connection preparation information and the P2P live streaming service information, so as to quickly complete the live streaming, shorten the overall time from user remote wake-up to live streaming, and improve the user experience.

[0080] For better explanation, refer to Figure 4 , showing an overall flow chart of a method for optimizing the time consumption of live streaming with a low-power camera provided by an embodiment of the present invention. It should be pointed out that this embodiment only briefly describes the general process of optimizing the time consumption of live streaming with a low-power camera. The specific implementation process of each step can be understood by referring to the relevant content in the aforementioned embodiment. It will not be described here. It can be understood that the present invention does not limit this.

[0081] The low-power camera is in low-power mode, and the low-power WiFi module maintains a simple TCP connection with the video capability platform.

[0082] When a user triggers remote live streaming through the client, the client first detects the connection status between the camera's low-power WiFi module and the video capability platform.

[0083] If the low-power WiFi module is not connected to the video capability platform, it means that it is in an abnormal state and the client cannot initiate a live broadcast.

[0084] If the low-power WiFi module is connected to the video capability platform, the following low-power live streaming process will be entered:

[0085] The client sends a remote wake-up command and allocates P2P live broadcast service information through the video capability platform, waiting for the response from the camera master control.

[0086] After receiving the remote wake-up command, the low-power WiFi module triggers the start-up of the camera master control and simultaneously performs live broadcast preprocessing of obtaining P2PSDP information.

[0087] When the camera main control is started, it first obtains P2P information (i.e., P2P live service information and P2P SDP information) from the low-power WiFi module through the serial port, immediately triggers the client to respond and establish a P2P connection.

[0088] When the client receives the response from the camera master, it will simultaneously establish a P2P connection, stream audio and video, and complete the live streaming process.

[0089] Reference Figure 5 , shows a structural block diagram of a time-consuming optimization device for live streaming of a low-power camera provided by an embodiment of the present invention, the device is applied to a camera, the camera includes a camera master control, and the device may specifically include:

[0090] The information receiving unit 501 is used to receive the remote wake-up instruction and P2P live broadcast service information sent by the client through the video capability platform;

[0091] The information processing unit 502 is used to obtain P2P connection preparation information while triggering the camera master control to start according to the remote wake-up instruction;

[0092] The P2P connection establishing unit 503 is used to establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

[0093] In an optional embodiment, the camera further includes a low-power WiFi module connected to the camera master via a serial port, and the information processing unit 502 includes:

[0094] A camera master control startup trigger unit, used to trigger startup of the camera master control through the low-power WiFi module according to the remote wake-up instruction;

[0095] The P2P connection preparation information acquisition unit is used to obtain P2P connection preparation information through the low-power WiFi module during the startup phase of the camera master control to achieve live broadcast preprocessing; the P2P connection preparation information is the information needed before P2P connection is established, including local IP information and external network IP information.

[0096] In an optional embodiment, the P2P connection establishing unit 503 includes:

[0097] A P2P information acquisition unit, configured to acquire the P2P connection preparation information and the P2P live broadcast service information from the low-power WiFi module through the camera master control after the camera master control is started;

[0098] The P2P connection establishment subunit is used to trigger a client response based on the P2P connection preparation information and the P2P live broadcast service information through the camera master control, and establish a P2P connection with the client.

[0099] In an optional embodiment, the device further includes:

[0100] The dormant TCP connection unit is used to enable the low-power WiFi module to maintain a simple TCP connection with the video capability platform when the camera is in a dormant stage.

[0101] Reference Figure 6 , shows a structural block diagram of another low-power camera live streaming time optimization device provided by an embodiment of the present invention, the device is applied to a client, the client corresponds to a graphical user interface, and the device may specifically include:

[0102] The information generating unit 601 is used to generate a remote wake-up instruction and P2P live broadcast service information in response to a remote live broadcast stream pulling trigger operation of the user on the graphical user interface;

[0103] The information sending unit 602 is used to send the remote wake-up instruction and the P2P live broadcast service information to the camera through the video capability platform, so that the camera can obtain the P2P connection preparation information while triggering the start of the camera master control according to the remote wake-up instruction, and establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

[0104] In an optional embodiment, the device further includes:

[0105] The client P2P connection establishing unit is used to establish a P2P connection with the camera after receiving a client response triggered by the camera master based on the P2P connection preparation information and the P2P live broadcast service information.

[0106] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the aforementioned method embodiment.

[0107] An embodiment of the present invention further provides an electronic device, the device comprising a processor and a memory:

[0108] The memory is used to store the program code and transmit the program code to the processor;

[0109] The processor is used to execute the time-consuming optimization method for live streaming of a low-power camera according to any embodiment of the present invention according to the instructions in the program code.

[0110] An embodiment of the present invention also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the time-consuming optimization method for live streaming of a low-power camera according to any embodiment of the present invention.

[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0112] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.

[0114] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0115] If 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, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0116] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A time-consuming optimization method for live streaming of low-power camera, characterized in that: Applied to a camera, the camera includes a camera master control, and the method includes: Receive remote wake-up instructions and P2P live broadcast service information sent by the client through the video capability platform; While triggering and starting the camera master control according to the remote wake-up instruction, obtaining P2P connection preparation information; Based on the P2P connection preparation information and the P2P live broadcast service information, a P2P connection is established with the client to complete the live broadcast streaming.

2. The time-consuming optimization method for live streaming of a low-power camera according to claim 1 is characterized in that: The camera further includes a low-power WiFi module connected to the camera main control via a serial port, and while triggering and starting the camera main control according to the remote wake-up instruction, obtaining P2P connection preparation information includes: Triggering and starting the camera master control through the low-power WiFi module according to the remote wake-up instruction; During the startup phase of the camera master control, the P2P connection preparation information is obtained through the low-power WiFi module to implement live broadcast preprocessing; the P2P connection preparation information is information required before P2P connection is established, including local IP information and external network IP information.

3. The time-consuming optimization method for live streaming of a low-power camera according to claim 2 is characterized in that: The establishing a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information includes: When the camera master control is started, the camera master control obtains the P2P connection preparation information and the P2P live broadcast service information from the low-power WiFi module; The camera master triggers a client response based on the P2P connection preparation information and the P2P live broadcast service information, and establishes a P2P connection with the client.

4. The time-consuming optimization method for live streaming of a low-power camera according to any one of claims 1 to 3 is characterized in that: Also includes: When the camera is in a dormant stage, the low-power WiFi module maintains a simple TCP connection with the video capability platform.

5. A time-consuming optimization method for live streaming of low-power camera, characterized in that: Applied to a client, the client corresponding to a graphical user interface, the method includes: In response to a remote live streaming trigger operation by a user on the graphical user interface, a remote wake-up instruction and P2P live streaming service information are generated; The remote wake-up instruction and the P2P live broadcast service information are sent to the camera through the video capability platform, so that the camera can obtain the P2P connection preparation information while triggering the start of the camera master control according to the remote wake-up instruction, and establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

6. The time-consuming optimization method for live streaming of a low-power camera according to claim 5 is characterized in that: The process of establishing a P2P connection between the client and the camera includes: After receiving the client response triggered by the camera master based on the P2P connection preparation information and the P2P live broadcast service information, a P2P connection is established with the camera.

7. A time-consuming optimization device for live streaming with a low-power camera, characterized in that: Applied to a camera, the camera includes a camera master control, and the device includes: An information receiving unit, used to receive a remote wake-up instruction and P2P live broadcast service information sent by a client via a video capability platform; An information processing unit, configured to obtain P2P connection preparation information while triggering the camera master control to start according to the remote wake-up instruction; The P2P connection establishing unit is used to establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

8. A time-consuming optimization device for live streaming of low-power camera, characterized in that: Applied to a client, the client corresponds to a graphical user interface, and the device includes: An information generating unit, configured to generate a remote wake-up instruction and P2P live broadcast service information in response to a remote live broadcast stream pulling trigger operation by a user on the graphical user interface; An information sending unit is used to send the remote wake-up instruction and the P2P live broadcast service information to the camera through the video capability platform, so that the camera can obtain the P2P connection preparation information while triggering the start of the camera master control according to the remote wake-up instruction, so as to establish a P2P connection with the client based on the P2P connection preparation information and the P2P live broadcast service information to complete the live broadcast streaming.

9. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the time-consuming optimization method for live streaming of a low-power camera according to the instructions in the program code as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the time-consuming optimization method for live streaming of a low-power camera as described in any one of claims 1-6.