CN114422758A - Equipment outflow method, system, network camera and communication system - Google Patents
Equipment outflow method, system, network camera and communication system Download PDFInfo
- Publication number
- CN114422758A CN114422758A CN202210094842.2A CN202210094842A CN114422758A CN 114422758 A CN114422758 A CN 114422758A CN 202210094842 A CN202210094842 A CN 202210094842A CN 114422758 A CN114422758 A CN 114422758A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- connection
- target
- outflow
- streaming media
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004891 communication Methods 0.000 title claims abstract description 12
- 230000005540 biological transmission Effects 0.000 claims description 25
- 230000007958 sleep Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 5
- 238000011084 recovery Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 3
- 230000005059 dormancy Effects 0.000 abstract description 2
- 230000004913 activation Effects 0.000 abstract 1
- 230000008569 process Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000035515 penetration Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006266 hibernation Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/30—Connection release
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
技术领域technical field
本发明涉及监控领域,特别是涉及一种设备出流方法、系统、网络摄像机及通信系统。The invention relates to the field of monitoring, in particular to a device outflow method, system, network camera and communication system.
背景技术Background technique
随着生活水平的提高,IPC(IP Camera,网络摄像机)开始逐渐走进普通家庭,用来看家、看孩子、看宠物等,用户可随时随地打开移动终端app(application,手机软件)与IPC设备建立连接,实现远程监控。With the improvement of living standards, IPC (IP Camera, network camera) has gradually entered ordinary families, and is used to watch the house, children, pets, etc. Users can open the mobile terminal app (application, mobile phone software) and IPC anytime and anywhere. The device establishes a connection to realize remote monitoring.
目前,IPC设备与移动终端app的连接广泛使用的是P2P(peer-to-peer,点对点)通信技术。P2P通信技术使用的是NAT穿透技术,通过一台部署在互联网的穿透控制服务器来协助IPC设备和移动终端app建立连接,其具体连接过程如下:At present, P2P (peer-to-peer, peer-to-peer) communication technology is widely used for the connection between the IPC device and the mobile terminal app. The P2P communication technology uses the NAT penetration technology. A penetration control server deployed on the Internet assists the IPC device and the mobile terminal app to establish a connection. The specific connection process is as follows:
1)移动终端app和IPC设备向服务器注册;2)移动终端app向服务器请求连接IPC;3)服务器告知IPC设备有移动终端app请求连接;4)IPC设备告知服务器允许连接;5)服务器告知移动终端app请求被允许,以及告知移动终端app IPC设备的相关参数;6)移动终端app与IPC设备直接建立连接。1) The mobile terminal app and the IPC device register with the server; 2) The mobile terminal app requests the server to connect to the IPC; 3) The server informs the IPC device that the mobile terminal app requests the connection; 4) The IPC device informs the server that the connection is allowed; 5) The server informs the mobile terminal The terminal app request is allowed, and informs the mobile terminal app of the relevant parameters of the IPC device; 6) The mobile terminal app establishes a connection directly with the IPC device.
在IPC设备与移动终端app连接后,IPC设备需要为其分配较大的内存空间作为缓冲区,用于存储待发送的流媒体数据,以减少设备出流时出现丢帧、画面抖动等问题。After the IPC device is connected to the mobile terminal app, the IPC device needs to allocate a large memory space for it as a buffer to store the streaming media data to be sent, so as to reduce frame loss and picture jitter when the device is streaming out.
但是,现有的IPC设备出流方案存在如下问题:However, the existing IPC equipment outflow solution has the following problems:
1)移动终端app上与IPC设备的连接过程一般是:加载IPC设备列表→点击目标IPC设备进入面板(说明移动终端app对目标IPC设备有出流请求)→与目标IPC设备建立P2P连接→目标IPC设备出流→退出面板(说明移动终端app对目标IPC设备有出流结束请求)→目标IPC设备停止出流→与目标IPC设备断开P2P连接。但是,由于P2P连接要经过多次网络交互,比较耗时,所以用户点击目标IPC设备进入面板后,需要等待一段时间才能看到视频数据,用户会感觉设备出流很慢,体验效果较差。1) The connection process with the IPC device on the mobile terminal app is generally: load the IPC device list → click the target IPC device to enter the panel (indicating that the mobile terminal app has an outflow request for the target IPC device) → establish a P2P connection with the target IPC device → target IPC device outflow→exit panel (indicating that the mobile terminal app has an outflow end request to the target IPC device)→the target IPC device stops outflow→disconnects the P2P connection with the target IPC device. However, since the P2P connection needs to go through multiple network interactions, which is time-consuming, after the user clicks the target IPC device to enter the panel, it takes a while to see the video data.
2)同一台IPC设备可能同时会与多个移动终端app建立连接,IPC设备对每一路P2P连接都需要分配相应的内存空间作为缓冲区,但是,IPC设备的内存空间有限,导致无法同时保留太多路P2P连接,影响设备性能。2) The same IPC device may establish connections with multiple mobile terminal apps at the same time. The IPC device needs to allocate corresponding memory space as a buffer for each P2P connection. However, the memory space of the IPC device is limited, so it is impossible to keep too much memory at the same time Multiple P2P connections affect device performance.
因此,如何提供一种解决上述技术问题的方案是本领域的技术人员目前需要解决的问题。Therefore, how to provide a solution to the above technical problem is a problem that those skilled in the art need to solve at present.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种设备出流方法、系统、网络摄像机及通信系统,减少了出流时间,加快了出流速度,用户体验效果较好;而且,当移动终端下发出流结束请求时,并不会真正断开网络摄像机与移动终端的连接,而是将连接恢复为休眠状态,以便下次快速连接;另外,网络摄像机可以同时保留较多路休眠连接,性能有所提升。The purpose of the present invention is to provide a device outflow method, system, network camera and communication system, which reduces outflow time, accelerates outflow speed, and has better user experience; , does not really disconnect the connection between the IP camera and the mobile terminal, but restores the connection to the dormant state for quick connection next time; in addition, the IP camera can keep more sleep connections at the same time, which improves the performance.
为解决上述技术问题,本发明提供了一种设备出流方法,应用于网络摄像机,包括:In order to solve the above technical problems, the present invention provides a device outflow method, which is applied to a network camera, including:
预先与有提前连接需求的移动终端建立连接,并控制与所述移动终端之间的连接链路进入休眠状态;Establish a connection in advance with a mobile terminal that has an early connection requirement, and control the connection link with the mobile terminal to enter a dormant state;
在接收到目标移动终端的出流请求时,将与所述目标移动终端之间的目标连接链路从休眠状态转为激活状态,并为所述目标连接链路分配用于存储待发送的第一流媒体数据的第一内存缓冲区,以将所述第一流媒体数据发送至所述目标移动终端;其中,所述目标移动终端为任一所述移动终端;When receiving the outflow request from the target mobile terminal, the target connection link with the target mobile terminal is changed from the dormant state to the active state, and the target connection link is allocated for storing the first to-be-sent connection link. a first memory buffer for streaming media data to send the first streaming media data to the target mobile terminal; wherein the target mobile terminal is any one of the mobile terminals;
在接收到所述目标移动终端的出流结束请求时,停止将所述第一流媒体数据发送至所述目标移动终端,并将所述目标连接链路从激活状态恢复为休眠状态,且释放所述第一内存缓冲区。When receiving the outflow end request from the target mobile terminal, stop sending the first streaming media data to the target mobile terminal, restore the target connection link from the active state to the dormant state, and release all Describe the first memory buffer.
可选地,预先与有提前连接需求的移动终端建立连接,包括:Optionally, establish a connection in advance with a mobile terminal that has an advance connection requirement, including:
在接收到第一移动终端发起的提前连接请求时,将所述第一移动终端确定为有提前连接需求的移动终端,并与所述第一移动终端建立连接;When receiving an advance connection request initiated by the first mobile terminal, determine the first mobile terminal as a mobile terminal with an advance connection requirement, and establish a connection with the first mobile terminal;
其中,所述提前连接请求为所述第一移动终端在视频监控app启动时发起的请求。Wherein, the advance connection request is a request initiated by the first mobile terminal when the video surveillance app is started.
可选地,在接收到第一移动终端发起的提前连接请求时,将所述第一移动终端确定为有提前连接需求的移动终端,包括:Optionally, when receiving an early connection request initiated by the first mobile terminal, determining the first mobile terminal as a mobile terminal with an early connection requirement, including:
在接收到第一移动终端基于缓存有多个网络摄像机的设备ID的链表发起的提前连接请求时,将所述第一移动终端确定为有提前连接需求的移动终端;When receiving an early connection request initiated by the first mobile terminal based on the linked list of device IDs of multiple network cameras, determining the first mobile terminal as a mobile terminal with an early connection requirement;
其中,所述链表基于最新被访问的网络摄像机的设备ID插入或移动到链表头部的规则动态调整,且所述第一移动终端向位于所述链表的前预设数量的设备ID对应的网络摄像机发起提前连接请求。Wherein, the linked list is dynamically adjusted based on the rule that the device ID of the newly accessed network camera is inserted or moved to the head of the linked list, and the first mobile terminal is located in the network corresponding to the first preset number of device IDs in the linked list. The camera initiates an early connection request.
可选地,所述设备出流方法还包括:Optionally, the device outflow method further includes:
将进入休眠状态的连接链路保存至预设连接池中;Save the connection link entering the dormant state to the preset connection pool;
在接收到第二移动终端的出流请求时,判断与所述第二移动终端之间的第二连接链路是否保存在所述连接池中;When receiving the outflow request from the second mobile terminal, determine whether the second connection link with the second mobile terminal is stored in the connection pool;
若是,则将所述第二连接链路从所述连接池中取出,并将所述第二移动终端作为所述目标移动终端执行将与所述目标移动终端之间的目标连接链路从休眠状态转为激活状态的步骤;If so, take out the second connection link from the connection pool, and use the second mobile terminal as the target mobile terminal to execute the target connection link with the target mobile terminal from dormant The steps to change the state to the active state;
若否,则与所述第二移动终端建立连接,并为所述第二连接链路分配用于存储待发送的第二流媒体数据的第二内存缓冲区,以将所述第二流媒体数据发送至所述第二移动终端,且在接收到所述第二移动终端的出流结束请求时,释放所述第二内存缓冲区,并控制所述第二连接链路进入休眠状态。If not, establish a connection with the second mobile terminal, and allocate a second memory buffer for storing the second streaming media data to be sent to the second connection link, so that the second streaming media The data is sent to the second mobile terminal, and when an outflow end request from the second mobile terminal is received, the second memory buffer is released, and the second connection link is controlled to enter a sleep state.
可选地,与任一移动终端建立的连接为P2P连接;Optionally, the connection established with any mobile terminal is a P2P connection;
所述设备出流方法还包括:The device outflow method further includes:
在与第三移动终端建立P2P连接时,同步借助服务器与所述第三移动终端建立TCP连接;When establishing a P2P connection with a third mobile terminal, synchronously establish a TCP connection with the third mobile terminal by means of a server;
判断是否成功与所述第三移动终端建立P2P连接;determining whether a P2P connection is successfully established with the third mobile terminal;
若是,则利用P2P连接向所述第三移动终端传输流媒体数据;If yes, then use the P2P connection to transmit streaming media data to the third mobile terminal;
若否,则利用TCP连接向所述第三移动终端传输流媒体数据。If not, use the TCP connection to transmit the streaming media data to the third mobile terminal.
可选地,所述设备出流方法还包括:Optionally, the device outflow method further includes:
预先为不同移动终端一一设置表征移动终端的当前传输通道的标志位;Setting the flag bits representing the current transmission channel of the mobile terminal for different mobile terminals in advance;
在利用P2P连接向所述第三移动终端传输流媒体数据时,将所述第三移动终端对应的标志位置为第一值;When using the P2P connection to transmit streaming media data to the third mobile terminal, the flag position corresponding to the third mobile terminal is set as the first value;
在利用TCP连接向所述第三移动终端传输流媒体数据时,将所述第三移动终端对应的标志位置为第二值。When the streaming media data is transmitted to the third mobile terminal by using the TCP connection, the flag position corresponding to the third mobile terminal is set as the second value.
为解决上述技术问题,本发明还提供了一种设备出流系统,应用于网络摄像机,包括:In order to solve the above technical problems, the present invention also provides a device outflow system, which is applied to a network camera, including:
预连接模块,用于预先与有提前连接需求的移动终端建立连接,并控制与所述移动终端之间的连接链路进入休眠状态;A pre-connection module, used to establish a connection with a mobile terminal that has an early connection requirement in advance, and control the connection link with the mobile terminal to enter a dormant state;
出流模块,用于在接收到目标移动终端的出流请求时,将与所述目标移动终端之间的目标连接链路从休眠状态转为激活状态,并为所述目标连接链路分配用于存储待发送的第一流媒体数据的第一内存缓冲区,以将所述第一流媒体数据发送至所述目标移动终端;其中,所述目标移动终端为任一所述移动终端;The outflow module is used to change the target connection link with the target mobile terminal from the dormant state to the active state when receiving the outflow request of the target mobile terminal, and allocate the target connection link for the target connection link. in a first memory buffer for storing the first streaming media data to be sent, so as to send the first streaming media data to the target mobile terminal; wherein, the target mobile terminal is any one of the mobile terminals;
恢复模块,用于在接收到所述目标移动终端的出流结束请求时,停止将所述第一流媒体数据发送至所述目标移动终端,并将所述目标连接链路从激活状态恢复为休眠状态,且释放所述第一内存缓冲区。A recovery module, configured to stop sending the first streaming media data to the target mobile terminal when receiving an outflow end request from the target mobile terminal, and restore the target connection link from an active state to a dormant state state, and release the first memory buffer.
可选地,与任一移动终端建立的连接为P2P连接;Optionally, the connection established with any mobile terminal is a P2P connection;
所述设备出流系统还包括:The equipment outflow system also includes:
补偿连接模块,用于在与第三移动终端建立P2P连接时,同步借助服务器与所述第三移动终端建立TCP连接;a compensation connection module, configured to establish a TCP connection with the third mobile terminal synchronously with the help of a server when establishing a P2P connection with the third mobile terminal;
判断模块,用于判断是否成功与所述第三移动终端建立P2P连接;若是,则执行P2P传输模块;若否,则执行TCP传输模块;a judgment module for judging whether to successfully establish a P2P connection with the third mobile terminal; if so, execute a P2P transmission module; if not, execute a TCP transmission module;
P2P传输模块,用于利用P2P连接向所述第三移动终端传输流媒体数据;A P2P transmission module, configured to transmit streaming media data to the third mobile terminal by using a P2P connection;
TCP传输模块,用于利用TCP连接向所述第三移动终端传输流媒体数据。A TCP transmission module, configured to transmit streaming media data to the third mobile terminal by using a TCP connection.
为解决上述技术问题,本发明还提供了一种网络摄像机,包括:In order to solve the above technical problems, the present invention also provides a network camera, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于在执行所述计算机程序时实现上述任一种设备出流方法的步骤。The processor is configured to implement the steps of any one of the above-mentioned methods for outflow from a device when executing the computer program.
为解决上述技术问题,本发明还提供了一种通信系统,包括移动终端及上述网络摄像机。In order to solve the above technical problem, the present invention also provides a communication system, including a mobile terminal and the above-mentioned network camera.
本发明提供了一种设备出流方法,应用于网络摄像机。网络摄像机与移动终端的连接这一耗时步骤提前执行,只需将网络摄像机与移动终端之间连接链路的状态进行转化(休眠→激活)便可实现出流,耗时很短,从而减少了出流时间,加快了出流速度,用户体验效果较好。而且,当移动终端下发出流结束请求时,并不会真正断开网络摄像机与移动终端的连接,而是将连接恢复为休眠状态,以便下次快速连接。另外,网络摄像机与移动终端的连接从激活状态恢复为休眠状态时,网络摄像机会将占用较大内存的缓冲区释放,即休眠中的连接不会占用过多的内存,因此网络摄像机可以同时保留较多路休眠连接,性能有所提升。The present invention provides a device outflow method, which is applied to a network camera. The time-consuming step of connecting the IP camera to the mobile terminal is performed in advance, and only the state of the connection link between the IP camera and the mobile terminal needs to be converted (sleep → active) to realize the outflow, which takes a very short time, thereby reducing The outflow time is shortened, the outflow speed is accelerated, and the user experience effect is better. Moreover, when the mobile terminal sends out a stream end request, the connection between the network camera and the mobile terminal is not really disconnected, but the connection is restored to a sleep state for fast connection next time. In addition, when the connection between the IP camera and the mobile terminal is restored from the active state to the dormant state, the IP camera will release the buffer that occupies a large amount of memory, that is, the connection in the dormant state will not occupy too much memory, so the IP camera can keep it at the same time. There are more dormant connections, and the performance is improved.
本发明还提供了一种设备出流系统、网络摄像机及通信系统,与上述出流方法具有相同的有益效果。The present invention also provides a device outflow system, a network camera and a communication system, which have the same beneficial effects as the above outflow method.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the prior art and the accompanying drawings required in the embodiments. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例提供的一种设备出流方法的流程图;FIG. 1 is a flowchart of a device outflow method according to an embodiment of the present invention;
图2为本发明实施例提供的一种设备出流系统的结构示意图。FIG. 2 is a schematic structural diagram of an equipment outflow system according to an embodiment of the present invention.
具体实施方式Detailed ways
本发明的核心是提供一种设备出流方法、系统、网络摄像机及通信系统,减少了出流时间,加快了出流速度,用户体验效果较好;而且,当移动终端下发出流结束请求时,并不会真正断开网络摄像机与移动终端的连接,而是将连接恢复为休眠状态,以便下次快速连接;另外,网络摄像机可以同时保留较多路休眠连接,性能有所提升。The core of the present invention is to provide a device outflow method, system, network camera and communication system, which reduces outflow time, accelerates outflow speed, and has better user experience; , does not really disconnect the connection between the IP camera and the mobile terminal, but restores the connection to the dormant state for quick connection next time; in addition, the IP camera can keep more sleep connections at the same time, which improves the performance.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
请参照图1,图1为本发明实施例提供的一种设备出流方法的流程图。Please refer to FIG. 1 , which is a flowchart of a device outflow method according to an embodiment of the present invention.
该设备出流方法应用于网络摄像机,包括:The device outflow method is applied to network cameras, including:
步骤S1:预先与有提前连接需求的移动终端建立连接,并控制与移动终端之间的连接链路进入休眠状态。Step S1: Establish a connection in advance with a mobile terminal that has an early connection requirement, and control the connection link with the mobile terminal to enter a sleep state.
具体地,考虑到网络摄像机与移动终端连接较为耗时,所以本申请提前建立网络摄像机与移动终端的连接,以让用户对连接过程无感知。为此,本申请为网络摄像机与移动终端之间的连接链路定义了以下几种状态:未激活(网络摄像机与移动终端断开)、休眠、激活中(网络摄像机与移动终端之间的连接链路正在激活)、激活,状态之间可以互相切换。需要说明的是,网络摄像机与移动终端建立连接后,二者之间的连接链路在不使用时需处于休眠状态、在使用时需处于激活状态。Specifically, considering that the connection between the network camera and the mobile terminal is time-consuming, the present application establishes the connection between the network camera and the mobile terminal in advance, so that the user does not perceive the connection process. To this end, this application defines the following states for the connection link between the IP camera and the mobile terminal: inactive (the IP camera is disconnected from the mobile terminal), dormant, and active (the connection between the IP camera and the mobile terminal is in progress). The link is active), active, and the states can be switched between each other. It should be noted that, after the network camera and the mobile terminal are connected, the connection link between the two needs to be in a dormant state when not in use, and needs to be in an active state when in use.
基于此,网络摄像机预先与有提前连接需求的移动终端建立连接,并控制自身与预先连接的移动终端之间的连接链路进入休眠状态,等待后续使用。需要说明的是,网络摄像机为进入休眠状态的连接链路仅需保留维持连接所需要的基础内存资源。Based on this, the network camera establishes a connection in advance with the mobile terminal that needs to be connected in advance, and controls the connection link between itself and the pre-connected mobile terminal to enter a sleep state, waiting for subsequent use. It should be noted that the network camera only needs to reserve the basic memory resources required to maintain the connection for the connection link in the sleep state.
步骤S2:在接收到目标移动终端的出流请求时,将与目标移动终端之间的目标连接链路从休眠状态转为激活状态,并为目标连接链路分配用于存储待发送的第一流媒体数据的第一内存缓冲区,以将第一流媒体数据发送至目标移动终端。Step S2: when receiving the outflow request from the target mobile terminal, the target connection link with the target mobile terminal is changed from the dormant state to the active state, and the target connection link is allocated for storing the first flow to be sent. A first memory buffer for media data, so as to send the first streaming media data to the target mobile terminal.
需要说明的是,目标移动终端为网络摄像机预先连接的移动终端中任一移动终端。It should be noted that the target mobile terminal is any one of the mobile terminals pre-connected to the network camera.
具体地,网络摄像机在接收到目标移动终端的出流请求(如在目标移动终端上打开视频监控app加载出网络摄像机列表并点击某个网络摄像机进入面板时,目标移动终端会借助服务器向此网络摄像机发送出流请求)时,将自身与目标移动终端之间的目标连接链路从休眠状态转为激活状态,并为目标连接链路分配第一内存缓冲区(用于存储待发送的第一流媒体数据),然后将第一内存缓冲区内存储的第一流媒体数据发送至目标移动终端,以减少设备出流时出现丢帧、画面抖动等问题。Specifically, when the network camera receives an outflow request from the target mobile terminal (for example, when the video surveillance app is opened on the target mobile terminal to load the network camera list and click a network camera to enter the panel, the target mobile terminal will use the server to send this network When the camera sends an outgoing stream request), it changes the target connection link between itself and the target mobile terminal from the dormant state to the active state, and allocates a first memory buffer (for storing the first stream to be sent) to the target connection link media data), and then send the first streaming media data stored in the first memory buffer to the target mobile terminal, so as to reduce problems such as frame loss and picture jitter when the device streams out.
可见,网络摄像机与移动终端的连接这一耗时步骤提前执行,只需将网络摄像机与移动终端之间连接链路的状态进行转化(休眠→激活)便可实现出流,耗时很短,从而减少了出流时间,加快了出流速度。It can be seen that the time-consuming step of connecting the IP camera and the mobile terminal is performed in advance. Only the state of the connection link between the IP camera and the mobile terminal needs to be converted (sleep → active) to realize the outflow, which takes a very short time. Thus, the outflow time is reduced and the outflow speed is accelerated.
步骤S3:在接收到目标移动终端的出流结束请求时,停止将第一流媒体数据发送至目标移动终端,并将目标连接链路从激活状态恢复为休眠状态,且释放第一内存缓冲区。Step S3: upon receiving the outflow termination request from the target mobile terminal, stop sending the first streaming media data to the target mobile terminal, restore the target connection link from the active state to the dormant state, and release the first memory buffer.
具体地,网络摄像机在接收到目标移动终端的出流结束请求(如在目标移动终端上退出面板时,目标移动终端会借助服务器向网络摄像机发送出流结束请求)时,停止将第一流媒体数据发送至目标移动终端,并将自身与目标移动终端之间的目标连接链路从激活状态恢复为休眠状态,同时释放为目标连接链路分配的第一内存缓冲区,仅为休眠中的目标连接链路保留维持连接所需要的基础内存资源,使得休眠中的目标连接链路不会占用过多的内存。若再次接收到目标移动终端的出流请求时,为目标连接链路重新分配内存缓冲区即可。Specifically, when the network camera receives an outflow end request from the target mobile terminal (for example, when exiting the panel on the target mobile terminal, the target mobile terminal will send an outflow end request to the network camera with the help of the server), it stops the first streaming media data. Send to the target mobile terminal, and restore the target connection link between itself and the target mobile terminal from the active state to the dormant state, and at the same time release the first memory buffer allocated for the target connection link, which is only for the target connection in dormancy. The link reserves the basic memory resources required to maintain the connection, so that the target connection link in hibernation does not occupy too much memory. If an outflow request from the target mobile terminal is received again, the memory buffer may be re-allocated for the target connection link.
综上,网络摄像机与移动终端的连接这一耗时步骤提前执行,只需将网络摄像机与移动终端之间连接链路的状态进行转化(休眠→激活)便可实现出流,耗时很短,从而减少了出流时间,加快了出流速度,用户体验效果较好。而且,当移动终端下发出流结束请求时,并不会真正断开网络摄像机与移动终端的连接,而是将连接恢复为休眠状态,以便下次快速连接。另外,网络摄像机与移动终端的连接从激活状态恢复为休眠状态时,网络摄像机会将占用较大内存的缓冲区释放,即休眠中的连接不会占用过多的内存,因此网络摄像机可以同时保留较多路休眠连接,性能有所提升。To sum up, the time-consuming step of connecting the IP camera and the mobile terminal is performed in advance, and only the state of the connection link between the IP camera and the mobile terminal needs to be converted (sleep → active) to realize the outflow, which takes a very short time. , thereby reducing the outflow time, speeding up the outflow speed, and the user experience effect is better. Moreover, when the mobile terminal sends out a stream end request, the connection between the network camera and the mobile terminal is not really disconnected, but the connection is restored to a sleep state for fast connection next time. In addition, when the connection between the IP camera and the mobile terminal is restored from the active state to the dormant state, the IP camera will release the buffer that occupies a large amount of memory, that is, the connection in the dormant state will not occupy too much memory, so the IP camera can keep it at the same time. There are more dormant connections, and the performance is improved.
在上述实施例的基础上:On the basis of the above-mentioned embodiment:
作为一种可选的实施例,预先与有提前连接需求的移动终端建立连接,包括:As an optional embodiment, establishing a connection with a mobile terminal that has an early connection requirement in advance includes:
在接收到第一移动终端发起的提前连接请求时,将第一移动终端确定为有提前连接需求的移动终端,并与第一移动终端建立连接;When receiving an early connection request initiated by the first mobile terminal, determine the first mobile terminal as a mobile terminal with an early connection requirement, and establish a connection with the first mobile terminal;
其中,提前连接请求为第一移动终端在视频监控app启动时发起的请求。The advance connection request is a request initiated by the first mobile terminal when the video surveillance app is started.
具体地,以第一移动终端为例,说明网络摄像机与有提前连接需求的移动终端建立连接的原理:第一移动终端在自身的视频监控app启动时,借助服务器主动向想要连接的网络摄像机发起提前连接请求。网络摄像机在接收到第一移动终端发起的提前连接请求时,将第一移动终端确定为有提前连接需求的移动终端,并与第一移动终端提前建立连接,即此网络摄像机在第一移动终端的视频监控app启动过程中便与第一移动终端建立连接,从而避免后续第一移动终端对此网络摄像机有出流请求时再去建立此网络摄像机与第一移动终端的连接,以减少出流时间。Specifically, taking the first mobile terminal as an example, the principle of establishing a connection between a network camera and a mobile terminal that needs to be connected in advance is described: when the first mobile terminal starts its own video surveillance app, the first mobile terminal uses the server to actively connect to the network camera that it wants to connect to. Initiate an early connection request. When the network camera receives the advance connection request initiated by the first mobile terminal, it determines the first mobile terminal as a mobile terminal with advance connection requirements, and establishes a connection with the first mobile terminal in advance, that is, the network camera is connected to the first mobile terminal in advance. The video surveillance app establishes a connection with the first mobile terminal during the startup process, so as to avoid establishing a connection between the network camera and the first mobile terminal when the first mobile terminal has an outflow request from the network camera in the future, so as to reduce outflow time.
基于此,移动终端的视频监控app上的网络摄像机连接过程为:加载设备列表→设备预连接并进入休眠状态→点击目标网络摄像机进入面板(说明移动终端app对目标网络摄像机有出流请求)→目标网络摄像机对应的连接链路从休眠状态转化为激活状态→目标网络摄像机出流→退出面板(说明移动终端app对目标网络摄像机有出流结束请求)→目标网络摄像机停止出流→目标网络摄像机对应的连接链路从激活状态恢复为休眠状态。Based on this, the connection process of the IP camera on the video surveillance app of the mobile terminal is: load the device list → pre-connect the device and enter the sleep state → click the target IP camera to enter the panel (indicating that the mobile terminal app has an outflow request to the target IP camera) → The connection link corresponding to the target IP camera changes from the dormant state to the active state → the target IP camera outflows → exits the panel (indicating that the mobile terminal app has an outflow termination request for the target IP camera) → the target IP camera stops outgoing → the target IP camera The corresponding connection link is restored from the active state to the dormant state.
作为一种可选的实施例,在接收到第一移动终端发起的提前连接请求时,将第一移动终端确定为有提前连接需求的移动终端,包括:As an optional embodiment, when an early connection request initiated by the first mobile terminal is received, determining the first mobile terminal as a mobile terminal with an early connection requirement includes:
在接收到第一移动终端基于缓存有多个网络摄像机的设备ID的链表发起的提前连接请求时,将第一移动终端确定为有提前连接需求的移动终端;When receiving an early connection request initiated by the first mobile terminal based on the linked list buffered with the device IDs of multiple network cameras, determining the first mobile terminal as a mobile terminal with an early connection requirement;
其中,链表基于最新被访问的网络摄像机的设备ID插入或移动到链表头部的规则动态调整,且第一移动终端向位于链表的前预设数量的设备ID对应的网络摄像机发起提前连接请求。The linked list is dynamically adjusted based on the rule that the device ID of the newly accessed IP camera is inserted or moved to the head of the linked list, and the first mobile terminal initiates an advance connection request to the IP cameras corresponding to the first preset number of device IDs in the linked list.
具体地,以第一移动终端为例,说明网络摄像机与有提前连接需求的移动终端建立连接的具体原理:Specifically, taking the first mobile terminal as an example, the specific principle of establishing a connection between a network camera and a mobile terminal that has an advance connection requirement is described:
第一移动终端使用链表记录自身可连接使用的若干个网络摄像机的设备ID(Identity document,唯一编码),且链表可动态调整。链表的设置规则具体是:1)链表提前记录有第一移动终端可连接使用的若干个网络摄像机的设备ID;2)若第一移动终端最新访问的网络摄像机的设备ID未记录在链表中,则将第一移动终端最新访问的网络摄像机的设备ID插入到链表头部;3)若第一移动终端最新访问的网络摄像机的设备ID记录在链表中,则将第一移动终端最新访问的网络摄像机的设备ID移动到链表头部;4)当链表满时,将链表尾部的设备ID丢弃,以使链表记录用户最近最常使用的若干个网络摄像机的设备ID。The first mobile terminal uses the linked list to record the device IDs (Identity documents, unique codes) of several network cameras that it can connect to and use, and the linked list can be dynamically adjusted. The setting rules of the linked list are specifically: 1) the linked list records in advance the device IDs of several network cameras that the first mobile terminal can connect and use; 2) if the device IDs of the network cameras accessed by the first mobile terminal are not recorded in the linked list, Then insert the device ID of the network camera newly accessed by the first mobile terminal into the head of the linked list; 3) if the device ID of the network camera accessed by the first mobile terminal latest is recorded in the linked list, then the network accessed by the first mobile terminal latest The device ID of the camera is moved to the head of the linked list; 4) When the linked list is full, the device ID at the tail of the linked list is discarded, so that the linked list records the device IDs of several network cameras most frequently used by the user recently.
基于此,第一移动终端基于缓存有多个网络摄像机的设备ID的链表发起提前连接请求,具体可以是:第一移动终端在自身的视频监控app启动时,借助服务器主动向位于链表的前预设数量的设备ID对应的网络摄像机发起提前连接请求,即主动向最近常用的网络摄像机发起提前连接请求。比如,默认位于链表的前5个设备ID对应的网络摄像机是常用设备,第一移动终端在自身的视频监控app启动时,主动向位于链表的前5个的设备ID对应的网络摄像机发起提前连接请求,若用户在后续使用第一移动终端连接并访问位于链表的第6个设备ID对应的网络摄像机,则将位于链表的第6个设备ID移动到链表头部,等到下一次第一移动终端的视频监控app启动时,原本位于链表的第6个设备ID对应的网络摄像机就作为常用设备了。Based on this, the first mobile terminal initiates an advance connection request based on the linked list buffered with the device IDs of multiple network cameras. Specifically, the first mobile terminal may, when its own video surveillance app is started, use the server to proactively send an advance request to the linked list. The IP camera corresponding to the set number of device IDs initiates an advance connection request, that is, actively initiates an advance connection request to the most recently used IP camera. For example, the network cameras corresponding to the first 5 device IDs in the linked list by default are commonly used devices. When the first mobile terminal starts its own video surveillance app, it actively initiates an advance connection to the network cameras corresponding to the first 5 device IDs in the linked list. Request, if the user uses the first mobile terminal to connect and access the IP camera corresponding to the 6th device ID in the linked list later, move the 6th device ID in the linked list to the head of the linked list, and wait until the next time the first mobile terminal When the video surveillance app starts, the IP camera corresponding to the 6th device ID originally located in the linked list is used as a common device.
网络摄像机在接收到第一移动终端发起的提前连接请求时,将第一移动终端确定为有提前连接需求的移动终端,并与第一移动终端提前建立连接,以减少后续出流时间。When receiving the early connection request initiated by the first mobile terminal, the network camera determines the first mobile terminal as a mobile terminal with early connection requirement, and establishes a connection with the first mobile terminal in advance to reduce the subsequent outflow time.
作为一种可选的实施例,设备出流方法还包括:As an optional embodiment, the device outflow method further includes:
将进入休眠状态的连接链路保存至预设连接池中;Save the connection link entering the dormant state to the preset connection pool;
在接收到第二移动终端的出流请求时,判断与第二移动终端之间的第二连接链路是否保存在连接池中;When receiving the outflow request from the second mobile terminal, determine whether the second connection link with the second mobile terminal is stored in the connection pool;
若是,则将第二连接链路从连接池中取出,并将第二移动终端作为目标移动终端执行将与目标移动终端之间的目标连接链路从休眠状态转为激活状态的步骤;If so, the second connection link is taken out from the connection pool, and the second mobile terminal is used as the target mobile terminal to perform the step of changing the target connection link with the target mobile terminal from the dormant state to the active state;
若否,则与第二移动终端建立连接,并为第二连接链路分配用于存储待发送的第二流媒体数据的第二内存缓冲区,以将第二流媒体数据发送至第二移动终端,且在接收到第二移动终端的出流结束请求时,释放第二内存缓冲区,并控制第二连接链路进入休眠状态。If not, establish a connection with the second mobile terminal, and allocate a second memory buffer for storing the second streaming media data to be sent to the second connection link, so as to send the second streaming media data to the second mobile terminal The terminal, and when receiving the outflow end request from the second mobile terminal, releases the second memory buffer, and controls the second connection link to enter the sleep state.
进一步地,考虑到可能当前未与网络摄像机连接的移动终端对网络摄像机有出流需求,所以网络摄像机还预先设置了一个连接池,用于保存进入休眠状态的连接链路,其使用原理为(以第二移动终端为例):网络摄像机在接收到第二移动终端的出流请求时,首先判断自身与第二移动终端之间的第二连接链路是否保存在连接池中。若保存在连接池中,说明第二连接链路属于上述已与网络摄像机连接的目标移动终端,则将第二连接链路从连接池中取出(即将第二连接链路从连接池中删除),并将第二移动终端作为目标移动终端执行将与目标移动终端之间的目标连接链路从休眠状态转为激活状态的步骤(即实现:网络摄像机将自身与第二移动终端之间的第二连接链路从休眠状态转为激活状态,并为第二连接链路分配用于存储待发送的第二流媒体数据的第二内存缓冲区,以将第二流媒体数据发送至第二移动终端;在接收到第二移动终端的出流结束请求时,停止将第二流媒体数据发送至第二移动终端,并将第二连接链路从激活状态恢复为休眠状态,同时释放第二内存缓冲区,然后将进入休眠状态的第二连接链路保存至连接池中)。若未保存在连接池中,则与第二移动终端建立连接,并为第二连接链路分配用于存储待发送的第二流媒体数据的第二内存缓冲区,以将第二流媒体数据发送至第二移动终端,且在接收到第二移动终端的出流结束请求时,释放第二内存缓冲区,并控制第二连接链路进入休眠状态,然后将进入休眠状态的第二连接链路保存至连接池中。Further, considering that the mobile terminal that is not currently connected to the network camera may have outflow requirements for the network camera, the network camera also presets a connection pool for saving the connection link entering the dormant state. The principle of use is ( Taking the second mobile terminal as an example): when the network camera receives the outflow request from the second mobile terminal, it first determines whether the second connection link between itself and the second mobile terminal is stored in the connection pool. If it is stored in the connection pool, it means that the second connection link belongs to the target mobile terminal that has been connected to the IP camera. , and use the second mobile terminal as the target mobile terminal to perform the step of changing the target connection link with the target mobile terminal from the dormant state to the active state (that is, to realize: the network camera converts the first link between itself and the second mobile terminal to the active state). The second connection link is changed from the sleep state to the active state, and the second connection link is allocated a second memory buffer for storing the second streaming media data to be sent, so as to send the second streaming media data to the second mobile terminal; when receiving the outflow end request from the second mobile terminal, stop sending the second streaming media data to the second mobile terminal, restore the second connection link from the active state to the dormant state, and release the second memory at the same time buffer, and then save the second connection link that enters the dormant state to the connection pool). If not stored in the connection pool, establish a connection with the second mobile terminal, and allocate a second memory buffer for storing the second streaming media data to be sent to the second connection link, so as to store the second streaming media data It is sent to the second mobile terminal, and when the outflow end request from the second mobile terminal is received, the second memory buffer is released, and the second connection link is controlled to enter the dormant state, and then the second connection chain that enters the dormant state is The way is stored in the connection pool.
可见,网络摄像机侧维护了一个连接池,将暂不使用的连接进入休眠状态保存在连接池中;在真正需要使用时从连接池中取出,并将连接激活即可进行数据传输。It can be seen that a connection pool is maintained on the network camera side, and the connection that is not used temporarily is put into a dormant state and stored in the connection pool; when it is really needed, it is taken out from the connection pool, and the connection can be activated for data transmission.
作为一种可选的实施例,与任一移动终端建立的连接为P2P连接;As an optional embodiment, the connection established with any mobile terminal is a P2P connection;
设备出流方法还包括:Device outflow methods also include:
在与第三移动终端建立P2P连接时,同步借助服务器与第三移动终端建立TCP连接;When establishing a P2P connection with the third mobile terminal, synchronously establish a TCP connection with the third mobile terminal by means of the server;
判断是否成功与第三移动终端建立P2P连接;Determine whether the P2P connection is successfully established with the third mobile terminal;
若是,则利用P2P连接向第三移动终端传输流媒体数据;If yes, then use the P2P connection to transmit the streaming media data to the third mobile terminal;
若否,则利用TCP连接向第三移动终端传输流媒体数据。If not, use the TCP connection to transmit the streaming media data to the third mobile terminal.
进一步地,网络摄像机与任一移动终端建立的连接都是P2P连接,考虑到P2P连接必须经过多次网络交互,可能存在连接失败的情况,所以网络摄像机在与第三移动终端建立P2P连接时,同步借助服务器与第三移动终端建立TCP(Transmission ControlProtocol,传输控制协议)连接,网络摄像机在TCP连接下,可通过服务器向第三移动终端转发流媒体数据,稳定性较高。基于此,网络摄像机在与第三移动终端建立P2P连接后,还判断自身是否成功与第三移动终端建立P2P连接;若成功与第三移动终端建立P2P连接,则利用P2P连接向第三移动终端传输流媒体数据;若未成功与第三移动终端建立P2P连接,则利用TCP连接向第三移动终端传输流媒体数据,以提高网络摄像机与第三移动终端的连接成功率。Further, the connection established between the IP camera and any mobile terminal is a P2P connection. Considering that the P2P connection must go through multiple network interactions, the connection may fail. Therefore, when the IP camera establishes a P2P connection with the third mobile terminal, A TCP (Transmission Control Protocol) connection is established with the server and the third mobile terminal synchronously. Under the TCP connection, the network camera can forward streaming media data to the third mobile terminal through the server, with high stability. Based on this, after establishing a P2P connection with the third mobile terminal, the IP camera also determines whether it has successfully established a P2P connection with the third mobile terminal; Transmit streaming media data; if the P2P connection is not successfully established with the third mobile terminal, use the TCP connection to transmit streaming media data to the third mobile terminal to improve the connection success rate between the IP camera and the third mobile terminal.
作为一种可选的实施例,设备出流方法还包括:As an optional embodiment, the device outflow method further includes:
预先为不同移动终端一一设置表征移动终端的当前传输通道的标志位;Setting the flag bits representing the current transmission channel of the mobile terminal for different mobile terminals in advance;
在利用P2P连接向第三移动终端传输流媒体数据时,将第三移动终端对应的标志位置为第一值;When using the P2P connection to transmit the streaming media data to the third mobile terminal, the flag position corresponding to the third mobile terminal is set as the first value;
在利用TCP连接向第三移动终端传输流媒体数据时,将第三移动终端对应的标志位置为第二值。When the streaming media data is transmitted to the third mobile terminal by using the TCP connection, the flag position corresponding to the third mobile terminal is set as the second value.
进一步地,网络摄像机还提前为不同移动终端一一设置表征移动终端的当前传输通道的标志位,具体是:移动终端对应的标志位置为第一值(如1)表示移动终端的当前传输通道为P2P传输通道;移动终端对应的标志位置为第二值(如0)表示移动终端的当前传输通道为TCP传输通道,则网络摄像机在利用P2P连接向第三移动终端传输流媒体数据时,将第三移动终端对应的标志位置为第一值;在利用TCP连接向第三移动终端传输流媒体数据时,将第三移动终端对应的标志位置为第二值,以使用户可根据各移动终端对应的标志位得到网络摄像机与各移动终端的当前传输通道是P2P传输通道还是TCP传输通道。Further, the network camera also sets the flag bits representing the current transmission channel of the mobile terminal for different mobile terminals in advance, specifically: the flag position corresponding to the mobile terminal is the first value (such as 1), indicating that the current transmission channel of the mobile terminal is: P2P transmission channel; the second value (such as 0) corresponding to the flag position of the mobile terminal indicates that the current transmission channel of the mobile terminal is the TCP transmission channel, then when the network camera uses the P2P connection to transmit streaming media data to the third mobile terminal, the The flag position corresponding to the third mobile terminal is the first value; when streaming media data is transmitted to the third mobile terminal using the TCP connection, the flag position corresponding to the third mobile terminal is set to the second value, so that the user can The flag bit is to obtain whether the current transmission channel between the IP camera and each mobile terminal is a P2P transmission channel or a TCP transmission channel.
请参照图2,图2为本发明实施例提供的一种设备出流系统的结构示意图。Please refer to FIG. 2 , which is a schematic structural diagram of an equipment outflow system according to an embodiment of the present invention.
该设备出流系统应用于网络摄像机,包括:The device outflow system is applied to network cameras, including:
预连接模块1,用于预先与有提前连接需求的移动终端建立连接,并控制与移动终端之间的连接链路进入休眠状态;The pre-connection module 1 is used to establish a connection with a mobile terminal that has an early connection requirement in advance, and control the connection link with the mobile terminal to enter a dormant state;
出流模块2,用于在接收到目标移动终端的出流请求时,将与目标移动终端之间的目标连接链路从休眠状态转为激活状态,并为目标连接链路分配用于存储待发送的第一流媒体数据的第一内存缓冲区,以将第一流媒体数据发送至目标移动终端;其中,目标移动终端为任一移动终端;The
恢复模块3,用于在接收到目标移动终端的出流结束请求时,停止将第一流媒体数据发送至目标移动终端,并将目标连接链路从激活状态恢复为休眠状态,且释放第一内存缓冲区。The
作为一种可选的实施例,与任一移动终端建立的连接为P2P连接;As an optional embodiment, the connection established with any mobile terminal is a P2P connection;
设备出流系统还包括:The equipment outflow system also includes:
补偿连接模块,用于在与第三移动终端建立P2P连接时,同步借助服务器与第三移动终端建立TCP连接;a compensation connection module, configured to establish a TCP connection with the third mobile terminal synchronously with the help of the server when establishing a P2P connection with the third mobile terminal;
判断模块,用于判断是否成功与第三移动终端建立P2P连接;若是,则执行P2P传输模块;若否,则执行TCP传输模块;a judgment module for judging whether to successfully establish a P2P connection with the third mobile terminal; if so, execute a P2P transmission module; if not, execute a TCP transmission module;
P2P传输模块,用于利用P2P连接向第三移动终端传输流媒体数据;The P2P transmission module is used to transmit streaming media data to the third mobile terminal by using the P2P connection;
TCP传输模块,用于利用TCP连接向第三移动终端传输流媒体数据。The TCP transmission module is used for transmitting streaming media data to the third mobile terminal by using the TCP connection.
本申请提供的出流系统的介绍请参考上述出流方法的实施例,本申请在此不再赘述。For the introduction of the outflow system provided in the present application, please refer to the above-mentioned embodiments of the outflow method, which will not be repeated in this application.
本申请还提供了一种网络摄像机,包括:The application also provides a network camera, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于在执行计算机程序时实现上述任一种设备出流方法的步骤。The processor is configured to implement the steps of any one of the above-mentioned methods for outflow from the device when executing the computer program.
本申请提供的网络摄像机的介绍请参考上述出流方法的实施例,本申请在此不再赘述。For the introduction of the network camera provided in the present application, please refer to the above-mentioned embodiments of the outflow method, which will not be repeated in this application.
本申请还提供了一种通信系统,包括移动终端及上述网络摄像机。The present application also provides a communication system, including a mobile terminal and the above-mentioned network camera.
本申请提供的通信系统的介绍请参考上述网络摄像机的实施例,本申请在此不再赘述。For the introduction of the communication system provided in this application, please refer to the above-mentioned embodiments of the network camera, which will not be repeated in this application.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其他实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210094842.2A CN114422758A (en) | 2022-01-26 | 2022-01-26 | Equipment outflow method, system, network camera and communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210094842.2A CN114422758A (en) | 2022-01-26 | 2022-01-26 | Equipment outflow method, system, network camera and communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114422758A true CN114422758A (en) | 2022-04-29 |
Family
ID=81277995
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210094842.2A Pending CN114422758A (en) | 2022-01-26 | 2022-01-26 | Equipment outflow method, system, network camera and communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114422758A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155298A (en) * | 2006-09-25 | 2008-04-02 | 华为技术有限公司 | A method and system for realizing fast switching of network TV channels |
US20080307093A1 (en) * | 2007-06-07 | 2008-12-11 | Samsung Electronics Co., Ltd. | Method and system for managing resource consumption by transport control protocol connections |
CN104023409A (en) * | 2013-02-28 | 2014-09-03 | 腾讯科技(深圳)有限公司 | Network connection method and system |
CN104184944A (en) * | 2014-08-15 | 2014-12-03 | 小米科技有限责任公司 | Method and device for obtaining multimedia data streams |
CN205071144U (en) * | 2015-10-23 | 2016-03-02 | 郭松 | Embedded network wireless intelligent camera |
CN108900801A (en) * | 2018-06-29 | 2018-11-27 | 深圳市九洲电器有限公司 | A kind of video monitoring method based on artificial intelligence, system and Cloud Server |
CN109729176A (en) * | 2019-01-22 | 2019-05-07 | 厦门美图之家科技有限公司 | Network request method and device |
-
2022
- 2022-01-26 CN CN202210094842.2A patent/CN114422758A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155298A (en) * | 2006-09-25 | 2008-04-02 | 华为技术有限公司 | A method and system for realizing fast switching of network TV channels |
US20080307093A1 (en) * | 2007-06-07 | 2008-12-11 | Samsung Electronics Co., Ltd. | Method and system for managing resource consumption by transport control protocol connections |
CN104023409A (en) * | 2013-02-28 | 2014-09-03 | 腾讯科技(深圳)有限公司 | Network connection method and system |
CN104184944A (en) * | 2014-08-15 | 2014-12-03 | 小米科技有限责任公司 | Method and device for obtaining multimedia data streams |
CN205071144U (en) * | 2015-10-23 | 2016-03-02 | 郭松 | Embedded network wireless intelligent camera |
CN108900801A (en) * | 2018-06-29 | 2018-11-27 | 深圳市九洲电器有限公司 | A kind of video monitoring method based on artificial intelligence, system and Cloud Server |
CN109729176A (en) * | 2019-01-22 | 2019-05-07 | 厦门美图之家科技有限公司 | Network request method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022135291A1 (en) | Video call processing method and apparatus, and electronic device | |
CN111342863A (en) | Data transmission method, data transmission device and storage medium | |
WO2021179557A1 (en) | Video stream playback method, system and terminal, and storage medium | |
CN104427286B (en) | A kind of method and system carrying out video calling | |
WO2019238003A1 (en) | Method and device for entering low power consumption state, and storage medium | |
US8781294B2 (en) | Media content caching | |
JP5646466B2 (en) | Initiating an active state between wireless communication devices | |
US9794320B2 (en) | Method and apparatus for providing web service in wireless communication system | |
US20160036870A1 (en) | Session managing method, session managing system, and call processing method | |
CN113840269B (en) | Multimedia data transmission method and device, electronic equipment and storage medium | |
CN113242436B (en) | Live broadcast data processing method and device and electronic equipment | |
CN105704460A (en) | Video monitoring method and system | |
WO2023045551A1 (en) | Camera control method and system, electronic device and storage medium | |
CN112788790A (en) | Communication method and related equipment | |
CN114422758A (en) | Equipment outflow method, system, network camera and communication system | |
JP2001156838A (en) | Communication resource reservation method and apparatus, and recording medium recording communication resource reservation program | |
WO2015042859A1 (en) | Method and device for asynchronous communication | |
WO2013071517A1 (en) | Media stream sending method and server | |
EP2739013B1 (en) | Managing gateway access | |
WO2024060777A1 (en) | Bluetooth switching method and apparatus, and bluetooth device and computer-readable medium | |
WO2014082294A1 (en) | Media stream transmission method and relevant device and system | |
WO2022150957A1 (en) | Cache data information sending and cache data information receiving apparatuses and methods | |
CN113485854A (en) | Shear plate redirection method and device | |
CN118612504B (en) | Video stream playing method | |
CN113950133B (en) | Network connection control method and device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |