CN109788301B - Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media - Google Patents

Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media Download PDF

Info

Publication number
CN109788301B
CN109788301B CN201910017252.8A CN201910017252A CN109788301B CN 109788301 B CN109788301 B CN 109788301B CN 201910017252 A CN201910017252 A CN 201910017252A CN 109788301 B CN109788301 B CN 109788301B
Authority
CN
China
Prior art keywords
target
streaming media
target node
live broadcast
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910017252.8A
Other languages
Chinese (zh)
Other versions
CN109788301A (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

Images

Abstract

The invention discloses a live broadcast method, terminal equipment, a live broadcast system and a computer readable storage medium of streaming media. The live broadcasting method of the streaming media is applied to terminal equipment, and comprises the following steps: detecting whether a live broadcast request for playing target streaming media is received; if the live broadcast request is detected, sending the live broadcast request to a scheduling server so that the scheduling server generates node distribution information according to the live broadcast request, wherein the node distribution information comprises information of each target node, each target node can forward each data slice, and each data slice forms the target streaming media; the dispatching server is in communication connection with the terminal equipment and each target node; acquiring each data slice forwarded by each target node; reconstructing each data slice to form the target streaming media according to the time characteristics of each data slice; and playing the target streaming media.

Description

Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a live broadcast method for streaming media, a terminal device, a live broadcast system, and a computer-readable storage medium.
Background
Live broadcast can quickly and accurately transmit live information, and more people can watch live broadcast through websites or mobile phones due to strong telepresence. Real-time streaming media data is typically actively pushed to various viewer clients by a live server in a push-streaming manner.
"push streaming" is the process of actively pushing streaming media data to a viewer client in a network for viewing by the viewer client. The 'push stream' has higher requirement on the network, if the network is unstable, the live broadcast effect is poor, and the phenomena of blocking and the like occur when the audience watches the live broadcast. Moreover, for some popular streaming media data, the number of watching audience clients may reach tens of thousands, and the server is very stressed in "push streaming".
Peer-to-Peer (P2P) is a distributed network where participants in the P2P network share a portion of their own hardware resources that need to be served and content by the network and can be accessed directly by other Peer nodes (peers) without going through intermediate entities. Participants in this network are both resource (service and content) providers (server servers) and resource acquirers (client). Based on the characteristics of the P2P, the peer nodes in the P2P network can acquire the data of the resources very fast.
However, the conventional P2P technology is generated based on the file sharing requirement, and the P2P mode is often used in the scene of sharing video or audio material (e.g. downloading video resource of website such as video on demand). When streaming media data at each network node, resources are usually stored in each network node in the form of a file, and the file is split into a plurality of sub-files and transmitted to an opposite end node. Because the conventional P2P technology generally transmits data in a file-based manner, the file needs to be prepared in advance, and the file transmission manner makes the application scenarios of the P2P technology limited, which is not easy to achieve low latency and cannot adapt to the transmission of real-time video streams in a live broadcast mode with high real-time requirements.
Disclosure of Invention
The invention mainly aims to provide a live broadcast method, terminal equipment, a live broadcast system and a computer readable storage medium of streaming media, and aims to solve the technical problem of high time delay of the existing live broadcast.
In order to achieve the above object, the present invention provides a live broadcast method of streaming media, which is applied to a terminal device, and the live broadcast method includes: detecting whether a live broadcast request for playing target streaming media is received; if the live broadcast request is detected, sending the live broadcast request to a scheduling server so that the scheduling server generates node distribution information according to the live broadcast request, wherein the node distribution information comprises information of each target node, each target node can forward each data slice, and each data slice forms the target streaming media; the dispatching server is in communication connection with the terminal equipment and each target node; acquiring each data slice forwarded by each target node, wherein the terminal equipment and each target node establish communication connection for playing the target streaming media; reconstructing each data slice to form the target streaming media according to the time characteristics of each data slice; and playing the target streaming media.
Preferably, the establishing, by the terminal device, a communication connection for playing the target streaming media with each target node specifically includes: acquiring the node distribution information sent by the scheduling server; and establishing communication connection for playing the target streaming media with each target node according to the node distribution information.
Preferably, the target streaming media needs to be played by the terminal device, and each data slice corresponding to the target streaming media needs to be forwarded to the terminal device by the target node.
Preferably, each target node is a mobile electronic device, and each piece of data is obtained by each target node from a background server in real time.
Preferably, each target node can be simultaneously in communication connection with at least two terminal devices, and the data slice corresponding to the target node is transmitted to the at least two terminal devices in real time.
Preferably, each target node forwards one piece of data of one target streaming media.
In order to achieve the above object, the present invention further provides a streaming media live broadcasting method, which is applied to a live broadcasting system, wherein the live broadcasting system includes a terminal device, a scheduling server and a target node, the scheduling server is in communication connection with the terminal device and the target node, and the live broadcasting method includes: the method comprises the steps that a terminal device detects whether a live broadcast request for playing a target streaming media is received or not; when the terminal equipment detects the live broadcast request, sending the live broadcast request to the scheduling server; when receiving the live broadcast request, the scheduling server generates node distribution information according to the live broadcast request, wherein the node distribution information comprises information of each target node, each target node can forward each data slice, and each data slice forms the target streaming media; the target nodes forward the data pieces to the terminal equipment, wherein the terminal equipment and the target nodes establish communication connection for playing the target streaming media; and the terminal equipment reconstructs the data pieces to form the target streaming media according to the time characteristics of the data pieces and plays the target streaming media.
In order to achieve the above object, the present invention further provides a live broadcasting method for streaming media, which is applied to a target node, and the live broadcasting method includes: acquiring a request for playing a target streaming media, which is sent by a terminal device or a scheduling server; judging whether a data sheet corresponding to the target streaming media is stored or not; if not, acquiring the data sheet related to the target streaming media according to the request, and sending the acquired data sheet to the terminal equipment; and if so, sending the data slice corresponding to the target streaming media to the terminal equipment according to the request.
Preferably, the target node is a mobile electronic device, and the data piece is obtained by the target node from a background server.
Preferably, each target node can be simultaneously in communication connection with at least two terminal devices, and the data slice corresponding to the target node is transmitted to the at least two terminal devices.
Preferably, each target node forwards one piece of data of one target streaming media.
To achieve the above object, the present invention further provides a terminal device, including: a memory for storing a computer executable live method program; and the processor executes the live broadcasting method when calling the live broadcasting method program.
To achieve the above object, the present invention further provides a live broadcasting system, including: the system comprises a scheduling server, terminal equipment and a target node, wherein the terminal equipment and the target node are in communication connection with the scheduling server; wherein the terminal device includes: a memory for storing a computer executable live method program; and the processor executes the live broadcasting method when calling the live broadcasting method program.
To achieve the above object, the present invention further provides a computer-readable storage medium having stored thereon a live broadcasting method program, which is executable by one or more processors to implement the foregoing live broadcasting method.
To achieve the above object, the present invention further provides a computer-readable storage medium having stored thereon a live broadcasting method program, which is executable by one or more processors to perform the foregoing live broadcasting method.
Compared with the prior art, the method and the device have the advantages that when the terminal equipment receives the live broadcast request of the target streaming media, the live broadcast request is sent to the scheduling server, so that the scheduling server transmits the distribution information of each target node to the terminal equipment, the terminal equipment can establish communication connection with each target node, each data sheet of the target streaming media acquired by each target node from the background server is forwarded to the terminal equipment, and each data sheet is recombined into the target streaming media according to the time characteristics of the data sheet at the terminal equipment and is played at the terminal equipment.
Drawings
Fig. 1 is a schematic structural diagram of a live broadcast system according to an embodiment of the present invention;
fig. 2 is a block diagram of a terminal device according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a live streaming method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a live streaming method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a live streaming method according to an embodiment of the present invention;
fig. 6 is a block diagram of a target node according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a live broadcast method of streaming media, terminal equipment, a live broadcast system and a computer readable storage medium. When the terminal equipment receives a live broadcast request of the target streaming media, the live broadcast request is sent to the scheduling server, so that the scheduling server transmits distribution information of each target node to the terminal equipment, the terminal equipment can establish communication connection with each target node, each data slice of the target streaming media acquired by each target node from the background server in real time is forwarded to the terminal equipment in real time, and each data slice is recombined into the target streaming media according to the time characteristics of the data slice at the terminal equipment and is played at the terminal equipment. Each target node only needs to forward the corresponding data slice to the terminal device which makes the play request without storing the data slice, thereby accelerating the real-time transmission of the corresponding target streaming media data slice and reducing the time delay in the streaming media data transmission process. Furthermore, each target node can be correspondingly connected with a plurality of terminal devices through the regulation and control of the scheduling server, so that the utilization rate of the corresponding data slice of each target node is enhanced, and the utilization ratio of the data slice is enlarged.
Referring to fig. 1, fig. 1 is a live broadcast system 100 according to the present invention, where the live broadcast system 100 includes a terminal device 10, a scheduling server 20, a target node 30, a background server 40, and an anchor terminal 50.
The number of anchor terminals 50 may be one or more, and each anchor terminal 50 is in communication connection with the background server 40, and is configured to acquire corresponding streaming media, and transmit the streaming media to the background server 40, where the streaming media may be video and/or audio data, which is not limited herein. The background server 40 is connected to the target nodes 30, and the number of the target nodes 30 is multiple, and the target nodes 30 are configured to cut the streaming media acquired from the anchor terminal 50 into each data piece and push the data piece to each corresponding target node 30 in real time, and each target node 30 is configured to forward each data piece pushed by the background server.
Each target node 30 is configured to forward at least one data slice of the streaming media, rather than the entire streaming media data, so that the forwarding of the streaming media from the target node 30 to the terminal device 10 can be accelerated.
Preferably, the target node 30 is a mobile electronic device, such as a mobile phone, a notebook, and an iPad, so that the idle mobile electronic device can be fully utilized, and meanwhile, the portability of the mobile electronic device can enhance the mobility of the target node 30, so that the area range of the data piece spread that can be forwarded by the target node 30 can be increased.
Furthermore, each target node 30 may be simultaneously in communication connection with at least two terminal devices 10, and send the data slice corresponding to the node to a required terminal device 10, so that the streaming media data slice corresponding to the target node 30 is fully utilized. The scheduling server 20 is in communication connection with the terminal device 10 and the target node 30, and is configured to, when receiving a live broadcast request for playing a corresponding target streaming media sent by the terminal device 10, obtain information of the corresponding target node 30 of each piece of the target streaming media corresponding to the live broadcast request according to the live broadcast request, so that the terminal device 10 can be in communication connection with the corresponding target node 30, and thus obtain the piece of the target streaming media from the target node 30.
When the terminal device 10 is connected to the corresponding target node 30, the corresponding data slice may be obtained from the target node 30, and the data slice is recombined to restore and form the corresponding target streaming media, so as to be played at the terminal device 10, and realize live broadcasting of the target streaming media.
Referring to fig. 2, in the present embodiment, the terminal device 10 may be a PC (personal computer), or may be a terminal device of a smart phone, a tablet computer, a palmtop computer, a portable computer, an intelligent router, an mining machine, or a network storage device. Preferably, the intelligent terminal is an intelligent mobile phone.
The terminal device 10 includes a memory 101, a processor 102, and a bus 103.
The memory 101 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 101 may in some embodiments be an internal storage unit of the terminal device 10, for example a hard disk of the terminal device 10. The memory 101 may also be an external storage device of the terminal device 10 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device 10. Further, the memory 101 may also include both an internal storage unit of the terminal device 10 and an external storage device. The memory 101 may be used not only to store application software installed in the terminal device 10 and various types of data such as codes of computer-readable programs, etc., but also to temporarily store data that has been output or is to be output.
Processor 102, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip, executes program code or processes data stored in memory 101, e.g., executes computer readable programs, etc.
The bus 103 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 2, but it is not intended that there be only one bus or one type of bus.
Further, the terminal device 10 may further include a network interface 104, and the network interface 104 may optionally include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are generally used to establish a communication connection between the terminal device 10 and other electronic devices.
Optionally, the terminal device 10 may further include a user interface 105, the user interface 105 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 105 may further include a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the terminal device 10 and for displaying a visualized user interface.
Fig. 3 is a flowchart of a live method of streaming media according to an embodiment of the present invention, where the live method is applied to the terminal device 10, and a computer executable program corresponding to the live method may be stored in the memory 101 of the terminal device 10, and when the processor 102 invokes the program of the live method, the live method is executed.
Referring to FIG. 3, the live broadcasting method includes steps S10-S14.
In step S10, it is detected whether a live request for playing the target streaming media is received.
The terminal device 10 detects whether a live request for playing the target streaming media is received, where the live request is sent by operating an input device of the terminal device 10 when the user wants to watch the corresponding target streaming media, where the input device may be a mouse, a keyboard, a touch panel, and the like, which is not limited herein.
Step S11, if the live broadcast request is detected, sending the live broadcast request to a scheduling server, so that the scheduling server generates node distribution information according to the live broadcast request, wherein the node distribution information includes information of each target node, and each target node can forward each data slice, and each data slice constitutes the target streaming media; and the dispatching server is in communication connection with the terminal equipment and each target node.
When the terminal device 10 receives a live request for playing a target streaming media, the live request is transmitted to the scheduling server 20. The scheduling server 20 is in communication connection with each target node 30, and each target node 30 may forward to form a data slice corresponding to the target node, that is, each target node 30 may forward each data slice, and each data slice may form a target streaming media. When the scheduling server 20 communicates with each target node 30, each target node 30 transmits the location information of the target node 30 and the data piece information corresponding to the target node 30 to the scheduling server 20. When receiving a live broadcast request for playing a target streaming media from the terminal device 10, the scheduling server 20 generates node distribution information, where the node distribution information includes location information of each target node 30 and data slice information corresponding to each target node 30.
Step S12, obtaining the data pieces forwarded by the target nodes, where the terminal device and the target nodes have established a communication connection for playing the target streaming media.
The terminal device 10 and each target node 30 have established a communication connection for playing the target streaming media. After the terminal device 10 establishes a communication connection with each target node 30 for playing the target streaming media, the terminal device 20 pulls down to obtain each data slice corresponding to each target node 30, and each data slice constituting the target streaming media.
In some embodiments, the establishing, by the terminal device, a communication connection for playing the target streaming media with each target node may specifically be that the terminal device 10 acquires the node distribution information sent by the scheduling server 20, and establishes a communication connection for playing the target streaming media with each target node 30 according to the node distribution information.
Wherein the establishing of the communication connection for playing the target streaming media with each target node according to the node distribution information includes: the terminal device 10 sends a communication connection request to each target node 30, so that each target node 30 sends back reply information in response to the communication connection request, the communication connection request includes information of the target streaming media, and each target node 30 can identify the information of the target streaming media to send each data slice corresponding to the target streaming media to the terminal device 20.
The terminal device 20 obtains the reply information sent by each target node 30, and establishes a communication connection with the target node 30 for playing the target streaming media, so as to receive each corresponding data slice sent by each target node 30.
In some embodiments, the establishing, by the terminal device, a communication connection for playing the target streaming media with each target node may specifically be that, according to a live broadcast request for playing the target streaming media sent by the terminal device 10, the scheduling server 20 controls each target node 30 corresponding to each data slice constituting the target streaming media to send a communication connection request to the terminal device 20.
The terminal device 20 obtains the communication connection request sent by each target node 30, and establishes a communication connection for playing the target streaming media with the target node 30, so as to receive each corresponding data slice sent by each target node 30.
Step S13, reconstructing each data slice to form the target streaming media according to the time characteristic of each data slice.
Each piece of data constituting the target streaming media is attached with a unique time characteristic, and the terminal device 20 reconstructs each piece of data into the target streaming media according to the time characteristic of each piece of data.
Step S14, playing the target streaming media.
And the terminal device 20 plays the recombined target streaming media to complete the live broadcast of the target streaming media.
Preferably, the target streaming media needs to be played by the terminal device 20, and each data slice corresponding to the target streaming media needs to be forwarded to the terminal device 20 by the target node 30, where the target node 30 is configured to forward and non-store the data slice, and resource sharing is not performed between the target nodes 30, so that live broadcast delay caused by resource sharing by the target node 30 can be effectively reduced.
Meanwhile, each target node 30 is used to forward at least one data slice of the streaming media, not the whole streaming media data, so that the forwarding of the streaming media from the target node 30 to the terminal device 10 can be accelerated.
Preferably, the target node 30 is a mobile electronic device, such as a mobile phone, a notebook, and an iPad, so that the idle mobile electronic device can be fully utilized, and meanwhile, the portability of the mobile electronic device can enhance the mobility of the target node 30, so that the area range of the data piece spread that can be forwarded by the target node 30 can be increased.
Further, a target node 30 may be connected to at least two terminal devices 20 that send out live broadcast requests, and send a data slice corresponding to the node to a required terminal device 10, so as to fully utilize uplink bandwidth resources of the target node 30, and simultaneously, fully utilize a streaming media data slice corresponding to the target node 30.
Preferably, the data pieces are obtained by the target nodes 30 from the background server 40 in real time, that is, the data pieces of the target nodes 30 are updated synchronously with the background server 40, so as to further reduce the live broadcast delay.
Preferably, each target node 30 forwards only one piece of target streaming media to further reduce live delay.
Preferably, each target node forwards one piece of data of one target streaming media, and the pieces of data forwarded by each target node are different.
In the present application, the data size of each data slice is the same, and may be 32KB, 16KB, 8KB or 1KB, and preferably, the data size of each data slice is 1 KB.
A computer-executable live method program corresponding to the live method of the streaming media provided in this embodiment may be stored in the memory 101 of the terminal device 10, and when the processor 102 invokes the computer-executable live method program, the terminal device 10 may execute the live method of the streaming media.
Referring to fig. 4, fig. 4 is a diagram illustrating a live broadcasting method of streaming media according to an embodiment of the present invention, where the live broadcasting method is applied to a live broadcasting system, and the live broadcasting method includes steps S20-S24.
In step S20, the terminal device detects whether a live request for playing the target streaming media is received.
Step S20 is the same as step S10 in fig. 3, and is not described herein.
Step S21, when the terminal device detects the live broadcast request, sending the live broadcast request to the scheduling server.
When the terminal device 10 receives a live request for playing a target streaming media, the live request is transmitted to the scheduling server 20.
Step S22, when receiving the live broadcast request, the scheduling server generates node distribution information according to the live broadcast request, where the node distribution information includes information of each target node, and each target node can forward each data slice, where each data slice constitutes the target streaming media.
When receiving a live broadcast request for playing a target streaming media from the terminal device 10, the scheduling server 20 generates node distribution information, where the node distribution information includes location information of each target node 30 and data slice information corresponding to each target node 30. Each target node 30 can forward to form a data slice corresponding to the target node, that is, each target node 30 can forward each data slice, and each data slice can form a target streaming media.
Step S23, the target nodes forward the data slices to the terminal device, where the terminal device and the target nodes have established a communication connection for playing the target streaming media.
The terminal device 10 and each target node 30 have established a communication connection for playing the target streaming media. After the terminal device 10 establishes a communication connection with each target node 30 for playing the target streaming media, each target node 30 forwards each corresponding data piece to the terminal device 20, and the terminal device 20 stores each received data piece constituting the target streaming media.
In some embodiments, the establishing, by the terminal device 10, a communication connection for playing the target streaming media with each target node 30 may specifically be that the terminal device 10 acquires the node distribution information sent by the scheduling server 20, and establishes a communication connection for playing the target streaming media with each target node 30 according to the node distribution information.
Wherein, establishing a communication connection for playing the target streaming media with each target node 30 according to the node distribution information includes: the terminal device 10 sends a communication connection request to each target node 30, so that each target node 30 sends back reply information in response to the communication connection request, wherein the communication connection request comprises information of the target streaming media, and each target node 30 can identify the information of the target streaming media to send each data slice corresponding to the target streaming media to the terminal device 20;
the terminal device 20 obtains the reply information sent by each target node 30, and establishes a communication connection with the target node 30 for playing the target streaming media, so as to receive each corresponding data slice sent by each target node 30.
In some embodiments, the establishing, by the terminal device 10, a communication connection for playing the target streaming media with each target node 30 may specifically be that, according to a live broadcast request for playing the target streaming media sent by the terminal device 10, the scheduling server 20 controls each target node 30 corresponding to each data slice constituting the target streaming media to send a communication connection request to the terminal device 20;
the terminal device 20 obtains the communication connection request sent by each target node 30, and establishes a communication connection for playing the target streaming media with the target node 30, so as to receive each corresponding data slice sent by each target node 30.
Step S24, the terminal device reconstructs the data pieces into the target streaming media according to the time characteristics of the data pieces, and plays the target streaming media.
Each piece of data constituting the target streaming media is attached with a unique time characteristic, and the terminal device 20 reassembles each piece of data into the target streaming media according to the time characteristic of each piece of data, and plays the reassembled target streaming media to complete the live broadcast of the target streaming media.
A computer-executable live method program corresponding to the live method of the streaming media provided in this embodiment may be stored in the memory 101 of the terminal device 10, and when the processor 102 invokes the computer-executable live method program, the live system 100 may execute the live method of the streaming media.
Referring to fig. 5, fig. 5 is a flowchart illustrating a live broadcasting method for streaming media according to an embodiment of the present invention, where the live broadcasting method is applied to a target node, and the target node is communicatively connected to a scheduling server, and the live broadcasting method includes steps S30-S33.
Step S30, acquiring a request for playing the target streaming media sent by the terminal device or the scheduling server.
The target node 30 establishes a communication connection with the terminal device 10 or the scheduling server 20, and the target node 30 obtains a request for playing the target streaming media, which is sent by the terminal device 10 or the scheduling server 20, and the request is sent by the user operating the terminal device 10.
Step S31, determining whether the data slice corresponding to the target streaming media is stored, if not, performing step S32, and if so, performing step S33.
After receiving the request for playing the target streaming media, the target node 30 determines whether the target node 30 stores the data slice corresponding to the target streaming media, if not, step S32 is executed, and if so, step S33 is executed.
Step S32, obtaining the data slice related to the target streaming media according to the play request, and sending the obtained data slice to the terminal device.
If the target node 30 does not store the related data slice of the target streaming media, the target node 30 obtains the related data slice of the target streaming media of the target node 30 according to the playing request, the related data slice of the target streaming media corresponding to the target node 30 is pushed to the target node 30 by the background server 40, the target streaming media includes a plurality of data slices, and the target streaming media can be obtained by recombining the plurality of data slices according to the time characteristics.
Meanwhile, the target node 30 forwards the acquired target streaming media data pieces to the terminal device 10 to be stored, integrated and recombined in the terminal device 10, and when the terminal device 10 acquires all the data pieces constituting the target streaming media, the data pieces are recombined to form the target streaming media according to the time characteristics of the data pieces, and the target streaming media is played to realize live broadcasting of the target streaming media.
Step S33, sending the data slice corresponding to the target streaming media to the terminal device according to the request.
If the target node 30 stores the related data slice of the target streaming media, the target node 30 sends the data slice corresponding to the target streaming media to the terminal device according to the playing request.
Preferably, the target node 30 is a mobile electronic device, such as a mobile phone, a notebook, and an iPad, so that the idle mobile electronic device can be fully utilized, and meanwhile, the portability of the mobile electronic device can enhance the mobility of the target node 30, so that the area range of the data piece spread that can be forwarded by the target node 30 can be increased.
Further, a target node 30 may be connected to at least two terminal devices 20 that send out live broadcast requests, and send a data slice corresponding to the node to a required terminal device 10, so as to fully utilize uplink bandwidth resources of the target node 30, and simultaneously, fully utilize a streaming media data slice corresponding to the target node 30.
Preferably, the data pieces are acquired by the target nodes 30 from the background server 40 in real time, that is, the data pieces of each target node 30 are updated synchronously with the background server 40, so as to further reduce the live broadcast delay.
Preferably, each target node 30 forwards only one piece of target streaming media to further reduce live delay.
Preferably, each target node forwards one piece of data of one target streaming media, and the pieces of data forwarded by each target node are different.
In the present application, the data size of each data slice is the same, and may be 32KB, 16KB, 8KB or 1KB, and preferably, the data size of each data slice is 1 KB.
Referring to fig. 6, the target node 30 includes a memory 301, a processor 302, a bus 303, and a communication connector 304.
Wherein the communication connector 304 is used for realizing communication connection with the terminal device 10 or the scheduling server 20.
The memory 301 includes at least one type of readable storage medium including flash memory, a hard disk, a multi-media card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 301 may in some embodiments be an internal storage unit of the terminal device 10, e.g. a hard disk of the target node 30. The memory 301 may also be an external storage device of the target node 30 in other embodiments, such as a plug-in hard disk provided with the target node 30, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and so on. Further, the memory 301 may also include both internal storage units and external storage devices of the target node 30. The memory 301 may be used to store not only application software installed in the target node 30 but also various data such as codes of computer-readable programs and the like.
For example, the memory 301 stores a computer executable program corresponding to the live method of the streaming media applied to the target node 30, so that when the processor 302 calls the computer executable live method program, the target node 30 can execute the live method of the streaming media.
The processor 302 may be, in some embodiments, a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip for executing program codes stored in the memory 101 or Processing data, such as executing computer readable programs.
The bus 303 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (13)

1. A live broadcast method of streaming media is applied to terminal equipment and is characterized in that the live broadcast method comprises the following steps:
detecting whether a live broadcast request for playing target streaming media is received;
if the live broadcast request is detected, sending the live broadcast request to a scheduling server so that the scheduling server generates node distribution information according to the live broadcast request, wherein the node distribution information comprises information of each target node, each target node forwards each data slice, and each data slice constitutes the target streaming media; the dispatching server is in communication connection with the terminal equipment and each target node;
acquiring each data slice forwarded by each target node, wherein the terminal equipment and each target node establish communication connection for playing the target streaming media;
reconstructing each data slice to form the target streaming media according to the time characteristics of each data slice;
playing the target streaming media;
each target node is a movable electronic device, each data sheet is obtained by each target node from a background server in real time, the target nodes forward and non-store the data sheets, and the data sheets obtained by each target node are different.
2. A live broadcast method as claimed in claim 1, wherein the establishing, by the terminal device and each target node, a communication connection for playing the target streaming media specifically comprises:
acquiring the node distribution information sent by the scheduling server;
and establishing communication connection for playing the target streaming media with each target node according to the node distribution information.
3. A live broadcast method as claimed in claim 1, wherein the target streaming media needs to be played by the terminal device, and each data slice corresponding to the target streaming media needs to be forwarded to the terminal device by the target node.
4. A live broadcast method as claimed in any one of claims 1 to 3, wherein each target node is capable of being in simultaneous communication with at least two terminal devices, and the data pieces corresponding to the target node are transmitted to the at least two terminal devices in real time.
5. A live method according to claim 4, characterized in that: each target node forwards one piece of data of one target streaming media.
6. A live broadcast method of streaming media is applied to a live broadcast system, the live broadcast system comprises a terminal device, a scheduling server and a target node, the scheduling server is in communication connection with the terminal device and the target node, and the live broadcast method is characterized by comprising the following steps:
the method comprises the steps that a terminal device detects whether a live broadcast request for playing a target streaming media is received or not;
when the terminal equipment detects the live broadcast request, sending the live broadcast request to the scheduling server;
when the scheduling server receives the live broadcast request, node distribution information is generated according to the live broadcast request, wherein the node distribution information comprises information of each target node, each target node forwards each data slice, and each data slice forms the target streaming media;
the target nodes forward the data pieces to the terminal equipment, wherein the terminal equipment and the target nodes establish communication connection for playing the target streaming media;
the terminal equipment reconstructs the data pieces to form the target streaming media according to the time characteristics of the data pieces and plays the target streaming media;
each target node is a movable electronic device, each data sheet is obtained by each target node from a background server in real time, the target nodes forward and non-store the data sheets, and the data sheets obtained by each target node are different.
7. A live broadcast method of streaming media is applied to a target node, and is characterized in that the live broadcast method comprises the following steps:
acquiring a request for playing a target streaming media, which is sent by a terminal device or a scheduling server, wherein the terminal device detects a live broadcast request and sends the live broadcast request to the scheduling server, so that the scheduling server generates node distribution information according to the live broadcast request, wherein the node distribution information comprises information of each target node, each target node forwards each data slice, and each data slice constitutes the target streaming media; the dispatching server is in communication connection with the terminal equipment and each target node;
acquiring data pieces related to the target streaming media according to the request, and sending the acquired data pieces to the terminal equipment, wherein the terminal equipment and each target node establish communication connection for playing the target streaming media, and the data pieces are recombined to form the target streaming media according to the time characteristics of the data pieces to play the target streaming media;
each target node is a movable electronic device, each data sheet is obtained by each target node from a background server in real time, the target nodes forward and non-store the data sheets, and the data sheets obtained by each target node are different.
8. A live method as claimed in claim 7, wherein each target node is simultaneously communicatively connected to at least two terminal devices, and wherein the data pieces corresponding to the target node are transmitted to the at least two terminal devices.
9. A live method as claimed in claim 8, characterized by: each target node forwards one piece of data of one target streaming media.
10. A terminal device, characterized in that the terminal device comprises: a memory for storing a computer executable live method program; and
a processor that, when invoked by the live method program, performs the live method of any of claims 1-5.
11. A live system, characterized in that the live system comprises: the system comprises a scheduling server, terminal equipment and a target node, wherein the terminal equipment and the target node are in communication connection with the scheduling server;
wherein the terminal device includes:
a memory for storing a computer executable live method program; and
a processor that, when invoked by the live method program, performs the live method of any of claims 1-5.
12. A computer-readable storage medium, characterized in that: the computer readable storage medium having stored thereon a live method program executable by one or more processors to implement a live method as claimed in any one of claims 1-5.
13. A computer-readable storage medium, characterized in that: the computer readable storage medium has stored thereon a live method program executable by one or more processors to implement a live method as claimed in any one of claims 7-9.
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 CN109788301A (en) 2019-05-21
CN109788301B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995866B (en) * 2019-12-20 2022-11-08 深圳市网心科技有限公司 Node scheduling method, node scheduling device, scheduling server and storage medium
CN111131272B (en) * 2019-12-27 2022-01-11 广州酷狗计算机科技有限公司 Scheduling method, device and system of stream server, computing equipment and storage medium
CN113132743B (en) * 2019-12-30 2022-11-04 浙江宇视科技有限公司 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN109005430A (en) * 2018-09-17 2018-12-14 深圳市网心科技有限公司 A kind of order method, system, device and the storage medium of audio/video content

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635831B (en) * 2009-08-24 2013-01-02 成都市华为赛门铁克科技有限公司 Method, device and agent system for sharing node data of P2P live video
US9942622B2 (en) * 2014-01-24 2018-04-10 Hiperwall, Inc. Methods and systems for synchronizing media stream presentations
CN108235042B (en) * 2016-12-14 2019-12-17 腾讯科技(深圳)有限公司 Multi-user network live broadcast method, device, joining device, system, server and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN109005430A (en) * 2018-09-17 2018-12-14 深圳市网心科技有限公司 A kind of order method, system, device and the storage medium of audio/video content

Also Published As

Publication number Publication date
CN109788301A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109788301B (en) Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media
US10798440B2 (en) Methods and systems for synchronizing data streams across multiple client devices
US20150365453A1 (en) Media projection method and device, control terminal and cloud server
US9367125B2 (en) Terminal apparatus for shooting and distributing video data and video-data distribution method
US20150227496A1 (en) Method and system for microblog resource sharing
CN104253814A (en) Streaming media processing method, server and browser
CN102025759B (en) Method and system for providing user generated content (UGC) sharing businesses in real time
EP3996355B1 (en) Method for transferring media stream and user equipment
US20160294895A1 (en) Mobile terminal and method for achieving cloud streaming medium file sharing based on dlna
CN111625743B (en) Resource loading method and device and electronic equipment
US20100049864A1 (en) Multimedia broadcast system and method
KR101624894B1 (en) Terminal transmitting data during packet communication and service system including the same
US20170163706A1 (en) Method, electronic device and system for controlling pull stream
US9756096B1 (en) Methods for dynamically transmitting screen images to a remote device
CN112311874B (en) Media data processing method and device, storage medium and electronic equipment
CN104349177A (en) Method for turning to play multimedia file under desktop cloud, virtual machine and system
CN107920042B (en) Optimized transmission method and server for live broadcast room page
WO2015180446A1 (en) System and method for maintaining connection channel in multi-device interworking service
CN112738638A (en) Live wheat-connecting method, device, equipment, storage medium and product
CN112291502B (en) Information interaction method, device and system and electronic equipment
CN110113298B (en) Data transmission method, device, signaling server and computer readable medium
CN105898596B (en) Direct broadcasting room display control method and device
WO2015000417A1 (en) Method, apparatus, application interactive platform, terminal, and system for uploading an image
US10104422B2 (en) Multimedia playing control method, apparatus for the same and system
US20150326686A1 (en) Method, Apparatus and System for Processing User Generated Content

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