Disclosure of Invention
Therefore, it is necessary to provide a live broadcast system based on an education cloud platform and a live broadcast method thereof for overcoming the defects of the traditional live broadcast method in the application of the education cloud platform in live broadcast.
A live broadcast system based on an educational cloud platform, comprising:
the stream pushing end is used for pushing the video stream;
the two or more streaming media terminals are used for receiving the video stream pushed by the stream pushing terminal;
the stream pulling end is used for pulling the video stream from the stream media end;
the stream media terminal is used for sending a stream pulling address to the stream pulling terminal so as to indicate the stream pulling terminal to pull the video stream from the specific stream media terminal; or the stream pushing end is used for pushing the video streams to each streaming media end respectively, and the stream pulling end is used for pulling part of the video streams from each streaming media end respectively so as to obtain complete video streams.
In the live broadcasting system based on the education cloud platform, after the stream pushing end pushes the live video stream to the streaming media end, the media end is used for sending the stream pulling address to the stream pulling end so as to indicate the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is used for respectively pulling part of the video stream from each streaming media end so as to obtain the complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
In one embodiment, the streaming media end is further configured to check validity of a video stream pushed by the streaming end, and interrupt pushing of the video stream when the video stream is illegal.
In one embodiment, the process of checking the validity of the video stream pushed by the push streaming end includes the steps of:
and checking whether the IP address and the security code of the stream pushing end are legal or not.
In one embodiment, the push end is also used to encrypt the pushed video stream.
In one embodiment, the stream pushing end is further configured to push the video stream to a third-party recording tool to instruct the third-party recording tool to record the video stream.
In one embodiment, the stream pushing end and the streaming media end are further used for acquiring an adjusting signal; wherein the adjustment signal is used to adjust a media property of the video stream.
In one embodiment, the stream pushing end comprises an rtmp server, and the pushed video stream comprises an rtmp video stream.
A live broadcast method of a live broadcast system based on an education cloud platform comprises the following steps:
acquiring a stream pulling address sent by a streaming media terminal;
and pulling the video stream from the specific streaming media end according to the pull stream address.
Respectively pulling part of video streams from each streaming media end;
and obtaining a complete video stream according to the video streams of the parts.
In the live broadcasting method of the live broadcasting system based on the education cloud platform, after the stream pushing end pushes the live video stream to the streaming media end, the media end is used for sending the stream pulling address to the stream pulling end so as to indicate the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is used for respectively pulling part of the video streams from the streaming media ends so as to obtain the complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
A live broadcast device of a live broadcast system based on an education cloud platform comprises:
the address acquisition module is used for acquiring a stream pulling address sent by a streaming media terminal;
and the address pull module is used for pulling the video stream from the specific streaming media terminal according to the pull address.
The balanced stream pulling module is used for pulling partial video streams from all the streaming media ends respectively;
and the pull stream combination module is used for obtaining the complete video stream according to the video streams of the parts.
In the live broadcasting device of the live broadcasting system based on the education cloud platform, after the stream pushing end pushes the live video stream to the streaming media end, the media end is used for sending the stream pulling address to the stream pulling end so as to indicate the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is used for respectively pulling part of the video streams from the streaming media ends so as to obtain the complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
A computer storage medium having computer instructions stored thereon, the computer instructions when executed by a processor implementing the live broadcast method of the education cloud platform-based live broadcast system of any of the above embodiments.
In the computer storage medium, after the stream pushing end pushes the live video stream to the streaming media end, the media end is configured to send a stream pulling address to the stream pulling end to instruct the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is configured to pull part of the video streams from the streaming media ends, respectively, so as to obtain a complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
A computer device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and when the processor executes the computer program, the live broadcast method of the education cloud platform-based live broadcast system of any embodiment is realized.
In the computer device, after the stream pushing end pushes the live video stream to the streaming media end, the media end is configured to send a stream pulling address to the stream pulling end to instruct the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is configured to pull part of the video streams from each streaming media end, respectively, so as to obtain a complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
Detailed Description
For better understanding of the objects, technical solutions and effects of the present invention, the present invention will be further explained with reference to the accompanying drawings and examples. Meanwhile, the following described examples are only for explaining the present invention, and are not intended to limit the present invention.
The embodiment of the invention provides a live broadcast system based on an education cloud platform.
Fig. 1 is a schematic structural diagram of an education cloud platform-based live broadcast system according to an embodiment, and as shown in fig. 1, the education cloud platform-based live broadcast system according to an embodiment includes:
the stream pushing end is used for pushing the video stream;
the two or more streaming media terminals are used for receiving the video stream pushed by the stream pushing terminal;
the stream pulling end is used for pulling the video stream from the stream media end;
the stream media terminal is used for sending a stream pulling address to the stream pulling terminal so as to indicate the stream pulling terminal to pull the video stream from the specific stream media terminal; or the stream pushing end is used for pushing the video streams to each streaming media end respectively, and the stream pulling end is used for pulling part of the video streams from each streaming media end respectively so as to obtain complete video streams.
The stream pushing end is used for pushing the live video stream to the stream media end, and the stream media end completes the video stream distribution to the stream pulling end. In the traditional live broadcast, a live broadcast user directly pushes a stream to a streaming media end, which has the problems of video source position and unsafe video content transmission. The stream pushing end receives the stream pushing of the live broadcast user and pushes the stream to the stream media end, so that the problems of the traditional live broadcast can be solved from the stream pushing end.
In one embodiment, the stream pushing end comprises an rtmp server, and the video stream pushed by the rtmp server is rtmp stream.
In one embodiment, the push end is used for the pushed encrypted video stream. Or, the stream pushing end verifies the received video stream, only receives a specific encrypted video source, and ensures the correctness and legality of the live broadcast source.
The streaming media end is used for receiving the video stream pushed by the stream pushing end and distributing the video stream to each stream pulling end. As a preferred embodiment, when the video stream is a rtmp stream, the streaming media end converts the rtmp stream into a flv stream or hls stream, and the stream delay of hls is greater than that of the flv stream.
In one embodiment, the streaming media end is further configured to check validity of a video stream pushed by the streaming end, and interrupt pushing of the video stream when the video stream is illegal.
As a preferred embodiment, the process of checking the validity of the video stream pushed by the stream pushing end includes the steps of:
and checking whether the IP address and the security code of the stream pushing end are legal or not.
Taking the stream pushing end as an rtmp server as an example, when the stream pushing end pushes a video stream to the streaming media end, an on _ publish event of the streaming media end is triggered, and whether an IP address and a security code of the current stream pushing end are legal or not is verified in a platform, and illegal stream pushing is interrupted, so that the problem of security verification of live stream pushing is solved.
In one embodiment, the stream pushing end is further configured to push the video stream to a third-party recording tool to instruct the third-party recording tool to record the video stream.
When the forwarding record of the stream pushing end is accessed to a third-party recording tool, the third-party recording tool provides preview video stream, the stream is pulled by the forwarding record service and is forwarded and pushed to the streaming media of the recorded and broadcast video application platform, and the recorded and broadcast video application platform can utilize the live stream to carry out course live broadcast and course content recording.
In one embodiment, the stream pushing end and the streaming media end are further used for acquiring an adjusting signal; wherein the adjustment signal is used to adjust a media property of the video stream.
When the stream pushing end and the streaming media end carry out live broadcast activities, related personnel can send adjusting signals through corresponding equipment to control the media attributes of the video stream in real time, wherein the media attributes comprise the media attributes of the resolution, the code rate and the like of a picture corresponding to the video stream. Based on the method, the live broadcast picture quality can be adjusted without manual intervention of live broadcast audiences, and the broadband pressure of live broadcast loads is reduced.
In the live broadcasting system based on the education cloud platform according to any of the embodiments, after the stream pushing end pushes the live video stream to the streaming media end, the media end is configured to send a stream pulling address to the stream pulling end to instruct the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is configured to pull part of the video streams from the streaming media ends respectively to obtain a complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
The embodiment of the invention also provides a live broadcast method of the live broadcast system based on the education cloud platform.
Fig. 2 is a flowchart of a live broadcast method of a live broadcast system based on an education cloud platform according to an embodiment, and as shown in fig. 2, the live broadcast method of the live broadcast system based on the education cloud platform according to the embodiment includes steps S100 to S103:
s100, acquiring a stream pulling address sent by a streaming media terminal;
s101, pulling the video stream from a specific streaming media end according to the stream pulling address.
S102, respectively pulling part of video streams from each streaming media end;
and S103, obtaining a complete video stream according to the video streams of the parts.
In the live broadcasting method of the live broadcasting system based on the education cloud platform, after the stream pushing end pushes the live video stream to the streaming media end, the media end is used for sending the stream pulling address to the stream pulling end so as to indicate the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is used for respectively pulling part of the video streams from the streaming media ends so as to obtain the complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
The embodiment of the invention also provides a live broadcast device of the live broadcast system based on the education cloud platform.
Fig. 3 is a block diagram of a live broadcast device of a live broadcast system based on an education cloud platform according to an embodiment, and as shown in fig. 3, the live broadcast device of the live broadcast system based on the education cloud platform according to an embodiment includes amodule 100, a module 101, amodule 102, and a module 103:
anaddress obtaining module 100, configured to obtain a streaming address sent by a streaming media end;
and the address pull module 101 is configured to pull the video stream from the specific streaming media end according to the pull address.
The balancedstream pulling module 102 is configured to pull a part of video streams from each streaming media end;
and a pull stream combination module 103, configured to obtain a complete video stream from the partial video streams.
In the live broadcasting device of the live broadcasting system based on the education cloud platform, after the stream pushing end pushes the live video stream to the streaming media end, the media end is used for sending the stream pulling address to the stream pulling end so as to indicate the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is used for respectively pulling part of the video streams from the streaming media ends so as to obtain the complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
The embodiment of the invention also provides a computer storage medium, wherein computer instructions are stored on the computer storage medium, and when the instructions are executed by a processor, the live broadcast method of the live broadcast system based on the education cloud platform is realized.
Those skilled in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Random Access Memory (RAM), a Read-Only Memory (ROM), a magnetic disk, and an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
Corresponding to the computer storage medium, in one embodiment, a computer device is further provided, where the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the live broadcast method of the education cloud platform-based live broadcast system in any one of the embodiments.
In the computer device, after the stream pushing end pushes the live video stream to the streaming media end, the media end is configured to send a stream pulling address to the stream pulling end to instruct the stream pulling end to pull the video stream from the specific streaming media end, or the stream pulling end is configured to pull part of the video streams from each streaming media end, respectively, so as to obtain a complete video stream. Based on the method, two strategies of a load mode and a non-load mode are provided through two different pull flow modes. When the load pressure is small, the streaming media end in a non-load mode directly provides a complete video stream, and when the load pressure is large, the video stream is pulled and taken in a balanced mode to a plurality of streaming media ends, so that the live broadcast load capacity is improved, and the limitation of the equipment performance on the load capacity is reduced.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.