CN106254899B - A kind of live streaming connects the control method and system of wheat - Google Patents

A kind of live streaming connects the control method and system of wheat Download PDF

Info

Publication number
CN106254899B
CN106254899B CN201610675536.2A CN201610675536A CN106254899B CN 106254899 B CN106254899 B CN 106254899B CN 201610675536 A CN201610675536 A CN 201610675536A CN 106254899 B CN106254899 B CN 106254899B
Authority
CN
China
Prior art keywords
live
stream
live streaming
wheat
streaming end
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.)
Active
Application number
CN201610675536.2A
Other languages
Chinese (zh)
Other versions
CN106254899A (en
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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201610675536.2A priority Critical patent/CN106254899B/en
Publication of CN106254899A publication Critical patent/CN106254899A/en
Application granted granted Critical
Publication of CN106254899B publication Critical patent/CN106254899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/2365Multiplexing of several video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides the control method and system of a kind of company of live streaming wheat, which comprises establishes the company wheat between the first live streaming end and the second live streaming end;The live stream at the first live streaming end and second live streaming end push is received respectively and the live stream that end draws stream to obtain second live streaming end is broadcast live for described first, and described second is broadcast live the live stream that end draws stream to obtain first live streaming end;It receives the merging stream of the live stream comprising first live streaming end of first live streaming end push and the live stream at second live streaming end and draws stream to obtain the merging for viewer end and flow.The present invention efficiently solves the problems, such as that there are audio, video data transmission quality caused by trans-regional, cross operator phenomenon is low between main broadcaster and " two wheats ", the synchronism of main broadcaster's audio, video data Yu " two wheats " audio, video data is effectively ensured, the requirement to spectators' downlink bandwidth of viewing live streaming is lower.

Description

A kind of live streaming connects the control method and system of wheat
Technical field
The present invention relates to Streaming Media interaction technique field, specially a kind of straight more particularly to audio-video interaction technique field The control method and system of the company of broadcasting wheat.
Background technique
Along with the fast development of Internet technology, Stream Media Application is progressed into the daily life of numerous netizens, many How more UGC class business innovate audio-video interactive mode because its original novel content attracts a large number of users, are promoted and used Family experience becomes the direction of audio-video business development.
With the development that China's bandwidth raises speed, people, from text, picture, gradually send out in such a way that internet transmits information Zhan Weiyin, video interactive.Generation until interacting live broadcast service, dramatically enriches the free life of numerous netizens.It is dynamic In live broadcast service, the initial business form is one-way video displaying, i.e., spectators can only unidirectionally watch main broadcaster, later gradually based on development Video display is broadcast, spectators are interacted by way of text, barrage with main broadcaster.It nowadays, is further to enrich between main broadcaster and spectators Interactive Experience produces live streaming even wheat business, i.e. main broadcaster can carry out two-way audio-video with specific spectators (claiming " two wheats ") Interaction, and General Visitors can watch the audio-video-interactive process of main broadcaster Yu specific spectators.
Application No. is 201410062381.6 patents " video interactive method, terminal, server and system " to disclose one Kind connects the implementation method of wheat business, and the technical solution of the patent can be realized basic company's wheat business, by the way that end is broadcast live for first Even wheat session connection is established with the second live streaming end, to enable the first live streaming end and second that end is broadcast live respectively at the same window interface The video data at the first live streaming end of display and the second live streaming end publication, thus video interactive is enriched, but there are the following problems:
1, session connection is directly established between main broadcaster and " two wheats ", main broadcaster and " two wheats " have trans-regional, cross operator It may cause that audio, video data transmission quality is low, influence the user experience of even wheat business.
2, spectators obtain the audio-video live data of main broadcaster and " two wheats " respectively, may be because of viewer end caused by network fluctuation The two-way stream time delay of acquisition is inconsistent, asynchronous so as to cause main broadcaster and " two wheats " live data, interaction timing entanglement occurs The phenomenon that.
3, spectators obtain the audio-video live data of main broadcaster and " two wheats " respectively, and the downlink bandwidth needs of spectators are enough to hold Two-way live stream is carried, it is higher to spectators' bandwidth requirement.
It can be seen that current live streaming connects that wheat technology is still immature, and there are data transmission qualities, poor, live data can not be protected Card is synchronous and requires the network speed of viewing live streaming the problem of high bring user experience difference.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of control methods of live streaming even wheat And system, for data transmission quality present in the solution in the prior art company of live streaming wheat, poor, live data not can guarantee synchronization And the problem of high bring user experience difference is required the network speed of viewing live streaming.
In order to achieve the above objects and other related objects, the present invention provides a kind of control method of the company of live streaming wheat, described straight The control method of the company of broadcasting wheat includes: the company wheat established between the first live streaming end and the second live streaming end;It is straight that described first is received respectively It broadcasts the live stream at end and second live streaming end push and draws stream to obtain the straight of second live streaming end for first live streaming end Stream is broadcast, second live streaming end draws stream to obtain the described first live stream that end is broadcast live;Receive the packet of first live streaming end push The merging stream of the live stream of the live stream and second live streaming end at the end containing first live streaming simultaneously draws stream to obtain institute for viewer end State merging stream.
In one embodiment of the invention, the live streaming connects the control method of wheat further include: receives first live streaming end Or it is described second live streaming end send disconnection connect wheat request, according to disconnections even wheat request, disconnect it is described first live streaming end with Company wheat between second live streaming end;Lian Maihou is disconnected at the first live streaming end and second live streaming end, is received from institute It states the live stream at first live streaming end of the first live streaming end push and draws stream to obtain for the second live streaming end and the viewer end Take the live stream at first live streaming end.
To achieve the above object, the present invention also provides a kind of control method of live streaming even wheat, the live streaming connects the control of wheat Method includes: that the first live streaming end receives the company wheat request from the second live streaming end and asks in the company wheat for receiving second live streaming end After asking, even wheat is established with second live streaming end;Live streaming Lian Maihou is established at the first live streaming end and second live streaming end, It is described first live streaming end by local live stream push to the multi-thread interactive server of CDN live stream and from the CDN live stream it is multi-thread Interactive server draws stream to obtain second live streaming end and is pushed to the live stream in the multi-thread interactive server of CDN live stream; The first live streaming end carries out split screen broadcasting to the live stream at second live streaming end of local live stream and acquisition;Described first The live stream of local live stream and second live streaming end of acquisition is carried out interflow processing by live streaming end, generates one comprising local straight It broadcasts the merging stream of the live stream at stream and second live streaming end and the merging stream is pushed into CDN live stream central server, So that the CDN live stream central server provides merging stream plug-flow most viewer end to the CDN node service of live stream Device draws stream to obtain described first simultaneously and the live stream at end and described is broadcast live for the viewer end from the CDN node server The live stream at the second live streaming end.
In one embodiment of the invention, the live streaming connects the control method of wheat further include: first live streaming end request Even wheat or reception, which are disconnected, with second live streaming end and executes the disconnection from second live streaming end connects wheat request;Described first End is broadcast live after disconnecting even wheat request with second live streaming end, the first live streaming end pushes to local live stream described CDN live stream central server, so that the CDN live stream central server pushes away the live stream at first live streaming end respectively The most described second live streaming end and the viewer end is sent to provide the CDN node server of live stream, for second live streaming end Stream is drawn to obtain the described first live stream that end is broadcast live from the corresponding CDN node server respectively with the viewer end.
To achieve the above object, the present invention also provides a kind of control method of live streaming even wheat, the live streaming connects the control of wheat Method includes: the request of the second live streaming end and even wheat is established at the first live streaming end, and is terminated after by even wheat request in first live streaming, Even wheat is established at the second live streaming end and first live streaming end;It is established at the second live streaming end and first live streaming end straight Lian Maihou is broadcast, local live stream is pushed to the multi-thread interactive server of CDN live stream by second live streaming end;Second live streaming End from the multi-thread interactive server of the CDN live stream draws stream to obtain first live streaming end, and to be pushed to the CDN live stream multi-thread Live stream in interactive server, and split screen is carried out to the live stream at first live streaming end of local live stream and acquisition and is broadcast It puts.
In one embodiment of the invention, the live streaming connects the control method of wheat further include: second live streaming end request Even wheat is disconnected with first live streaming end or second live streaming terminates and executes the disconnection from first live streaming end and connects wheat Request;The second live streaming end is after disconnecting even wheat request with first live streaming end, and second live streaming end is from described in offer The CDN node server of the live stream at the first live streaming end obtains the live stream at first live streaming end.
To achieve the above object, the present invention also provides a kind of control system of live streaming even wheat, the live streaming connects the control of wheat System includes: to connect wheat server, the company wheat for establishing between the first live streaming end and the second live streaming end;The multi-thread friendship of CDN live stream Mutual server, for receive the live stream at the first live streaming end and second live streaming end push respectively and for described first it is straight Broadcasting end draws stream to obtain the described second live stream that end is broadcast live, and second live streaming end draws stream to obtain the described first live streaming that end is broadcast live Stream;CDN live stream central server, for receiving the live stream comprising first live streaming end of first live streaming end push Merging with the live stream at second live streaming end flows and saves the merging stream push CDN that most viewer end provides live stream Point server draws stream to obtain the merging stream for the viewer end from the CDN node server;CDN node server is used Described second is flowed while obtained directly in flowing and drawing for the viewer end from the CDN live stream central server reception merging Broadcast the live stream at end and the live stream at first live streaming end.
In one embodiment of the invention, the even wheat server is also used to receive the first live streaming end or described the The disconnection that two live streaming ends are sent, which connects wheat, requests, and disconnects the first live streaming end and described second directly according to the disconnection even wheat request Broadcast the company wheat between end;Lian Maihou, the CDN live streaming flow center clothes are disconnected at the first live streaming end and second live streaming end Business device is also used to receive the live stream at first live streaming end of first live streaming end push and end is broadcast live by described first Live stream, which pushes to respectively correspond, provides the CDN node server of live stream for the second live streaming end and the viewer end, with Stream is drawn to obtain the described first live streaming that end is broadcast live from the CDN node server for the second live streaming end and the viewer end Stream.
To achieve the above object, the present invention also provides a kind of control devices of live streaming even wheat, are applied to one first live streaming eventually End;Even the control device of wheat includes: to connect wheat module for the live streaming, for receiving the company wheat request from the second live streaming end and connecing After company wheat request by second live streaming end, even wheat is established with second live streaming end;Flow module is drawn, for described the Live streaming Lian Maihou is being established at two live streaming ends, and the live stream at second live streaming end is obtained from the multi-thread interactive server of CDN live stream; Playing module carries out split screen broadcasting for the live stream to local live stream and first live streaming end of acquisition;Collaborate module, For the live stream of local live stream and second live streaming end of acquisition to be carried out interflow processing, generates one and include local live streaming The merging stream of stream and the live stream at second live streaming end;Live stream pushing module is straight for the merging stream to be pushed to CDN Flow center server is broadcast, push most viewer end is flowed into the merging for the CDN live stream central server, live stream is provided CDN node server, draw stream to obtain described first simultaneously from the CDN node server for the viewer end and end be broadcast live The live stream of live stream and second live streaming end.
In one embodiment of the invention, the even wheat module is also used to request to disconnect Lian Maihuo with second live streaming end It receives the disconnection from second live streaming end and connects wheat request;It is described straight after disconnecting even wheat request with second live streaming end It broadcasts stream pushing module and local live stream is pushed into the CDN live stream central server, for CDN live streaming flow center clothes The live stream is pushed the most described second live streaming end respectively with business device and the viewer end provides the CDN node service of live stream Device, so that the second live streaming end and the viewer end draw stream to obtain described the from the corresponding CDN node server respectively The live stream at one live streaming end.
To achieve the above object, the present invention also provides a kind of control devices of live streaming even wheat, are applied to one second live streaming eventually End;Even the control device of wheat includes: to connect wheat module for the live streaming, is connected for the request of Xiang Lianmai server and the first live streaming end foundation Wheat, and after first live streaming end receives even wheat request, even wheat is established with first live streaming end;Live stream pushing module, For establishing live streaming Lian Maihou with the first live streaming end, local live stream is pushed into the multi-thread interaction of CDN live stream and is taken Business device;Flow module is drawn, described in obtaining from the multi-thread interactive server of the CDN live stream or CDN live stream central server The live stream at the first live streaming end;Playing module is flowed into for the live streaming to local live stream and first live streaming end of acquisition Row split screen plays.
In one embodiment of the invention, the even wheat module is also used to the request of Xiang Lianmai server and first live streaming End, which disconnects even wheat or reception and executes the disconnection from first live streaming end, connects wheat request;It is disconnected with first live streaming end Even wheat request after, it is described draw flow module and provide it is described first live streaming end live stream CDN node server establish connection and from The CDN node server draws stream to obtain the described first live stream that end is broadcast live.
As described above, a kind of live streaming of the invention connects the control method and system of wheat, have the advantages that
1, the live streaming flow data in the present invention between the second live streaming end (two wheats) and the first live streaming end (main broadcaster) is straight by CDN Broadcast the multi-thread interactive server (the multi-thread node of CDN) of stream and interact transmission, efficiently solve between main broadcaster and " two wheats " in the presence of across The low problem of audio, video data transmission quality caused by region, cross operator phenomenon.
2, the first live streaming end (main broadcaster) is obtained from the multi-thread interactive server of CDN live stream (the multi-thread node of CDN) in the present invention After the audio, video data of second live streaming end (two wheats) push, by the locally generated audio, video data of main broadcaster and " two wheats " audio-video number According to stream merging treatment is carried out, the independent live stream of two-way is merged into all the way, plug-flow to CDN live stream central server (CDN matchmaker Body center), the synchronism of main broadcaster's audio, video data Yu " two wheats " audio, video data has been effectively ensured.
3, viewer end (spectators) from CDN node server (the optimal node of CDN) obtains main broadcaster and " two wheats " in the present invention Viewing is flowed in merging, and for obtaining two-way live stream respectively, requirement of the merging stream to spectators' downlink bandwidth is lower all the way for acquisition, The normal experience of the poor spectators of more networks environment can be met.
Detailed description of the invention
Fig. 1 is shown as the overall structure diagram that a kind of live streaming of the invention connects the control system of wheat.
Fig. 2 is shown as the flow diagram that a kind of live streaming of the invention connects the control method of wheat.
Fig. 3 is shown as another flow diagram that a kind of live streaming of the invention connects the control method of wheat.
Fig. 4 is shown as a kind of specific execution flow diagram of the control method of the company of live streaming wheat in Fig. 3.
Fig. 5 is shown as another flow diagram that a kind of live streaming of the invention connects the control method of wheat.
Fig. 6 is shown as a kind of specific execution flow diagram of the control method of the company of live streaming wheat in Fig. 5.
Fig. 7 is shown as the functional block diagram that a kind of live streaming of the invention connects the control system of wheat.
Fig. 8 is shown as another functional block diagram that a kind of live streaming of the invention connects the control system of wheat.
Component label instructions
100 connect wheat server
The 101 multi-thread interactive servers of CDN live stream
102 CDN live stream central servers
103 CDN node servers
200 first live streaming ends
300 second live streaming ends
400 viewer ends
500 live streamings connect the control device of wheat
501 connect wheat module
502 live stream pushing modules
503 draw flow module
504 playing modules
505 interflow modules
S100~S102 step
S200~S202 step
S300~S303 step
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from Various modifications or alterations are carried out under spirit of the invention.
The purpose of the present invention is to provide the control methods and system of a kind of live streaming even wheat, straight in the prior art for solving It is high that data transmission quality present in the company of broadcasting wheat is poor, live data not can guarantee network speed requirement synchronous and that viewing is broadcast live The problem of bring user experience difference.A kind of live streaming of the invention described in detail below connects the control method and system of wheat Principle and embodiment makes those skilled in the art not need creative work and is appreciated that a kind of live streaming of the invention connects wheat Control method and system.
In the present embodiment, to solve live streaming in the prior art, even data transmission quality present in wheat is poor, live data without Method guarantees problem that is synchronous and requiring the network speed of viewing live streaming high bring user experience difference, as shown in Figure 1, this reality It applies example and receives company's wheat application that second live streaming end 300 (" two wheats " holds) initiation of live streaming is added using even wheat server 100, and Even wheat application is sent to corresponding the first live streaming end 200 (main broadcaster end) being broadcast live, the first live streaming end 200 (main broadcaster end) is agreed to Even after wheat application, even wheat server 100 authorizes second live streaming end 300 (" two wheats " end) plug-flow permission.First live streaming end 200 is (main Broadcast end) live stream is pushed into the multi-thread interactive server 101 (the multi-thread node of CDN) of CDN live stream, and it is more from the CDN live stream Line interactive server 101 obtains " the second live streaming end 300 (" two wheats " end) live stream.First live streaming end 200 (main broadcaster end) is to local Live stream and the second live streaming end 300 (" two wheats " end) live stream obtained from the multi-thread interactive server 101 of CDN live stream are divided Screen plays.Live stream is pushed to the identical multi-thread interactive server 101 of CDN live stream by the second live streaming end 300 (" two wheats " end) (the multi-thread node of CDN), and first live streaming end 200 (main broadcaster end) live stream is obtained from the node.Second live streaming end 300 (" two wheats " End) split screen broadcasting is carried out to local live stream and the first live streaming (main broadcaster end) live stream of end 200 obtained from node.First live streaming 200 (main broadcaster ends) are held to obtain the second live streaming end 300 (" two from the multi-thread interactive server 101 (the multi-thread node of CDN) of CDN live stream Wheat " end) live stream, to the second live streaming end 300 (" two wheats " holds), audio-video is decoded, while acquiring locally generated audio-video Data merge coding with decoded second live streaming end 300 (" two wheats " holds) audio, video data, generate and merge stream all the way, And plug-flow is to CDN live stream central server 102 (CDN media center).(CDN is most from CDN node server 103 for viewer end 400 Excellent node) it obtains to merge and flow, play viewing.Wherein, the full name of CDN is Content Delivery Network, i.e. content point Hairnet network.CDN is that the content distributing network constructed on network by the Edge Server for being deployed in various regions passes through center The functional modules such as load balancing, content distribution, the scheduling of platform, content needed for obtaining user nearby reduce network congestion, mention High user's access response speed and hit rate.The key technology of CDN mainly has content storage and distribution technology.CDN's is substantially former Reason is that various cache servers are widely used, these cache servers are distributed to area or the network that user accesses Relatively centralized In, when user accesses website, the nearest caching working properly of distance is directed toward in the access of user using global load technology On server, requested by cache server directly in response to user.
The control method and system of the live streaming in the present embodiment even wheat are specifically described below.
As shown in Fig. 2, the control method that the live streaming connects wheat is answered the present embodiment provides a kind of control method of live streaming even wheat For by even wheat server 100, the multi-thread interactive server 101 of CDN live stream, CDN live stream central server 102 and CDN In the network application scene that node server 103 is constituted.Specifically, it is described live streaming even wheat control method the following steps are included:
Step S100 establishes the company wheat between the first live streaming end 200 and the second live streaming end 300.Wherein, it is serviced using even wheat Device 100 establishes the company wheat between the first live streaming end 200 and the second live streaming end 300.Specifically, the second live streaming end 300 is used as " two Wheat " end, the first live streaming end 200 are used as main broadcaster end.Even wheat server 100 receives company's wheat application that the second live streaming end 300 is initiated, and Even wheat application is sent to corresponding first live streaming end 200, after even wheat application is agreed at the first live streaming end 200, even wheat server 100 is awarded Give 300 plug-flow permission of the second live streaming end.
Step S101 receives the live stream that the second live streaming end 300 and first live streaming end 200 push and confession respectively First live streaming end 200 draws stream to obtain the live stream at second live streaming end 300, and second live streaming end 300 draws stream to obtain The live stream at first live streaming end 200.
The multi-thread interactive server 101 of CDN live stream receives the second live streaming end 300 and first live streaming end respectively The live stream of 200 push and the live stream that stream acquisition second live streaming end 300 is drawn for first live streaming end 200, it is described Stream is drawn to obtain the described first live stream that end 200 is broadcast live in the second live streaming end 300.Wherein, the multi-thread interactive server of CDN live stream The multi-thread data processing threads including heterogeneous networks in 101, for example, the second live streaming end 300 is transmitted using China Mobile network Live stream, and live stream is transmitted using Chinese telecommunications network in the first live streaming end 200, the second live streaming end 300 is broadcast live in acquisition first The problem of network conversion of data can be faced when the live stream at end 200.In the present embodiment, the multi-thread interactive server of CDN live stream 101 provide the data processing threads of multiple network, and directly live data can be pushed in corresponding network.
In this present embodiment, Lian Maihou is established at the second live streaming end 300 and first live streaming end 200, described the Local live stream is pushed to the identical multi-thread interaction of CDN live stream respectively and taken by two live streaming ends 300 and first live streaming end 200 Business device 101, when described second is broadcast live the data at the first live streaming end 200 described in 300 request of end, second live streaming end 300 draw stream to obtain the described first live stream that end 200 is broadcast live from the multi-thread interactive server 101 of the CDN live stream;Described Described in one live streaming 200 request of end when the data at the second live streaming end 300, described first is broadcast live end 200 from the CDN live stream Multi-thread interactive server 101 draws stream to obtain the described second live stream that end 300 is broadcast live.Second live streaming end 300 (two wheats) and first Be broadcast live end 200 (main broadcaster) between live streaming flow data by the multi-thread interactive server 101 (the multi-thread node of CDN) of CDN live stream into Row alternating transmission, efficiently solves between main broadcaster and " two wheats " that there are audio-video numbers caused by trans-regional, cross operator phenomenon According to the low problem of transmission quality.
Step S102 receives the live stream and described the comprising first live streaming end 200 that the first live streaming end 200 pushes The merging stream of the live stream at two live streaming ends 300 simultaneously draws stream to obtain the merging stream for viewer end 400, so that the viewer end 400 The live stream at first live streaming end 200 and the live stream at second live streaming end 300 are obtained simultaneously.
Specifically, include described first using the reception of the CDN live stream central server 102 first live streaming push of end 200 The merging stream of the live stream at end 200 and the live stream at second live streaming end 300 is broadcast live, the merging stream is pushed into CDN net The CDN node server 103 of optimal live stream service is provided for viewer end 400 in network, and viewer end 400 is from each CDN node service Device 103 draws stream to obtain mergings stream, the viewer end 400 described in this way obtain simultaneously the live stream at first live streaming end 200 with The live stream at second live streaming end 300.So can be by the locally generated audio, video data of main broadcaster and " two wheats " sound in the present invention Video data carries out stream merging treatment, and the independent live stream of two-way is merged into all the way, plug-flow to CDN live stream central server The synchronism of main broadcaster's audio, video data Yu " two wheats " audio, video data has been effectively ensured in 102 (CDN media centers).Viewer end 400 (spectators) watch from the merging stream that CDN node server (the optimal node of CDN) obtains main broadcaster and " two wheats ", compared to obtaining two respectively For the live stream of road, requirement of the merging stream to spectators' downlink bandwidth is lower all the way for acquisition, can meet the poor sight of more networks environment Many normal experiences.
In this present embodiment, the live streaming connects the control method of wheat further include: receives second live streaming end 300 or described The disconnection that first live streaming end 200 is sent connects wheat request, according to the disconnection even wheat request, disconnects the second live streaming 300 He of end Company wheat between first live streaming end 200;Lian Maihou is disconnected at the second live streaming end 300 and first live streaming end 200, It receives the live stream at first live streaming end 200 pushed from first live streaming end 200 and end 200 is broadcast live by described first Live stream and the live stream that stream acquisition first live streaming end 200 is drawn for the second live streaming end 300 and the viewer end 400.
Specifically, the disconnection that even wheat server 100 receives that the second live streaming end 300 is initiated connects wheat request, and the company of will be switched off wheat Instruction is sent to corresponding first live streaming end 200, and span mode is exited at the first live streaming end 200, and disconnects multi-thread with CDN live stream The connection of interactive server 101.Connection with CDN live stream central server 102 remains unchanged.
Or even the disconnection of first live streaming of the reception of wheat server 100 initiation of end 200 connects wheat request, and the company of will be switched off Mai Zhiling It is sent to corresponding second live streaming end 300, span mode is exited at the second live streaming end 300, and disconnects and CDN live stream is multi-thread interacts clothes The connection of business device 101.It re-establishes and end 200 is broadcast live with the connection apart from nearest CDN node server 103, acquisition first Flow data is broadcast live.At this point, the second live streaming end 300 is equal to viewer end 400.
The viewer end 400 is obtained from CDN node server 103 (the optimal node of CDN) always merges stream or acquisition first The individually live streaming flow data of end 200 is broadcast live.
The present embodiment also provides a kind of control method of the company of live streaming wheat, is applied to the second live streaming end 300 (two wheat ends), such as figure Shown in 3, it is described live streaming even wheat control method the following steps are included:
Step S200, the second live streaming end 300 request to establish even wheat with the first live streaming end 200, and at first live streaming end After 200 receive even wheat request, even wheat is established at the second live streaming end 300 and first live streaming end 200.Wherein, viewer end 400 Lian Maishi, which is established, with the first live streaming end 200 in request becomes the second live streaming terminal 300.That is 400 Xiang Lianmai server of viewer end The wheat request of 100 companies of transmission becomes the second live streaming end 300, the first live streaming 100 company of issuing wheat of (main broadcaster) Xiang Lianmai of end 200 server Allowance/refusal instruction.Even wheat server 100 is straight by second when receiving the company wheat allowance instruction that the second live streaming end 300 issues It broadcasts end 300 and the first live streaming end 200 and establishes even wheat.
Step S201 is establishing live streaming Lian Maihou at the second live streaming end 300 and the first live streaming end 200, described Local live stream is pushed to the multi-thread interactive server 101 of CDN live stream by the second live streaming end 300.
Step S202, the second live streaming end 300 draw stream to obtain institute from the multi-thread interactive server 101 of the CDN live stream The live stream that the first live streaming end 200 is pushed in the multi-thread interactive server 101 of the CDN live stream is stated, and to local live stream Split screen broadcasting is carried out with the live stream at first live streaming end 200 of acquisition.
At this point, the second live streaming end 300 (two wheat ends) can obtain the from the multi-thread interactive server 101 of the CDN live stream The live data of one live streaming end 200 (main broadcaster end), and the live streaming of split screen display available local live stream and first live streaming end 200 Stream.
The specific execution process of second live streaming end 300 (two wheat ends) is as shown in figure 4, Xiang Lianmai server 100 (connects first Wheat server 100) the wheat application of the company of transmission, the company of reception wheat allows/refuses to respond, if refusing to respond, then the company of release thrashing floor for wheat scape, if Be to allow to respond, then push local live stream to the multi-thread interactive server 101 (i.e. the multi-thread node of CDN) of CDN live stream, then from The multi-thread interactive server 101 (the multi-thread node of CDN) of CDN live stream pulls the live stream at the first live streaming end 200 (main broadcaster end), to this Ground live stream and main broadcaster's live stream carry out split screen broadcasting.
In addition, in this present embodiment, the live streaming connects the control method of wheat further include: requests at second live streaming end 300 Even wheat is disconnected with first live streaming end 200 or second live streaming end 300 connects and executes and end 200 is broadcast live from described first The wheat request of the company of disconnection, i.e., described second live streaming, 300 company's of sending or receiving wheat open command of end.It is described second live streaming end 300 with Even after wheat request, the straight of end 200 is broadcast live from providing described first in the second live streaming end 300 for first live streaming disconnection of end 200 The CDN node server 103 for broadcasting stream obtains the live stream at first live streaming end 200.At this point, second live streaming end 300 becomes Return common viewer end 400.
The present embodiment also provides a kind of control method of the company of live streaming wheat, is applied to the first live streaming end 200 (main broadcaster end), such as figure Shown in 5, it is described live streaming even wheat control method the following steps are included:
Step S300, the first live streaming end 200 receive the company wheat request from the second live streaming end 300 and are receiving described second After the company wheat request at end 300 is broadcast live, even wheat is established with second live streaming end 300.
Step S301 establishes live streaming Lian Maihou at the first live streaming end 200 and the second live streaming end 300, and described first is straight It broadcasts end 200 and local live stream is pushed into the multi-thread interactive server 101 of CDN live stream and from the multi-thread interaction of CDN live stream It is straight in the multi-thread interactive server 101 of the CDN live stream that server 101 draws stream acquisition second live streaming end 300 to be pushed to Broadcast stream.
The live streaming at second live streaming end 300 of step S302, the local live stream in 200 pairs of first live streaming end and acquisition Stream carries out split screen broadcasting.
Step S303, described first is broadcast live end 200 for the live streaming of local live stream and second live streaming end 300 of acquisition Stream carries out interflow processing, generates the merging stream of a live stream comprising local live stream and second live streaming end 300 and by institute It states and merges stream and push to CDN live stream central server 102, so that the CDN live stream central server 102 is by the merging It flows plug-flow most viewer end 400 and the CDN node server 103 of live stream is provided, make the viewer end 400 from the CDN node Server 103 draws stream while obtaining the live stream at second live streaming end 300 and the live stream at first live streaming end 200.
The first live streaming end 200 in the present embodiment can be by the locally generated audio, video data of main broadcaster and " two wheats " audio-video number According to stream merging treatment is carried out, the independent live stream of two-way is merged into all the way, plug-flow to CDN live stream central server 102 The synchronism of main broadcaster's audio, video data Yu " two wheats " audio, video data has been effectively ensured in (CDN media center).Viewer end (spectators) The merging stream for obtaining main broadcaster and " two wheats " from CDN node server 103 (the optimal node of CDN) is watched, compared to obtaining two-way respectively For live stream, requirement of the merging stream to spectators' downlink bandwidth is lower all the way for acquisition, can meet the poor spectators of more networks environment Normal experience.
The specific execution process of first live streaming end 200 (main broadcaster end) is as shown in fig. 6, first first is broadcast live end 200 from even wheat Server 100 (connecting wheat server 100) receives even wheat application, and the first live streaming end 200 can permit Lian Mai or refusal even wheat, if Refusal even wheat, then company of release thrashing floor for wheat scape, if allowing company wheat, main broadcaster end is to multi-thread 101 (the i.e. CDN of interactive server of CDN live stream Multi-thread node) local live stream is pushed, then second is pulled from the multi-thread interactive server 101 (the multi-thread node of CDN) of CDN live stream The live stream at end 300 (two wheat ends) is broadcast live, split screen broadcasting is carried out to local live stream and two wheat live streams.Then to local live streaming Stream and two wheat live streams carry out interflow operation, are formed and merge stream.Stream will be merged and push to CDN live stream central server 102 (CDN media center).
In this present embodiment, it is described live streaming even wheat control method further include: it is described first live streaming end 200 request with it is described Second live streaming end 300, which disconnects even wheat or reception and executes the disconnection from second live streaming end 300, connects wheat request;Described first End 200 is broadcast live after disconnecting even wheat request with second live streaming end 300, first live streaming end 200 pushes away local live stream It send to the CDN live stream central server 102, so that end is broadcast live by described first in the CDN live stream central server 102 200 live stream pushes the most described second live streaming end 300 respectively and the viewer end 400 provides the CDN node clothes of live stream Business device 103 draws the second live streaming end 300 and the viewer end 400 from the corresponding CDN node server 103 respectively Stream obtains the live stream at first live streaming end 200.
The present embodiment also provides a kind of control system of the company of live streaming wheat, and specifically, live streaming connects the control of wheat in the present embodiment The overall architecture of system is as shown in Figure 1, the control system that live streaming connects wheat includes connecting wheat server 100, the multi-thread interaction of CDN live stream Server 101 (the multi-thread node of CDN), CDN live stream central server 102 (CDN media center) and CDN node server 103 (the optimal nodes of CDN).
Wherein, in this present embodiment, the even wheat server 100 is for establishing the second live streaming end 300 and the first live streaming end Company wheat between 200.
Specifically, the second live streaming end 300 is held as " two wheats ", and the first live streaming end 200 is used as main broadcaster end.Even wheat server 100 receive company's wheat application that the second live streaming end 300 is initiated, and even wheat application is sent to corresponding first live streaming end 200, and first is straight It broadcasts end 200 and agrees to after connecting wheat application that even wheat server 100 authorizes the second live streaming end 300 plug-flow permission.
In this present embodiment, the multi-thread interactive server 101 of the CDN live stream for receiving second live streaming end respectively 300 and described first are broadcast live the live stream of the push of end 200 and flow acquisition second live streaming end for first live streaming drawing of end 200 300 live stream, second live streaming end 300 draw stream to obtain the described first live stream that end 200 is broadcast live.Wherein, CDN live stream The multi-thread data processing threads including heterogeneous networks in multi-thread interactive server 101, for example, in the second live streaming end 300 utilization State mobile network transmits live stream, and live stream, the second live streaming end 300 are transmitted using Chinese telecommunications network in the first live streaming end 200 The problem of network conversion of data can be faced when the live stream at end 200 is broadcast live in acquisition first.In the present embodiment, CDN live stream Multi-thread interactive server 101 provides the data processing threads of multiple network, live data directly can be pushed to corresponding net In network.
In this present embodiment, Lian Maihou is established at the second live streaming end 300 and first live streaming end 200, described the Local live stream is pushed to the identical multi-thread interaction of CDN live stream respectively and taken by two live streaming ends 300 and first live streaming end 200 Business device 101, when described second is broadcast live the data at the first live streaming end 200 described in 300 request of end, second live streaming end 300 draw stream to obtain the described first live stream that end 200 is broadcast live from the multi-thread interactive server 101 of the CDN live stream;Described Described in one live streaming 200 request of end when the data at the second live streaming end 300, described first is broadcast live end 200 from the CDN live stream Multi-thread interactive server 101 draws stream to obtain the described second live stream that end 300 is broadcast live.Second live streaming end 300 (two wheats) and first Be broadcast live end 200 (main broadcaster) between live streaming flow data by the multi-thread interactive server 101 (the multi-thread node of CDN) of CDN live stream into Row alternating transmission, efficiently solves between main broadcaster and " two wheats " that there are audio-video numbers caused by trans-regional, cross operator phenomenon According to the low problem of transmission quality.
In this present embodiment, the CDN live stream central server 102 is pushed for receiving first live streaming end 200 Comprising it is described first live streaming end 200 live stream and it is described second live streaming end 300 live stream merging stream and for viewer end 400 draw stream to obtain the merging stream, so that the viewer end 400 obtains live stream and the institute at first live streaming end 200 simultaneously State the live stream at the second live streaming end 300.
Specifically, what the CDN live stream central server 102 received the first live streaming end 200 push includes described first The merging stream of the live stream at end 200 and the live stream at second live streaming end 300 is broadcast live, the merging stream is pushed into CDN net The CDN node server 103 of optimal live stream service is provided for viewer end 400 in network, and viewer end 400 is from each CDN node service Device 103 draws stream to obtain mergings stream, the viewer end 400 described in this way obtain simultaneously the live stream at first live streaming end 200 with The live stream at second live streaming end 300.So can be by the locally generated audio, video data of main broadcaster and " two wheats " sound in the present invention Video data carries out stream merging treatment, and the independent live stream of two-way is merged into all the way, plug-flow to CDN live stream central server The synchronism of main broadcaster's audio, video data Yu " two wheats " audio, video data has been effectively ensured in 102 (CDN media centers).Viewer end 400 (spectators) watch from the merging stream that CDN node server 103 (the optimal node of CDN) obtains main broadcaster and " two wheats ", compared to obtaining respectively For taking two-way live stream, obtain that merge requirement of the stream to spectators' downlink bandwidth all the way lower, can meet more networks environment compared with The normal experience of poor spectators.
In this present embodiment, the even wheat server 100 is also used to receive the second live streaming end 300 or described first directly It broadcasts the disconnection that end 200 is sent and connects wheat request, second live streaming end 300 and described first is disconnected according to the disconnection even wheat request The company wheat between end 200 is broadcast live.
Specifically, the disconnection that even wheat server 100 receives that the second live streaming end 300 is initiated connects wheat request, and the company of will be switched off wheat Instruction is sent to corresponding first live streaming end 200, and span mode is exited at the first live streaming end 200, and disconnects multi-thread with CDN live stream The connection of interactive server 101.Connection with CDN live stream central server 102 remains unchanged.
Or even the disconnection of first live streaming of the reception of wheat server 100 initiation of end 200 connects wheat request, and the company of will be switched off Mai Zhiling It is sent to corresponding second live streaming end 300, span mode is exited at the second live streaming end 300, and disconnects and CDN live stream is multi-thread interacts clothes The connection of business device 101.It re-establishes and end 200 is broadcast live with the connection apart from nearest CDN node server 103, acquisition first Flow data is broadcast live.At this point, the second live streaming end 300 is equal to viewer end 400.
The viewer end 400 is obtained from CDN node server 103 (the optimal node of CDN) always merges stream or acquisition first The individually live streaming flow data of end 200 is broadcast live.
Lian Maihou, the CDN live streaming flow center clothes are disconnected at the second live streaming end 300 and first live streaming end 200 Business device 102 is also used to receive the live stream at first live streaming end 200 pushed from first live streaming end 200 and by described the The live stream at one live streaming end 200, which pushes to respectively correspond, provides live stream for the second live streaming end 300 and viewer end 400 CDN node server 103, the second live streaming end 300 and the viewer end 400 draw stream to obtain from the CDN node server 103 Take the live stream at first live streaming end 200.
The present embodiment also provides a kind of control device of the company of live streaming wheat, is applied to one second live streaming terminal 300 (two wheat ends), Wherein, viewer end 400 establishes Lian Maishi with the first live streaming end 200 in request and becomes the second live streaming terminal 300.That is viewer end 400 Xiang Lianmai servers 100 send even wheat request, become the second live streaming end 300.As shown in fig. 7, in the control of the live streaming even wheat When device 500 processed is applied to the second live streaming terminal, even the control device 500 of wheat includes: to connect wheat module 501 for the live streaming, live streaming Pushing module 502 is flowed, flow module 503 and playing module 504 are drawn.At this point, connect wheat module 501, live stream pushing module 502, The concrete function for drawing flow module 503 and playing module 504 to realize is as follows:
The even wheat module 501 requests to establish even wheat with the first live streaming end 200 for Xiang Lianmai server 100, and in institute State the first live streaming end 200 receive even wheat request after, with it is described first live streaming end 200 establish even wheat.The live stream pushing module For establishing live streaming Lian Maihou with the first live streaming end 200, it is multi-thread to be pushed to CDN live stream by 502 for local live stream Interactive server 101;The drawing flow module 503 is used for from the multi-thread interactive server 101 of the CDN live stream or CDN live stream Central server 102 obtains the live stream at first live streaming end 200.The playing module 504, for local live stream and The live stream at first live streaming end 200 obtained carries out split screen broadcasting.
In Yu Benyi embodiment, when the control device 500 of the live streaming even wheat is applied to the second live streaming terminal, the company Wheat module 501, which is also used to Xiang Lianmai server 100, requests to disconnect even wheat or reception with first live streaming end 200 and execute to come from The disconnection at first live streaming end 200 connects wheat request;After disconnecting even wheat request with first live streaming end 200, the drawing stream Module 503 and the CDN node server 103 for providing the first live streaming 200 live stream of end establish connection and from the CDN node Server 103 draws stream to obtain the described first live stream that end 200 is broadcast live.At this point, second live streaming end 300 becomes common sight again Many ends 400.
The present embodiment also provides a kind of control device 500 of the company of live streaming wheat, is applied to one first live streaming 200 (main broadcaster of terminal End).As shown in figure 8, the live streaming connects wheat when the control device 500 of the live streaming even wheat is applied to the first live streaming terminal 00 Control device 500 include: even wheat module 501, live stream pushing module 502, draw flow module 503, playing module 504 and close Flow module 505.At this point, connecting wheat module 501, live stream pushing module 502 draws flow module 503, playing module 504 and interflow The concrete function that module 505 is realized is as follows:
The even wheat module 501 is for receiving the company wheat request from the second live streaming end 300 and straight receiving described second After broadcasting the company wheat request at end 300, even wheat is established with second live streaming end 300.The drawing flow module 503 is used for described the Live streaming Lian Maihou is being established at two live streaming ends 300, draws stream to obtain second live streaming from the multi-thread interactive server 101 of CDN live stream The live stream at end 300.The playing module 504 is used for the live streaming at second live streaming end 300 to local live stream and acquisition Stream carries out split screen broadcasting.The interflow module 505 is used for the live streaming at second live streaming end 300 by local live stream and acquisition Stream carries out interflow processing, generates the merging stream of a live stream comprising local live stream and second live streaming end 300;It is described straight It broadcasts stream pushing module 502 to be used to the merging stream pushing to CDN live stream central server 102, make in the CDN live stream The merging is flowed push most viewer end 400 and provides the CDN node server 103 of live stream by central server 102, for described Viewer end 400 draws stream to obtain the live stream and described that described second is broadcast live end 300 simultaneously from the CDN node server 103 The live stream at one live streaming end 200.
The interflow module 505 at the first live streaming end 200 in the present embodiment can by the locally generated audio, video data of main broadcaster and " two wheats " audio, video data carries out stream merging treatment, and the independent live stream of two-way is merged into all the way, and the live stream pushes mould Block 502 will merge stream plug-flow to CDN live stream central server 102 (CDN media center), and main broadcaster's audio-video number has been effectively ensured According to the synchronism with " two wheats " audio, video data.Viewer end 400 (spectators) is obtained from CDN node server 103 (the optimal node of CDN) It takes the merging stream of main broadcaster and " two wheats " to watch, for obtaining two-way live stream respectively, obtains and merge stream all the way under spectators The requirement of row bandwidth is lower, can meet the normal experience of the poor spectators of more networks environment.
In Yu Benyi embodiment, when the control device 500 of the live streaming even wheat is applied to the first live streaming terminal, the company Wheat module 501 is also used to request to disconnect with second live streaming end 300 even wheat or receives from the disconnected of second live streaming end 300 Kai Lianmai request;After disconnecting even wheat request with second live streaming end 300, the live stream pushing module 502 will be local straight It broadcasts stream and pushes to the CDN live stream central server 102, so that the CDN live stream central server 102 is by the live streaming Stream pushes the most described second live streaming end 300 respectively and the viewer end 400 provides the CDN node server 103 of live stream, makes The second live streaming end 300 and the viewer end 400 are drawn described in stream acquisition from the corresponding CDN node server 103 respectively The live stream of second live stream pushing module 502 push.
To illustrate intuitive and convenient, the second live streaming end 300 is replaced with " two wheats " terminal below, it is straight instead of first with main broadcaster's terminal Broadcast the whole implementation process that end 200 is illustrated the control method and system of the company of live streaming wheat in the present embodiment." two wheats " terminal to Even wheat server 100 initiates even wheat application;Even even wheat application is issued to corresponding main broadcaster's terminal by wheat server 100;Main broadcaster's terminal Selection receiving/refusal connects wheat application, and receiving/refusal is instructed the company of being sent to wheat server 100;Even wheat server 100 will be led The response for broadcasting terminal is handed down to corresponding " two wheats " terminal, if main broadcaster's terminal receives, connects the continuation of wheat business, if main broadcaster's terminal is refused Absolutely, then connect the termination of wheat business;Live stream is pushed to the multi-thread interactive server 101 of CDN live stream by main broadcaster's terminal, and from the CDN The multi-thread interactive server 101 of live stream obtains " two wheats " terminal live stream;Main broadcaster's terminal is obtained to local live stream and from node " two wheats " terminal live stream carry out split screen broadcasting;Live stream is pushed to the identical multi-thread friendship of CDN live stream by " two wheats " terminal Mutual server 101, and main broadcaster's terminal live stream is obtained from the node;What " two wheats " terminal was obtained to local live stream and from node Main broadcaster's terminal live stream carries out split screen broadcasting;Main broadcaster's terminal by local live stream with from the multi-thread interactive server 101 of CDN live stream " two wheats " the terminal live stream obtained carries out stream merging treatment, the independent live stream of two-way is merged into all the way, plug-flow is straight to CDN Broadcast flow center server 102;Using CDN network will merge stream be distributed to from CDN live stream central server 102 it is throughout the country each Region, each operator CDN node server 103.Viewer end 400 is obtained from CDN node server 103 (the optimal node of CDN) Merge stream, plays viewing.When " two wheats " terminal Xiang Lianmai server 100 sends the wheat request of the company of disconnection, even wheat server 100 will break Kai Lianmai instruction is sent to corresponding main broadcaster's terminal, and main broadcaster's terminal exits span mode, and disconnects and CDN live stream is multi-thread interacts clothes The connection of business device 101.Connection with CDN live stream central server 102 (CDN media center) remains unchanged.When main broadcaster is to even Wheat server 100 sends the wheat request of the company of disconnection, and even the instruction of 100 company of will be switched off wheat of wheat server is sent to corresponding " two wheats " terminal, " two wheats " terminal exits span mode, and disconnects the connection with the multi-thread interactive server 101 of CDN live stream.Re-establish with away from Connection from nearest CDN node server 103 obtains the live streaming flow data of main broadcaster's terminal.Main broadcaster's terminal or " two wheats " terminal Either one sends the wheat request of the company of disconnection, and the connection of viewer end 400 and CDN node server 103 (the optimal node of CDN) is kept not Become.
In conclusion the live streaming flow data in the present invention between the second live streaming end (two wheats) and the first live streaming end (main broadcaster) is logical It crosses the multi-thread interactive server of CDN live stream (the multi-thread node of CDN) and interacts transmission, efficiently solve between main broadcaster and " two wheats " There are the low problems of audio, video data transmission quality caused by trans-regional, cross operator phenomenon;First live streaming end in the present invention (main broadcaster) obtains the audio-video that the second live streaming end (two wheats) pushes from the multi-thread interactive server of CDN live stream (the multi-thread node of CDN) After data, the locally generated audio, video data of main broadcaster and " two wheats " audio, video data are subjected to stream merging treatment, by two-way independence Live stream merge into all the way, plug-flow to CDN live stream central server (CDN media center), be effectively ensured main broadcaster's sound view Frequency is according to the synchronism with " two wheats " audio, video data;(CDN is optimal from CDN node server for viewer end (spectators) in the present invention Node) the merging stream that obtains main broadcaster and " two wheats " watches, for obtaining two-way live stream respectively, obtains and merge stream pair all the way The requirement of spectators' downlink bandwidth is lower, can meet the normal experience of the poor spectators of more networks environment.So effective gram of the present invention It has taken various shortcoming in the prior art and has had high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as At all equivalent modifications or change, should be covered by the claims of the present invention.

Claims (10)

1. a kind of control method of live streaming even wheat, which is characterized in that even the control method of wheat includes: for the live streaming
Establish the company wheat between the first live streaming end and the second live streaming end;
The live stream at the first live streaming end and second live streaming end push is received respectively and draws stream for first live streaming end The live stream at second live streaming end is obtained, the live stream at stream acquisition first live streaming end is drawn at second live streaming end;
The straight of end is broadcast live in the live stream and described second comprising end is broadcast live described first for receiving first live streaming end push It broadcasts the stream independent live stream of two-way and merges into merging stream all the way and draw stream to obtain the merging for viewer end and flow.
2. the control method that live streaming according to claim 1 connects wheat, which is characterized in that the live streaming connects the control method of wheat Further include:
It receives the disconnection that the first live streaming end or second live streaming end are sent and connects wheat request, asked according to the disconnection even wheat It asks, disconnects the company wheat between the first live streaming end and second live streaming end;
Lian Maihou is disconnected at the first live streaming end and second live streaming end, is received from described in first live streaming end push The live stream at the first live streaming end and the live streaming that first live streaming end is obtained for the second live streaming end and viewer end drawing stream Stream.
3. a kind of control method of live streaming even wheat, which is characterized in that even the control method of wheat includes: for the live streaming
First live streaming end receives the company wheat request from the second live streaming end and after the company wheat request for receiving second live streaming end, Even wheat is established with second live streaming end;
Live streaming Lian Maihou is established at the first live streaming end and second live streaming end, described first is broadcast live end for local live stream It pushes to the multi-thread interactive server of CDN live stream and draws stream to obtain described second from the multi-thread interactive server of the CDN live stream Live streaming end is pushed to the live stream in the multi-thread interactive server of CDN live stream;
The first live streaming end carries out split screen broadcasting to the live stream at second live streaming end of local live stream and acquisition;
Described first is broadcast live end for the independent live stream of live stream two-way of local live stream and second live streaming end of acquisition Interflow processing is carried out, the merging stream for generating a live stream comprising local live stream and second live streaming end all the way is merged into And the merging stream is pushed into CDN live stream central server, so that the CDN live stream central server is by the merging It flows plug-flow most viewer end and the CDN node server of live stream is provided, so that the viewer end is drawn from the CDN node server Stream while the live stream for obtaining live stream and second live streaming end that described first is broadcast live end.
4. the control method that live streaming according to claim 3 connects wheat, which is characterized in that the live streaming connects the control method of wheat Further include:
First live streaming end request disconnects even wheat or reception with second live streaming end and executes from second live streaming end Disconnection connect wheat request;
Described first is broadcast live end after disconnecting even wheat request with second live streaming end, and described first is broadcast live end for local live stream The CDN live stream central server is pushed to, so that the straight of end is broadcast live by described first in the CDN live stream central server The CDN node server that stream pushes the most described second live streaming end and viewer end offer live stream respectively is broadcast, for described Second live streaming end and the viewer end draw stream to obtain the straight of first live streaming end from the corresponding CDN node server respectively Broadcast stream.
5. a kind of control method of live streaming even wheat, which is characterized in that even the control method of wheat includes: for the live streaming
Second live streaming end request establishes even wheat with the first live streaming end, and in the first live streaming termination after by even wheat request, described Even wheat is established at second live streaming end and first live streaming end;
Live streaming Lian Maihou is established at the second live streaming end and first live streaming end, described second is broadcast live end for local live stream Push to the multi-thread interactive server of CDN live stream;
It draws stream to obtain first live streaming end from the multi-thread interactive server of the CDN live stream and is pushed to institute in the second live streaming end The live stream in the multi-thread interactive server of CDN live stream is stated, and to the straight of first live streaming end of local live stream and acquisition It broadcasts stream and carries out split screen broadcasting;
Second live streaming end request is terminated with first live streaming end disconnection even wheat or second live streaming and is executed from institute The disconnection for stating the first live streaming end connects wheat request;
The second live streaming end disconnects and CDN live stream is multi-thread interacts clothes after disconnecting even wheat request with first live streaming end The connection of business device;It re-establishes and the connection apart from nearest CDN node server;The second live streaming end is from providing described the The CDN node server of the live stream at one live streaming end obtains the live stream at first live streaming end.
6. a kind of control system of live streaming even wheat, which is characterized in that even the control system of wheat includes: for the live streaming
Even wheat server, the company wheat for establishing between the first live streaming end and the second live streaming end;
End push is broadcast live for receiving the first live streaming end and described second respectively in the multi-thread interactive server of CDN live stream Live stream simultaneously draws stream to obtain the live stream at second live streaming end for first live streaming end, and second live streaming end draws stream to obtain The live stream at first live streaming end;
CDN live stream central server includes by the straight of first live streaming end for receive first live streaming end push The independent live stream of live stream two-way for broadcasting stream and second live streaming end merges into merging stream all the way and flows the merging Push most viewer end, which provides the CDN node server of live stream and draws for the viewer end from the CDN node server, to flow Obtain the merging stream;
CDN node server flows and for receiving the merging from the CDN live stream central server for viewer end drawing Stream while the live stream for obtaining live stream and first live streaming end that described second is broadcast live end.
7. the control system that live streaming according to claim 6 connects wheat, which is characterized in that the even wheat server is also used to connect It receives the disconnection that the first live streaming end or second live streaming end are sent and connects wheat request, institute is disconnected according to the disconnection even wheat request State the company wheat between the first live streaming end and second live streaming end;
Lian Maihou is disconnected at the first live streaming end and second live streaming end, the CDN live stream central server is also used to It receives the live stream at first live streaming end of first live streaming end push and pushes the live stream at first live streaming end The CDN node server of live stream is provided for the second live streaming end and the viewer end to respectively corresponding, for described second The live stream that end and the viewer end draw stream to obtain first live streaming end from the CDN node server is broadcast live.
8. the control device that a kind of live streaming connects wheat, which is characterized in that be applied to one first live streaming end;The live streaming connects the control of wheat Device includes:
Even wheat module, for receiving the company wheat request from the second live streaming end and in the company wheat request for receiving second live streaming end Afterwards, even wheat is established with second live streaming end;
Flow module is drawn, for establishing live streaming Lian Maihou with the second live streaming end, from the multi-thread interactive server of CDN live stream Obtain the live stream at second live streaming end;
Playing module carries out split screen broadcasting for the live stream to local live stream and first live streaming end of acquisition;
Collaborate module, for flowing into the independent live streaming of live stream two-way of local live stream and second live streaming end of acquisition The merging stream for generating a live stream comprising local live stream and second live streaming end all the way is merged into the processing of row interflow;
Live stream pushing module, for the merging stream to be pushed to CDN live stream central server, for the CDN live stream The merging is flowed push most viewer end and provides the CDN node server of live stream by central server, for the viewer end Stream is drawn from the CDN node server while obtaining the live stream at first live streaming end and the live streaming at second live streaming end Stream.
9. the control device that live streaming according to claim 8 connects wheat, which is characterized in that the even wheat module is also used to request Even wheat, which is disconnected, with second live streaming end or receives the disconnection from second live streaming end connects wheat request;With it is described second straight It broadcasts after holding the wheat request of the company of disconnection, local live stream is pushed to the CDN live stream center service by the live stream pushing module Device, so that the live stream is pushed the most described second live streaming end and the sight by the CDN live stream central server respectively Many ends provide the CDN node server of live streams, so that the second live streaming end and the viewer end are respectively from corresponding described CDN node server draws stream to obtain the described first live stream that end is broadcast live.
10. the control device that a kind of live streaming connects wheat, which is characterized in that be applied to one second live streaming terminal;The live streaming connects wheat Control device includes:
Even wheat module is established even wheat for the request of Xiang Lianmai server and the first live streaming end, and is received at first live streaming end Even after wheat request, even wheat is established with first live streaming end;
Live stream pushing module pushes to local live stream for establishing live streaming Lian Maihou with the first live streaming end The multi-thread interactive server of CDN live stream;
Flow module is drawn, for obtaining described the from the multi-thread interactive server of the CDN live stream or CDN live stream central server The live stream at one live streaming end;
Playing module carries out split screen broadcasting for the live stream to local live stream and first live streaming end of acquisition;
The even wheat module is also used to the request of Xiang Lianmai server and disconnects even wheat or reception with first live streaming end and execute Connect wheat request from the disconnection at first live streaming end;After disconnecting even wheat request with first live streaming end, disconnects and being broadcast live with CDN Flow the connection of multi-thread interactive server;It re-establishes and the connection apart from nearest CDN node server;The drawing flow module with The CDN node server for providing the first live streaming end live stream establishes connection and draws stream to obtain from the CDN node server The live stream at first live streaming end.
CN201610675536.2A 2016-08-16 2016-08-16 A kind of live streaming connects the control method and system of wheat Active CN106254899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610675536.2A CN106254899B (en) 2016-08-16 2016-08-16 A kind of live streaming connects the control method and system of wheat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610675536.2A CN106254899B (en) 2016-08-16 2016-08-16 A kind of live streaming connects the control method and system of wheat

Publications (2)

Publication Number Publication Date
CN106254899A CN106254899A (en) 2016-12-21
CN106254899B true CN106254899B (en) 2019-05-28

Family

ID=57593180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610675536.2A Active CN106254899B (en) 2016-08-16 2016-08-16 A kind of live streaming connects the control method and system of wheat

Country Status (1)

Country Link
CN (1) CN106254899B (en)

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685971B (en) * 2016-12-30 2018-06-12 广州华多网络科技有限公司 Client connects wheat live streaming treating method and apparatus
CN106954100A (en) * 2017-03-13 2017-07-14 网宿科技股份有限公司 Live broadcasting method and system, company's wheat management server
CN107071584B (en) * 2017-03-14 2019-12-24 北京潘达互娱科技有限公司 Live broadcast wheat connecting method and device
CN108668152B (en) * 2017-03-31 2020-08-11 腾讯科技(深圳)有限公司 Audio and video interaction method and device, management equipment and storage medium
CN107172015A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 Live video method for pushing and device
CN107104976B (en) * 2017-05-22 2024-02-27 咪咕音乐有限公司 Method and device for realizing music interaction between music rooms
CN107483971A (en) * 2017-06-26 2017-12-15 广州市千钧网络科技有限公司 A kind of processing method of audio/video flow, service unit and viewing apparatus
CN107707533B (en) * 2017-09-18 2019-01-29 深圳市迅雷网文化有限公司 Company's wheat method, system and storage medium based on Web
CN107864122B (en) * 2017-10-18 2021-05-28 武汉斗鱼网络科技有限公司 Display method and device for live stream of main broadcast with wheat
CN108040038A (en) * 2017-11-28 2018-05-15 北京潘达互娱科技有限公司 The live method of network interdynamic, network main broadcaster end and user terminal
CN107995501A (en) * 2017-12-18 2018-05-04 杭州雅顾科技有限公司 Video connects wheat method and system
CN109995741B (en) * 2018-01-02 2021-07-23 武汉斗鱼网络科技有限公司 Method and system for realizing wheat connection in network live broadcast
CN108600239A (en) * 2018-05-01 2018-09-28 北京学易科技有限公司 Data synthesis method and device, client, server
CN108900921A (en) * 2018-07-20 2018-11-27 广州酷狗计算机科技有限公司 Even wheat live broadcasting method, device and storage medium
CN108900867A (en) * 2018-07-25 2018-11-27 北京达佳互联信息技术有限公司 Method for processing video frequency, device, electronic equipment and storage medium
CN109151607B (en) * 2018-10-10 2020-10-20 广州华多网络科技有限公司 Live broadcast channel multi-public-screen information display method, public-screen server and client
CN111050185B (en) * 2018-10-15 2022-08-16 武汉斗鱼网络科技有限公司 Live broadcast room wheat-connected video mixing method, storage medium, electronic equipment and system
CN109525883B (en) * 2018-10-16 2022-12-27 北京达佳互联信息技术有限公司 Interactive special effect display method and device, electronic equipment, server and storage medium
CN109168018A (en) * 2018-10-17 2019-01-08 北京潘达互娱科技有限公司 Company's wheat converging system, method, apparatus and own server in a kind of live streaming
CN109618191A (en) * 2018-12-17 2019-04-12 广州市百果园信息技术有限公司 Live streaming connects wheat method, apparatus, computer readable storage medium and terminal
CN111385592A (en) * 2018-12-29 2020-07-07 广州市百果园信息技术有限公司 Cross-room live broadcast connection method and device, storage medium and server
CN110636319B (en) * 2019-09-23 2022-06-10 北京达佳互联信息技术有限公司 Live broadcast method, electronic equipment, live broadcast system and storage medium
CN110719416A (en) * 2019-09-30 2020-01-21 咪咕视讯科技有限公司 Live broadcast method, communication equipment and computer readable storage medium
CN111586446A (en) * 2020-04-13 2020-08-25 微梦创科网络科技(中国)有限公司 Method, device and system for seamless switching of media streams
CN111586434B (en) * 2020-05-06 2022-07-15 北京世纪好未来教育科技有限公司 Load balancing method based on edge device and distributed mixed screen server
CN111526386A (en) * 2020-05-06 2020-08-11 北京三体云时代科技有限公司 Data transmission method and device based on auxiliary mixed screen equipment and data transmission system
CN113766251A (en) * 2020-06-22 2021-12-07 北京沃东天骏信息技术有限公司 Processing method, system, server and storage medium for live broadcast and microphone connection
CN112202833B (en) * 2020-08-26 2023-05-23 网宿科技股份有限公司 CDN system, request processing method and scheduling server
CN112040259A (en) * 2020-08-28 2020-12-04 广州华多网络科技有限公司 Method, server, system, storage medium and equipment for continuous playing
CN112511858B (en) * 2020-10-26 2023-04-07 深圳点猫科技有限公司 Network course live broadcast mixed stream pushing method, system and storage medium
CN114554230B (en) * 2020-11-27 2023-07-25 北京字节跳动网络技术有限公司 Method, device, terminal, computer equipment and storage medium for processing wheat connecting state
CN115086688A (en) * 2021-03-15 2022-09-20 北京字节跳动网络技术有限公司 Interactive video connection method and device, electronic equipment and storage medium
CN113225577B (en) * 2021-05-07 2022-10-11 北京百度网讯科技有限公司 Live stream processing method, device and system, electronic equipment and storage medium
CN113242441B (en) * 2021-05-08 2023-02-24 北京有竹居网络技术有限公司 Live broadcast method and device, computer equipment and storage medium
CN114125482A (en) * 2021-11-23 2022-03-01 腾讯音乐娱乐科技(深圳)有限公司 Live broadcast and microphone connection processing method, electronic equipment and storage medium
CN114679599A (en) * 2022-03-24 2022-06-28 上海哔哩哔哩科技有限公司 Live broadcast watching method and device
CN114900707B (en) * 2022-04-22 2024-02-20 湖南快乐阳光互动娱乐传媒有限公司 Live broadcast method and system
CN117499688B (en) * 2023-12-29 2024-05-03 淘宝(中国)软件有限公司 Method, equipment and storage medium for processing audio and video confluence in live broadcast continuous wheat

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411656A (en) * 2000-03-03 2003-04-16 汤姆森特许公司 Demultiplexing device and process for at least two transport streams and one merged stream
CN102231749A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 System and method for transmitting live stream by utilizing content delivery network (CDN)
CN103841353A (en) * 2014-02-24 2014-06-04 广州华多网络科技有限公司 Video interaction method, terminal, server and system
CN105491393A (en) * 2015-12-02 2016-04-13 北京暴风科技股份有限公司 Method for implementing multi-user live video business
CN105812951A (en) * 2016-03-24 2016-07-27 广州华多网络科技有限公司 Stream media data interaction method, terminal, server and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8140701B2 (en) * 2009-03-06 2012-03-20 Microsoft Corporation Scalable dynamic content delivery and feedback system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411656A (en) * 2000-03-03 2003-04-16 汤姆森特许公司 Demultiplexing device and process for at least two transport streams and one merged stream
CN102231749A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 System and method for transmitting live stream by utilizing content delivery network (CDN)
CN103841353A (en) * 2014-02-24 2014-06-04 广州华多网络科技有限公司 Video interaction method, terminal, server and system
CN105491393A (en) * 2015-12-02 2016-04-13 北京暴风科技股份有限公司 Method for implementing multi-user live video business
CN105812951A (en) * 2016-03-24 2016-07-27 广州华多网络科技有限公司 Stream media data interaction method, terminal, server and system

Also Published As

Publication number Publication date
CN106254899A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN106254899B (en) A kind of live streaming connects the control method and system of wheat
US11457283B2 (en) System and method for multi-user digital interactive experience
CN106534916B (en) A kind of video living transmission system for cafe environment based on three layers of service device framework
CN106954100A (en) Live broadcasting method and system, company's wheat management server
EP2700244B1 (en) Flow-control based switched group video chat and real-time interactive broadcast
CN107872732B (en) Self-service interactive video live broadcast system
CN101889422B (en) Method and system for synchronizing the output of terminals
CN105763832B (en) A kind of video interactive, control method and device
CN111225230B (en) Management method and related device for network live broadcast data
CN108076349A (en) Network interdynamic live broadcasting method, system and electronic equipment
US11889159B2 (en) System and method for multi-user digital interactive experience
CN103327287B (en) A kind of conference signal playing method and device, video conference terminal, mobile device
CN102017516A (en) Systems and methods for media distribution
CN102195955B (en) Method and corresponding equipment for switching between live broadcast service and time shifting service
CN108462882A (en) A kind of interactive approach of network direct broadcasting system
CN113542660A (en) Method, system and storage medium for realizing conference multi-picture high-definition display
CN111131759B (en) Real-time multimedia transmission system and use method thereof
CN111381787A (en) Screen projection method and equipment
CN108156413A (en) Transmission method and device, the MCU of video conference
KR101085063B1 (en) Group communication method in media server system with distributed structure
WO2014032531A1 (en) Method, device and system for terminal handover
JP2009284268A (en) Multicast broadcasting system and receiver
KR20150014785A (en) Multilateral communication broadcasting system and service providing method thereof
CN107613376A (en) A kind of live broadcasting method and device
GB2473886A (en) Multi-party web conferencing with simultaneous transmission of current speaker and invisible next speaker streams for seamless handover

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant