CN109640123A - Method for pushing, device, computer equipment and the storage medium of live stream - Google Patents
Method for pushing, device, computer equipment and the storage medium of live stream Download PDFInfo
- Publication number
- CN109640123A CN109640123A CN201811427136.5A CN201811427136A CN109640123A CN 109640123 A CN109640123 A CN 109640123A CN 201811427136 A CN201811427136 A CN 201811427136A CN 109640123 A CN109640123 A CN 109640123A
- Authority
- CN
- China
- Prior art keywords
- filming apparatus
- live
- streaming media
- target
- stream
- 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
Classifications
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25808—Management of client data
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25808—Management of client data
- H04N21/25816—Management of client data involving client authentication
Abstract
The embodiment of the invention discloses a kind of method for pushing of live stream, device, computer equipment and storage medium, include the following steps: to obtain the live streaming request that client is sent, wherein live stream of the live streaming request for the shooting of request target filming apparatus;It is whether online that the target filming apparatus is searched in preset information list according to live streaming request;When the target filming apparatus is online, the streaming media server is controlled according to the location information of client in the live streaming request and sends the live stream to the client.Since stream media management server is Cloud Server, filming apparatus, streaming media server can set up separately from different equipment, it is communicated with Streaming Media management Cloud Server, by the device information of filming apparatus, the load information of streaming media server, which is sent in Streaming Media management Cloud Server, to be shared, in this way, the frame can support the extension of filming apparatus and streaming media server to access, facilitate extension, increases application range.
Description
Technical field
The present embodiments relate to Streaming Media field, especially a kind of method for pushing of live stream, device, computer equipment
And storage medium.
Background technique
Streaming Media refers to the media formats that play out in internet by the way of stream transmission, as audio, video or
Multimedia file.The key technology that Streaming Media is realized is exactly to transmit as a stream, i.e., by more matchmakers such as entire audio, video or three-dimensional media
Body file is parsed into compressed package one by one by specific compress mode, is passed from Streaming Media sending device to Streaming Media reception device
It is defeated.Streaming Media reception device does not need to download entire file, it is only necessary to can be under side by the start-up study of seconds or tens of seconds
Side is carried to play.
Usual Streaming Media is using open source streaming media video platform framework EasyDarwin, wherein EasyDarwin frame
Frame includes: EasyDarwin open source streaming media server, EasyCMS center management server, EasyCamera cloud video camera clothes
Business, EasyClient cloud platform client etc..Wherein, although EasyDarwin streaming media server can with distributed deployment,
Load information is present in the memory of EasyCMS center management server in the form of Hash map, EasyDrawn service
Device and EasyCMS center management server keep long connection Signalling exchange, and this mode can only realize function, but not can be carried out expansion
Exhibition, the range so as to cause its application are smaller.
Summary of the invention
The embodiment of the present invention provides method for pushing, device, computer equipment and the storage medium of a kind of live stream.
In order to solve the above technical problems, the technical solution that the embodiment of the invention uses is: providing a kind of straight
The method for pushing of stream is broadcast, is applied to Streaming Media and manages Cloud Server;Include the following steps:
Obtain the live streaming request that client is sent, wherein the live streaming request is for the shooting of request target filming apparatus
Live stream;
It is whether online that the target filming apparatus is searched in preset information list according to live streaming request;
When the target filming apparatus is online, the stream is controlled according to the location information of client in the live streaming request
Media server sends the live stream to the client.
Optionally, described that whether the target filming apparatus is searched in preset information list according to live streaming request
Before online, further includes:
Receive the logon message that the target filming apparatus is sent, wherein the logon message includes the target shooting
The facility information of device;
Authority Verification is carried out to the logon message;
When permission is verified, the facility information is written in the information list.
Optionally, described that whether the target filming apparatus is searched in preset information list according to live streaming request
Online, comprising:
The identification code of the target filming apparatus is extracted from the live streaming request;
The facility information that there are mapping relations with the identification code of the target filming apparatus is searched from the information list;
The guarantor sent within a preset time period with the presence or absence of the target filming apparatus according to facility information judgement
Message living.
Optionally, described to be filled within a preset time period with the presence or absence of target shooting according to facility information judgement
After setting the keep alive Packet of transmission, further includes:
When there is the keep alive Packet that the target filming apparatus is sent within a preset time period, determine that the target is clapped
It is online to take the photograph device.
Optionally, described when the target filming apparatus is online, believed according to the position of client in the live streaming request
Breath controls the streaming media server and sends the live stream to the client, comprising:
The stream matchmaker that whether there is the target filming apparatus in the streaming media server is judged according to the information list
Body information;
When there are when the stream media information, send the first push instruction to the Streaming Media in the streaming media server
Server, so that the stream media information that the streaming media server will be present is sent to the client of location information direction.
Optionally, described to judge to shoot in the streaming media server with the presence or absence of the target according to the information list
After the stream media information of device, further includes:
When the stream media information is not present in the streaming media server, the second push instruction is sent to the target
Filming apparatus so that the target filming apparatus sends the live stream to the streaming media server, and makes the Streaming Media
The live stream is transmitted to the client that the location information is directed toward by server.
Optionally, described when the target filming apparatus is online, believed according to the position of client in the live streaming request
After the breath control streaming media server sends the live stream to the client, further includes:
Receive the release request that the streaming media server is sent;
Command for stopping is sent to the target filming apparatus, so that the target filming apparatus stops taking to the Streaming Media
Business device pushes live stream.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of driving means of live stream, it is Streaming Media pipe
Manage Cloud Server;Include:
Module is obtained, for obtaining the live streaming request of client transmission, wherein the live streaming request is clapped for request target
Take the photograph the live stream of device shooting;
Processing module, for searching the target filming apparatus according to live streaming request in preset information list and being
It is no online;
Execution module is used for when the target filming apparatus is online, according to the position of client in the live streaming request
Information controls the streaming media server and sends the live stream to the client.
Optionally, further includes:
First acquisition submodule, the logon message sent for receiving the target filming apparatus, wherein the registration report
Text includes the facility information of the target filming apparatus;
First processing submodule, for carrying out Authority Verification to the logon message;
First implementation sub-module, for when permission is verified, the facility information to be written to the information list
In.
Optionally, the processing module includes:
Second acquisition submodule, for extracting the identification code of the target filming apparatus from the live streaming request;
Second processing submodule has for searching from the information list with the identification code of the target filming apparatus
The facility information of mapping relations;
Second implementation sub-module, for whether there is the mesh within a preset time period according to facility information judgement
Mark the keep alive Packet that filming apparatus is sent.
Optionally, further includes:
Third handles submodule, the keep-alive report sent for that ought have the target filming apparatus within a preset time period
Wen Shi determines that the target filming apparatus is online.
Optionally, the execution module includes:
Fourth process submodule, for being judged in the streaming media server according to the information list with the presence or absence of described
The stream media information of target filming apparatus;
Third implementation sub-module, for when there are when the stream media information, sending first in the streaming media server
Push instruction is to the streaming media server, so that the stream media information that the streaming media server will be present is sent to the position
The client that information is directed toward.
Optionally, further includes:
4th implementation sub-module, for sending the when the stream media information is not present in the streaming media server
Two push instructions are to the target filming apparatus, so that the target filming apparatus sends the live stream and takes to the Streaming Media
Business device, and make the streaming media server that the live stream to be transmitted to the client that the location information is directed toward.
Optionally, further includes:
5th processing submodule, the release request sent for receiving the streaming media server;
5th processing submodule, for sending command for stopping to the target filming apparatus, so that target shooting dress
It sets stopping and pushes live stream to the streaming media server.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of computer equipment, including memory and processing
Device is stored with computer-readable instruction in the memory, when the computer-readable instruction is executed by the processor, so that
The processor executes the step of method for pushing of live stream described above.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of storage Jie for being stored with computer-readable instruction
Matter, when the computer-readable instruction is executed by one or more processors, so that one or more processors execute above-mentioned institute
The step of stating the method for pushing of live stream.
The beneficial effect of the embodiment of the present invention is: since stream media management server is Cloud Server, filming apparatus, stream matchmaker
Body server can set up separately from different equipment, be communicated with Streaming Media management Cloud Server, by the device of filming apparatus
Information, the load information of streaming media server, which is sent in Streaming Media management Cloud Server, to be shared, in this way, the frame can be with
It supports the extension of filming apparatus and streaming media server access, facilitates extension, and then increase application range.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the basic procedure schematic diagram of the method for pushing of live stream provided in an embodiment of the present invention;
Fig. 2 is a kind of side for being attached filming apparatus and Streaming Media management Cloud Server provided in an embodiment of the present invention
The basic procedure schematic diagram of method;
Fig. 3 is a kind of lookup target shooting in preset information list according to live streaming request provided in an embodiment of the present invention
The basic procedure schematic diagram of the whether online method of device;
Fig. 4 is one kind provided in an embodiment of the present invention when target filming apparatus is online, according to client in live streaming request
Location information control streaming media server to client send live stream method basic procedure schematic diagram;
Fig. 5 is a kind of basic procedure schematic diagram for terminating the method that stream media information is sent provided in an embodiment of the present invention;
Fig. 6 is the driving means basic structure block diagram of live stream provided in an embodiment of the present invention;
Fig. 7 is computer equipment basic structure block diagram provided in an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to
Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its
Sequence is executed or is executed parallel, and serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, serial number
It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can
To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not
Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment
It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (PersonalDigital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
Client terminal in present embodiment is above-mentioned terminal.
Specifically, referring to Fig. 1, Fig. 1 is the basic procedure schematic diagram of the method for pushing of the present embodiment live stream.
As shown in Figure 1, the method for pushing of live stream includes the following steps:
S1100, the live streaming request that client is sent is obtained, wherein live streaming request is shot for request target filming apparatus
Live stream;
Usual Streaming Media is using open source streaming media video platform framework EasyDarwin, wherein EasyDarwin frame
Frame includes: EasyDarwin open source streaming media server, EasyCMS center management server, EasyCamera cloud video camera clothes
Business device, EasyClient cloud platform client etc..
The embodiment of the present invention is applied in stream media management server (PACMS), wherein stream media management server is cloud
Server.Target filming apparatus is the filming apparatus that user is chosen by client, as in EasyDarwin frame
Multiple video cameras that EasyCamera cloud camera server is communicated, for obtaining the information of the environment where video camera.?
In practical application, client shows multiple filming apparatus, and each filming apparatus marks position and shooting ring where it respectively
Border, so that user selects.
In practical applications, live streaming request is for requesting live stream to Streaming Media management Cloud Server.
S1200, according to live streaming request, whether lookup target filming apparatus is online in preset information list;
Under normal conditions, target filming apparatus is when entering in open source streaming media video live streaming frame, to Streaming Media management
Cloud Server sends logon message, after Streaming Media management Cloud Server verifies logon message, manages cloud in Streaming Media
The information of target filming apparatus is stored into Redis in server, target filming apparatus and Streaming Media Cloud Server are established and connected
It connects, and determines that target filming apparatus is online by way of sending keep alive Packet by the preset period.
In practical applications, the logon message that target filming apparatus is sent includes the facility information of target filming apparatus, example
Such as, device model, sequence number, the keep-alive report that location information and target filming apparatus where target filming apparatus are sent every time
Text, the time for sending keep alive Packet etc..
It should be noted that information list can manage the Redis in Cloud Server for Streaming Media, for storing various bats
The list of the information of device is taken the photograph, the information of filming apparatus includes the phase of above-mentioned facility information, location information and keep alive Packet
Close information.When Streaming Media Cloud Server judges to whether there is what target filming apparatus was sent in the preset period in information list
Keep alive Packet determines that target filming apparatus is online when it is present, when it be not present, determines that target filming apparatus is not online.
S1300, when target filming apparatus is online, according to live streaming request in client location information control Streaming Media clothes
Business device sends live stream to client.
It include the location information of client in the live streaming request that client is sent, which is the IP of client
Location.
There are two types of situations in practical applications, and one is target filming apparatus have been pushed directly by other client requirements
Stream is broadcast, i.e., there is the live streaming stream information that request is sent in streaming media server, Streaming Media manages Cloud Server at this time, according to prestoring
Information list obtain streaming media server IP address, and send push instruction to, make streaming media server push Streaming Media
Information is to the client for sending live streaming request.
It is that target filming apparatus is not required to push live stream, in this case, Streaming Media pipe there are also a kind of situation
Reason Cloud Server sends push instruction and gives target filming apparatus, and takes target filming apparatus according to the Streaming Media in push instruction
The IP address push live stream of business device is to streaming media server, so that live stream is pushed to client by streaming media server.
In the method for pushing of above-mentioned live stream, since stream media management server is Cloud Server, filming apparatus, Streaming Media
Server can set up separately from different equipment, communicated with Streaming Media management Cloud Server, the device of filming apparatus is believed
Breath, the load information of streaming media server, which is sent in Streaming Media management Cloud Server, to be shared, in this way, the frame can prop up
The extension access for holding filming apparatus and streaming media server, facilitates extension, and then increase application range.
The embodiment of the present invention provides a kind of method for being attached filming apparatus and Streaming Media management Cloud Server, such as schemes
Shown in 2, Fig. 2 is a kind of method for being attached filming apparatus and Streaming Media management Cloud Server provided in an embodiment of the present invention
Basic procedure schematic diagram.
Specifically, as shown in Fig. 2, further including following step before step S1200:
S1201, the logon message that target filming apparatus is sent is received, wherein logon message includes target filming apparatus
Facility information;
Logon message is used to be registered according to agreement to Streaming Media management Cloud Server, and target MAC (Media Access Control) address is one
MAC Address, version, topology location, machine models, the sequence number etc. of target filming apparatus are carried in Multicast MAC Address message
Facility information.
S1202, Authority Verification is carried out to logon message;
S1203, when permission is verified, facility information is written in information list.
Streaming Media manages Cloud Server after receiving logon message, so that it may determine the MAC Address machine of target filming apparatus
Type topology location, and pass through facility information (sequence number) verifying authorization of target filming apparatus.After the completion of verifying, Streaming Media
The facility information of target filming apparatus is written in preset information list in (Redis) by management Cloud Server.
The embodiment of the present invention provide it is a kind of according to live streaming request in preset information list search target filming apparatus be
No online method, as shown in figure 3, Fig. 3 be it is provided in an embodiment of the present invention it is a kind of according to live streaming request preset information arrange
The basic procedure schematic diagram of the whether online method of target filming apparatus is searched in table.
Specifically, as shown in figure 3, step S1200 includes the following steps:
S1210, the identification code that target filming apparatus is extracted from live streaming request;
Identification code is used for unique identification target filming apparatus.User is after client chooses target filming apparatus to Streaming Media
Cloud Server sends live streaming request, contains the identification code of target filming apparatus in live streaming request.
S1220, the facility information that there are mapping relations with the identification code of target filming apparatus is searched from information list;
After getting identification code, Streaming Media manages Cloud Server and searches facility information according to identification code.It needs to explain
Being includes the facility information of multiple filming apparatus in information list, and the identification code and facility information of each filming apparatus map.It needs
It is noted that further including logon message, keep alive Packet and the reception registration report that target filming apparatus is sent in facility information
The information such as time, the frequency of text and keep alive Packet.
S1230, the keep-alive sent within a preset time period with the presence or absence of target filming apparatus according to facility information judgement
Message.
Since keep alive Packet is the information for communicating to connect to Streaming Media management Cloud Server confirmation, judging
When whether target filming apparatus is online, Streaming Media, which manages Cloud Server by being inquired in the preset period in facility information, is
The record of the no keep alive Packet for having target filming apparatus to send, can confirm whether target filming apparatus is online.Wherein, preset
Period is the sending cycle of keep alive Packet, i.e., the time interval that keep alive Packet is sent twice.
When there is the keep alive Packet of target filming apparatus transmission within a preset time period, determine that target filming apparatus exists
Line determines that target filming apparatus does not exist when the keep alive Packet that target filming apparatus is sent is not present within a preset time period
Line.
The embodiment of the present invention provides one kind when target filming apparatus is online, is believed according to the position of client in live streaming request
The method that breath control streaming media server sends live stream to client, as shown in figure 4, Fig. 4 is provided in an embodiment of the present invention
One kind controlling streaming media server to client when target filming apparatus is online, according to the location information of client in live streaming request
End sends the basic procedure schematic diagram of the method for live stream.
Specifically, as shown in figure 4, step S1300 includes the following steps:
S1310, the stream media information that whether there is target filming apparatus in streaming media server is judged according to information list;
In practical applications, it often will appear the Streaming Media of the same target filming apparatus shooting newly by multiple client elder generation
It requests to occur the case where live stream afterwards, wherein stream media information is the live stream of user's request.In this case, target is clapped
It takes the photograph device to manage the record storage for pushing live stream in Cloud Server in Streaming Media, Streaming Media management Cloud Server passes through client
End sends identification code and searches whether to record there are the record that target filming apparatus pushes live stream when existing in information list
When, illustrate that stream media information has been stored in streaming media server, when there is no record, illustrates that live streaming request is to target
What filming apparatus issued for the first time, stream media information is not present in streaming media server.
S1320, when there are when stream media information, sending the first push instruction in streaming media server to streaming media service
Device, so that the stream media information deposited is sent to the client of location information direction by streaming media server.
In the embodiment of the present invention, when, there are when stream media information, it is straight that Streaming Media manages Cloud Server in streaming media server
It receives and sends the first push and instructs to come to streaming media server to client push live stream.Wherein, first push instruction for for
Control streaming media server pushes the instruction of stored stream media information.
It should be noted that being wrapped in the live streaming request that client is sent to Streaming Media management Cloud Server in the present embodiment
The IP address of client has been included, therefore, has also been wrapped in Streaming Media management Cloud Server into the first push instruction that Streaming Media is sent
The IP address of client is contained, in this way, can make streaming media server that stream media information are sent to client according to IP address.
Another embodiment of the invention judges in streaming media server according to information list with the presence or absence of target shooting dress
After the stream media information set, further includes:
S1330, when in streaming media server be not present stream media information when, send second push instruction give target shooting dress
It sets, so that target filming apparatus sends live stream to streaming media server, and forwards streaming media server by the live stream
The client being directed toward to location information.
In the present embodiment, when stream media information is not present in streaming media server, the stream of target filming apparatus shooting
Media information is request push for the first time, at this point, the second push instruction is pushed away for controlling target filming apparatus to streaming media server
The stream media information for giving it to shoot.Wherein, the IP address of client is contained in the second push instruction, streaming media server can be with
Live stream is pushed to client according to IP address.
In practical applications, in order to reduce the pressure of streaming media server, when the stream media information of target filming apparatus does not have
When having client request, at this point it is possible to discharge the stream media information stored in streaming media server, therefore, the embodiment of the present invention
A kind of method that termination stream media information is sent is provided, as shown in figure 5, Fig. 5 is a kind of termination stream provided in an embodiment of the present invention
The basic procedure schematic diagram for the method that media information is sent.
Specifically, as shown in figure 5, further including following step after step S1300:
The release request that S1301, receiving stream media server are sent;
S1302, command for stopping is sent to target filming apparatus, so that target filming apparatus stops pushing away to streaming media server
Send live stream.
Release request is for indicating that requesting termination target filming apparatus to terminate to Streaming Media Cloud Server sends live stream
Request.Command for stopping sends live stream for indicating that control target filming apparatus terminates.
In practical applications, streaming media server can regularly check the client terminal quantity of request live stream, work as client
Quantity be less than preset value when, or streaming media server discovery within a preset time period without client send live streaming
When request, streaming media server can manage Cloud Server to Streaming Media and send live stream release request, at this point, Streaming Media manages cloud
Server sends command for stopping to filming apparatus, so that filming apparatus be made to stop push live stream.
The embodiment of the present invention also provides a kind of driving means of live stream to solve above-mentioned technical problem.Referring specifically to figure
6, Fig. 6 be the driving means basic structure block diagram of the present embodiment live stream.
As shown in fig. 6, a kind of driving means of live stream, manages Cloud Server for Streaming Media;It include: acquisition module
2100, processing module 2200 and execution module 2300.Wherein, module 2100 is obtained, the live streaming for obtaining client transmission is asked
It asks, wherein live stream of the live streaming request for the shooting of request target filming apparatus;Processing module 2200, for according to institute
Whether stating live streaming request, that the target filming apparatus is searched in preset information list is online;Execution module 2300, for working as
When the target filming apparatus is online, the streaming media server is controlled according to the location information of client in the live streaming request
The live stream is sent to the client.
The driving means of live stream, since stream media management server is Cloud Server, filming apparatus, streaming media server
It can set up separately from different equipment, be communicated with Streaming Media management Cloud Server, by the device information of filming apparatus, flow matchmaker
The load information of body server, which is sent in Streaming Media management Cloud Server, to be shared, in this way, the frame can be supported to shoot
The extension of device and streaming media server accesses, and facilitates extension, and then increase application range.
In some embodiments, in some embodiments, further includes: the first acquisition submodule, it is described for receiving
The logon message that target filming apparatus is sent, wherein the logon message includes the facility information of the target filming apparatus;The
One processing submodule, for carrying out Authority Verification to the logon message;First implementation sub-module, for being verified when permission
When, the facility information is written in the information list.
In some embodiments, the processing module includes: the second acquisition submodule, for from live streaming request
Extract the identification code of the target filming apparatus;Second processing submodule, for being searched and the mesh from the information list
The identification code for marking filming apparatus has the facility information of mapping relations;Second implementation sub-module, for according to the facility information
The keep alive Packet that judgement is sent with the presence or absence of the target filming apparatus within a preset time period.
In some embodiments, further includes: third handles submodule, described for that ought exist within a preset time period
When the keep alive Packet that target filming apparatus is sent, determine that the target filming apparatus is online.
In some embodiments, the execution module includes: fourth process submodule, for according to the information list
Judge the stream media information that whether there is the target filming apparatus in the streaming media server;Third implementation sub-module is used
In when there are when the stream media information, send the first push instruction to the streaming media service in the streaming media server
Device, so that the stream media information that the streaming media server will be present is sent to the client of location information direction.
In some embodiments, further includes: the 4th implementation sub-module, for being not present when in the streaming media server
When the stream media information, the second push instruction is sent to the target filming apparatus, so that the target filming apparatus is sent
The live stream gives the streaming media server, and makes the streaming media server that the live stream is transmitted to the position and believe
Cease the client being directed toward.
In some embodiments, further includes: the 5th processing submodule, for receiving the streaming media server transmission
Release request;5th processing submodule, for sending command for stopping to the target filming apparatus, so that target shooting dress
It sets stopping and pushes live stream to the streaming media server.
In order to solve the above technical problems, the embodiment of the present invention also provides computer equipment.It is this referring specifically to Fig. 7, Fig. 7
Embodiment computer equipment basic structure block diagram.
As shown in fig. 7, the schematic diagram of internal structure of computer equipment.As shown in fig. 7, the computer equipment includes passing through to be
Processor, non-volatile memory medium, memory and the network interface of bus of uniting connection.Wherein, the computer equipment is non-easy
The property lost storage medium is stored with operating system, database and computer-readable instruction, can be stored with control information sequence in database
Column, when which is executed by processor, may make processor to realize a kind of method for pushing of live stream.The calculating
The processor of machine equipment supports the operation of entire computer equipment for providing calculating and control ability.The computer equipment
It can be stored with computer-readable instruction in memory, when which is executed by processor, processor may make to hold
A kind of method for pushing of live stream of row.The network interface of the computer equipment is used for and terminal connection communication.Those skilled in the art
Member is appreciated that structure shown in Fig. 7, only the block diagram of part-structure relevant to application scheme, composition pair
The restriction for the computer equipment that application scheme is applied thereon, specific computer equipment may include than as shown in the figure more
More or less component perhaps combines certain components or with different component layouts.
Processor obtains module 2100, processing module 2200 and execution module for executing in present embodiment in Fig. 6
2300 particular content, program code and Various types of data needed for memory is stored with the above-mentioned module of execution.Network interface is used for
To the data transmission between user terminal or server.Memory in present embodiment is stored in the method for pushing of live stream
Program code needed for executing all submodules and data, server is capable of the program code of invoking server and data execute institute
There is the function of submodule.
Computer equipment, since stream media management server is Cloud Server, filming apparatus, streaming media server can divide
If being communicated with Streaming Media management Cloud Server, in different equipment by the device information of filming apparatus, streaming media service
The load information of device be sent to Streaming Media management Cloud Server in is shared, in this way, the frame can support filming apparatus and
The extension of streaming media server accesses, and facilitates extension, and then increase application range.
The present invention also provides a kind of storage mediums for being stored with computer-readable instruction, and the computer-readable instruction is by one
When a or multiple processors execute, so that one or more processors execute the push side of live stream described in any of the above-described embodiment
The step of method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between
In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be
The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note
Recall body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of method for pushing of live stream, which is characterized in that be applied to Streaming Media and manage Cloud Server;Include:
Obtain the live streaming request that client is sent, wherein live streaming of the live streaming request for the shooting of request target filming apparatus
Stream;
It is whether online that the target filming apparatus is searched in preset information list according to live streaming request;
When the target filming apparatus is online, the Streaming Media is controlled according to the location information of client in the live streaming request
Server sends the live stream to the client.
2. the method for pushing of live stream according to claim 1, which is characterized in that described to be requested according to the live streaming pre-
If information list in search the target filming apparatus it is whether online before, further includes:
Receive the logon message that the target filming apparatus is sent, wherein the logon message includes the target filming apparatus
Facility information;
Authority Verification is carried out to the logon message;
When permission is verified, the facility information is written in the information list.
3. the method for pushing of live stream according to claim 1, which is characterized in that described to be requested according to the live streaming pre-
If information list in whether search the target filming apparatus online, comprising:
The identification code of the target filming apparatus is extracted from the live streaming request;
The facility information that there are mapping relations with the identification code of the target filming apparatus is searched from the information list;
The keep-alive report sent within a preset time period with the presence or absence of the target filming apparatus according to facility information judgement
Text.
4. the method for pushing of live stream according to claim 1, which is characterized in that described to be judged according to the facility information
After the keep alive Packet sent within a preset time period with the presence or absence of the target filming apparatus, further includes:
When there is the keep alive Packet that the target filming apparatus is sent within a preset time period, the target shooting dress is determined
It sets online.
5. the method for pushing of live stream according to claim 1, which is characterized in that described when the target filming apparatus exists
When line, the streaming media server is controlled according to the location information of client in the live streaming request and sends institute to the client
State live stream, comprising:
Judge to believe in the streaming media server with the presence or absence of the Streaming Media of the target filming apparatus according to the information list
Breath;
When there are when the stream media information, send the first push instruction to the streaming media service in the streaming media server
Device, so that the stream media information that the streaming media server will be present is sent to the client of location information direction.
6. the method for pushing of live stream according to claim 1, which is characterized in that described to be judged according to the information list
After the stream media information that whether there is the target filming apparatus in the streaming media server, further includes:
When the stream media information is not present in the streaming media server, sends the second push instruction and shot to the target
Device so that the target filming apparatus sends the live stream to the streaming media server, and makes the streaming media service
The live stream is transmitted to the client that the location information is directed toward by device.
7. the method for pushing of live stream according to claim 1, which is characterized in that described when the target filming apparatus exists
When line, the streaming media server is controlled according to the location information of client in the live streaming request and sends institute to the client
After stating live stream, further includes:
Receive the release request that the streaming media server is sent;
Command for stopping is sent to the target filming apparatus, so that the target filming apparatus stops to the streaming media server
Push live stream.
8. a kind of driving means of live stream, which is characterized in that manage Cloud Server for Streaming Media;Include:
Module is obtained, for obtaining the live streaming request of client transmission, wherein the live streaming request is for request target shooting dress
Set the live stream of shooting;
Processing module, for according to live streaming request search in preset information list the target filming apparatus whether
Line;
Execution module is used for when the target filming apparatus is online, according to the location information of client in the live streaming request
It controls the streaming media server and sends the live stream to the client.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described
When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right
It is required that the step of method for pushing of the live stream.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more
When device executes, so that one or more processors execute the live stream as described in any one of claims 1 to 7 claim and push away
The step of delivery method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811427136.5A CN109640123A (en) | 2018-11-27 | 2018-11-27 | Method for pushing, device, computer equipment and the storage medium of live stream |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811427136.5A CN109640123A (en) | 2018-11-27 | 2018-11-27 | Method for pushing, device, computer equipment and the storage medium of live stream |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109640123A true CN109640123A (en) | 2019-04-16 |
Family
ID=66069780
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811427136.5A Pending CN109640123A (en) | 2018-11-27 | 2018-11-27 | Method for pushing, device, computer equipment and the storage medium of live stream |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109640123A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110753237A (en) * | 2019-11-05 | 2020-02-04 | 北京金和网络股份有限公司 | Method and device for saving upstream bandwidth flow of streaming media server |
CN111818121A (en) * | 2020-05-26 | 2020-10-23 | 杭州爱教乐学科技有限公司 | Live broadcast communication method and device, computer equipment and storage medium |
CN114895701A (en) * | 2022-04-18 | 2022-08-12 | 深圳织算科技有限公司 | Unmanned aerial vehicle inspection method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101442537A (en) * | 2008-11-11 | 2009-05-27 | 北京星谷科技有限公司 | Method and system for network stream medium living broadcast based on RTSP protocol |
CN106331739A (en) * | 2016-09-05 | 2017-01-11 | 广州爱九游信息技术有限公司 | Method, device, server and system for live broadcast and live broadcast state monitoring method |
CN107483972A (en) * | 2017-07-24 | 2017-12-15 | 平安科技(深圳)有限公司 | Live processing method, storage medium and a kind of mobile terminal of a kind of audio frequency and video |
CN107864125A (en) * | 2017-10-26 | 2018-03-30 | 苏州市伏泰信息科技股份有限公司 | Environmental sanitation unified monitoring management platform |
-
2018
- 2018-11-27 CN CN201811427136.5A patent/CN109640123A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101442537A (en) * | 2008-11-11 | 2009-05-27 | 北京星谷科技有限公司 | Method and system for network stream medium living broadcast based on RTSP protocol |
CN106331739A (en) * | 2016-09-05 | 2017-01-11 | 广州爱九游信息技术有限公司 | Method, device, server and system for live broadcast and live broadcast state monitoring method |
CN107483972A (en) * | 2017-07-24 | 2017-12-15 | 平安科技(深圳)有限公司 | Live processing method, storage medium and a kind of mobile terminal of a kind of audio frequency and video |
CN107864125A (en) * | 2017-10-26 | 2018-03-30 | 苏州市伏泰信息科技股份有限公司 | Environmental sanitation unified monitoring management platform |
Non-Patent Citations (3)
Title |
---|
XIEJIASHU: "EasyDarwin开源流媒体云平台设计与实现(分布式+负载均衡)", 《CSDN,HTTPS://BLOG.CSDN.NET/XIEJIASHU/ARTICLE/DETAILS/51581003》 * |
XIEJIASHU: "基于Darwin实现的分布式流媒体直播服务器系统", 《CSDN,HTTPS://BLOG.CSDN.NET/XIEJIASHU/ARTICLE/DETAILS/14103231》 * |
XIEJIASHU: "基于DSS的先侦听后推送式流媒体转发", 《CSDN,HTTPS://BLOG.CSDN.NET/XIEJIASHU/ARTICLE/DETAILS/8298583》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110753237A (en) * | 2019-11-05 | 2020-02-04 | 北京金和网络股份有限公司 | Method and device for saving upstream bandwidth flow of streaming media server |
CN110753237B (en) * | 2019-11-05 | 2021-09-07 | 北京金和网络股份有限公司 | Method and device for saving upstream bandwidth flow of streaming media server |
CN111818121A (en) * | 2020-05-26 | 2020-10-23 | 杭州爱教乐学科技有限公司 | Live broadcast communication method and device, computer equipment and storage medium |
CN111818121B (en) * | 2020-05-26 | 2023-05-02 | 杭州爱教乐学科技有限公司 | Live broadcast communication method, live broadcast communication device, computer equipment and storage medium |
CN114895701A (en) * | 2022-04-18 | 2022-08-12 | 深圳织算科技有限公司 | Unmanned aerial vehicle inspection method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104270406B (en) | System and associated terminal, method and computer program product for uploading content | |
US8750845B2 (en) | Method and apparatus for providing tiles of dynamic content | |
CN102801788B (en) | A kind of methods, devices and systems realizing augmented reality information sharing | |
US9602623B2 (en) | Method and apparatus for caching local mashup service parameters | |
US20150304417A1 (en) | Data synchronization method, and device | |
CN109640123A (en) | Method for pushing, device, computer equipment and the storage medium of live stream | |
CN105164631A (en) | Method and apparatus for creating a multi-device media presentation | |
US8903972B2 (en) | Method and apparatus for sharing contents using information of group change in content oriented network environment | |
CN104205884A (en) | Multicast broadcast multimedia service-assisted content distribution | |
CN101355726A (en) | Method and system for synchronizing data base based on multimedia information transference | |
US20170097998A1 (en) | Method of providing service for user search, and apparatus, server, and system for the same | |
JP2003173261A (en) | Application distributing system, application distributing method and application distributing program | |
CN109522462B (en) | Cloud query method, device, equipment and storage medium based on block chain | |
CN102571941A (en) | Cloud point-to-point data transmission method and system | |
CN108023736A (en) | Communication means, server device, client device, apparatus and system | |
US8412804B2 (en) | Acquiring information in a communication network relative to a location | |
US20090138198A1 (en) | Apparatus and method for sharing the landmark information of the location service using a java record management system in a wireless communication terminal | |
KR101857020B1 (en) | Apparatas and method for managing service of providing server in a terminal | |
US9292358B2 (en) | Remotely retrieving information from consumer devices | |
CN104184821B (en) | The method and apparatus of session and terminal responds feedback based on sending out notice | |
KR20130093810A (en) | Device and method for performing stream converting, and streaming server for transmitting stream to the device | |
US20070233783A1 (en) | Communication device | |
US9819718B2 (en) | Method for managing apparatus and information distributing apparatus | |
CN107567688A (en) | For handling the apparatus and method of emergency alert message in broadcast system | |
CN111478951B (en) | File issuing method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190416 |