CN114172872A - Method for realizing calling to multiple security cameras by terminal - Google Patents
Method for realizing calling to multiple security cameras by terminal Download PDFInfo
- Publication number
- CN114172872A CN114172872A CN202111551664.3A CN202111551664A CN114172872A CN 114172872 A CN114172872 A CN 114172872A CN 202111551664 A CN202111551664 A CN 202111551664A CN 114172872 A CN114172872 A CN 114172872A
- Authority
- CN
- China
- Prior art keywords
- address
- stream
- terminal
- flow
- cmds
- 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 14
- 230000000977 initiatory effect Effects 0.000 claims abstract description 4
- 238000012544 monitoring process Methods 0.000 abstract description 3
- 230000004075 alteration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1859—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/6437—Real-time Transport Protocol [RTP]
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to the technical field of security video monitoring, and discloses a method for realizing the propaganda directed to a plurality of security cameras by a terminal, aiming at realizing the propaganda directed to the cameras by using a universal protocol, being suitable for various terminal devices including a pc client, a mobile terminal, a browser and the like, and providing a plurality of universal protocols for the rapid access of three-party devices. The universal protocol of the invention is convenient for various types of terminals pc client sides, mobile client sides, web and the like including third-party equipment to quickly access and use the calling function; the plug flow end can use webrtc to push the audio stream to improve the voice quality; the invention can easily realize one-to-many calling by pulling the notice to a plurality of initiating cameras.
Description
Technical Field
The invention relates to the technical field of security video monitoring, in particular to a method for realizing the calling of a terminal to a plurality of security cameras.
Background
In the video monitoring field, terminal equipment such as a pc client is often required to call a camera, and the effects of command control, information publicity and the like are exerted. In actual use, the terminal is in the form of a browser. In a common method, a private streaming media service is required to be built, voice data is encapsulated and managed, an interactive transmission process is controlled, and then various terminals perform function development aiming at a protocol provided by the streaming media service. Various types of terminals are complicated to develop and debug for realizing the function, and the proprietary protocol causes that third-party terminal equipment is relatively troublesome to access and is not high in universality.
Disclosure of Invention
The invention aims to provide a method for realizing the propaganda directed to a plurality of security cameras by a terminal, aims to realize the propaganda directed to the cameras by using a universal protocol, is suitable for various terminal devices including a pc client, a mobile terminal, a browser and the like, and provides a plurality of universal protocols for quick access of three-party devices.
In order to achieve the purpose, the invention provides the following technical scheme: a method for realizing that a terminal calls a plurality of security cameras adopts a universal streaming media distribution service (cmds) as a source station and a distribution station of audio streams, wherein the source station manages and accesses external audio and video data as a source, the source is subsequently distributed to other stations, the distributed stations are the distribution stations, the source station is responsible for receiving push streams of various terminals such as pc, a mobile terminal, web and the like, the distribution station pulls the media streams of the source station, camera obtains the streams from the distribution stations for playing, and the cmds has the other function of supporting push and pull of audio and video streams of various protocols such as westbr, rtmp, rtsp and the like; the mobile terminal, the pc client and the h5 web can use a webrtc protocol or other general protocols to push audio streams, the camera uses an rtsp protocol to pull audio streams, and in addition, the business service is used for coordination control, the main function of the business service is to provide push-pull stream addresses, the cmss-api mainly provides services for acquiring the push-pull stream addresses and cmss hook call-back, and the simple flow is as follows:
s1, the terminal equipment acquires the push flow address from the cmss-api, and the push flow address has a similar form:the ip address is one of source site services under the management of cds-api, one of the source site services is selected according to load balance, the stream represents the id of the stream, the app is generally in live form and represents live broadcast, xxxx carries authentication information, the authentication information is actually passed through, hook is carried to the cds-api, authentication is carried out, and the terminal device takes the push to the cds-apiA stream address;
s2, the terminal equipment pushes the audio stream through the general protocol;
s3, the service issues rtsp pull flow address to camera, the address string form:note that the same stream is used by the camera and the terminal, which means that the camera plays an audio stream pushed by the terminal;
s4, camera uses rtsp to pull the audio stream for playing.
The method for realizing the calling of the terminal to the plurality of security cameras has the advantages that:
1. the universal protocol of the invention is convenient for various types of terminals pc client sides, mobile client sides, web and the like including third-party equipment to quickly access and use the calling function;
2. the plug flow end can use webrtc to push the audio stream to improve the voice quality;
3. the invention can easily realize one-to-many calling by pulling the notice to a plurality of initiating cameras.
Drawings
Fig. 1 is a schematic block diagram of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In an embodiment, please refer to fig. 1, the present invention provides a technical solution: a method for realizing the shouting of a terminal to a plurality of security cameras is characterized in that: comprises the following steps;
s1, opening a call function by a user;
s2, the terminal equipment requests a stream pushing address to the service server, the stream pushing address carries an offer sdp when being a webrtc request, the offer sdp can describe the audio media information and the network information, the stream pushing address carries a protocol mark when being an rtsp or rtmp stream pushing, which indicates which protocol is used, and a stream id is used for identifying the road code stream;
s3, the service server obtains the push flow address from the cmss-api;
s4, if yes, cmds-api sends push flow request to cmds source station, otherwise, skips S5 and S6, generates similarXxxx is encrypted variable content containing the validity period and authentication information of the address;
s5, the cms returns the push flow address to cms-api, and the webrtc returns the answer sdp after the webrtc request;
s6, the cmss-api returns answer sdp to the service, and the service returns a push address to the terminal;
s7, the terminal pushes the audio stream to a stream pushing address, the stream pushing address is a source site, and the subsequent operation distributes the data of the source site;
s8, the service obtains the pull address from the cmd-api, already assigned stream id in S2, and returns the address form as:the Ip address is the Ip of a certain distribution station with the lightest load, and the stream id of S2, which is the stream contained in the returned address string, also contains authentication information and a validity period;
s9, the service sends the pull address to the camera;
s10, initiating a pull flow to the cmss distribution node by the camera, wherein the current flow is only pushed to the source site, and the distribution site has no data;
s11, the distribution station finds that the audio source does not exist, and the media source is called back to the cmss-api in a webhook mode to be absent;
s12, finding a source site where the media source is located by the cmds-api;
s13, the cmds-api requests the source pull flow back from the cmds distribution site, and the purpose is that the flow can exist on the distribution site;
s14, the cmds distribution site initiates pull flow to the cmds source site and initiates an rtsp pull flow request;
s15, the cmds source station sends the stream data to the cmds distribution station, and transmits the stream data through rtsp;
s16, when the distribution site has the streaming data, it can send the stream to camera, which uses rtsp to pull the audio stream for playback.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (5)
1. A method for realizing the shouting of a terminal to a plurality of security cameras is characterized in that: comprises the following steps;
s1, opening a call function by a user;
s2, the terminal equipment requests a stream pushing address from the service server;
s3, the service server obtains the push flow address from the cmss-api;
s4, if yes, cmds-api sends flow pushing request to cmds source station, otherwise, skips S5 and S6;
s5, the cms returns the push flow address to cms-api, and the webrtc returns the answer sdp after the webrtc request;
s6, the cmss-api returns answer sdp to the service, and the service returns a push address to the terminal;
s7, the terminal pushes the audio stream to the stream pushing address;
s8, the service obtains the pull address from the cmd-api, already appoints the stream id in S2, and the Ip address is the Ip of a certain distribution station with the lightest load;
s9, the service sends the pull address to the camera;
s10, initiating a pull flow to the cmss distribution node by the camera, wherein the current flow is only pushed to the source site, and the distribution site has no data;
s11, the distribution station finds that the audio source does not exist, and the media source is called back to the cmss-api in a webhook mode to be absent;
s12, finding a source site where the media source is located by the cmds-api;
s13, the cmds-api requests the source pull flow back from the cmds distribution site, and the purpose is that the flow can exist on the distribution site;
s14, the cmds distribution site initiates pull flow to the cmds source site and initiates an rtsp pull flow request;
s15, the cmds source station sends the stream data to the cmds distribution station, and transmits the stream data through rtsp;
s16, after the distribution site has the streaming data, the streaming can be sent to camera for playing.
2. The method for realizing the shouting of the terminal to the plurality of security cameras according to the claim 1 is characterized in that: in S2, when the stream push address is a webrtc request, the flow sdp carries the reference sdp which describes the audio media information and the network information, and when the stream push address is an rtsp or rtmp stream push, the flow push address carries a protocol flag indicating which protocol is used, and a stream id identifies the road code stream.
3. The method for realizing the shouting of the terminal to the plurality of security cameras according to the claim 1 is characterized in that: in S7, the push flow address is a source site, and the subsequent operation distributes the data of the source site.
4. The method for realizing the shouting of the terminal to the plurality of security cameras according to the claim 1 is characterized in that: in S8, the stream id, S of S2, which is included in the returned address string, also includes authentication information and a validity period.
5. The method for realizing the shouting of the terminal to the plurality of security cameras according to the claim 1 is characterized in that: at S16, camera plays the audio stream using rtsp pull.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111551664.3A CN114172872A (en) | 2021-12-18 | 2021-12-18 | Method for realizing calling to multiple security cameras by terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111551664.3A CN114172872A (en) | 2021-12-18 | 2021-12-18 | Method for realizing calling to multiple security cameras by terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114172872A true CN114172872A (en) | 2022-03-11 |
Family
ID=80487256
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111551664.3A Pending CN114172872A (en) | 2021-12-18 | 2021-12-18 | Method for realizing calling to multiple security cameras by terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114172872A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117938822A (en) * | 2024-03-21 | 2024-04-26 | 四川广飞视信息技术有限公司 | WASM-based real-time voice communication method, terminal and camera |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190230226A1 (en) * | 2014-04-06 | 2019-07-25 | Panasonic Intellectual Property Management Co., Ltd. | Mobile terminal, event information display method, non-transitory computer-readable recording medium storing event information display program, and intercom system |
CN110233984A (en) * | 2018-03-06 | 2019-09-13 | 北京视联动力国际信息技术有限公司 | A kind of monitoring system and method based on view networking |
CN110446010A (en) * | 2019-08-02 | 2019-11-12 | 江西航天鄱湖云科技有限公司 | Video monitoring method, device, storage medium, server and system based on web |
CN110830777A (en) * | 2019-11-29 | 2020-02-21 | 公安部第一研究所 | Method for previewing GB/T28181 standard monitoring video through cross-browser based on WebRTC protocol |
CN111147506A (en) * | 2019-12-30 | 2020-05-12 | 武汉兴图新科电子股份有限公司 | Method, system and storage device for playing streaming media data based on HTML5 |
CN113114702A (en) * | 2021-05-13 | 2021-07-13 | 上海井星信息科技有限公司 | WebRTC communication method and system based on SIP protocol interaction at IOS (input/output System) end |
-
2021
- 2021-12-18 CN CN202111551664.3A patent/CN114172872A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190230226A1 (en) * | 2014-04-06 | 2019-07-25 | Panasonic Intellectual Property Management Co., Ltd. | Mobile terminal, event information display method, non-transitory computer-readable recording medium storing event information display program, and intercom system |
CN110233984A (en) * | 2018-03-06 | 2019-09-13 | 北京视联动力国际信息技术有限公司 | A kind of monitoring system and method based on view networking |
CN110446010A (en) * | 2019-08-02 | 2019-11-12 | 江西航天鄱湖云科技有限公司 | Video monitoring method, device, storage medium, server and system based on web |
CN110830777A (en) * | 2019-11-29 | 2020-02-21 | 公安部第一研究所 | Method for previewing GB/T28181 standard monitoring video through cross-browser based on WebRTC protocol |
CN111147506A (en) * | 2019-12-30 | 2020-05-12 | 武汉兴图新科电子股份有限公司 | Method, system and storage device for playing streaming media data based on HTML5 |
CN113114702A (en) * | 2021-05-13 | 2021-07-13 | 上海井星信息科技有限公司 | WebRTC communication method and system based on SIP protocol interaction at IOS (input/output System) end |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117938822A (en) * | 2024-03-21 | 2024-04-26 | 四川广飞视信息技术有限公司 | WASM-based real-time voice communication method, terminal and camera |
CN117938822B (en) * | 2024-03-21 | 2024-06-04 | 四川广飞视信息技术有限公司 | WASM-based real-time voice communication method, terminal and camera |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101317413B (en) | Control method, authentication method and stream media server for electronic equipments | |
US20170134772A1 (en) | Multi-format distribution of content | |
EP2953317A1 (en) | Apparatus for receiving adaptive broadcast signal and method thereof | |
CN109167960B (en) | Method and system for processing video stream data | |
CN108881202A (en) | A kind of video monitoring system and method | |
US20110321062A1 (en) | Capturing events from and providing targeted messages to a digital media device | |
EP3059945A1 (en) | Method and system for video surveillance content adaptation, and central server and device | |
CN109672664B (en) | Authentication method and system for video networking terminal | |
JP2012501133A (en) | Method for transferring a video session between a fixed multimedia device and a mobile multimedia device | |
WO2018103644A1 (en) | Live stream sharing method and device, home media apparatus, and data storage medium | |
CN110191315B (en) | Monitoring and checking method and device based on video network | |
CN105898620A (en) | Multimedia real-time live broadcast method and device | |
US8914433B2 (en) | Publish-subscription platforms for alert messages and related methods and computer program products | |
CN110072126A (en) | Data request method, association turn server and computer readable storage medium | |
CN104185044A (en) | Method and system for video-on-demand (vod) | |
CN101247389A (en) | Method and system for discovering stream media service and service discovering device | |
CN114172872A (en) | Method for realizing calling to multiple security cameras by terminal | |
US11601716B2 (en) | Smart notification for over-the-top (OTT) streaming among multiple devices | |
KR20090115463A (en) | Method for providing broadcasting service and internet broadcasting system therefor | |
CA2977712A1 (en) | Methods for media playback state information exchange | |
CN108924591B (en) | Television channel accurate grouping publishing method and system based on multi-terminal service | |
CN110719435B (en) | Method and system for carrying out terminal conference | |
WO2007137500A1 (en) | Public video system and implementation method | |
CN111131777B (en) | Viewing method and device for video network monitoring | |
KR20070060969A (en) | Method of time-shifting service in multicast based iptv |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220311 |
|
RJ01 | Rejection of invention patent application after publication |