CN109639635A - CDN agency draws stream method, server, CDN and client - Google Patents

CDN agency draws stream method, server, CDN and client Download PDF

Info

Publication number
CN109639635A
CN109639635A CN201811308504.4A CN201811308504A CN109639635A CN 109639635 A CN109639635 A CN 109639635A CN 201811308504 A CN201811308504 A CN 201811308504A CN 109639635 A CN109639635 A CN 109639635A
Authority
CN
China
Prior art keywords
stream
cdn
address
draws
live
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.)
Granted
Application number
CN201811308504.4A
Other languages
Chinese (zh)
Other versions
CN109639635B (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201811308504.4A priority Critical patent/CN109639635B/en
Publication of CN109639635A publication Critical patent/CN109639635A/en
Application granted granted Critical
Publication of CN109639635B publication Critical patent/CN109639635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1045Proxies, e.g. for session initiation protocol [SIP]
    • 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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing

Abstract

It is acted on behalf of the disclosure is directed to a kind of CDN and draws stream method, server, CDN and client, the method comprise the steps that server determines that stream address is drawn in the live streaming of live stream;The server draws addition live streaming in stream address to draw stream source location in the live streaming, generates target and draws stream address, wherein it is drawing stream address of the live stream on third party CDN that stream source location is drawn in the live streaming;The target is drawn stream address to be sent to client by the server, so that the client draws stream address to obtain live stream according to the target.Stream method is drawn by the CDN of disclosure agency, without carrying out the joint debugging between CDN, raising efficiency while can also save joint debugging cost.

Description

CDN agency draws stream method, server, CDN and client
Technical field
Flow Technique field more particularly to a kind of CDN agency is drawn to draw stream method, server, CDN and visitor this disclosure relates to be broadcast live Family end.
Background technique
With the continuous improvement of Information Technology Development and network bandwidth, online video of watching also is become more and more popular.It is existing Some video websites and video application can not only be supplied to user video playlist, by user from video play lists The video of viewing is wanted oneself in middle selection, can also play live video for user.I.e. certain main broadcaster be broadcast live when, user select into Enter the studio of the main broadcaster, can play the live video stream of the main broadcaster in user client.
Live broadcast service has used more CDN (Content Delivery Network, content distributing network), default situations Lower main broadcaster's plug-flow and spectators draw stream to will use identical CDN, but inevitably there is the demand of across CDN drawing stream.It is drawn at present across CDN Need to carry out between CDN joint debugging when stream, low efficiency and at high cost.
Summary of the invention
To overcome the problems in correlation technique, it is acted on behalf of present disclose provides a kind of CDN and draws stream method, server, CDN And client.
According to the first aspect of the embodiments of the present disclosure, a kind of CDN agency drawing stream method is provided, wherein the method packet Include: server determines that stream address is drawn in the live streaming of live stream;The server draws addition live streaming in stream address to draw stream in the live streaming Source address generates target and draws stream address, wherein it is drawing of the live stream on third party CDN that stream source location is drawn in the live streaming Flow address;The target is drawn stream address to be sent to client by the server, so that the client is drawn according to the target It flows address and obtains live stream.
Optionally, it includes: partner's CDN domain name, agreement path, live stream name and described straight that the target, which draws stream address, It broadcasts and draws stream source location.
According to the second aspect of an embodiment of the present disclosure, a kind of CDN agency drawing stream method is provided, wherein the method packet Include: partner CDN receives the target that client is sent and draws stream address, and it includes: to be obtained straight that the target, which is drawn in stream address, The live streaming for broadcasting stream draws stream address and live streaming to draw stream source location, and it is the live stream in third party CDN that stream source location is drawn in the live streaming On drawing stream address;The partner CDN draws from the target and extracts live streaming drawing stream source location in stream address;The partner CDN judges that the live streaming draws stream source location whether credible;If credible, the partner CDN is drawn from the live streaming from stream source location Draw stream.
Optionally, the partner CDN draws the step of stream is drawn from stream source location from the live streaming, comprising: the partner CDN draws stream source location to carry out drawing stream from third party CDN according to the live streaming;Drawing throat floater is detected the presence of during drawing stream When mistake, the partner CDN is disconnected with the third party CDN, is removed the live stream of caching and is returned to the client Return prompt information, wherein the prompt information draws stream request for prompting the client to retransmit.
Optionally, the partner CDN draws the step of stream is drawn from stream source location from the live streaming, comprising: the partner CDN draws stream source location to carry out drawing stream from third party CDN according to the live streaming;Draw stream during when detect draw stream time-out or When person draws stream to interrupt, the partner CDN sends to the third party CDN according to prefixed time interval and draws stream request;If drawing stream When request number of times reaches preset times and failed drawing stream, the connection between the third party CDN is disconnected, the straight of caching is removed It broadcasts stream and returns to prompt information to the client, wherein the prompt information is drawn for prompting the client to retransmit Stream request.
According to the third aspect of an embodiment of the present disclosure, a kind of CDN agency drawing stream method is provided, wherein the method packet It includes: when client draws stream address to draw loss to lose to partner CDN according to the target, to the mesh of server request update Mark draws stream address;The target draws the live streaming drawing stream address in stream address including: live stream to be obtained and live streaming to draw stream source location, It is drawing stream address of the live stream on third party CDN that stream source location is drawn in the live streaming;The client is according to the update Target draw stream address to the partner CDN request draw stream.
According to a fourth aspect of embodiments of the present disclosure, a kind of server is provided, wherein the server comprises determining that Module is configured to determine that stream address is drawn in the live streaming of live stream;Adding module is configured as drawing to flow in address in the live streaming adding Add live streaming to draw stream source location, generate target and draw stream address, wherein it is the live stream in third party that stream source location is drawn in the live streaming Drawing stream address on CDN;Sending module is configured as drawing stream address to be sent to client the target, for the client Stream address is drawn to obtain live stream according to the target in end.
Optionally, it includes: partner's CDN domain name, agreement path, live stream name and described straight that the target, which draws stream address, It broadcasts and draws stream source location.
According to a fifth aspect of the embodiments of the present disclosure, a kind of CDN is provided, wherein the CDN is to have with server foundation The partner CDN of cooperative relationship, comprising: receiving module is configured as receiving the target that client is sent and drawing flowing address, institute It states target and the live streaming drawing stream address in stream address including: live stream to be obtained and live streaming is drawn to draw stream source location, the live streaming drawing stream Source address is drawing stream address of the live stream on third party CDN;Extraction module is configured as drawing stream address from the target Stream source location is drawn in middle extraction live streaming;Judgment module is configured as judging that the live streaming draws stream source location whether credible;Draw stream mould Block, if be configured as it is credible, from the live streaming draw stream source location from draw stream.
Optionally, the drawing flow module includes: the first implementation sub-module, is configured as drawing stream source location according to the live streaming Drawing stream is carried out from third party CDN;First detection sub-module is configured to detect the presence of during drawing stream and draws throat floater mistake When, the partner CDN is disconnected with the third party CDN, is removed the live stream of caching and is mentioned to client return Show information, wherein the prompt information draws stream request for prompting the client to retransmit.
Optionally, the drawing flow module includes: the second implementation sub-module, is configured as drawing stream source location according to the live streaming Drawing stream is carried out from third party CDN;Second detection sub-module, be configured to draw stream during when detect draw stream time-out or draw When stream interrupts, the partner CDN sends to the third party CDN according to prefixed time interval and draws stream request;Submodule is handled, Be configured as that if stream request number of times is drawn to reach preset times and failed drawing stream, the company between the third party CDN is disconnected It connects, remove the live stream of caching and returns to prompt information to the client, wherein the prompt information is for prompting the visitor Family end, which retransmits, draws stream request.
According to a sixth aspect of an embodiment of the present disclosure, a kind of client is provided, wherein the client includes: acquisition mould Block is configured as when client draws stream address to draw loss to lose to partner CDN according to the target, to server request The target of update draws stream address;The target draws the live streaming drawing stream address in stream address including: live stream to be obtained and live streaming to draw Stream source location, it is drawing stream address of the live stream on third party CDN that stream source location is drawn in the live streaming;Stream request module is drawn, It is configured as drawing stream address to request to draw stream to the partner CDN according to the target of the update.
According to the 7th of the embodiment of the present disclosure the aspect, a kind of server is provided, comprising: processor;For storage processor The memory of executable instruction;Wherein, the processor is configured to executing the executable any CDN agency of above-mentioned server Draw stream method.
According to a fourth aspect of embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described When instruction in storage medium is executed by the processor of server, so that server executes executable any of above-mentioned server CDN agency draws stream method.
According to a fifth aspect of the embodiments of the present disclosure, it provides according to a kind of computer program product, when the computer journey When instruction in sequence product is executed by the processor of terminal device, so that terminal device executes any of the above-described kind of client and can be performed CDN agency draw stream method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The CDN agency that embodiment of the disclosure provides draws stream scheme, and server determines that stream address is drawn in the live streaming of live stream;? Live streaming draws addition live streaming in stream address to draw stream source location, generates target and draws stream address, target is drawn stream address to be sent to by server Client, client draw stream address to obtain live stream according to target.Partner CDN draws stream address according to the target that client is sent In live streaming draw stream source location, be forwarded to client after carrying out drawing stream from third party CDN, thus complete across between CDN agency draw Stream, this kind agency draw the scheme of stream to be not necessarily to carry out joint debugging between CDN, and raising efficiency while can also save joint debugging cost.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the step flow chart that a kind of CDN agency shown according to an exemplary embodiment draws stream method;
Fig. 2 is the step flow chart that a kind of CDN agency shown according to an exemplary embodiment draws stream method;
Fig. 3 is the step flow chart that a kind of CDN agency shown according to an exemplary embodiment draws stream method;
Fig. 4 is a kind of structural block diagram of server shown according to an exemplary embodiment;
Fig. 5 is the structural block diagram of CDN shown according to an exemplary embodiment a kind of;
Fig. 6 is a kind of structural block diagram of client shown according to an exemplary embodiment;
Fig. 7 is a kind of structural block diagram of terminal device shown according to an exemplary embodiment;
Fig. 8 is a kind of structural block diagram of server shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is the flow chart that a kind of CDN agency shown according to an exemplary embodiment draws stream method, as shown in Figure 1 CDN agency draws stream method in server, comprising the following steps:
Step 101: server determines that stream address is drawn in the live streaming of live stream.
It is the address that the live stream is obtained from partner CDN that stream address is drawn in live streaming.
Step 102: server draws addition live streaming in stream address to draw stream source location in live streaming, generates target and draws stream address.
Wherein, it is drawing stream address of the live stream on third party CDN that stream source location is drawn in live streaming.Target drawing stream address includes: Stream source location is drawn in partner's CDN domain name, agreement path, live stream name and live streaming.
If main broadcaster's plug-flow has arrived third party CDN for certain live stream all the way, and the expectation of user's server is by spectators' tune It spends partner CDN and draws stream, then user's server can increase a parameter sourceUrl drawing to flow in address, and parameter value is Drawing stream address of the source live stream on other third party CDN.The target of generation draws stream address format as follows:
Http: // partner CDN domain name/agreement path/{ live stream name } .flv? { stream source is drawn in live streaming to sourceUrl= Location }=live streaming drawing stream address, wherein the live streaming, which draws to flow address, that is, target and draw, flows address.
Partner's CDN domain name is usually a newly-built domain name, the CDN of CNAME to partner;Arranging path is and cooperation The static identity that side arranges in advance, will not change once determination;Live stream name is the unique identification of live stream all the way.
Step 103: target is drawn stream address to be sent to client by server, so that client draws stream address to obtain according to target Take live stream.
Client draws partner's CDN domain name in stream address to determine partner CDN according to target, and sends out to partner CDN Drawing stream request is sent, partner CDN extracts live stream name from target drawing stream address and stream source location is drawn in live streaming, draws stream from being broadcast live Drawing stream is broadcast live under the corresponding third party CDN of source address.Third party CDN will draw the live stream of stream to return from partner CDN The corresponding video of live stream can be shown to client, at client.To draw stream by Tencent CDN agency in the embodiment of the present disclosure For netting the live stream in the CDN of place, stream method is drawn to be illustrated the CDN agency of the embodiment of the present disclosure.
Newly-built domain name tx-ws.pull, yximgs.com, stream CDN is drawn in the live streaming of CNAME to Tencent.
Assuming that user will access a source address in the live streaming of net place, stream URL is drawn are as follows:
Http:// ws01.pull.yximgs.com/gifshow/xCUJrx3-ROY.flv? wsTime=59113287& WsSecret=832f5a9d6e4e0e1716d582dc32941bd4;(the wherein stream name that xCUJrx3-ROY is the live stream)
Then server, which is arranged the user and accesses following address, carries out drawing stream: http://tx-ws.pull.yximgs.com/ Live/xCUJrx3-ROY.flv? sourceUrl=http%3A%2F%2Fws01.pull.yximgs.com% 2Fgifshow%2FxCUJrx3-ROY.flv%3FwsTime%3D59113287%26wsSecr et%3D832f5a9d6e 4e0e1716d582dc32941bd4
After Tencent CDN receives above-mentioned request, need to parse live stream name xCUJrx3-ROY from URL path, then SourceUrl is taken from parameter, is gone sourceUrl to be broadcast live and is drawn drawing stream at stream source location, then to subsequent access with always The request for broadcasting stream carries out back source merging.Judge the live stream whether has been cached in Tencent CDN, if so, wirelessly going again Stream is drawn in sourceUrl.
CDN agency shown in the present exemplary embodiment draws stream method, and server determines that stream address is drawn in the live streaming of live stream;? Live streaming draws addition live streaming in stream address to draw stream source location, generates target and draws stream address, target is drawn stream address to be sent to by server Client, client draw stream address to obtain live stream according to target.Partner CDN draws stream address according to the target that client is sent In live streaming draw stream source location, be forwarded to client after carrying out drawing stream from third party CDN, thus complete across between CDN agency draw Stream, this kind agency draw the scheme of stream to be not necessarily to carry out joint debugging between CDN, and raising efficiency while can also save joint debugging cost.
Fig. 2 is the flow chart that a kind of CDN agency shown according to an exemplary embodiment draws stream method, as shown in Figure 2 CDN agency draws stream method in CDN, which to be to establish the partner CDN for having cooperative relationship with server, and this method includes Following steps.
Step 201: partner CDN receives the target that client is sent and draws stream address.
Target draws the live streaming drawing stream address in stream address including: live stream to be obtained and live streaming to draw stream source location, is broadcast live and draws Stream source location is drawing stream address of the live stream on third party CDN.
It is that address is flowed in the corresponding drawing of the live stream in partner CDN that stream address is drawn in the live streaming of live stream to be obtained.
Step 202: partner CDN draws from target and extracts live streaming drawing stream source location in stream address.
It also includes live stream name that target, which draws stream address,.Partner CDN draws stream address extraction live stream name from target, from straight It broadcasts to draw and extracts live stream name in stream source location, judge whether the two live stream names are consistent, execute subsequent step if consistent, if It is inconsistent, it determines that flow data stream to be drawn has been maliciously tampered, then no longer needs to continue to draw stream.
Step 203: partner CDN judges that live streaming draws stream source location whether credible.
When judging that live streaming draws stream source location whether credible, it can be drawn from live streaming and obtain included third party in stream source location The domain name of CDN judges the domain name whether in domain name white list, if then determining that its is credible, if not, it is determined that its it is insincere can Energy can be leaky.
Step 204: if credible, partner CDN draws from live streaming and draws stream from stream source location.
Partner CDN draws stream source location to carry out drawing stream from third party CDN according to the live streaming;It is detected during drawing stream When drawing throat floater mistake, partner CDN is disconnected with third party CDN to existing, and removes the live stream of caching and to client Return to prompt information, wherein prompt information draws stream request for prompting the client to retransmit.Wherein, draw throat floater wrong 404, the 403 equal 4xx exception errors accidentally including defined in agreement.
Partner CDN draws stream source location to carry out drawing stream from third party CDN according to live streaming;When detecting during drawing stream When drawing stream time-out or stream being drawn to interrupt, partner CDN sends to third party CDN according to prefixed time interval and draws stream request;If drawing When stream request number of times reaches preset times and failed drawing stream, the connection between third party CDN is disconnected, the live streaming of caching is removed It flows and returns to prompt information to client, wherein prompt information draws stream request for prompting client to retransmit.Client's termination After the prompt information for receiving partner CDN return, drawing stream is retried.
Prefixed time interval can be configured according to actual needs by those skilled in the art, such as be set as 5s, 6s Or 7s etc..It is inferior that preset times can be set to 1 time, 2 times or 3, is not particularly limited in the embodiment of the present disclosure to this.
CDN agency shown in the present exemplary embodiment draws stream method, and server determines that stream address is drawn in the live streaming of live stream;? Live streaming draws addition live streaming in stream address to draw stream source location, generates target and draws stream address, target is drawn stream address to be sent to by server Client, client draw stream address to obtain live stream according to target.Partner CDN draws stream address according to the target that client is sent In live streaming draw stream source location, be forwarded to client after carrying out drawing stream from third party CDN, thus complete across between CDN agency draw Stream, this kind agency draw the scheme of stream to be not necessarily to carry out joint debugging between CDN, and raising efficiency while can also save joint debugging cost.
Fig. 3 is the flow chart that a kind of CDN agency shown according to an exemplary embodiment draws stream method, as shown in Figure 3 CDN agency draws stream method in client, the client and server foundation to have data connection, and server is sent to client Target draws stream address, and client draws stream address to draw stream from partner CDN according to the target, and partner CDN is from third party CDN Stream is drawn to return to client, to realize that kind of a CDN agency draws stream.This approach includes the following steps.
Step 301: when client draws stream address to draw loss to lose to partner CDN according to target, being obtained to server request The target of update is taken to draw stream address.
Target draws the live streaming drawing stream address in stream address including: live stream to be obtained and live streaming to draw stream source location, is broadcast live and draws Stream source location is drawing stream address of the live stream on third party CDN.
SourceUrl is that the authentication information for drawing and going third party CDN to draw stream with active client in stream source location is broadcast live, this A timestamp is generally comprised in a authentication information, validity period is about dozens of minutes, and the authentication information of different third party CDN has The effect phase is different.It loses if client draws to be lost from partner CDN or exception during stream is drawn to disconnect, it is likely that be because above-mentioned The expired failure of authentication information.Client should access the target drawing stream address that server obtains the live stream again again, at this time Server can return to the sourceUrl with newest authentication information, and client goes to retry from partner using this sourceUrl CDN agency draws stream.
Step 302: client draws stream address to request to draw stream to partner CDN according to the target updated.
Partner CDN draws from the target of update and extracts updated live streaming drawing stream source location in stream address, and updated Live streaming draws the corresponding third party CDN in stream source location to re-establish connection, carries out drawing stream.
The CDN agency that the embodiment of the present disclosure provides draws stream method, and server determines that stream address is drawn in the live streaming of live stream;Straight It broadcasts addition live streaming in drawing stream address and draws stream source location, generate target and draw stream address, target is drawn stream address to be sent to visitor by server Family end, client draw stream address to obtain live stream according to target.Partner CDN is drawn in stream address according to the target that client is sent Live streaming draw stream source location, be forwarded to client after carrying out drawing stream from third party CDN, thus complete across between CDN agency draw stream, This kind agency draws the scheme of stream to be not necessarily to carry out joint debugging between CDN, and raising efficiency while can also save joint debugging cost.
Fig. 4 is a kind of block diagram of server shown according to an exemplary embodiment, and referring to Fig. 4, the server includes: true Cover half block 401, adding module 402 and sending module 403.
Determining module 401 is configured to determine that stream address is drawn in the live streaming of live stream;
Adding module 402 is configured as drawing addition live streaming in stream address to draw stream source location in the live streaming, generates target and draw Flow address, wherein it is drawing stream address of the live stream on third party CDN that stream source location is drawn in the live streaming;Sending module 403, it is configured as drawing stream address to be sent to client the target, so that the client draws stream address according to the target Obtain live stream.
Optionally, it includes: partner's CDN domain name, agreement path, live stream name and described straight that the target, which draws stream address, It broadcasts and draws stream source location.
About the server in above-described embodiment, wherein modules execute the concrete mode of operation in the related party It is described in detail in the embodiment of method, no detailed explanation will be given here.
Fig. 5 is the block diagram of CDN shown according to an exemplary embodiment a kind of, which is to have cooperation with server foundation The partner CDN of relationship, referring to Fig. 5, the CDN includes: receiving module 501, extraction module 502, judgment module 503 and draws stream Module 504.
Receiving module 501 is configured as receiving the target that client is sent and drawing flowing address, and the target draws stream address In include: that the live streaming of live stream to be obtained draws stream address and live streaming to draw stream source location, the live streaming draw stream source location be it is described directly Broadcast the drawing stream address flowed on third party CDN;
Extraction module 502 is configured as drawing from the target and extracts live streaming drawing stream source location in stream address;
Judgment module 503 is configured as judging that the live streaming draws stream source location whether credible;
Draw flow module 504, if be configured as it is credible, from the live streaming draw stream source location from draw flow.
Optionally, the drawing flow module 504 includes: the first implementation sub-module 5041, is configured as drawing according to the live streaming Stream source location carries out drawing stream from third party CDN;First detection sub-module 5042 is configured to detect the presence of during drawing stream When drawing throat floater mistake, the partner CDN is disconnected with the third party CDN, removes the live stream of caching and to described Client returns to prompt information, wherein the prompt information draws stream request for prompting the client to retransmit.
Optionally, the drawing flow module 504 includes: the second implementation sub-module 5043, is configured as drawing according to the live streaming Stream source location carries out drawing stream from third party CDN;Second detection sub-module 5044, be configured to draw stream during when detect draw When stream time-out or drawing stream interrupt, the partner CDN, which is sent according to prefixed time interval to the third party CDN, draws stream to ask It asks;Handle submodule 5045, if being configured as drawing stream request number of times to reach preset times and failed when drawing stream, disconnect with it is described Connection between third party CDN removes the live stream of caching and returns to prompt information to the client, wherein the prompt Information draws stream request for prompting the client to retransmit.
About the CDN in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 is a kind of block diagram of client shown according to an exemplary embodiment, and referring to Fig. 6, the client includes: to obtain Modulus block 601 and drawing stream request module 602.
Module 601 is obtained, is configured as drawing to flow address and draw to be lost to partner CDN according to the target when client losing When, the target updated to server request draws stream address;It includes: the straight of live stream to be obtained that the target, which is drawn in stream address, It broadcasts drawing stream address and stream source location is drawn in live streaming, it is drawing stream of the live stream on third party CDN that stream source location is drawn in the live streaming Address;
Stream request module 602 is drawn, is configured as drawing stream address to request to the partner CDN according to the target of the update Draw stream.
About the client in above-described embodiment, wherein modules execute the concrete mode of operation in the related party It is described in detail in the embodiment of method, no detailed explanation will be given here.
Fig. 7 is a kind of block diagram of terminal device 700 shown according to an exemplary embodiment.For example, terminal device 700 can To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for Body equipment, personal digital assistant etc..
Referring to Fig. 7, terminal device 700 may include following one or more components: processing component 702, memory 704, Power supply module 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714, And communication component 716.
The integrated operation of the usual controlling terminal equipment 700 of processing component 702, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 702 may include one or more processors 720 to hold Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more moulds Block, convenient for the interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, with Facilitate the interaction between multimedia component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in terminal device 700.These data Example include any application or method for being operated on terminal device 700 instruction, contact data, telephone directory Data, message, picture, video etc..Memory 704 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, fastly Flash memory, disk or CD.
Power supply module 706 provides electric power for the various assemblies of terminal device 700.Power supply module 706 may include power supply pipe Reason system, one or more power supplys and other with for terminal device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between terminal device 700 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 708 includes a front camera and/or rear camera.When terminal device 700 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when terminal device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 704 or via logical Believe that component 716 is sent.In some embodiments, audio component 710 further includes a loudspeaker, is used for output audio signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, for providing the state of various aspects for terminal device 700 Assessment.For example, sensor module 714 can detecte the state that opens/closes of terminal device 700, the relative positioning of component, example As the component be terminal device 700 display and keypad, sensor module 714 can also detect terminal device 700 or The position change of 700 1 components of terminal device, the existence or non-existence that user contacts with terminal device 700, terminal device 700 The temperature change of orientation or acceleration/deceleration and terminal device 700.Sensor module 714 may include proximity sensor, be configured For detecting the presence of nearby objects without any physical contact.Sensor module 714 can also include optical sensor, Such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which may be used also To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between terminal device 700 and other equipment. Terminal device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one In example property embodiment, communication component 716 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 700 can be by one or more application specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing CDN shown in above-mentioned Fig. 3 Agency draws stream method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of terminal device 700 to complete institute in above-mentioned Fig. 3 The CDN agency shown draws stream method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory Device (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In the exemplary embodiment, a kind of computer program product is additionally provided, when in the computer program product When instruction is executed by the processor 720 of terminal device 700, so that terminal device 700 completes the agency of CDN shown in above-mentioned Fig. 3 Draw stream method.
Fig. 8 is a kind of block diagram of server shown according to an exemplary embodiment.Referring to Fig. 8, server 800 includes place Component 801 is managed, further comprises one or more processors, and the memory resource as representated by memory 802, is used for Storage can be by the instruction of the execution of processing component 801, such as application program.The application program stored in memory 802 can wrap Include it is one or more each correspond to one group of instruction module.Refer in addition, processing component 801 is configured as executing It enables, draws stream method to execute kind CDN agency shown in above-mentioned Fig. 1.
Server 800 can also include that a power supply module 803 be configured as the power management of execute server 800, and one A wired or wireless network interface 804 is configured as server 800 being connected to network and input and output (I/O) interface 805.Server 800 can be operated based on the operating system for being stored in memory 802, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 802 of instruction, above-metioned instruction can be executed by the processing component 801 of server 800 to complete institute in above-mentioned Fig. 1 The CDN agency shown draws stream method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory Device (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..Those skilled in the art are considering specification and are practicing this In after invention disclosed, will readily occur to other embodiments of the disclosure.This application is intended to cover any modification of the disclosure, Purposes or adaptive change, these variations, uses, or adaptations follow the general principles of this disclosure and including these Undocumented common knowledge or conventional techniques in the art is disclosed.Description and embodiments are considered only as exemplary , the true scope and spirit of the disclosure are indicated by the following claims.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of CDN agency draws stream method, which is characterized in that the described method includes:
Server determines that stream address is drawn in the live streaming of live stream;
The server draws addition live streaming in stream address to draw stream source location in the live streaming, generates target and draws stream address, wherein institute Stating live streaming and drawing stream source location is drawing stream address of the live stream on third party CDN;
The target is drawn stream address to be sent to client by the server, so that the client draws stream ground according to the target Location obtains live stream.
2. the method according to claim 1, wherein the target draw stream address include: partner's CDN domain name, Arrange path, live stream name and the live streaming and draws stream source location.
3. a kind of CDN agency draws stream method, which is characterized in that the described method includes:
Partner CDN receives the target that client is sent and draws stream address, and it includes: to be obtained straight that the target, which is drawn in stream address, The live streaming for broadcasting stream draws stream address and live streaming to draw stream source location, and it is the live stream in third party CDN that stream source location is drawn in the live streaming On drawing stream address;
The partner CDN draws from the target and extracts live streaming drawing stream source location in stream address;
The partner CDN judges that the live streaming draws stream source location whether credible;
If credible, the partner CDN draws from the live streaming and draws stream from stream source location.
4. the method according to claim 1, wherein the partner CDN is drawn from stream source location from the live streaming The step of drawing stream, comprising:
The partner CDN draws stream source location to carry out drawing stream from third party CDN according to the live streaming;
When detecting the presence of drawing throat floater mistake during drawing stream, the partner CDN and the third party CDN are disconnected and being connected It connects, remove the live stream of caching and returns to prompt information to the client, wherein the prompt information is for prompting the visitor Family end, which retransmits, draws stream request.
5. a kind of CDN agency draws stream method, which is characterized in that the described method includes:
When client draws stream address to draw loss to lose to partner CDN according to the target, updated to server request Target draws stream address;The target draws the live streaming drawing stream address in stream address including: live stream to be obtained and live streaming to draw stream source Location, it is drawing stream address of the live stream on third party CDN that stream source location is drawn in the live streaming;
The client draws stream address to request to draw stream to the partner CDN according to the target of the update.
6. a kind of server, which is characterized in that the server includes:
Determining module is configured to determine that stream address is drawn in the live streaming of live stream;
Adding module is configured as drawing addition live streaming in stream address to draw stream source location in the live streaming, generates target and draw stream address, Wherein, it is drawing stream address of the live stream on third party CDN that stream source location is drawn in the live streaming;
Sending module is configured as drawing stream address to be sent to client the target, so that the client is according to the mesh Mark draws stream address to obtain live stream.
7. a kind of CDN, which is characterized in that the CDN is to establish the partner CDN for having cooperative relationship with server, comprising:
Receiving module is configured as receiving the target that client is sent and drawing flowing address, and the target, which is drawn in stream address, includes: Stream address is drawn in the live streaming of live stream to be obtained and stream source location is drawn in live streaming, and it is the live stream that stream source location is drawn in the live streaming Drawing stream address on tripartite CDN;
Extraction module is configured as drawing from the target and extracts live streaming drawing stream source location in stream address;
Judgment module is configured as judging that the live streaming draws stream source location whether credible;
Draw flow module, if be configured as it is credible, from the live streaming draw stream source location from draw flow.
8. a kind of client, which is characterized in that the client includes:
Module is obtained, is configured as when client draws stream address to draw loss to lose to partner CDN according to the target, to service The target that device request updates draws stream address;It include: the live streaming drawing stream ground of live stream to be obtained in the target drawing stream address Stream source location is drawn in location and live streaming, and it is drawing stream address of the live stream on third party CDN that stream source location is drawn in the live streaming;
Stream request module is drawn, is configured as drawing stream address to request to draw stream to the partner CDN according to the target of the update.
9. a kind of server characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing CDN claimed in claims 1-2 agency such as draws stream method.
10. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processor of server When execution, enable the server to execute the described in any item CDN agency drawing stream methods of claim 1-2 such as.
CN201811308504.4A 2018-11-05 2018-11-05 CDN agency draws stream method, server, CDN and client Active CN109639635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811308504.4A CN109639635B (en) 2018-11-05 2018-11-05 CDN agency draws stream method, server, CDN and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811308504.4A CN109639635B (en) 2018-11-05 2018-11-05 CDN agency draws stream method, server, CDN and client

Publications (2)

Publication Number Publication Date
CN109639635A true CN109639635A (en) 2019-04-16
CN109639635B CN109639635B (en) 2019-09-03

Family

ID=66067317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811308504.4A Active CN109639635B (en) 2018-11-05 2018-11-05 CDN agency draws stream method, server, CDN and client

Country Status (1)

Country Link
CN (1) CN109639635B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769311A (en) * 2019-10-09 2020-02-07 北京达佳互联信息技术有限公司 Method, device and system for processing live data stream
CN110769275A (en) * 2019-10-09 2020-02-07 北京达佳互联信息技术有限公司 Method, device and system for processing live data stream
CN111432248A (en) * 2020-03-30 2020-07-17 北京百度网讯科技有限公司 Quality monitoring method and device for live video stream
CN111835697A (en) * 2019-04-23 2020-10-27 华为技术有限公司 Media stream sending method, device, equipment and system
CN112351296A (en) * 2020-10-29 2021-02-09 北京达佳互联信息技术有限公司 Pull stream push method and device of video stream, server and storage medium
CN112423146A (en) * 2019-08-21 2021-02-26 亦非云互联网技术(上海)有限公司 Playing data acquisition and pushing method, system, medium, server and playing terminal
CN112953724A (en) * 2021-02-22 2021-06-11 广州虎牙科技有限公司 Authentication method of anti-theft chain, and related device and equipment
CN114928758A (en) * 2022-05-05 2022-08-19 上海哔哩哔哩科技有限公司 Live broadcast abnormity detection processing method and device
CN115484468A (en) * 2021-06-15 2022-12-16 北京字节跳动网络技术有限公司 Wheat connecting system, method, device, equipment and storage medium
EP4084482A4 (en) * 2020-01-17 2023-12-20 Beijing Dajia Internet Information Technology Co., Ltd. Stream pull method and device for live stream

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826137A (en) * 2012-11-19 2014-05-28 中国电信股份有限公司 Video access method and system, and video agent of CDN server
CN104717535A (en) * 2015-03-11 2015-06-17 大连理工大学 Method for switching subway train media playing mode
CN105871800A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Pull stream control method, device and system
CN106231365A (en) * 2016-08-18 2016-12-14 北京斗牛科技有限公司 A kind of dispatching method and system
US20170013321A1 (en) * 2012-12-04 2017-01-12 Virtual Marketing Incorporated d/b/a Fusion 92 Internet protocol television streaming methods and apparatus
CN106464712A (en) * 2014-04-29 2017-02-22 阿尔卡特朗讯 Methods and devices for responding to a streaming request, access node and method for operating the same
CN106851343A (en) * 2017-01-23 2017-06-13 百度在线网络技术(北京)有限公司 For the method and apparatus of net cast
CN106878769A (en) * 2017-02-23 2017-06-20 北京潘达互娱科技有限公司 live video quality monitoring method and device
CN107105309A (en) * 2017-04-25 2017-08-29 北京潘达互娱科技有限公司 Live dispatching method and device
CN107172015A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 Live video method for pushing and device
CN107734350A (en) * 2017-09-25 2018-02-23 上海幻电信息科技有限公司 Live broadcast system and live broadcasting method
CN108737405A (en) * 2018-05-10 2018-11-02 网宿科技股份有限公司 A kind of method, CCL servers and system carrying out water conservancy diversion to live video stream

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826137A (en) * 2012-11-19 2014-05-28 中国电信股份有限公司 Video access method and system, and video agent of CDN server
US20170013321A1 (en) * 2012-12-04 2017-01-12 Virtual Marketing Incorporated d/b/a Fusion 92 Internet protocol television streaming methods and apparatus
CN106464712A (en) * 2014-04-29 2017-02-22 阿尔卡特朗讯 Methods and devices for responding to a streaming request, access node and method for operating the same
CN104717535A (en) * 2015-03-11 2015-06-17 大连理工大学 Method for switching subway train media playing mode
CN105871800A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Pull stream control method, device and system
CN106231365A (en) * 2016-08-18 2016-12-14 北京斗牛科技有限公司 A kind of dispatching method and system
CN106851343A (en) * 2017-01-23 2017-06-13 百度在线网络技术(北京)有限公司 For the method and apparatus of net cast
CN106878769A (en) * 2017-02-23 2017-06-20 北京潘达互娱科技有限公司 live video quality monitoring method and device
CN107105309A (en) * 2017-04-25 2017-08-29 北京潘达互娱科技有限公司 Live dispatching method and device
CN107172015A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 Live video method for pushing and device
CN107734350A (en) * 2017-09-25 2018-02-23 上海幻电信息科技有限公司 Live broadcast system and live broadcasting method
CN108737405A (en) * 2018-05-10 2018-11-02 网宿科技股份有限公司 A kind of method, CCL servers and system carrying out water conservancy diversion to live video stream

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11848973B2 (en) 2019-04-23 2023-12-19 Huawei Technologies Co., Ltd. Media stream sending method, apparatus, system and device
CN111835697A (en) * 2019-04-23 2020-10-27 华为技术有限公司 Media stream sending method, device, equipment and system
CN111835697B (en) * 2019-04-23 2021-10-01 华为技术有限公司 Media stream sending method, device, equipment and system
CN112423146A (en) * 2019-08-21 2021-02-26 亦非云互联网技术(上海)有限公司 Playing data acquisition and pushing method, system, medium, server and playing terminal
CN112423146B (en) * 2019-08-21 2023-10-03 亦非云互联网技术(上海)有限公司 Method, system, medium, server and playing terminal for acquiring and pushing playing data
CN110769275B (en) * 2019-10-09 2022-04-08 北京达佳互联信息技术有限公司 Method, device and system for processing live data stream
CN110769311A (en) * 2019-10-09 2020-02-07 北京达佳互联信息技术有限公司 Method, device and system for processing live data stream
CN110769275A (en) * 2019-10-09 2020-02-07 北京达佳互联信息技术有限公司 Method, device and system for processing live data stream
EP4084482A4 (en) * 2020-01-17 2023-12-20 Beijing Dajia Internet Information Technology Co., Ltd. Stream pull method and device for live stream
CN111432248A (en) * 2020-03-30 2020-07-17 北京百度网讯科技有限公司 Quality monitoring method and device for live video stream
CN112351296A (en) * 2020-10-29 2021-02-09 北京达佳互联信息技术有限公司 Pull stream push method and device of video stream, server and storage medium
CN112953724A (en) * 2021-02-22 2021-06-11 广州虎牙科技有限公司 Authentication method of anti-theft chain, and related device and equipment
CN112953724B (en) * 2021-02-22 2022-11-29 广州虎牙科技有限公司 Authentication method of anti-theft chain, and related device and equipment
CN115484468A (en) * 2021-06-15 2022-12-16 北京字节跳动网络技术有限公司 Wheat connecting system, method, device, equipment and storage medium
CN115484468B (en) * 2021-06-15 2024-01-09 北京字节跳动网络技术有限公司 Wheat connecting system, method, device, equipment and storage medium
CN114928758A (en) * 2022-05-05 2022-08-19 上海哔哩哔哩科技有限公司 Live broadcast abnormity detection processing method and device

Also Published As

Publication number Publication date
CN109639635B (en) 2019-09-03

Similar Documents

Publication Publication Date Title
CN109639635B (en) CDN agency draws stream method, server, CDN and client
CN108520746B (en) Method and device for controlling intelligent equipment through voice and storage medium
JP6186508B2 (en) Network connection method and terminal
KR101945090B1 (en) Method, apparatus and system for playing multimedia data
JP6272552B2 (en) Device binding method, apparatus, program, and recording medium
CN106488335B (en) Live-broadcast control method and device
CN106105246B (en) Display methods, apparatus and system is broadcast live
JP7073451B2 (en) Equipment network configuration method, equipment and media
CN105208110B (en) Resource control method and device
CN106162230A (en) The processing method of live information, device, Zhu Boduan, server and system
US9128593B2 (en) Enabling an interactive program associated with a live broadcast on a mobile device
JP6149163B2 (en) WI-FI network connection method, apparatus, program, and recording medium
CN104639609B (en) Network share method and device
JP2017514428A (en) Network connection method, apparatus, program, and recording medium
CN110475134A (en) A kind of comment content display method, device, electronic equipment and storage medium
CN105120301A (en) Video processing method and apparatus, and intelligent equipment
KR20160076489A (en) Recommendation information acquisition method, terminal, and server
CN107105339A (en) A kind of methods, devices and systems for playing live video
CN106101600A (en) The method of attachment of video calling and device
CN109618238B (en) Live network data processing method and device, electronic equipment and readable medium
CN107396027A (en) Knock at the door information processing method and device
CN109040651B (en) Video communication method and device
CN106375803B (en) Processing method, processing unit and the processing system of live information
CN105577521B (en) Good friend's group technology, apparatus and system
CN109831538A (en) A kind of message treatment method, device, server, terminal and medium

Legal Events

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