CN114302158A - Video live broadcast method and device, computer equipment and storage medium - Google Patents
Video live broadcast method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114302158A CN114302158A CN202111625013.4A CN202111625013A CN114302158A CN 114302158 A CN114302158 A CN 114302158A CN 202111625013 A CN202111625013 A CN 202111625013A CN 114302158 A CN114302158 A CN 114302158A
- Authority
- CN
- China
- Prior art keywords
- video
- target video
- terminal
- streaming media
- video playing
- 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.)
- Pending
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the application discloses a video live broadcast method and device, computer equipment and a storage medium. The method comprises the following steps: the method is applied to a video live broadcast system, wherein the video live broadcast system comprises a video acquisition terminal, a video playing terminal, an encryption gateway, a signaling server and a streaming media server; caching the encrypted target video to a streaming media server through a signaling server; receiving a video playing request sent by a video playing terminal through a signaling server, and sending an encrypted target video in a streaming media server to the video playing terminal according to the video playing request; and decrypting the encrypted target video through the video playing terminal according to the encryption gateway so that the video playing terminal plays the target video. The risk that the video was revealed can be reduced in this scheme, the security of live video improves.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a live video broadcast method and apparatus, a computer device, and a storage medium.
Background
In the existing video live broadcast method, when a video acquisition terminal acquires a video, a transmission channel is acquired through a signaling server, the acquired video is directly transmitted to a streaming media server, and then a video playing terminal acquires a live broadcast video from the streaming media server.
The video acquired by the video acquisition terminal needs to be cached in the streaming media server, and the streaming media server distributes the video, so that the risk of data leakage exists, particularly for scenes needing confidentiality, such as videos acquired by a law enforcement instrument terminal in a law enforcement operation process, if the video acquired by the law enforcement instrument terminal is live broadcast according to the existing video live broadcast method, the risk of video leakage exists, and the live broadcast safety is poor.
Disclosure of Invention
The embodiment of the application provides a video live broadcast method and device, computer equipment and a storage medium, which can improve the safety of video live broadcast.
In a first aspect, an embodiment of the present application provides a live video broadcast method, which is applied to a live video broadcast system, where the live video broadcast system includes a video capture terminal, a video playback terminal, an encryption gateway, a signaling server, and a streaming media server, where the encryption gateway communicates with the video capture terminal, the video playback terminal, the signaling server, and the streaming media server, respectively, and is characterized by including:
acquiring a target video through the video acquisition terminal, and encrypting the target video according to the encryption gateway to obtain an encrypted target video;
caching the encrypted target video to the streaming media server through the signaling server;
receiving a video playing request sent by the video playing terminal through the signaling server, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request;
and decrypting the encrypted target video through the video playing terminal according to the encryption gateway, so that the video playing terminal plays the target video.
In a second aspect, an embodiment of the present application further provides a video live broadcast system, which includes: the video live broadcast system comprises a video acquisition terminal, a video playing terminal, an encryption gateway, a signaling server and a streaming media server, wherein the encryption gateway is respectively communicated with the video acquisition terminal, the video playing terminal, the signaling server and the streaming media server, and the video live broadcast system comprises:
the video acquisition terminal is used for acquiring a target video and encrypting the target video according to the encryption gateway to obtain an encrypted target video;
the signaling server is used for caching the encrypted target video to the streaming media server; receiving a video playing request sent by the video playing terminal, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request;
and the video playing terminal is used for decrypting the encrypted target video according to the encryption gateway so that the video playing terminal plays the target video.
In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium, in which a computer program is stored, the computer program including program instructions, which when executed by a processor, implement the above method.
The embodiment of the application provides a video live broadcast method and device, computer equipment and a storage medium. The method is applied to a video live broadcast system, the video live broadcast system comprises a video acquisition terminal, a video playing terminal, an encryption gateway, a signaling server and a streaming media server, the encryption gateway is respectively communicated with the video acquisition terminal, the video playing terminal, the signaling server and the streaming media server, and the method comprises the steps of acquiring a target video through the video acquisition terminal, and encrypting the target video according to the encryption gateway to obtain an encrypted target video; caching the encrypted target video to the streaming media server through the signaling server; receiving a video playing request sent by the video playing terminal through the signaling server, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request; and decrypting the encrypted target video through the video playing terminal according to the encryption gateway, so that the video playing terminal plays the target video. According to the scheme, the video cached in the streaming media server is encrypted, so that the risk of video leakage can be reduced, and the safety of live video is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a video live broadcast method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a video live broadcasting method according to an embodiment of the present application;
fig. 3 is a schematic block diagram of a video live broadcast system provided in an embodiment of the present application;
fig. 4 is a schematic block diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the application provides a video live broadcast method and device, computer equipment and a storage medium.
The execution main body of the video live broadcast method can be a video live broadcast system provided by the embodiment of the application, and the video live broadcast system can be realized in a hardware or software mode.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a video live broadcasting method according to an embodiment of the present application. The video live broadcast method is applied to a video live broadcast system in fig. 1, wherein the video live broadcast system comprises a video acquisition terminal, a video playing terminal, an encryption gateway, a signaling server and a streaming media server, the encryption gateway is respectively communicated with the video acquisition terminal, the video playing terminal, the signaling server and the streaming media server, and the method comprises the following steps: acquiring a target video through the video acquisition terminal, and encrypting the target video according to the encryption gateway to obtain an encrypted target video; caching the encrypted target video to the streaming media server through the signaling server; receiving a video playing request sent by the video playing terminal through the signaling server, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request; and decrypting the encrypted target video through the video playing terminal according to the encryption gateway, so that the video playing terminal plays the target video.
In this embodiment, an encryption/decryption chip is disposed in the video acquisition terminal, an encryption/decryption U shield is disposed in the video playback terminal, the video acquisition terminal may be a law enforcement instrument terminal, the video playback terminal may be a law enforcement instrument platform client, the signaling server may be a stun (simple transaction of UDP Through NATs)/TURN (transaction Using Relay around NAT), the streaming media server may be a Web Real-Time Communication (WebRTC) streaming media server, and the encryption gateway may be a national encryption gateway.
Fig. 2 is a schematic flow chart of a video live broadcast method provided in an embodiment of the present application. As shown in fig. 2, the method includes the following steps S110-140.
S110, acquiring a target video through the video acquisition terminal, and encrypting the target video according to the encryption gateway to obtain an encrypted target video.
In some embodiments, in particular, step S110 comprises: acquiring a target video through the video acquisition terminal, and receiving an encryption key sent by the encryption gateway; and encrypting the target video according to the encryption key to obtain the encrypted target video.
That is, in some embodiments, when the video capture terminal starts to capture a video, an encryption key obtaining instruction needs to be sent to the encryption gateway at the same time, after the encryption gateway obtains the encryption key obtaining instruction, the encryption key is sent to the video capture terminal, and then the video capture terminal encrypts the captured target video information according to the obtained encryption key through the encryption/decryption chip to obtain an encrypted target video.
The encryption key is dynamically changed, that is, the encryption keys acquired at different times are different.
In some embodiments, when the encryption gateway is a national key gateway, the target video is encrypted based on the SM2 algorithm of the national key, that is, the encryption key is a key based on the SM2 algorithm of the national key.
Wherein, to video acquisition terminal, this embodiment adopts the mode of encryption and decryption chip to carry out the encryption and decryption for encryption and decryption is more high-efficient.
S120, caching the encrypted target video to the streaming media server through the signaling server.
In some embodiments, in particular, step S120 comprises: creating a first transmission channel from the video acquisition terminal to the streaming media server through the signaling server; and caching the encrypted target video to the streaming media server according to the first transmission channel.
In this embodiment, the signaling server is configured to open a transmission channel, and after the target video is encrypted in the video capture terminal, the encrypted target video is transmitted to the streaming media server through the first transmission channel created by the signaling server, so that the streaming media server caches the encrypted target video.
In some embodiments, in order to improve the security of data during transmission, in this embodiment, an encryption gateway is further used to encrypt a first transmission channel, and at this time, after the signaling server creates the first transmission channel from the video capture terminal to the streaming media server, the method further includes: and encrypting the first transmission channel through the encryption gateway to obtain the encrypted first transmission channel.
At this time, the caching the encrypted target video to the streaming media server according to the first transmission channel includes: and caching the encrypted target video to the streaming media server according to the encrypted first transmission channel.
When the encryption gateway is a national secret gateway, the first transmission channel can be encrypted through a national secret SM4 algorithm.
S130, receiving a video playing request sent by the video playing terminal through the signaling server, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request.
In this embodiment, when a user needs to watch a live video collected by a video collection terminal through a video playing terminal, at this time, the user needs to send a video playing request to a signaling server through the video playing terminal, and when the signaling server receives the video playing request, the signaling server sends an encrypted target video cached in a streaming media server to the video playing terminal according to the video playing request.
In some embodiments, specifically, step S130 includes: receiving the video playing request through the signaling server, and creating a second transmission channel from the streaming media server to the video playing terminal according to the video playing request; and sending the encrypted target video in the streaming media server to the video playing terminal according to the second transmission channel.
More specifically, after the signaling server receives a video playing request sent by a video playing terminal, a target streaming media server is determined according to a video address in the video playing request, and then a transmission channel is created between the video playing terminal and the target streaming media server, wherein the target streaming media server is a streaming media server storing live video desired by a user, and after the transmission channel is created, encrypted target video in a sink of the target streaming media server is sent to the video playing terminal through the transmission channel.
In some embodiments, in order to further improve the security of the data in the transmission process, in this embodiment, an encryption gateway is further used to perform encryption processing on a second transmission channel, at this time, after the signaling server receives the video playing request and creates a second transmission channel from the streaming media server to the video playing terminal according to the video playing request, the method further includes: and encrypting the second transmission channel through the encryption gateway to obtain the encrypted second transmission channel.
At this time, the sending the encrypted target video in the streaming media server to the video playing terminal according to the second transmission channel includes: and sending the encrypted target video in the streaming media server to the video playing terminal according to the encrypted second transmission channel.
When the encryption gateway is a national secret gateway, the second transmission channel can be encrypted through a national secret SM4 algorithm.
S140, the encrypted target video is decrypted through the video playing terminal according to the encryption gateway, so that the video playing terminal plays the target video.
In some embodiments, in particular, step S140 comprises: acquiring the encrypted target video through the video playing terminal, and receiving a decryption key sent by the encryption gateway; and decrypting the encrypted target video according to the decryption key so that the video playing terminal plays the target video.
Specifically, in some embodiments, after the video playing terminal receives the encrypted target video, the video playing terminal obtains a corresponding decryption key from the encryption gateway, then performs decryption processing on the encrypted target video according to the decryption key, and after the video playing terminal obtains the decrypted target video, plays the target video.
In this embodiment, the browser in the video playing terminal encrypts and decrypts the video by using the encryption and decryption U shield, so that the dependence on the system can be reduced. In addition, the WebRTC technology is adopted in the scheme, so that the browser does not need to install additional plug-ins when watching the live broadcast.
In some embodiments, when the encryption gateway is a national key gateway, the encrypted target video is decrypted based on the SM2 algorithm of the national key, that is, the decryption key is a key based on the SM2 algorithm of the national key.
Therefore, in the embodiment, after the target video leaves the video acquisition terminal and before the target video enters the video playing terminal, the states of the target video are all in the encryption state, so that the safety of data can be well guaranteed.
In summary, the method is applied to a live video system, the live video system includes a video acquisition terminal, a video playing terminal, an encryption gateway, a signaling server and a streaming media server, the encryption gateway communicates with the video acquisition terminal, the video playing terminal, the signaling server and the streaming media server respectively, and includes acquiring a target video through the video acquisition terminal, and encrypting the target video according to the encryption gateway to obtain an encrypted target video; caching the encrypted target video to the streaming media server through the signaling server; receiving a video playing request sent by the video playing terminal through the signaling server, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request; and decrypting the encrypted target video through the video playing terminal according to the encryption gateway, so that the video playing terminal plays the target video. According to the scheme, the video cached in the streaming media server is encrypted, so that the risk of video leakage can be reduced, and the safety of live video is improved.
Fig. 3 is a schematic block diagram of a video live broadcast system provided in an embodiment of the present application. As shown in fig. 3, the present application also provides a video live broadcast system corresponding to the above video live broadcast method. The video live broadcast system comprises equipment for executing the video live broadcast method. Specifically, referring to fig. 3, the video live broadcasting system includes a video capture terminal 301, a video play terminal 302, an encryption gateway 303, a signaling server 304 and a streaming media server 305, where the encryption gateway 303 communicates with the video capture terminal 301, the video play terminal 302, the signaling server 304 and the streaming media server 305 respectively, and includes:
the video acquisition terminal 301 is configured to acquire a target video, and encrypt the target video according to the encryption gateway 303 to obtain an encrypted target video;
the signaling server 304 is configured to cache the encrypted target video to the streaming server 305; receiving a video playing request sent by the video playing terminal 302, and sending the encrypted target video in the streaming media server 305 to the video playing terminal 302 according to the video playing request;
the video playing terminal 302 is configured to decrypt the encrypted target video according to the encryption gateway 303, so that the video playing terminal 302 plays the target video.
In some embodiments, when the video capture terminal 301 executes the step of capturing the target video by the video capture terminal 301, and encrypting the target video according to the encryption gateway 303 to obtain the encrypted target video, the video capture terminal 301 is specifically configured to:
acquiring a target video through the video acquisition terminal 301, and receiving an encryption key sent by the encryption gateway 303;
and encrypting the target video according to the encryption key to obtain the encrypted target video.
In some embodiments, when the signaling server 304 performs the step of caching the encrypted target video in the streaming media server 305, it is specifically configured to:
creating a first transmission channel from the video collection terminal 301 to the streaming media server 305;
and caching the encrypted target video to the streaming media server 305 according to the first transmission channel.
In some embodiments, the encryption gateway 303 is configured to encrypt the first transmission channel to obtain an encrypted first transmission channel;
at this time, when the signaling server 304 performs the step of caching the encrypted target video to the streaming media server 305 according to the first transmission channel, it is specifically configured to:
and caching the encrypted target video to the streaming media server 305 according to the encrypted first transmission channel.
In some embodiments, when the signaling server 304 performs the steps of receiving the video playing request sent by the video playing terminal 302, and sending the encrypted target video in the streaming media server 305 to the video playing terminal 302 according to the video playing request, specifically, the steps are to:
receiving the video playing request, and creating a second transmission channel from the streaming media server 305 to the video playing terminal 302 according to the video playing request;
and sending the encrypted target video in the streaming media server 305 to the video playing terminal 302 according to the second transmission channel.
In some embodiments, the encryption gateway 303 is further configured to: encrypting the second transmission channel to obtain an encrypted second transmission channel;
at this time, when the signaling server 304 executes the step of sending the encrypted target video in the streaming media server 305 to the video playing terminal 302 according to the second transmission channel, specifically, it is configured to:
and sending the encrypted target video in the streaming media server 305 to the video playing terminal 302 according to the encrypted second transmission channel.
In some embodiments, when the video playing terminal 302 executes the decryption process on the encrypted target video according to the encryption gateway 303, so that the video playing terminal 302 is specifically configured to:
acquiring the encrypted target video, and receiving a decryption key sent by the encryption gateway 303;
and decrypting the encrypted target video according to the decryption key so that the video playing terminal 302 plays the target video.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the video live broadcast system and each device may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The video live system described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 4.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 400 is a video capture terminal, a video play terminal, an encryption gateway, a signaling server or a streaming media server in the video live broadcast system in the present application.
Referring to fig. 4, the computer device 400 includes a processor 402, memory, and a network interface 405 connected by a system bus 401, where the memory may include a non-volatile storage medium 403 and an internal memory 404.
The non-volatile storage medium 403 may store an operating system 4031 and computer programs 4032. The computer program 4032 includes program instructions that, when executed, cause the processor 402 to perform a video live method.
The processor 402 is used to provide computing and control capabilities to support the operation of the overall computer device 400.
The memory 404 provides an environment for the execution of computer programs 4032 on the non-volatile storage medium 403, which computer programs 4032, when executed by the processor 402, cause the processor 402 to perform a live video method.
The network interface 405 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computing device 400 to which the present application is applied, and that a particular computing device 400 may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Wherein, when the computer device 400 is a video capture terminal, the processor 402 is configured to run the computer program 4032 stored in the memory to implement the following steps:
acquiring a target video, and encrypting the target video according to the encryption gateway to obtain an encrypted target video;
in some embodiments, when implementing the step of encrypting the target video according to the encryption gateway to obtain the encrypted target video, the processor 402 specifically implements the following steps:
acquiring a target video through the video acquisition terminal, and receiving an encryption key sent by the encryption gateway;
and encrypting the target video according to the encryption key to obtain the encrypted target video.
Wherein, when the computer device 400 is a video playing terminal, the processor 402 is configured to run the computer program 4032 stored in the memory, so as to implement the following steps:
and decrypting the encrypted target video according to the encryption gateway so that the video playing terminal plays the target video.
In some embodiments, when the processor 402 implements the decryption processing on the encrypted target video according to the encryption gateway, so that the video playing terminal plays the target video, the following steps are specifically implemented:
acquiring the encrypted target video, and receiving a decryption key sent by the encryption gateway;
and decrypting the encrypted target video according to the decryption key so that the video playing terminal plays the target video.
Wherein, when the computer device 400 is an encryption gateway, the processor 402 is configured to run the computer program 4032 stored in the memory to implement the steps of:
sending the encryption key to the video acquisition terminal;
and sending the decryption key to the video playing terminal.
In some embodiments, processor 402, in implementing, further embodies the steps of:
encrypting the first transmission channel to obtain an encrypted first transmission channel;
and encrypting the second transmission channel to obtain the encrypted second transmission channel.
Wherein, when the computer device 400 is a signaling server, the processor 402 is configured to run the computer program 4032 stored in the memory to implement the following steps:
caching the encrypted target video to the streaming media server; and receiving a video playing request sent by the video playing terminal, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request.
In some embodiments, when the processor 402 implements the step of caching the encrypted target video to the streaming media server, the following steps are specifically implemented:
creating a first transmission channel from the video acquisition terminal to the streaming media server;
and caching the encrypted target video to the streaming media server 305 according to the first transmission channel.
In some embodiments, when the step of caching the encrypted target video to the streaming media server according to the first transmission channel is implemented, the processor 402 specifically implements the following steps:
and caching the encrypted target video to the streaming media server according to the encrypted first transmission channel.
In some embodiments, when the processor 402 implements the steps of receiving the video playing request sent by the video playing terminal and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request, the following steps are specifically implemented:
receiving the video playing request, and creating a second transmission channel from the streaming media server to the video playing terminal according to the video playing request;
and sending the encrypted target video in the streaming media server to the video playing terminal according to the second transmission channel.
In some embodiments, when the step of sending the encrypted target video in the streaming media server to the video playing terminal according to the second transmission channel is implemented, the processor 402 specifically implements the following steps:
and sending the encrypted target video in the streaming media server to the video playing terminal according to the encrypted second transmission channel.
Wherein, when the computer device 400 is a streaming media server, the processor 402 is configured to run the computer program 4032 stored in the memory to implement the following steps:
caching the encrypted target video sent by the video acquisition terminal;
and sending the cached encrypted target video to a video playing terminal.
It should be understood that in the embodiment of the present Application, the Processor 402 may be a Central Processing Unit (CPU), and the Processor 402 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions. The program instructions, when executed by the processor, cause the processor to perform the steps of:
acquiring a target video through the video acquisition terminal, and encrypting the target video according to the encryption gateway to obtain an encrypted target video;
caching the encrypted target video to the streaming media server through the signaling server;
receiving a video playing request sent by the video playing terminal through the signaling server, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request;
and decrypting the encrypted target video through the video playing terminal according to the encryption gateway, so that the video playing terminal plays the target video.
In some embodiments, when the processor executes the program instruction to achieve the steps of acquiring a target video by the video acquisition terminal, and encrypting the target video according to the encryption gateway to obtain an encrypted target video, the following steps are specifically achieved:
acquiring a target video through the video acquisition terminal, and receiving an encryption key sent by the encryption gateway;
and encrypting the target video according to the encryption key to obtain the encrypted target video.
In some embodiments, when the processor executes the program instructions to implement the step of caching the encrypted target video to the streaming media server through the signaling server, the following steps are specifically implemented:
creating a first transmission channel from the video acquisition terminal to the streaming media server through the signaling server;
and caching the encrypted target video to the streaming media server according to the first transmission channel.
In some embodiments, after the step of creating the first transmission channel from the video capture terminal to the streaming server by the signaling server by executing the program instructions, the processor further implements the following steps:
encrypting the first transmission channel through the encryption gateway to obtain an encrypted first transmission channel;
the caching the encrypted target video to the streaming media server according to the first transmission channel includes:
and caching the encrypted target video to the streaming media server according to the encrypted first transmission channel.
In some embodiments, when the processor executes the program instruction to implement the steps of receiving, by the signaling server, a video playing request sent by the video playing terminal, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request, the following steps are specifically implemented:
receiving the video playing request through the signaling server, and creating a second transmission channel from the streaming media server to the video playing terminal according to the video playing request;
and sending the encrypted target video in the streaming media server to the video playing terminal according to the second transmission channel.
In some embodiments, after the step of executing the program instructions to implement the receiving, by the signaling server, the video playing request and creating a second transmission channel from the streaming server to the video playing terminal according to the video playing request, the processor further implements the following steps:
encrypting the second transmission channel through the encryption gateway to obtain an encrypted second transmission channel;
the sending the encrypted target video in the streaming media server to the video playing terminal according to the second transmission channel includes:
and sending the encrypted target video in the streaming media server to the video playing terminal according to the encrypted second transmission channel.
In some embodiments, when the processor executes the program instruction to implement the decryption processing on the encrypted target video by the video playing terminal according to the encryption gateway, so that the video playing terminal plays the target video, the following steps are specifically implemented:
acquiring the encrypted target video through the video playing terminal, and receiving a decryption key sent by the encryption gateway;
and decrypting the encrypted target video according to the decryption key so that the video playing terminal plays the target video.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes several 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 steps of the method according to the embodiments of the present application.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A video live broadcast method is applied to a video live broadcast system, the video live broadcast system comprises a video acquisition terminal, a video playing terminal, an encryption gateway, a signaling server and a streaming media server, the encryption gateway is respectively communicated with the video acquisition terminal, the video playing terminal, the signaling server and the streaming media server, and the method is characterized by comprising the following steps:
acquiring a target video through the video acquisition terminal, and encrypting the target video according to the encryption gateway to obtain an encrypted target video;
caching the encrypted target video to the streaming media server through the signaling server;
receiving a video playing request sent by the video playing terminal through the signaling server, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request;
and decrypting the encrypted target video through the video playing terminal according to the encryption gateway, so that the video playing terminal plays the target video.
2. The method according to claim 1, wherein the acquiring a target video by the video acquisition terminal and encrypting the target video according to the encryption gateway to obtain an encrypted target video comprises:
acquiring a target video through the video acquisition terminal, and receiving an encryption key sent by the encryption gateway;
and encrypting the target video according to the encryption key to obtain the encrypted target video.
3. The method according to claim 1, wherein the caching, by the signaling server, the encrypted target video to the streaming server comprises:
creating a first transmission channel from the video acquisition terminal to the streaming media server through the signaling server;
and caching the encrypted target video to the streaming media server according to the first transmission channel.
4. The method according to claim 3, wherein after the creating, by the signaling server, the first transmission channel from the video capture terminal to the streaming server, the method further comprises:
encrypting the first transmission channel through the encryption gateway to obtain an encrypted first transmission channel;
the caching the encrypted target video to the streaming media server according to the first transmission channel includes:
and caching the encrypted target video to the streaming media server according to the encrypted first transmission channel.
5. The method according to claim 1, wherein the receiving, by the signaling server, a video playing request sent by the video playing terminal and sending the encrypted target video in the streaming server to the video playing terminal according to the video playing request comprises:
receiving the video playing request through the signaling server, and creating a second transmission channel from the streaming media server to the video playing terminal according to the video playing request;
and sending the encrypted target video in the streaming media server to the video playing terminal according to the second transmission channel.
6. The method according to claim 5, wherein after receiving the video playing request through the signaling server and creating a second transmission channel from the streaming server to the video playing terminal according to the video playing request, the method further comprises:
encrypting the second transmission channel through the encryption gateway to obtain an encrypted second transmission channel;
the sending the encrypted target video in the streaming media server to the video playing terminal according to the second transmission channel includes:
and sending the encrypted target video in the streaming media server to the video playing terminal according to the encrypted second transmission channel.
7. The method according to any one of claims 1 to 6, wherein the decrypting, by the video playback terminal, the encrypted target video according to the encryption gateway so that the video playback terminal plays the target video includes:
acquiring the encrypted target video through the video playing terminal, and receiving a decryption key sent by the encryption gateway;
and decrypting the encrypted target video according to the decryption key so that the video playing terminal plays the target video.
8. The utility model provides a live video system, its characterized in that live video system includes video acquisition terminal, video broadcast terminal, encryption gateway, signaling server and streaming media server, encryption gateway respectively with video acquisition terminal video broadcast terminal signaling server and streaming media server communicate, wherein:
the video acquisition terminal is used for: acquiring a target video, and encrypting the target video according to the encryption gateway to obtain an encrypted target video;
the signaling server is configured to: caching the encrypted target video to the streaming media server; receiving a video playing request sent by the video playing terminal, and sending the encrypted target video in the streaming media server to the video playing terminal according to the video playing request;
the video playing terminal is used for: and decrypting the encrypted target video according to the encryption gateway so that the video playing terminal plays the target video.
9. A live video broadcast system, comprising a plurality of computer devices including a video capture terminal, a video playback terminal, an encryption gateway, a signaling server, and a streaming media server, wherein each of the computer devices includes a memory and a processor, the memory having stored thereon a computer program, and the processors of the plurality of computer devices collectively implement the method according to any one of claims 1-7 when executing the corresponding computer program.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program comprising program instructions which, when executed by a plurality of processors, collectively implement the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111625013.4A CN114302158A (en) | 2021-12-28 | 2021-12-28 | Video live broadcast method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111625013.4A CN114302158A (en) | 2021-12-28 | 2021-12-28 | Video live broadcast method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114302158A true CN114302158A (en) | 2022-04-08 |
Family
ID=80970724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111625013.4A Pending CN114302158A (en) | 2021-12-28 | 2021-12-28 | Video live broadcast method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114302158A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015008252A1 (en) * | 2013-07-18 | 2015-01-22 | Opentv, Inc. | A system for receiving and decrypting multimedia content |
CN104581369A (en) * | 2014-12-22 | 2015-04-29 | 广东省广播电视网络股份有限公司 | Multi-channel high-definition live program forwarding method and system based on broadcast television network home gateway |
CN105869091A (en) * | 2016-05-12 | 2016-08-17 | 深圳市时尚德源文化传播有限公司 | Internet teaching method and system |
WO2017107440A1 (en) * | 2015-12-23 | 2017-06-29 | 乐视控股(北京)有限公司 | Streaming media live broadcasting method, releasing terminal, client terminal and system |
CN110620936A (en) * | 2019-08-28 | 2019-12-27 | 视联动力信息技术股份有限公司 | Video backup method and device for video network |
US20200037005A1 (en) * | 2018-07-26 | 2020-01-30 | Wangsu Science & Technology Co., Ltd. | Video resource file acquisition method and management system |
CN111416989A (en) * | 2020-04-28 | 2020-07-14 | 北京金山云网络技术有限公司 | Video live broadcast method and system and electronic equipment |
-
2021
- 2021-12-28 CN CN202111625013.4A patent/CN114302158A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015008252A1 (en) * | 2013-07-18 | 2015-01-22 | Opentv, Inc. | A system for receiving and decrypting multimedia content |
CN104581369A (en) * | 2014-12-22 | 2015-04-29 | 广东省广播电视网络股份有限公司 | Multi-channel high-definition live program forwarding method and system based on broadcast television network home gateway |
WO2017107440A1 (en) * | 2015-12-23 | 2017-06-29 | 乐视控股(北京)有限公司 | Streaming media live broadcasting method, releasing terminal, client terminal and system |
CN105869091A (en) * | 2016-05-12 | 2016-08-17 | 深圳市时尚德源文化传播有限公司 | Internet teaching method and system |
US20200037005A1 (en) * | 2018-07-26 | 2020-01-30 | Wangsu Science & Technology Co., Ltd. | Video resource file acquisition method and management system |
CN110620936A (en) * | 2019-08-28 | 2019-12-27 | 视联动力信息技术股份有限公司 | Video backup method and device for video network |
CN111416989A (en) * | 2020-04-28 | 2020-07-14 | 北京金山云网络技术有限公司 | Video live broadcast method and system and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11055429B2 (en) | Key providing method, video playing method, server and client | |
EP2835933B1 (en) | Method, device and system for implementing media data processing | |
US9038147B2 (en) | Progressive download or streaming of digital media securely through a localized container and communication protocol proxy | |
WO2019015598A1 (en) | Hybrid-cloud data storage method and apparatus, related device, and cloud system | |
US9584556B2 (en) | Client proxy for adaptive bitrate selection in HTTP live streaming | |
CN110912690A (en) | Data encryption and decryption method, vehicle and storage medium | |
EP2700238B1 (en) | Ethernet decoder device and method to access protected content | |
US9118630B2 (en) | Client proxy for key exchange in HTTP live streaming | |
US20040199771A1 (en) | Method for tracing a security breach in highly distributed content | |
CN104735457A (en) | Video encryption and decryption method based on H.264 code | |
KR20120071556A (en) | Image secure tansmission apparatus, image data reception apparatus, and key generation method therefor | |
CN106657162B (en) | Online streaming media playing method, streaming media downloading method and offline playing method | |
CN106303615A (en) | Play the methods, devices and systems of video | |
US20190246148A1 (en) | Method and system for scrambling broadcast with low latency | |
CN109120998A (en) | media data transmission method, device and storage medium | |
CN106921827A (en) | Secure network high-definition camera | |
CN105072488A (en) | Streaming media decryption method and device | |
CN108055356A (en) | A kind of information processing method, server, client and readable storage medium storing program for executing | |
CN108924596B (en) | Media data transmission method, device and storage medium | |
US20180316497A1 (en) | Security apparatus and control method | |
CN112565656B (en) | Video call method, device, system, electronic equipment and storage medium | |
CN111277802B (en) | Video code stream processing method, device, equipment and storage medium | |
CN114302158A (en) | Video live broadcast method and device, computer equipment and storage medium | |
TW201640392A (en) | Computerized system and method for implementing digital rights management | |
CN112953724B (en) | Authentication method of anti-theft chain, and related device and equipment |
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 |