CN108173861A - A kind of method, apparatus of net cast and live streaming distribution connector - Google Patents

A kind of method, apparatus of net cast and live streaming distribution connector Download PDF

Info

Publication number
CN108173861A
CN108173861A CN201711481267.7A CN201711481267A CN108173861A CN 108173861 A CN108173861 A CN 108173861A CN 201711481267 A CN201711481267 A CN 201711481267A CN 108173861 A CN108173861 A CN 108173861A
Authority
CN
China
Prior art keywords
data
live
live streaming
publicly
cloud server
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
Application number
CN201711481267.7A
Other languages
Chinese (zh)
Inventor
赵磊
殷宇辉
董伟臣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201711481267.7A priority Critical patent/CN108173861A/en
Publication of CN108173861A publication Critical patent/CN108173861A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2381Adapting the multiplex stream to a specific network, e.g. an Internet Protocol [IP] network

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the present invention provides a kind of method, apparatus of net cast and live streaming distribution connector, the method is applied to live streaming application program, and live streaming distribution connector is integrated in the live streaming application program, the method includes:Obtain the live data of current live;Call live streaming distribution connector that the live data is converted to target live data;The target live data is sent to publicly-owned Cloud Server, the publicly-owned Cloud Server is used to the target live data being distributed to multiple playback terminals.The present embodiment distributes connector by integrating a live streaming that can realize protocol conversion in application program is broadcast live, the channel between private clound and public cloud is got through, realize the slitless connection between live streaming application program and public cloud, reduce the transmission link of live data, reduce the delay that user watches live streaming.

Description

A kind of method, apparatus of net cast and live streaming distribution connector
Technical field
The present invention relates to field of communication technology, more particularly to a kind of method of net cast, a kind of dress of net cast It puts and a kind of live streaming distribution connector.
Background technology
Net cast refers to the live streaming using internet and stream media technology progress.Because video fusion image, word, The abundant element such as sound, excellent both in sound and shape, excellent so that net cast has been increasingly becoming the mainstream expression way of internet. When carrying out net cast, live TV stream can usually be distributed to each node by dissemination system, such as CDN (Content Delivery Network, content distributing network), so as to which user is facilitated to watch live streaming in time.
At present, user typically acquires number when carrying out net cast by the live streaming application program being mounted in terminal According to, and it is packaged into privately owned media data by the distinctive call format of live streaming application program.Due to the live data collected It is private data, therefore in transmission, needs that privately owned media data are sent to RTMP (Real Time Messaging first Protocol, real-time messages transport protocol) cluster completes format conversion, then by RTMP clusters by transformed publicly-owned data forwarding To publicly-owned video cloud, it is distributed in each terminal for watching live streaming by publicly-owned video cloud.
According to above-mentioned live transmission mode, since intermediate line link is longer, the link of processing is also more, is easy to cause user and exists It is delayed when watching live streaming larger.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly State a kind of method of net cast of problem, a kind of device of net cast and a kind of corresponding live streaming distribution connector.
One side according to the present invention provides a kind of method of net cast, described applied to live streaming application program Live streaming distribution connector is integrated in live streaming application program, the method includes:
Obtain the live data of current live;
Call live streaming distribution connector that the live data is converted to target live data;
The target live data is sent to publicly-owned Cloud Server, the publicly-owned Cloud Server is used for the target is straight Multicast data is distributed to multiple playback terminals.
Optionally, the step of live data is privately owned media data, the live data of the acquisition current live is wrapped It includes:
Acquire the audio data and/or video data of current live;
It is privately owned media data by the audio data and/or video data encoding.
Optionally, the live streaming distribution connector has protocol conversion interface, and the target live data is public cloud matchmaker Volume data, described the step of calling live streaming distribution connector that the live data is converted to target live data, include:
Call the protocol conversion interface in live streaming distribution connector;
Protocol conversion is carried out to the privately owned media data by the protocol conversion interface, obtains publicly-owned cloud media number According to.
Optionally, it is described that protocol conversion is carried out to the privately owned media data by the protocol conversion interface, it obtains public The step of having cloud media data, includes:
Determine the proprietary protocol form of the privately owned media data;
The privately owned media data are split according to the proprietary protocol form, obtain target data;
The target data is encapsulated as public cloud media data.
Optionally, the public cloud media data is RTMP media datas.
Optionally, the described the step of target live data is sent to publicly-owned Cloud Server, includes:
Establish the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server;
The target live data is sent to by the publicly-owned Cloud Server by the data transmission channel.
Optionally, the live streaming distribution connector has conversation establishing interface and data transmission path establishing interface, described The step of data transmission channel established between the live streaming distribution connector and publicly-owned Cloud Server, includes:
The session established between the live streaming distribution connector and publicly-owned Cloud Server by the conversation establishing interface connects It connects;
According to the session connection, call the data transmission channel create interface establish the live streaming distribution connector with Data transmission channel between publicly-owned Cloud Server.
Optionally, the live streaming distribution connector also has signaling control interface, and the method further includes:
The heartbeat between the live streaming distribution connector and publicly-owned Cloud Server is monitored by the signaling control interface to believe Breath, the heartbeat message are used to maintain the connection between the live streaming distribution connector and publicly-owned Cloud Server.
According to another aspect of the present invention, a kind of live streaming distribution connector is provided, the live streaming distribution connector integrates In being broadcast live in application program, including:
Protocol conversion interface, for after privately owned media data are received, the privately owned media data being converted to publicly-owned Cloud media data;
Conversation establishing interface, for establishing the session connection between the live streaming distribution connector and publicly-owned Cloud Server;
Data transmission channel creates interface, for establishing the session being broadcast live between distribution connector and publicly-owned Cloud Server After connection, the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server is established, is passed by the data The public cloud media data is sent to the publicly-owned Cloud Server by defeated channel;
Signaling control interface, for monitoring the heartbeat message between the live streaming distribution connector and publicly-owned Cloud Server.
According to the third aspect of the invention we, a kind of device of net cast is provided, it is described applied to live streaming application program Live streaming distribution connector is integrated in live streaming application program, described device includes:
Acquisition module, for obtaining the live data of current live;
Modular converter, for calling live streaming distribution connector that the live data is converted to target live data;
Sending module, for the target live data to be sent to publicly-owned Cloud Server, the publicly-owned Cloud Server is used In the target live data is distributed to multiple playback terminals.
Optionally, the live data is privately owned media data, and the acquisition module includes:
Submodule is acquired, for acquiring the audio data of current live and/or video data;
Encoding submodule, for being privately owned media data by the audio data and/or video data encoding.
Optionally, the live streaming distribution connector has protocol conversion interface, and the target live data is public cloud matchmaker Volume data, the modular converter include:
Submodule is called, for calling the protocol conversion interface being broadcast live in distribution connector;
Transform subblock for carrying out protocol conversion to the privately owned media data by the protocol conversion interface, obtains Obtain public cloud media data.
Optionally, the transform subblock includes:
Determination unit, for determining the proprietary protocol form of the privately owned media data;
Split cells for being split according to the proprietary protocol form to the privately owned media data, obtains target Data;
Encapsulation unit, for the target data to be encapsulated as public cloud media data.
Optionally, the public cloud media data is RTMP media datas.
Optionally, the sending module includes:
Setting up submodule is led to for establishing the data transmission between the live streaming distribution connector and publicly-owned Cloud Server Road;
Sending submodule, for the target live data to be sent to the public cloud by the data transmission channel Server.
Optionally, the live streaming distribution connector has conversation establishing interface and data transmission path establishing interface, described Setting up submodule includes:
Unit is established in session connection, for pass through the conversation establishing interface establish it is described live streaming distribution connector with it is publicly-owned Session connection between Cloud Server;
Data transmission channel establishes unit, for according to the session connection, the data transmission channel establishment being called to connect Mouth establishes the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server.
Optionally, the live streaming distribution connector also has signaling control interface, and described device further includes:
Module is monitored, the live streaming distribution connector and publicly-owned Cloud Server are monitored for passing through the signaling control interface Between heartbeat message, the heartbeat message be used for maintain it is described live streaming distribution connector and publicly-owned Cloud Server between company It connects.
According to the fourth aspect of the invention, a kind of device of net cast is provided, including processor, memory and storage On the memory and the computer program that can run on the processor, the computer program are held by the processor The step of method of above-mentioned net cast is realized during row.
According to the fifth aspect of the invention, a kind of computer readable storage medium, the computer-readable storage are provided Computer program is stored on medium, the computer program realizes the step of the method for above-mentioned net cast when being executed by processor Suddenly.
The embodiment of the present invention by integrating live streaming distribution connector in application program is broadcast live, distributes connector by live streaming Protocol conversion is carried out to the privately owned media data acquired during live streaming, obtains the target for meeting the transmission requirement of publicly-owned Cloud Server Live data, can be by the net distribution of public cloud extremely so as to after target live data is sent to publicly-owned Cloud Server Each playback terminal.The present embodiment distributes company by integrating a live streaming that can realize protocol conversion in application program is broadcast live Device is connect, has got through the channel between private clound and public cloud, realizes the slitless connection between live streaming application program and public cloud, Reduce the transmission link of live data, reduce the delay that user watches live streaming.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of step flow diagram of the method for net cast according to an embodiment of the invention;
Fig. 2 shows the step flow diagrams of the method for another net cast according to an embodiment of the invention;
Fig. 3 shows a kind of schematic block diagram that distribution connector is broadcast live according to an embodiment of the invention;With And
Fig. 4 shows a kind of schematic block diagram of the device of net cast according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
With reference to Fig. 1, a kind of step flow signal of the method for net cast according to an embodiment of the invention is shown Figure, specifically may include steps of:
Step 101, the live data of current live is obtained;
It should be noted that this method can be applied to live streaming application program.It can be a kind of installation that application program, which is broadcast live, In terminal device, have the function of to initiate live streaming and watch the application program of live streaming etc..The present embodiment is to being broadcast live application program Concrete type be not construed as limiting.
In embodiments of the present invention, live streaming distribution connector can be integrated with by being broadcast live in application program.The connector can be with Connection live streaming application program and publicly-owned Cloud Server, and the live data acquired to live streaming application program carries out protocol conversion.
In embodiments of the present invention, publicly-owned Cloud Server can refer to the distributed stream matchmaker built based on standard agreement RTMP Body Distributor.Publicly-owned Cloud Server is based on TCP (Transmission Control Protocol, transmission control protocol) It is transmitted, is merely able to access standard RTMP upstreams and is distributed.
RTMP is a kind of procotol for being designed to carry out real-time data communication, is mainly used in Flash platforms and branch It holds and audio and video and data communication is carried out between Streaming Media/interactive server of RTMP agreements.
In embodiments of the present invention, current live can refer to user currently by the way that application program ongoing one is broadcast live A live streaming, the user are the initiator of current live.
When user is broadcast live, live streaming application program can be by calling camera or microphone in terminal device etc. Equipment acquires live data, which can be the audio data and/or video data when user is broadcast live.
Step 102, call live streaming distribution connector that the live data is converted to target live data;
In general, the live data that live streaming application program is acquired is all based on the specific protocol form of the live streaming application program It is packaged, is a kind of privately owned media data.The packaged live data obtained of different live streaming application programs may be not With.
Therefore, each of live streaming is watched in order to realize that the privately owned media data of acquisition can be distributed to by publicly-owned Cloud Server A terminal needs to carry out protocol conversion to above-mentioned privately owned media data so that transformed target live data disclosure satisfy that public affairs There is the transmission requirement of cloud.
In embodiments of the present invention, the live streaming distribution connector for being integrated in live streaming application program in advance can be called to come to private There is media data to carry out protocol conversion, obtain public cloud media data.Above-mentioned public cloud media data can be RTMP media numbers According to the media data of the transmission requirement of publicly-owned Cloud Server can be met.
Step 103, the target live data is sent to publicly-owned Cloud Server, the publicly-owned Cloud Server is used for institute It states target live data and is distributed to multiple playback terminals.
In embodiments of the present invention, it is broadcast live that distribution connector carries out protocol conversion to live data and obtain can calling After meeting the target live data of the transmission requirement of publicly-owned Cloud Server, which can be sent to public cloud clothes Above-mentioned target live data, the multiple playback terminals for watching current live are distributed to by publicly-owned Cloud Server by business device.
In embodiments of the present invention, by integrating live streaming distribution connector in application program is broadcast live, connected by live streaming distribution It connects device and protocol conversion is carried out to the privately owned media data acquired during live streaming, obtain the transmission requirement for meeting publicly-owned Cloud Server Target live data, so as to which after target live data is sent to publicly-owned Cloud Server, the network of public cloud point can be passed through It is sent to each playback terminal.The present embodiment in application program is broadcast live by integrating a live streaming that can realize protocol conversion point Connector is sent out, has got through the channel between private clound and public cloud, is realized seamless between live streaming application program and public cloud Docking, reduces the transmission link of live data, reduces the delay that user watches live streaming.
With reference to Fig. 2, show that the step flow of the method for another net cast according to an embodiment of the invention is shown It is intended to, the method can be applied to live streaming application program, and live streaming distribution connection can be integrated in the live streaming application program Device, the method specifically may include steps of:
Step 201, the audio data and/or video data of current live are acquired;
In embodiments of the present invention, user can call the acquisition of the equipment such as the camera in terminal to regard when being broadcast live Frequency evidence calls the equipment such as microphone acquisition audio data.
Certainly, for different terminals, the mode for acquiring audio data and video data may be different, the present embodiment pair Audio data and video data during being broadcast live how is acquired to be not construed as limiting.
Step 202, it is privately owned media data by the audio data and/or video data encoding;
In embodiments of the present invention, after the audio data and/or video data during collecting live streaming, live streaming should Above-mentioned audio data and/or video data can be packaged according to specific protocol format with program, obtain privately owned media Data.
It should be noted that different live streaming application programs is packaged the audio data and/or video data of acquisition Mode may be different.Correspondingly, the privately owned media data obtained after encapsulation may also be different.
Step 203, the protocol conversion interface in live streaming distribution connector is called;
In embodiments of the present invention, the live streaming distribution connector being integrated in live streaming application program can externally provide a variety of Standard interface.For example, protocol conversion interface, conversation establishing interface, data transmission channel create interface and, signaling control connect Mouthful etc..
Wherein, protocol conversion interface can carry out agreement turn to the privately owned media data that live streaming application program encapsulates It changes, obtains the publicly-owned media data for the transmission requirement for meeting publicly-owned Cloud Server.
Therefore, after encapsulation obtains privately owned media data, the protocol conversion in live streaming distribution connector can be called first Then interface performs step 204, protocol conversion is carried out to privately owned media data.
Step 204, protocol conversion is carried out to the privately owned media data by the protocol conversion interface, obtains public cloud Media data;
It in embodiments of the present invention, can be with when invocation protocol translation interface carries out protocol conversion to privately owned media data The proprietary protocol form of the privately owned media data is determined first.
In general, there is different agreements using the privately owned media data that different proprietary protocol forms is packaged Head.
It therefore, can be according to the proprietary protocol form to above-mentioned privately owned media data after proprietary protocol form is determined It is split, removes corresponding protocol header, obtain target data.Then, which is encapsulated as public cloud media data.
In embodiments of the present invention, public cloud media data can refer to RTMP media datas, can meet public cloud The peace of server pricks the media data that RTMP agreements carry out data transmission.
Step 205, the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server is established;
In embodiments of the present invention, after the protocol conversion for completing privately owned media data in invocation protocol translation interface, in order to The public cloud media data obtained after conversion is sent to publicly-owned Cloud Server, it is also necessary in live streaming distribution connector and public cloud Corresponding data transmission channel is established between server.
In embodiments of the present invention, what the conversation establishing interface in live streaming distribution connector can realize session establishes work( Can, data transmission channel, which creates interface, can realize that channel creates function.
Therefore, in the concrete realization, conversation establishing interface can be called first, and live streaming point is established by conversation establishing interface Send out the session connection between connector and publicly-owned Cloud Server;Then according to the session connection having built up, data transmission is called Channel creates interface and establishes the data transmission channel being broadcast live between distribution connector and publicly-owned Cloud Server, so as to get through live streaming point Send out the data transmission channel between connector and publicly-owned Cloud Server.
Step 206, the target live data is sent to by the publicly-owned Cloud Server by the data transmission channel, The publicly-owned Cloud Server is used to the target live data being distributed to multiple playback terminals;
In embodiments of the present invention, the data transmission channel between live streaming distribution connector and publicly-owned Cloud Server is being got through Afterwards, can the public cloud media data that obtained after conversion be sent to by publicly-owned Cloud Server by the channel, by publicly-owned cloud service Device is distributed above-mentioned data so that other users can receive above-mentioned data in time by playback terminal, so as to receive See current live.
Step 207, it is monitored between the live streaming distribution connector and publicly-owned Cloud Server by the signaling control interface Heartbeat message, the heartbeat message be used for maintain it is described live streaming distribution connector and publicly-owned Cloud Server between connection.
In embodiments of the present invention, distribution connection can be broadcast live establishing in the signaling control interface in live streaming distribution connector After session connection between device and publicly-owned Cloud Server, heartbeat message therebetween is monitored in real time, and support the heart It jumps packet to keep, to be handled in time when occurring abnormal, ensures being smoothed out for live streaming.
In embodiments of the present invention, by integrating live streaming distribution connector in application program is broadcast live, connected by live streaming distribution The protocol conversion interface connect in device converts the privately owned media data collected, obtains the biography for meeting publicly-owned Cloud Server The public cloud media data of defeated requirement, so as to which conversation establishing interface and data transmission path establishing interface is being called to set up After data transmission channel between live streaming distribution connector and publicly-owned Cloud Server, public cloud media data is sent in time Publicly-owned Cloud Server is carried out the distribution of data by publicly-owned Cloud Server, reduces the transmission link of data, reduce user and watch The delay of live streaming.The present embodiment can also be monitored between live streaming distribution connector and publicly-owned Cloud Server by signaling control interface Heartbeat message, so as to be handled in time abnormal when occurring abnormal, be effectively guaranteed the suitable of live streaming Profit carries out.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this field Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, certain steps may be used other sequences or are carried out at the same time.Secondly, those skilled in the art should also know, specification Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 3, a kind of schematic structure frame that distribution connector is broadcast live according to an embodiment of the invention is shown Figure, the live streaming distribution connector can be integrated in live streaming application program, and the live streaming distribution connection implement body can include Such as lower interface:
Protocol conversion interface 301, for after privately owned media data are received, the privately owned media data to be converted to public affairs There are cloud media data;
Conversation establishing interface 302 connects for establishing the session between the live streaming distribution connector and publicly-owned Cloud Server It connects;
Data transmission channel creates interface 303, for establishing between live streaming distribution connector and publicly-owned Cloud Server After session connection, the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server is established, passes through the number The public cloud media data is sent to the publicly-owned Cloud Server according to transmission channel;
Signaling control interface 304 is believed for monitoring the heartbeat between the live streaming distribution connector and publicly-owned Cloud Server Breath.
Function class described in the function and above-described embodiment of each interface connected by distribution is broadcast live in this present embodiment Seemingly, it can mutually refer to, the present embodiment repeats no more this.
With reference to Fig. 4, a kind of schematic structure frame of the device of net cast according to an embodiment of the invention is shown Figure, described device can be applied to live streaming application program, live streaming distribution connector can be integrated in the live streaming application program, Described device can specifically include following module:
Acquisition module 401, for obtaining the live data of current live;
Modular converter 402, for calling live streaming distribution connector that the live data is converted to target live data;
Sending module 403, for the target live data to be sent to publicly-owned Cloud Server, the publicly-owned Cloud Server For the target live data to be distributed to multiple playback terminals.
In embodiments of the present invention, the live data can be privately owned media data, and the acquisition module 401 specifically may be used To include following submodule:
Submodule is acquired, for acquiring the audio data of current live and/or video data;
Encoding submodule, for being privately owned media data by the audio data and/or video data encoding.
In embodiments of the present invention, the live streaming distribution connector can have protocol conversion interface, the target live streaming Data can be public cloud media data, and the modular converter 402 can specifically include following submodule:
Submodule is called, for calling the protocol conversion interface being broadcast live in distribution connector;
Transform subblock for carrying out protocol conversion to the privately owned media data by the protocol conversion interface, obtains Obtain public cloud media data.
In embodiments of the present invention, the transform subblock can specifically include such as lower unit:
Determination unit, for determining the proprietary protocol form of the privately owned media data;
Split cells for being split according to the proprietary protocol form to the privately owned media data, obtains target Data;
Encapsulation unit, for the target data to be encapsulated as public cloud media data.
In embodiments of the present invention, the public cloud media data can be RTMP media datas.
In embodiments of the present invention, the sending module 403 can specifically include following submodule:
Setting up submodule is led to for establishing the data transmission between the live streaming distribution connector and publicly-owned Cloud Server Road;
Sending submodule, for the target live data to be sent to the public cloud by the data transmission channel Server.
In embodiments of the present invention, the live streaming distribution connector can also have conversation establishing interface and data transmission to lead to Road creates interface, and the setting up submodule can specifically include such as lower unit:
Unit is established in session connection, for pass through the conversation establishing interface establish it is described live streaming distribution connector with it is publicly-owned Session connection between Cloud Server;
Data transmission channel establishes unit, for according to the session connection, the data transmission channel establishment being called to connect Mouth establishes the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server.
In embodiments of the present invention, the live streaming distribution connector can also have signaling control interface, and described device is also It can include following module:
Module is monitored, the live streaming distribution connector and publicly-owned Cloud Server are monitored for passing through the signaling control interface Between heartbeat message, the heartbeat message be used for maintain it is described live streaming distribution connector and publicly-owned Cloud Server between company It connects.
The embodiment of the present invention additionally provides a kind of device of net cast, including processor, memory and is stored in described It is real when the computer program is performed by the processor on memory and the computer program that can run on the processor Now the step of method of net cast as described above.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is deposited on the computer readable storage medium The step of storage computer program, the computer program realizes the method for net cast as described above when being executed by processor.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization or to be run on one or more processor Software module realize or realized with combination thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) come realize the method, apparatus of net cast according to embodiments of the present invention and The some or all functions of some or all components in live streaming distribution connector.The present invention is also implemented as holding The some or all equipment or program of device of row method as described herein are (for example, computer program and computer Program product).It is such realize the present invention program can may be stored on the computer-readable medium or can have there are one or The form of the multiple signals of person.Such signal can be downloaded from internet website obtain or provided on carrier signal or Person is provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and run after fame Claim.
The invention discloses A1, a kind of method of net cast, applied to live streaming application program, the live streaming application program In be integrated with live streaming distribution connector, the method includes:
Obtain the live data of current live;
Call live streaming distribution connector that the live data is converted to target live data;
The target live data is sent to publicly-owned Cloud Server, the publicly-owned Cloud Server is used for the target is straight Multicast data is distributed to multiple playback terminals.
A2, the method as described in A1, the live data are privately owned media data, the live streaming number for obtaining current live According to the step of include:
Acquire the audio data and/or video data of current live;
It is privately owned media data by the audio data and/or video data encoding.
A3, the method as described in A2, the live streaming distribution connector have protocol conversion interface, the target live data For public cloud media data, described the step of calling live streaming distribution connector that the live data is converted to target live data Including:
Call the protocol conversion interface in live streaming distribution connector;
Protocol conversion is carried out to the privately owned media data by the protocol conversion interface, obtains publicly-owned cloud media number According to.
A4, the method as described in A3, it is described that agreement is carried out to the privately owned media data by the protocol conversion interface The step of conversion, acquisition public cloud media data, includes:
Determine the proprietary protocol form of the privately owned media data;
The privately owned media data are split according to the proprietary protocol form, obtain target data;
The target data is encapsulated as public cloud media data.
A5, the method as described in A3 or A4, the public cloud media data are RTMP media datas.
A6, the method as described in A1, the described the step of target live data is sent to publicly-owned Cloud Server, include:
Establish the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server;
The target live data is sent to by the publicly-owned Cloud Server by the data transmission channel.
There is conversation establishing interface and data transmission channel to create for A7, the method as described in A6, the live streaming distribution connector Interface is built, described establish includes the step of data transmission channel between connector and publicly-owned Cloud Server is distributed in the live streaming:
The session established between the live streaming distribution connector and publicly-owned Cloud Server by the conversation establishing interface connects It connects;
According to the session connection, call the data transmission channel create interface establish the live streaming distribution connector with Data transmission channel between publicly-owned Cloud Server.
A8, the method as described in A6 or A7, the live streaming distribution connector also have signaling control interface, and the method is also Including:
The heartbeat between the live streaming distribution connector and publicly-owned Cloud Server is monitored by the signaling control interface to believe Breath, the heartbeat message are used to maintain the connection between the live streaming distribution connector and publicly-owned Cloud Server.
The invention also discloses B9, a kind of live streaming distribution connector, the live streaming distribution connector is integrated in live streaming application In program, including:
Protocol conversion interface, for after privately owned media data are received, the privately owned media data being converted to publicly-owned Cloud media data;
Conversation establishing interface, for establishing the session connection between the live streaming distribution connector and publicly-owned Cloud Server;
Data transmission channel creates interface, for establishing the session being broadcast live between distribution connector and publicly-owned Cloud Server After connection, the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server is established, is passed by the data The public cloud media data is sent to the publicly-owned Cloud Server by defeated channel;
Signaling control interface, for monitoring the heartbeat message between the live streaming distribution connector and publicly-owned Cloud Server.
The invention also discloses C10, a kind of devices of net cast, applied to live streaming application program, the live streaming application Live streaming distribution connector is integrated in program, described device includes:
Acquisition module, for obtaining the live data of current live;
Modular converter, for calling live streaming distribution connector that the live data is converted to target live data;
Sending module, for the target live data to be sent to publicly-owned Cloud Server, the publicly-owned Cloud Server is used In the target live data is distributed to multiple playback terminals.
C11, the device as described in C10, the live data are privately owned media data, and the acquisition module includes:
Submodule is acquired, for acquiring the audio data of current live and/or video data;
Encoding submodule, for being privately owned media data by the audio data and/or video data encoding.
C12, the device as described in C11, the live streaming distribution connector have protocol conversion interface, and number is broadcast live in the target According to for public cloud media data, the modular converter includes:
Submodule is called, for calling the protocol conversion interface being broadcast live in distribution connector;
Transform subblock for carrying out protocol conversion to the privately owned media data by the protocol conversion interface, obtains Obtain public cloud media data.
C13, the device as described in C12, the transform subblock include:
Determination unit, for determining the proprietary protocol form of the privately owned media data;
Split cells for being split according to the proprietary protocol form to the privately owned media data, obtains target Data;
Encapsulation unit, for the target data to be encapsulated as public cloud media data.
C14, the device as described in C12 or C13, the public cloud media data are RTMP media datas.
C15, the device as described in C10, the sending module include:
Setting up submodule is led to for establishing the data transmission between the live streaming distribution connector and publicly-owned Cloud Server Road;
Sending submodule, for the target live data to be sent to the public cloud by the data transmission channel Server.
C16, the device as described in C15, the live streaming distribution connector have conversation establishing interface and data transmission channel Interface is created, the setting up submodule includes:
Unit is established in session connection, for pass through the conversation establishing interface establish it is described live streaming distribution connector with it is publicly-owned Session connection between Cloud Server;
Data transmission channel establishes unit, for according to the session connection, the data transmission channel establishment being called to connect Mouth establishes the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server.
C17, the device as described in C15 or C16, the live streaming distribution connector also have signaling control interface, the dress It puts and further includes:
Module is monitored, the live streaming distribution connector and publicly-owned Cloud Server are monitored for passing through the signaling control interface Between heartbeat message, the heartbeat message be used for maintain it is described live streaming distribution connector and publicly-owned Cloud Server between company It connects.
The invention also discloses D18, a kind of devices of net cast, including processor, memory and are stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being performed by the processor The step of method of net cast as described in any one of A1 to A8.
The invention also discloses E19, a kind of computer readable storage medium, stored on the computer readable storage medium Computer program realizes the side of the net cast as described in any one of A1 to A8 when the computer program is executed by processor The step of method.

Claims (10)

1. applied to live streaming application program, live streaming distribution is integrated in the live streaming application program for a kind of method of net cast Connector, the method includes:
Obtain the live data of current live;
Call live streaming distribution connector that the live data is converted to target live data;
The target live data is sent to publicly-owned Cloud Server, the publicly-owned Cloud Server is used to target number is broadcast live According to being distributed to multiple playback terminals.
2. the method as described in claim 1, which is characterized in that the live data is privately owned media data, and the acquisition is worked as The step of live data of preceding live streaming, includes:
Acquire the audio data and/or video data of current live;
It is privately owned media data by the audio data and/or video data encoding.
3. method as claimed in claim 2, which is characterized in that the live streaming distribution connector has protocol conversion interface, institute Target live data is stated as public cloud media data, it is described to call live streaming distribution connector that the live data is converted to target The step of live data, includes:
Call the protocol conversion interface in live streaming distribution connector;
Protocol conversion is carried out to the privately owned media data by the protocol conversion interface, obtains public cloud media data.
4. method as claimed in claim 3, which is characterized in that it is described by the protocol conversion interface to the privately owned media The step of data progress protocol conversion, acquisition public cloud media data, includes:
Determine the proprietary protocol form of the privately owned media data;
The privately owned media data are split according to the proprietary protocol form, obtain target data;
The target data is encapsulated as public cloud media data.
5. the method as described in claim 3 or 4, which is characterized in that the public cloud media data is RTMP media datas.
6. the method as described in claim 1, which is characterized in that described that the target live data is sent to publicly-owned cloud service The step of device, includes:
Establish the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server;
The target live data is sent to by the publicly-owned Cloud Server by the data transmission channel.
7. a kind of live streaming distribution connector, the live streaming distribution connector is integrated in live streaming application program, including:
Protocol conversion interface, for after privately owned media data are received, the privately owned media data to be converted to public cloud matchmaker Volume data;
Conversation establishing interface, for establishing the session connection between the live streaming distribution connector and publicly-owned Cloud Server;
Data transmission channel creates interface, for establishing the session connection being broadcast live between distribution connector and publicly-owned Cloud Server Afterwards, the data transmission channel between the live streaming distribution connector and publicly-owned Cloud Server is established, is led to by the data transmission The public cloud media data is sent to the publicly-owned Cloud Server by road;
Signaling control interface, for monitoring the heartbeat message between the live streaming distribution connector and publicly-owned Cloud Server.
8. applied to live streaming application program, live streaming distribution is integrated in the live streaming application program for a kind of device of net cast Connector, described device include:
Acquisition module, for obtaining the live data of current live;
Modular converter, for calling live streaming distribution connector that the live data is converted to target live data;
Sending module, for the target live data to be sent to publicly-owned Cloud Server, the publicly-owned Cloud Server is used for will The target live data is distributed to multiple playback terminals.
9. a kind of device of net cast, which is characterized in that including processor, memory and be stored on the memory and can The computer program run on the processor realizes such as claim when the computer program is performed by the processor The step of method of net cast described in any one of 1 to 6.
10. a kind of computer readable storage medium, which is characterized in that computer journey is stored on the computer readable storage medium Sequence realizes the method such as net cast according to any one of claims 1 to 6 when the computer program is executed by processor The step of.
CN201711481267.7A 2017-12-29 2017-12-29 A kind of method, apparatus of net cast and live streaming distribution connector Pending CN108173861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711481267.7A CN108173861A (en) 2017-12-29 2017-12-29 A kind of method, apparatus of net cast and live streaming distribution connector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711481267.7A CN108173861A (en) 2017-12-29 2017-12-29 A kind of method, apparatus of net cast and live streaming distribution connector

Publications (1)

Publication Number Publication Date
CN108173861A true CN108173861A (en) 2018-06-15

Family

ID=62516510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711481267.7A Pending CN108173861A (en) 2017-12-29 2017-12-29 A kind of method, apparatus of net cast and live streaming distribution connector

Country Status (1)

Country Link
CN (1) CN108173861A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810644A (en) * 2018-06-28 2018-11-13 武汉斗鱼网络科技有限公司 Barrage message distributing method, device, equipment and storage medium
CN111030995A (en) * 2019-11-11 2020-04-17 视联动力信息技术股份有限公司 Video information processing method and device based on video network
CN112995714A (en) * 2021-04-08 2021-06-18 天津天地伟业智能安全防范科技有限公司 Method and device for converting private video stream into RTMP standard stream
CN113727144A (en) * 2021-09-02 2021-11-30 中国联合网络通信集团有限公司 High-definition live broadcast system and streaming media method based on mixed cloud
CN115442348A (en) * 2022-11-09 2022-12-06 成都华栖云科技有限公司 Multi-protocol multi-terminal interaction-based real-time teaching interaction method and system
WO2023246486A1 (en) * 2022-06-23 2023-12-28 北京字跳网络技术有限公司 Method and apparatus for creating connector

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811368A (en) * 2012-07-16 2012-12-05 北京邮电大学 Mobile video live broadcasting system
CN103731641A (en) * 2014-01-14 2014-04-16 深圳英飞拓科技股份有限公司 Video streaming data distribution method and device for monitoring device
CN104506883A (en) * 2014-12-11 2015-04-08 成都德芯数字科技有限公司 Audio and video encoder based on wide area network live broadcast and working method thereof
US20160014439A1 (en) * 2014-07-14 2016-01-14 Cisco Technology Inc. Indexing of Video Assets
CN105516739A (en) * 2015-12-22 2016-04-20 腾讯科技(深圳)有限公司 Video live broadcasting method and system, transcoding server and webpage client
CN105657440A (en) * 2016-01-05 2016-06-08 福建星网智慧科技股份有限公司 Video broadcast method and system
CN105898620A (en) * 2015-11-26 2016-08-24 乐视移动智能信息技术(北京)有限公司 Multimedia real-time live broadcast method and device
CN106453337A (en) * 2016-10-21 2017-02-22 安徽协创物联网技术有限公司 Framework system of live video streaming
CN106790044A (en) * 2016-12-19 2017-05-31 北京数码视讯科技股份有限公司 The method and apparatus that TS code streams are converted to RTP code streams
US20170164016A1 (en) * 2015-12-03 2017-06-08 Le Holdings (Beijing) Co., Ltd. Data transfer method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811368A (en) * 2012-07-16 2012-12-05 北京邮电大学 Mobile video live broadcasting system
CN103731641A (en) * 2014-01-14 2014-04-16 深圳英飞拓科技股份有限公司 Video streaming data distribution method and device for monitoring device
US20160014439A1 (en) * 2014-07-14 2016-01-14 Cisco Technology Inc. Indexing of Video Assets
CN104506883A (en) * 2014-12-11 2015-04-08 成都德芯数字科技有限公司 Audio and video encoder based on wide area network live broadcast and working method thereof
CN105898620A (en) * 2015-11-26 2016-08-24 乐视移动智能信息技术(北京)有限公司 Multimedia real-time live broadcast method and device
US20170164016A1 (en) * 2015-12-03 2017-06-08 Le Holdings (Beijing) Co., Ltd. Data transfer method and device
CN105516739A (en) * 2015-12-22 2016-04-20 腾讯科技(深圳)有限公司 Video live broadcasting method and system, transcoding server and webpage client
CN105657440A (en) * 2016-01-05 2016-06-08 福建星网智慧科技股份有限公司 Video broadcast method and system
CN106453337A (en) * 2016-10-21 2017-02-22 安徽协创物联网技术有限公司 Framework system of live video streaming
CN106790044A (en) * 2016-12-19 2017-05-31 北京数码视讯科技股份有限公司 The method and apparatus that TS code streams are converted to RTP code streams

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810644A (en) * 2018-06-28 2018-11-13 武汉斗鱼网络科技有限公司 Barrage message distributing method, device, equipment and storage medium
CN108810644B (en) * 2018-06-28 2020-10-16 武汉斗鱼网络科技有限公司 Bullet screen message distribution method, device, equipment and storage medium
CN111030995A (en) * 2019-11-11 2020-04-17 视联动力信息技术股份有限公司 Video information processing method and device based on video network
CN112995714A (en) * 2021-04-08 2021-06-18 天津天地伟业智能安全防范科技有限公司 Method and device for converting private video stream into RTMP standard stream
CN113727144A (en) * 2021-09-02 2021-11-30 中国联合网络通信集团有限公司 High-definition live broadcast system and streaming media method based on mixed cloud
WO2023246486A1 (en) * 2022-06-23 2023-12-28 北京字跳网络技术有限公司 Method and apparatus for creating connector
CN115442348A (en) * 2022-11-09 2022-12-06 成都华栖云科技有限公司 Multi-protocol multi-terminal interaction-based real-time teaching interaction method and system
CN115442348B (en) * 2022-11-09 2023-01-24 成都华栖云科技有限公司 Multi-protocol multi-terminal interaction-based real-time teaching interaction method and system

Similar Documents

Publication Publication Date Title
CN108173861A (en) A kind of method, apparatus of net cast and live streaming distribution connector
US10783891B2 (en) Transcription presentation of communication sessions
CN107295354A (en) Connect the live method for building up of wheat and device in a kind of network direct broadcasting
CN108271032B (en) Live video switching method and device
CN110392047A (en) Data transmission method, device and equipment
US20130282820A1 (en) Method and System for an Optimized Multimedia Communications System
RU2007122373A (en) CONNECTING INDEPENDENT MULTIMEDIA SOURCES TO CONFERENCE COMMUNICATION
EP3451657B1 (en) Video conference system, application server, device, video conference method, and non-transitory computer readable medium storing video conference program
CN109040177B (en) Aged accompanying method and system based on affection network
CN108200444A (en) A kind of methods, devices and systems of net cast
CN108156475A (en) The monitoring method and device of a kind of net cast
CN109428864A (en) Improve the method and device that nginx-rtmp draws streaming quality
CN109429108A (en) A kind of mobile terminal iOS connects wheat framework based on the viewing end video of Socket.IO and WebRTC
CN104348700B (en) Method and system for issuing microblog
WO2018006678A1 (en) Voice call method and apparatus
US20180077205A1 (en) Potential echo detection and warning for online meeting
EP2583431B1 (en) Procedure for commercial communications
CN110225287A (en) Audio-frequency processing method and device
CN114584808B (en) Video stream acquisition method, device, system, equipment and medium
CN104348823B (en) SIPPhone server, call center system and its means of communication
JP2016540454A (en) Endpoint information interaction processing method, apparatus, and telepresence endpoint
CN108616760A (en) A kind of live broadcasting method, server, main broadcaster end and user terminal based on browser
CN106302363A (en) The management method of media cascade and device
US10313405B2 (en) Dynamically configured conferencing
CN112738026B (en) Commanding and scheduling method

Legal Events

Date Code Title Description
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: 20180615

RJ01 Rejection of invention patent application after publication