CN109788301A - A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium - Google Patents

A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium Download PDF

Info

Publication number
CN109788301A
CN109788301A CN201910017252.8A CN201910017252A CN109788301A CN 109788301 A CN109788301 A CN 109788301A CN 201910017252 A CN201910017252 A CN 201910017252A CN 109788301 A CN109788301 A CN 109788301A
Authority
CN
China
Prior art keywords
destination node
streaming media
terminal device
live
data slice
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
CN201910017252.8A
Other languages
Chinese (zh)
Other versions
CN109788301B (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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201910017252.8A priority Critical patent/CN109788301B/en
Publication of CN109788301A publication Critical patent/CN109788301A/en
Application granted granted Critical
Publication of CN109788301B publication Critical patent/CN109788301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage mediums.The live broadcasting method of the Streaming Media, is applied to terminal device, and the live broadcasting method includes: detecting whether to receive the live streaming request for playing target Streaming Media;If detecting the live streaming request, the live streaming request is sent to dispatch server, so that the dispatch server requests to generate Node distribution information according to the live streaming, wherein, the Node distribution information includes the information of each destination node, each destination node can forward each data slice, and each data slice constitutes the target Streaming Media;The dispatch server is connect with the terminal equipment in communication, and is communicated to connect with each destination node;Obtain each data slice of each destination node forwarding;It recombinates each data slice to form the target Streaming Media according to the temporal characteristics of each data slice;Play the target Streaming Media.

Description

It a kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer-readable deposits Storage media
Technical field
The present invention relates to field of communication technology more particularly to a kind of live broadcasting methods of Streaming Media, terminal device, live broadcast system And computer readable storage medium.
Background technique
Live streaming can fast and accurately transmit field data, and strong telepresenc allows more and more people to pass through website or mobile phone To watch live streaming.Real-time stream medium data gives each spectators client by direct broadcast server active push usually in a manner of plug-flow End.
" plug-flow " is the spectator client by stream medium data active push into network, so that spectator client watches institute State the process of stream medium data." plug-flow " is relatively high to network requirement, if unstable networks, live streaming effect will be very poor, sees Phenomena such as Caton will occur when crowd's viewing live streaming.Also, for the stream medium data of some hot topics, the spectator client of viewing Quantity is likely to be breached up to ten thousand, and the pressure of " plug-flow " of server is very big at this time.
Peer-to-peer (P2P) is a kind of distributed network, and the participant of P2P network shares one that they are possessed Divide hardware resource, these shared resources need directly be visited by other peer nodes (peer) by network offering services and content It asks without being subjected to intermediate entities.Participant in this network is both resource (service and content) supplier's (server It server), and is resource acquisition person's (client).The characteristics of based on above-mentioned P2P, the peer node in P2P network obtain Take the data of resource very fast.
But traditional P2P technology is generated based on file sharing needs, P2P mode is frequently used in shared video Or the scene (such as video resource downloading of the websites such as video on demand) of audio data.When each network node stream medium data, lead to Resource is stored on each network node in the form of a file often, and file declustering is transferred at several subfiles to end segment Point.Since the mode that traditional P2P technology is normally based on file transmits data, it is good by documenting in advance to need, and file The mode of transmission makes the applicable scene of P2P technology fixed in the presence of limitation, and which is not easily achieved low delay, does not adapt in real time The transmission of the live video stream of the more demanding live-mode of property.
Summary of the invention
The main purpose of the present invention is to provide a kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and meters Calculation machine readable storage medium storing program for executing, it is intended to solve the higher technical problem of existing live streaming delay.
To achieve the above object, the present invention provides a kind of stream media live broadcasting method, a kind of live broadcasting method of Streaming Media, application In terminal device, the live broadcasting method includes: detecting whether to receive the live streaming request for playing target Streaming Media;If detecting institute Live streaming request is stated, sends the live streaming request to dispatch server, so that the dispatch server please seek survival according to the live streaming At Node distribution information, wherein the Node distribution information includes the information of each destination node, and each destination node can forward Each data slice, each data slice constitute the target Streaming Media;The dispatch server is connect with the terminal equipment in communication, And it is communicated to connect with each destination node;Obtain each data slice of each destination node forwarding, wherein the terminal The communication connection for playing the target Streaming Media has been established in equipment and each destination node;According to the temporal characteristics of each data slice Each data slice is recombinated to form the target Streaming Media;Play the target Streaming Media.
Preferably, the terminal device and each destination node are established the communication connection for playing the target Streaming Media and are had Body includes: the Node distribution information for obtaining the dispatch server and sending;According to the Node distribution information and described each Destination node establishes the communication connection for playing the target Streaming Media.
Preferably, the target Streaming Media need to be played out by the terminal device, corresponding to the target Streaming Media Each data slice need to be transmitted to the terminal device by the destination node.
Preferably, each destination node is mobile electronic equipment, and each data slice is each destination node It is obtained in real time from background server.
Preferably, each destination node can be connect at least two terminal equipment in communication simultaneously, by the corresponding destination node Data slice real-time Transmission give at least two terminal device.
Preferably, each destination node forwards a data slice of a target Streaming Media.
To achieve the above object, the present invention further provides a kind of stream media live broadcasting methods, are applied to live broadcast system, live streaming System includes terminal device, dispatch server and destination node, the dispatch server and terminal device and destination node Communication connection, the live broadcasting method include: that terminal device detects whether to receive the live streaming request for playing target Streaming Media;Work as end When end equipment detects live streaming request, Xiang Suoshu dispatch server sends the live streaming request;The dispatch server connects When receiving live streaming request, according to live streaming request generation Node distribution information, wherein the Node distribution information includes The information of each destination node, each destination node can forward each data slice, and each data slice constitutes the target Streaming Media; Each destination node forwards each data slice to the terminal device, wherein the terminal device and each target section The communication connection for playing the target Streaming Media has been established in point;The terminal device will be described according to the temporal characteristics of each data slice Each data slice recombinates to form the target Streaming Media, and plays the target Streaming Media.
To achieve the above object, the present invention further provides a kind of live broadcasting methods of Streaming Media, are applied to destination node, institute Stating live broadcasting method includes: the request for obtaining the broadcasting target Streaming Media that terminal device or dispatch server are sent;Judge whether It is stored with the corresponding data slice of the target Streaming Media;If it is not, then the target Streaming Media according to the request is relevant Data slice, and the data slice got described in transmission is to the terminal device;If so, sending the target according to the request The corresponding data slice of Streaming Media gives the terminal device.
Preferably, the destination node is mobile electronic equipment, and the data slice is the destination node from from the background Server obtains.
Preferably, each destination node can be connect at least two terminal equipment in communication simultaneously, by the corresponding destination node Data slice be transferred at least two terminal device.
Preferably, each destination node forwards a data slice of a target Streaming Media.
To achieve the above object, the present invention further provides a kind of terminal device, the terminal device includes: memory, The memory is used to store the executable live broadcasting method program of computer;And processor, the processor call described straight When broadcasting method program, live broadcasting method above-mentioned is executed.
To achieve the above object, the present invention further provides a kind of live broadcast system, the live broadcast system includes: dispatch service Device, and terminal device and destination node with dispatch server communication connection;Wherein, the terminal device includes: memory, The memory is used to store the executable live broadcasting method program of computer;And processor, the processor call described straight When broadcasting method program, live broadcasting method above-mentioned is executed.
To achieve the above object, the present invention further provides a kind of computer readable storage mediums, described computer-readable Live broadcasting method program is stored on storage medium, the live broadcasting method program can be executed by one or more processor, with reality Existing live broadcasting method above-mentioned.
To achieve the above object, the present invention further provides a kind of computer-readable storage medium, the computer can It reads to be stored with live broadcasting method program on storage medium, the live broadcasting method program can be executed by one or more processor, with Live broadcasting method above-mentioned.
Compared with existing design, the present invention is when terminal device receives the live streaming request of target Streaming Media, by the live streaming Request is sent to dispatch server, so that each destination node distributed intelligence is transferred to terminal device by dispatch server, thus Terminal device and each destination node is established to communicate to connect so that each destination node is obtained from background server this Each data slice of target Streaming Media is transmitted to terminal device, thus terminal device by each data slice according to data slice when Between feature each data slice is recombinated to form target Streaming Media, and played out in terminal device.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of live broadcast system provided by one embodiment of the invention;
Fig. 2 is a kind of structural block diagram of terminal device provided by one embodiment of the invention;
Fig. 3 is a kind of flow diagram of the live broadcasting method of Streaming Media provided by one embodiment of the invention;
Fig. 4 is a kind of flow diagram of the live broadcasting method of Streaming Media provided by one embodiment of the invention;
Fig. 5 is a kind of flow diagram of the live broadcasting method of Streaming Media provided by one embodiment of the invention;
Fig. 6 is a kind of structural block diagram of destination node provided by one embodiment of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
The present invention provides live broadcasting method, terminal device, live broadcast system and the computer-readable storage medium of a kind of Streaming Media Matter.When terminal device receives the live streaming request of target Streaming Media, live streaming request is sent to dispatch server, so as to adjust It spends server and each destination node distributed intelligence is transferred to terminal device, to allow terminal device and each destination node Communication connection is established, so that each data slice for the target Streaming Media that each destination node obtains in real time from background server is real When be transmitted to terminal device, thus in terminal device by each data slice according to the temporal characteristics of data slice by each data slice weight Group forms target Streaming Media, and plays out in terminal device.Wherein, each destination node only need to be to the end for proposing playing request End equipment forwards corresponding data slice, without storing to data slice, to accelerate corresponding target stream medium data The real-time Transmission of piece reduces the delay in stream medium data communication process.It, can be with further by the regulation of dispatch server So that each destination node is correspondingly connected with multiple terminal devices, and then enhances to the corresponding data piece of each destination node Utilization rate, expand the data slice utilization than.
Referring to Fig. 1, Fig. 1 is a kind of live broadcast system 100 provided by the invention, which includes terminal device 10, dispatch server 20, destination node 30, background server 40 and main broadcaster's terminal 50.
Wherein, main broadcaster's terminal 50 can be one or more, and each main broadcaster's terminal 50 is communicated with background server 40 Connection, for obtaining corresponding Streaming Media, and by streaming media to background server 40, the Streaming Media can be video with/ Or audio data is it is not limited here.Background server 40 is connect with destination node 30, and destination node 30 be it is multiple, for will The Streaming Media acquired in main broadcaster's terminal 50 is cut into each data slice, and each data slice is pushed in real time corresponding each A destination node 30, each data slice that each destination node 30 is used to that background server to be forwarded to push.
At least one data slice of each destination node 30 for forwarding stream media, rather than entire stream medium data, thus It can accelerate forwarding of the Streaming Media from destination node 30 to terminal device 10.
Preferably, destination node 30 is mobile electronic equipment, e.g., mobile phone, notes and iPad etc., so as to will be not busy The mobile electronic equipment set makes full use of, meanwhile, what the portability of mobile electronic equipment can be enhanced destination node 30 can Mobility, the regional scope that the data slice that can be forwarded so as to increase the destination node 30 is disseminated.
Further each destination node 30 can be communicated to connect at least two terminal devices 10 simultaneously, by the corresponding section The data slice of point is sent to the terminal device 10 of needs, so that the stream medium data piece of the corresponding destination node 30 obtains abundant benefit With.Dispatch server 20 and terminal device 10 and destination node 30 communicate to connect, for receiving the sending of terminal device 10 The corresponding target Streaming Media of broadcasting live streaming request when, the target Streaming Media which requests correspond to according to the live streaming request Each data slice correspondence destination node 30 information so that terminal device 10 can be with corresponding 30 communication link of destination node It connects, to go out to obtain the data slice of target Streaming Media from destination node 30.
When terminal device 10 is connected with corresponding destination node 30, the corresponding data can be obtained from the destination node 30 Piece, and the data slice is recombinated, corresponding target Streaming Media is formed with reduction, to be played in terminal device 10, is realized The live streaming of target Streaming Media.
Referring to Fig. 2, in the present embodiment, terminal device 10 can be PC (PersonalComputer, PC), It is whole to be also possible to smart phone, tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage equipment End equipment.Preferably, the intelligent terminal is smart phone.
The terminal device 10 includes memory 101, processor 102 and bus 103.
Wherein, memory 101 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes dodging It deposits, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Storage Device 101 can be the internal storage unit of terminal device 10, such as the hard disk of the terminal device 10 in some embodiments.Storage What device 101 was also possible to be equipped on the External memory equipment of terminal device 10, such as terminal device 10 in further embodiments Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, memory 101 can also both include the internal storage unit of terminal device 10 or wrap Include External memory equipment.Memory 101 can be not only used for the application software and Various types of data that storage is installed on terminal device 10, Such as code of computer-readable program etc., it can be also used for temporarily storing the data that has exported or will export.
Processor 102 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 101 Code or processing data, such as execute computer-readable program etc..
The bus 103 can be Peripheral Component Interconnect standard (peripheral component interconnect, letter Claim PCI) and bus or expanding the industrial standard structure (extended industry standard architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with one in Fig. 2 Bar thick line indicates, it is not intended that an only bus or a type of bus.
Further, terminal device 10 can also include network interface 104, and network interface 104 may include optionally having Line interface and/or wireless interface (such as WI-FI interface, blue tooth interface), commonly used in the terminal device 10 and other electronics Communication connection is established between equipment.
Optionally, which can also include user interface 105, and user interface 105 may include display (Display), input unit such as keyboard (Keyboard), optional user interface 105 can also include that the wired of standard connects Mouth, wireless interface.Optionally, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch control type LCD Display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..Wherein, it shows Device appropriate can also be known as display screen or display unit, for being shown in the information handled in terminal device 10 and for showing Show visual user interface.
Fig. 3 is a kind of live broadcasting method for Streaming Media that one embodiment of the invention provides, which sets applied to terminal Standby 10, computer executable program corresponding to the live broadcasting method can store in the memory 101 of terminal device 10, and When processor 102 calls the program of the live broadcasting method, the live broadcasting method is executed.
Referring to Fig. 3, the live broadcasting method includes step S10-S14.
Wherein, step S10 detects whether to receive the live streaming request for playing target Streaming Media.
Terminal device 10 detects whether that receiving the live streaming for playing target Streaming Media requests, and live streaming request is that user wants to see When seeing corresponding target live streaming media, issued by the input unit of operation control terminal equipment 10, wherein input unit can be mouse Mark, keyboard, touch panel etc. are it is not limited here.
Step S11 sends the live streaming request to dispatch server, so that the tune if detecting the live streaming request It spends server to be requested to generate Node distribution information according to the live streaming, wherein the Node distribution information includes each destination node Information, each destination node can forward each data slice, and each data slice constitutes the target Streaming Media;The scheduling clothes Business device is connect with the terminal equipment in communication, and is communicated to connect with each destination node.
When terminal device 10 receives the live streaming request for playing target Streaming Media, live streaming request is sent to scheduling clothes Business device 20.Wherein, dispatch server 20 and each destination node 30 communicate to connect, and each destination node 30 can forward composition and the mesh The corresponding data slice of mark node namely each destination node 30 can forward each data slice, which may be constructed target stream matchmaker Body.When dispatch server 20 is communicated with each destination node 30, each destination node 30 is by the position where the destination node 30 Data slice information corresponding to information and the destination node 30 is transferred to dispatch server 20.Dispatch server 20 is receiving When the live streaming request for the broadcasting target Streaming Media that terminal device 10 is issued, Node distribution information, the Node distribution information are generated It include data slice information corresponding to the location information and each destination node 30 at each 30 place of destination node.
Step S12 obtains each data slice of each destination node forwarding, wherein the terminal device with it is described The communication connection for playing the target Streaming Media has been established in each destination node.
The communication connection for playing target Streaming Media has been established in terminal device 10 and each destination node 30.In terminal device 10 After establishing the communication connection for playing target Streaming Media with each destination node 30, terminal device 20 is pulled down to obtain each target section Point 30 is by corresponding each data slice, and each data slice of this composition target Streaming Media.
In some embodiments, the terminal device and each destination node, which are established, plays the logical of the target Streaming Media Letter connection specifically can be, and terminal device 10 obtains the Node distribution information that dispatch server 20 is sent, and according to described Node distribution information and each destination node 30 establish the communication connection for playing the target Streaming Media.
Wherein, described to establish with each destination node according to the Node distribution information and play the target Streaming Media Communication connection includes: terminal device 10 to each destination node 30 transmission communication connection request, so that each destination node 30 responds institute It states communication connection request and sends return information, the communication connection request includes the information of the target Streaming Media, each target section Point 30 can identify the information of the target Streaming Media to send each data slice of the corresponding target stream media to terminal device 20.
Terminal device 20 obtains the return information that each destination node 30 is sent, and establishes with destination node 30 and play the mesh The communication connection of Streaming Media is marked, to receive each data slice of correspondence that each destination node 30 is sent.
In some embodiments, the terminal device and each destination node, which are established, plays the logical of the target Streaming Media Letter connection specifically can be, and the live streaming for the broadcasting target Streaming Media that dispatch server 20 is issued according to terminal device 10 is requested, control System constitutes each destination node 30 corresponding to each data slice of the target Streaming Media and sends communication connection request to terminal device 20.
Terminal device 20 obtains the communication connection request that each destination node 30 is sent, and establishes with destination node 30 and play institute The communication connection of target Streaming Media is stated, to receive each data slice of correspondence that each destination node 30 is sent.
Step S13 recombinates each data slice to form the target Streaming Media according to the temporal characteristics of each data slice.
Each data slice for constituting target Streaming Media is accompanied with unique temporal characteristics, and terminal device 20 is according to each data slice Temporal characteristics recombinate each data slice to form the target Streaming Media.
Step S14 plays the target Streaming Media.
Terminal device 20 plays out the target Streaming Media for completing recombination, to complete the live streaming of target Streaming Media.
Preferably, the target Streaming Media need to be played out by the terminal device 20, corresponding to the target Streaming Media Each data slice the terminal device 20 need to be transmitted to by the destination node 30, wherein destination node 30 be used for data slice It is forwarded and non-memory, and does not carry out resource sharing between destination node 30, so as to which destination node 30 is effectively reduced Because of the live streaming delay caused by resource sharing.
Meanwhile at least one data slice of each destination node 30 for forwarding stream media, rather than entire stream medium data, So as to accelerate forwarding of the Streaming Media from destination node 30 to terminal device 10.
Preferably, destination node 30 is mobile electronic equipment, e.g., mobile phone, notes and iPad etc., so as to will be not busy The mobile electronic equipment set makes full use of, meanwhile, what the portability of mobile electronic equipment can be enhanced destination node 30 can Mobility, the regional scope that the data slice that can be forwarded so as to increase the destination node 30 is disseminated.
Further, the terminal device 20 that a destination node 30 can issue live streaming request at least two is connect, will be right Should the data slice of node be sent to the terminal devices 10 of needs, to make full use of the uplink bandwidth resource of the destination node 30, The stream medium data piece for corresponding to the destination node 30 is set to be fully used simultaneously.
Preferably, each data slice is each destination node 30 in real time from the acquisition of background server 40 namely each mesh Mark node 30 data slice be with 40 synchronized update of background server, be further reduced live streaming delay.
Preferably, each destination node 30 only forwards a data slice of a target Streaming Media, further to subtract Few live streaming delay.
More preferably, each destination node forwards a data slice of a target Streaming Media, and each destination node institute The data slice of forwarding is not identical.
In the present patent application, the data volume size of each data slice is identical, can be 32KB, 16KB, 8KB or 1KB, preferably The data volume size of each data slice is 1KB.
The executable live broadcasting method program of computer corresponding to the live broadcasting method of Streaming Media provided by the present embodiment can To be stored in the memory 101 of terminal device 10, when the live broadcasting method program that processor 102 calls the computer executable When, terminal device 10 can be made to execute the live broadcasting method of this Streaming Media.
Referring to Fig. 4, Fig. 4 is a kind of live broadcasting method for Streaming Media that one embodiment of the invention provides, which is answered For live broadcast system, which includes step S20-S24.
Wherein, step S20, terminal device detect whether to receive the live streaming request for playing target Streaming Media.
Step S20 is identical as the step S10 in Fig. 3, and this will not be repeated here.
Step S21, when terminal device detects live streaming request, Xiang Suoshu dispatch server sends the live streaming and asks It asks.
When terminal device 10 receives the live streaming request for playing target Streaming Media, live streaming request is sent to scheduling clothes Business device 20.
Step S22 when the dispatch server receives live streaming request, requests to generate node point according to the live streaming Cloth information, wherein the Node distribution information includes the information of each destination node, and each destination node can forward each data Piece, each data slice constitute the target Streaming Media.
Dispatch server 20 is generated in the live streaming request for receiving the broadcasting target Streaming Media that terminal device 10 is issued Node distribution information, the Node distribution information include the location information and each destination node where each destination node 30 Data slice information corresponding to 30.Wherein, each destination node 30, which can forward, constitutes data slice corresponding with the destination node, namely Each destination node 30 can forward each data slice, which may be constructed target Streaming Media.
Step S23, each destination node forward each data slice to the terminal device, wherein the terminal is set It is standby that the communication connection for playing the target Streaming Media has been established with each destination node.
The communication connection for playing target Streaming Media has been established in terminal device 10 and each destination node 30.In terminal device 10 After establishing the communication connection for playing target Streaming Media with each destination node 30, each destination node 30 is by corresponding each data Piece is transmitted to terminal device 20, and terminal device 20 stores each data slice of the composition target Streaming Media received.
In some embodiments, terminal device 10 and each destination node 30 establish the communication link for playing the target Streaming Media Connecing specifically can be, and terminal device 10 obtains the Node distribution information that dispatch server 20 is sent, and according to the node Distributed intelligence and each destination node 30 establish the communication connection for playing the target Streaming Media.
Wherein, the communication link for playing the target Streaming Media is established according to the Node distribution information and each destination node 30 Connecing includes: terminal device 10 to each destination node 30 transmission communication connection request, so that each destination node 30 responds the communication Connection request sends return information, and the communication connection request includes the information of the target Streaming Media, and each destination node 30 can To identify the information of the target Streaming Media to send each data slice of the corresponding target stream media to terminal device 20;
Terminal device 20 obtains the return information that each destination node 30 is sent, and establishes with destination node 30 and play the mesh The communication connection of Streaming Media is marked, to receive each data slice of correspondence that each destination node 30 is sent.
In some embodiments, the terminal device 10 is established with each destination node 30 plays the logical of the target Streaming Media Letter connection specifically can be, and the live streaming for the broadcasting target Streaming Media that dispatch server 20 is issued according to terminal device 10 is requested, control System constitutes each destination node 30 corresponding to each data slice of the target Streaming Media and sends communication connection request to terminal device 20;
Terminal device 20 obtains the communication connection request that each destination node 30 is sent, and establishes with destination node 30 and play institute The communication connection of target Streaming Media is stated, to receive each data slice of correspondence that each destination node 30 is sent.
Step S24, the terminal device each data slice is recombinated according to the temporal characteristics of each data slice to be formed it is described Target Streaming Media, and play the target Streaming Media.
Each data slice for constituting target Streaming Media is accompanied with unique temporal characteristics, and terminal device 20 is according to each data slice Temporal characteristics recombinate each data slice to form the target Streaming Media, and the target Streaming Media for completing recombination is broadcast It puts, to complete the live streaming of target Streaming Media.
The executable live broadcasting method program of computer corresponding to the live broadcasting method of Streaming Media provided by the present embodiment can To be stored in the memory 101 of terminal device 10, when the live broadcasting method program that processor 102 calls the computer executable When, the live broadcast system 100 can be made to execute the live broadcasting method of the Streaming Media.
Referring to Fig. 5, Fig. 5 sheet is to invent a kind of live broadcasting method for Streaming Media that an embodiment provides, which is answered For destination node, the destination node and dispatch server are communicated to connect, which includes step S30-S33.
Step S30 obtains the request for the broadcasting target Streaming Media that terminal device or dispatch server are sent.
Destination node 30 and terminal device 10 or dispatch server 20, which are established, to be communicated to connect, which obtains terminal and set For the request for the broadcasting target Streaming Media that 10 or dispatch server 20 are sent, which is the hair of user's operation terminal device 10 Out.
Step S31 judges whether to be stored with the corresponding data slice of the target Streaming Media, if it is not, S32 is thened follow the steps, If so, thening follow the steps S33.
Destination node 30 judges whether the destination node 30 is stored with this after receiving the request for playing target Streaming Media The corresponding data slice of target Streaming Media, if it is not, S32 is thened follow the steps, if so, thening follow the steps S33.
Step S32 obtains the relevant data slice of the target Streaming Media according to the playing request, and sends the acquisition The data slice arrived gives the terminal device.
If destination node 30 does not store the related data piece of target Streaming Media, destination node 30 is according to the playing request Obtain the relevant data slice of target Streaming Media of the destination node 30, the related data of the corresponding target Streaming Media of the destination node 30 Piece is that the destination node 30 is pushed to by background server 40, which includes multiple data slices, by multiple data slices Temporally feature recombination can obtain the target Streaming Media.
Meanwhile the target stream medium data piece that destination node 30 will acquire is transmitted to terminal device 10, in terminal device 10 store and integrate recombination, when terminal device 10 obtains all data slices for forming the target Streaming Media, according to each data slice Temporal characteristics each data slice is recombinated to form the target Streaming Media, and the target Streaming Media is played, to realize target stream matchmaker The live streaming of body.
Step S33 sends the corresponding data slice of the target Streaming Media to the terminal device according to the request.
If destination node 30 stores the related data piece of target Streaming Media, destination node 30 is sent out according to the playing request Send the corresponding data slice of target Streaming Media to the terminal device.
Preferably, destination node 30 is mobile electronic equipment, e.g., mobile phone, notes and iPad etc., so as to will be not busy The mobile electronic equipment set makes full use of, meanwhile, what the portability of mobile electronic equipment can be enhanced destination node 30 can Mobility, the regional scope that the data slice that can be forwarded so as to increase the destination node 30 is disseminated.
Further, the terminal device 20 that a destination node 30 can issue live streaming request at least two is connect, will be right Should the data slice of node be sent to the terminal devices 10 of needs, to make full use of the uplink bandwidth resource of the destination node 30, The stream medium data piece for corresponding to the destination node 30 is set to be fully used simultaneously.
Preferably, data slice is destination node 30 in real time from the acquisition of background server 40 namely the number of each destination node 30 According to piece be with 40 synchronized update of background server, be further reduced live streaming delay.
Preferably, each destination node 30 only forwards a data slice of a target Streaming Media, further to subtract Few live streaming delay.
More preferably, each destination node forwards a data slice of a target Streaming Media, and each destination node institute The data slice of forwarding is not identical.
In the present patent application, the data volume size of each data slice is identical, can be 32KB, 16KB, 8KB or 1KB, preferably The data volume size of each data slice is 1KB.
Referring to Fig. 6, destination node 30 includes memory 301, processor 302, bus 303 and communications connector 304.
Wherein, communications connector 304 is used to realize with terminal device 10 or dispatch server 20 and communicate to connect.
Memory 301 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes flash memory, hard Disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 301 It can be the internal storage unit of terminal device 10, such as the hard disk of destination node 30 in some embodiments.Memory 301 exists It is also possible to the External memory equipment of destination node 30 in other embodiments, such as the plug-in type that destination node 30 is equipped with is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 301 can also both internal storage units including destination node 30 or including outer Portion stores equipment.Memory 301 can be not only used for the application software and Various types of data that storage is installed on destination node 30, such as The code etc. of computer-readable program.
Such as, the corresponding computer of live broadcasting method that memory 301 is stored with the Streaming Media for being applied to destination node 30 can Program is executed, execute destination node 30 when processor 302 calls the executable live broadcasting method program of the computer The live broadcasting method of this Streaming Media.
Processor 302 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 101 Code or processing data, such as execute computer-readable program etc..
The bus 303 can be Peripheral Component Interconnect standard (peripheral component interconnect, letter Claim PCI) and bus or expanding the industrial standard structure (extended industry standard architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (15)

1. a kind of live broadcasting method of Streaming Media, it is applied to terminal device, which is characterized in that the live broadcasting method includes:
It detects whether to receive the live streaming request for playing target Streaming Media;
If detecting live streaming request, send the live streaming and request to dispatch server so that the dispatch server according to The live streaming request generates Node distribution information, wherein the Node distribution information includes the information of each destination node, described each Destination node can forward each data slice, and each data slice constitutes the target Streaming Media;The dispatch server and the end End equipment communication connection, and communicated to connect with each destination node;
Obtain each data slice of each destination node forwarding, wherein the terminal device and each destination node are Establish the communication connection for playing the target Streaming Media;
It recombinates each data slice to form the target Streaming Media according to the temporal characteristics of each data slice;
Play the target Streaming Media.
2. live broadcasting method as described in claim 1, which is characterized in that the terminal device is broadcast with each destination node foundation The communication connection for putting the target Streaming Media specifically includes:
Obtain the Node distribution information that the dispatch server is sent;
The communication connection for playing the target Streaming Media is established according to the Node distribution information and each destination node.
3. live broadcasting method as described in claim 1, which is characterized in that the target Streaming Media need to be carried out by the terminal device It plays, each data slice corresponding to the target Streaming Media need to be transmitted to the terminal device by the destination node.
4. live broadcasting method as described in claim 1, it is characterised in that: each destination node is mobile electronic equipment, and Each data slice is that each destination node is obtained from background server in real time.
5. the live broadcasting method as described in claim 1-4 any one, which is characterized in that each destination node can simultaneously and at least Two terminal equipment in communication connections give the data slice real-time Transmission of the corresponding destination node at least two terminal device.
6. live broadcasting method as claimed in claim 5, it is characterised in that: each destination node forwards a target Streaming Media One data slice.
7. a kind of live broadcasting method of Streaming Media, be applied to live broadcast system, live broadcast system include terminal device, dispatch server and Destination node, the dispatch server and terminal device and destination node communicate to connect, which is characterized in that the live broadcasting method Include:
Terminal device detects whether to receive the live streaming request for playing target Streaming Media;
When terminal device detects live streaming request, Xiang Suoshu dispatch server sends the live streaming request;
When the dispatch server receives live streaming request, requested to generate Node distribution information according to the live streaming, wherein The Node distribution information includes the information of each destination node, and each destination node can forward each data slice, each data Piece constitutes the target Streaming Media;
Each destination node forwards each data slice to the terminal device, wherein the terminal device and each mesh The communication connection for playing the target Streaming Media has been established in mark node;
The terminal device recombinates each data slice to form the target Streaming Media according to the temporal characteristics of each data slice, and Play the target Streaming Media.
8. a kind of live broadcasting method of Streaming Media, it is applied to destination node, which is characterized in that the live broadcasting method includes:
Obtain the request for the broadcasting target Streaming Media that terminal device or dispatch server are sent;
Judge whether to be stored with the corresponding data slice of the target Streaming Media;
If it is not, the then relevant data slice of target Streaming Media according to the request, and the data got described in transmission Piece gives the terminal device;
If so, sending the corresponding data slice of the target Streaming Media to the terminal device according to the request.
9. live broadcasting method as claimed in claim 8, it is characterised in that: the destination node is mobile electronic equipment, and institute Stating data slice is that the destination node is obtained from background server.
10. live broadcasting method as claimed in claim 9, which is characterized in that each destination node can simultaneously at least two terminals The data slice of the corresponding destination node is transferred at least two terminal device by equipment communication connection.
11. the live broadcasting method as described in claim 9-10 any one, it is characterised in that: each destination node forwards one One data slice of target Streaming Media.
12. a kind of terminal device, which is characterized in that the terminal device includes: memory, and the memory is calculated for storing The executable live broadcasting method program of machine;And
Processor when the processor calls the live broadcasting method program, executes as claimed in any one of claims 1 to 6 straight Broadcasting method.
13. a kind of live broadcast system, which is characterized in that the live broadcast system includes: dispatch server, and logical with dispatch server Believe the terminal device and destination node of connection;
Wherein, the terminal device includes:
Memory, the memory are used to store the executable live broadcasting method program of computer;And
Processor when the processor calls the live broadcasting method program, executes as claimed in any one of claims 1 to 6 straight Broadcasting method.
14. a kind of computer-readable storage medium, it is characterised in that: be stored with live streaming on the computer readable storage medium Method program, the live broadcasting method program can be executed by one or more processor, to realize as any in claim 1-6 Live broadcasting method described in.
15. a kind of computer-readable storage medium, it is characterised in that: be stored with live streaming on the computer readable storage medium Method program, the live broadcasting method program can be executed by one or more processor, to realize as appointed in claim 8-11 Live broadcasting method described in one.
CN201910017252.8A 2019-01-08 2019-01-08 Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media Active CN109788301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910017252.8A CN109788301B (en) 2019-01-08 2019-01-08 Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910017252.8A CN109788301B (en) 2019-01-08 2019-01-08 Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media

Publications (2)

Publication Number Publication Date
CN109788301A true CN109788301A (en) 2019-05-21
CN109788301B CN109788301B (en) 2021-12-03

Family

ID=66500223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910017252.8A Active CN109788301B (en) 2019-01-08 2019-01-08 Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media

Country Status (1)

Country Link
CN (1) CN109788301B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995866A (en) * 2019-12-20 2020-04-10 深圳市网心科技有限公司 Node scheduling method, node scheduling device, scheduling server and storage medium
CN111131272A (en) * 2019-12-27 2020-05-08 广州酷狗计算机科技有限公司 Scheduling method, device and system of stream server, computing equipment and storage medium
CN113132743A (en) * 2019-12-30 2021-07-16 浙江宇视科技有限公司 Live broadcast storage and playing method and system
CN114257835A (en) * 2021-12-31 2022-03-29 广东省教育研究院 Live broadcast system based on education cloud platform and live broadcast method thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635831A (en) * 2009-08-24 2010-01-27 成都市华为赛门铁克科技有限公司 Method, device and agent system for sharing node data of P2P live video
CN101945129A (en) * 2010-09-10 2011-01-12 北京易视腾科技有限公司 P2P (Peer to Peer) stream media live-broadcast low-delay transmission method and system thereof
CN102547471A (en) * 2010-12-08 2012-07-04 中国科学院声学研究所 Method and system for obtaining candidate cooperation node in P2P streaming media system
US20150215497A1 (en) * 2014-01-24 2015-07-30 Hiperwall, Inc. Methods and systems for synchronizing media stream presentations
CN106792261A (en) * 2016-11-22 2017-05-31 北京大米科技有限公司 Method and device, method for routing and device for Streaming Media forwarding
WO2017185941A1 (en) * 2016-04-29 2017-11-02 电信科学技术研究院 Data transmission method and relevant device
CN108235042A (en) * 2016-12-14 2018-06-29 腾讯科技(深圳)有限公司 A kind of more people's live network broadcast methods, device, adding apparatus and system
CN109005430A (en) * 2018-09-17 2018-12-14 深圳市网心科技有限公司 A kind of order method, system, device and the storage medium of audio/video content

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635831A (en) * 2009-08-24 2010-01-27 成都市华为赛门铁克科技有限公司 Method, device and agent system for sharing node data of P2P live video
CN101945129A (en) * 2010-09-10 2011-01-12 北京易视腾科技有限公司 P2P (Peer to Peer) stream media live-broadcast low-delay transmission method and system thereof
CN102547471A (en) * 2010-12-08 2012-07-04 中国科学院声学研究所 Method and system for obtaining candidate cooperation node in P2P streaming media system
US20150215497A1 (en) * 2014-01-24 2015-07-30 Hiperwall, Inc. Methods and systems for synchronizing media stream presentations
WO2017185941A1 (en) * 2016-04-29 2017-11-02 电信科学技术研究院 Data transmission method and relevant device
CN106792261A (en) * 2016-11-22 2017-05-31 北京大米科技有限公司 Method and device, method for routing and device for Streaming Media forwarding
CN108235042A (en) * 2016-12-14 2018-06-29 腾讯科技(深圳)有限公司 A kind of more people's live network broadcast methods, device, adding apparatus and system
CN109005430A (en) * 2018-09-17 2018-12-14 深圳市网心科技有限公司 A kind of order method, system, device and the storage medium of audio/video content

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995866A (en) * 2019-12-20 2020-04-10 深圳市网心科技有限公司 Node scheduling method, node scheduling device, scheduling server and storage medium
CN111131272A (en) * 2019-12-27 2020-05-08 广州酷狗计算机科技有限公司 Scheduling method, device and system of stream server, computing equipment and storage medium
CN113132743A (en) * 2019-12-30 2021-07-16 浙江宇视科技有限公司 Live broadcast storage and playing method and system
CN114257835A (en) * 2021-12-31 2022-03-29 广东省教育研究院 Live broadcast system based on education cloud platform and live broadcast method thereof

Also Published As

Publication number Publication date
CN109788301B (en) 2021-12-03

Similar Documents

Publication Publication Date Title
CN109788301A (en) A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium
CN104539977B (en) Method for previewing and device is broadcast live
US9578081B2 (en) System and method for providing an actively invalidated client-side network resource cache
CN103517142B (en) A kind of interaction comment information processing method and system based on intelligent television
US9686329B2 (en) Method and apparatus for displaying webcast rooms
CN109152095A (en) Wireless network connecting method for terminal
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
CN103731487A (en) Download method, device, system and router for resource file
CN105578211A (en) Live broadcast acceleration network stagnation optimization method and system based on infinite service node
CN106105158B (en) For establishing the method and system of connection between searchers's device and destination apparatus
CN110321093A (en) A kind of throwing screen matching method, device, storage medium and throw screen device
CN103312593B (en) A kind of message distributing system and method
CN104079597A (en) Transfer method of media stream and user equipment
CN106789956B (en) A kind of P2P order method and system based on HLS
CN107040498B (en) Same-screen method and terminal
CN110213662A (en) A kind of VOD method, server, client and video on-demand system
CN106302093B (en) Communication method, system and server
CN104469428A (en) Instantaneous transmission method and device for videos and texts
CN105898596B (en) Direct broadcasting room display control method and device
CN106302670B (en) A kind of picture update method, communication terminal and server
CN104602047B (en) Sharing method, server, terminal and the system of EPG data
CN109214867A (en) Ad data management method, device and computer readable storage medium
CN108834081A (en) A kind of multicast service handling method and AP
CN109375997A (en) A kind of method, apparatus, equipment and readable storage medium storing program for executing handling Internet resources
CN101888406A (en) Set top box, business server, program downloading method and program transmitting method and system

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