CN112135166A - Method, device and system for sending and playing live broadcast data - Google Patents

Method, device and system for sending and playing live broadcast data Download PDF

Info

Publication number
CN112135166A
CN112135166A CN202010819776.1A CN202010819776A CN112135166A CN 112135166 A CN112135166 A CN 112135166A CN 202010819776 A CN202010819776 A CN 202010819776A CN 112135166 A CN112135166 A CN 112135166A
Authority
CN
China
Prior art keywords
live broadcast
decryption
encrypted
message
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010819776.1A
Other languages
Chinese (zh)
Other versions
CN112135166B (en
Inventor
刘伟
�田�浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010819776.1A priority Critical patent/CN112135166B/en
Publication of CN112135166A publication Critical patent/CN112135166A/en
Application granted granted Critical
Publication of CN112135166B publication Critical patent/CN112135166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure relates to a method, a device and a system for sending and playing live data, and relates to the technical field of data security. The disclosed technical scheme is as follows: generating an encrypted playing entry message of a target live broadcast room, and sending the encrypted playing entry message to a client; when receiving a request of a client for acquiring the live broadcast data of the encrypted play entry message, sending a decryption prompt message to the client; acquiring a decryption parameter fed back by the client according to the decryption prompt message; judging whether the decryption parameters meet decryption conditions corresponding to the encrypted playing entry message; and when the decryption parameters meet the decryption conditions, sending live broadcast data corresponding to the encrypted playing entry message to the client. Therefore, privacy protection of live broadcast data in a live broadcast scene is realized, and the live broadcast application scene is expanded.

Description

Method, device and system for sending and playing live broadcast data
Technical Field
The present disclosure relates to the field of data security technologies, and in particular, to a method, an apparatus, and a system for sending and playing live data.
Background
With the popularization of live broadcast application, the demand of users for live broadcast functions is more diversified, for example, in a live broadcast scene of a star or in a live broadcast function test scene, the privacy broadcast demand for live broadcast is provided for the convenience of the star to be familiar with related live broadcast functions or for avoiding the leakage of test functions.
In the related art, in order to meet the requirement of the live broadcast privacy of a user, the user is required to actively apply for a small number with a relatively small exposure for live broadcast, however, the exposure is only reduced to a certain extent by the method, but the live broadcast privacy cannot be fundamentally protected, and live broadcast data can still be exposed.
Disclosure of Invention
The present disclosure provides a method, an apparatus, and a system for sending and playing live data, so as to solve the technical problem in the prior art that the privacy protection effect of live data is poor.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for sending live data applied to a server is included, including: generating an encrypted playing entry message of a target live broadcast room, and sending the encrypted playing entry message to a client; when receiving an acquisition request of the client for the live broadcast data of the encrypted play entry message, sending a decryption prompt message to the client; acquiring a decryption parameter fed back by the client according to the decryption prompt message; judging whether the decryption parameters meet decryption conditions corresponding to the encrypted playing entry message; and when the decryption parameters meet the decryption conditions, sending live broadcast data corresponding to the encrypted playing entry message to the client.
In addition, the method for sending live broadcast data of the embodiment of the present disclosure further includes the following additional technical features:
in an embodiment of the present disclosure, the generating an encrypted playback entry message of a target live broadcast room includes: acquiring a live broadcast encryption request aiming at the target live broadcast room; and generating the encrypted playing entrance message according to the live broadcast encryption request.
In an embodiment of the present disclosure, the generating the encrypted playback entry message according to the live encryption request includes: determining an encryption mode corresponding to the live broadcast encryption request; when the encryption mode is homepage encryption, acquiring a cover image of a live broadcast room of the target live broadcast room, and taking the cover image of the live broadcast room as the encrypted playing entrance message;
and when the encryption mode is stream address encryption, acquiring play address information of the target live broadcast room, and encrypting the play address information according to a preset encryption algorithm to generate the encrypted play entry message.
In one embodiment of the present disclosure,
the determining of the encryption mode corresponding to the live broadcast encryption request includes:
when an encryption request which is sent by the client and aims at the target live broadcast room is obtained, an encryption mode selection message is sent to the client;
and acquiring the encryption mode fed back by the client according to the encryption mode selection message.
In an embodiment of the present disclosure, when the sending the encrypted playback entry message to the client further includes: determining a display position corresponding to the encryption mode; and sending the display position of the encrypted playing entry message to the client.
In an embodiment of the present disclosure, the determining whether the decryption parameter satisfies a decryption condition corresponding to the encrypted playback entry message includes: inquiring a preset database, and acquiring an encryption parameter corresponding to the encrypted playing entry message; and judging whether the decryption parameters are the same as the encryption parameters.
In an embodiment of the present disclosure, the determining whether the decryption parameter satisfies a decryption condition corresponding to the encrypted playback entry message includes: acquiring user identification information and live broadcast room identification information of the target live broadcast room; calculating the user identification information and the live broadcast room identification information through a preset algorithm to obtain an encrypted password corresponding to the target live broadcast room; and judging whether the decryption parameter is the same as the encryption password.
In an embodiment of the present disclosure, the determining whether the decryption parameter satisfies a decryption condition corresponding to the encrypted playback entry message includes: extracting the parameter characteristics of the decryption parameters; and judging whether the parameter characteristics are matched with preset parameter characteristics.
In an embodiment of the present disclosure, before the client sends the decryption prompting message, the method further includes: acquiring client identification information corresponding to the client; and determining that the client identification information does not belong to preset white list client identification information.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for playing live data applied to a client, including: acquiring and displaying an encrypted playing entry message sent by a server; when the trigger operation of the encrypted playing entry message is acquired, sending a request for acquiring live broadcast data to the server; displaying a decryption prompt message fed back by the server according to the acquisition request, and sending a decryption parameter input according to the decryption prompt message to the server; and receiving and displaying live broadcast data corresponding to the encrypted playing entry message fed back by the server, wherein the server feeds back the live broadcast data when judging that the decryption parameter meets the decryption condition corresponding to the encrypted playing entry message.
In addition, the method for playing live data in the embodiment of the present disclosure further includes the following additional technical features:
in an embodiment of the present disclosure, the acquiring and displaying an encrypted playback entry message sent by a server includes: acquiring the encrypted playing entry message sent by the server and a display position corresponding to the encrypted playing entry message; and displaying the encrypted playing entry message according to the display position.
In an embodiment of the present disclosure, when the encrypted playback entry message is generated by the server encrypting the playback address information according to a preset encryption algorithm, and when the trigger operation on the encrypted playback entry message is obtained, the method includes: obtaining the copy operation of the encrypted playing entry message at the display position; and when the opening operation of the live broadcast application after the copying operation is acquired, acquiring the triggering operation of the encrypted playing entry message.
In an embodiment of the present disclosure, the displaying the decryption prompting message fed back by the server according to the viewing request includes: sending client identification information to the server; and receiving a decryption prompt message fed back by the server, wherein the server sends the decryption prompt message to the client when determining that the client identification information does not belong to the preset white list client identification information.
According to a third aspect of the embodiments of the present disclosure, there is provided a device for sending live data, which is applied to a server, and includes: the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is configured to generate an encrypted playing entrance message of a target live broadcast room and send the encrypted playing entrance message to a client; the second sending module is configured to send a decryption prompt message to the client when receiving an acquisition request of the client for the live broadcast data of the encrypted playing entry message; a first obtaining module configured to obtain a decryption parameter fed back by the client according to the decryption prompt message; the judging module is configured to judge whether the decryption parameters meet decryption conditions corresponding to the encrypted playing entry message; and the third sending module is configured to send live broadcast data corresponding to the encrypted playing entry message to the client when the decryption parameter meets the decryption condition.
In addition, the sending apparatus of live broadcast data according to the embodiment of the present disclosure further includes the following additional technical features:
in an embodiment of the present disclosure, the first sending module is specifically configured to: acquiring a live broadcast encryption request aiming at the target live broadcast room; and generating the encrypted playing entrance message according to the live broadcast encryption request.
In an embodiment of the present disclosure, the first sending module is specifically configured to: determining an encryption mode corresponding to the live broadcast encryption request; when the encryption mode is homepage encryption, acquiring a cover image of a live broadcast room of the target live broadcast room, and taking the cover image of the live broadcast room as the encrypted playing entrance message; and when the encryption mode is stream address encryption, acquiring play address information of the target live broadcast room, and encrypting the play address information according to a preset encryption algorithm to generate the encrypted play entry message.
In an embodiment of the present disclosure, the first sending module is specifically configured to: when an encryption request which is sent by the client and aims at the target live broadcast room is obtained, an encryption mode selection message is sent to the client; and acquiring the encryption mode fed back by the client according to the encryption mode selection message.
In one embodiment of the present disclosure, further comprising: the first determining module is used for determining a display position corresponding to the encryption mode; the first sending module is specifically configured to send the display position of the encrypted playback entry message to the client.
In an embodiment of the disclosure, the determining module is specifically configured to: inquiring a preset database, and acquiring an encryption parameter corresponding to the encrypted playing entry message; and judging whether the decryption parameters are the same as the encryption parameters.
In an embodiment of the disclosure, the determining module is specifically configured to: acquiring user identification information and live broadcast room identification information of the target live broadcast room; calculating the user identification information and the live broadcast room identification information through a preset algorithm to obtain an encrypted password corresponding to the target live broadcast room; and judging whether the decryption parameter is the same as the encryption password.
In an embodiment of the disclosure, the determining module is specifically configured to: extracting the parameter characteristics of the decryption parameters; and judging whether the parameter characteristics are matched with preset parameter characteristics.
In one embodiment of the present disclosure, further comprising: a second obtaining module configured to obtain client identification information corresponding to the client; a second determination module configured to determine that the client identification information does not belong to a preset white list client identification information.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a playing apparatus for live data, including: the first display module is configured to acquire and display the encrypted playing entry message sent by the server; the fourth sending module is configured to send a request for obtaining live broadcast data to the server when the triggering operation on the encrypted playing entry message is obtained; a fifth sending module, configured to display a decryption prompting message fed back by the server according to the acquisition request, and send a decryption parameter input according to the decryption prompting message to the server; and the second display module is configured to receive and display live broadcast data corresponding to the encrypted playing entry message, which is fed back by the server, wherein the server feeds back the live broadcast data when judging that the decryption parameter meets the decryption condition corresponding to the encrypted playing entry message.
In addition, the playing device of the live data of the embodiment of the present disclosure further includes the following additional technical features:
in an embodiment of the disclosure, the first display module is specifically configured to: acquiring the encrypted playing entry message sent by the server and a display position corresponding to the encrypted playing entry message; and displaying the encrypted playing entry message according to the display position.
In an embodiment of the disclosure, when the encrypted play entry message is generated by the server encrypting the play address information according to a preset encryption algorithm, the fourth sending module is specifically configured to: obtaining the copy operation of the encrypted playing entry message at the display position; and when the opening operation of the live broadcast application after the copying operation is acquired, acquiring the triggering operation of the encrypted playing entry message.
In one embodiment of the present disclosure, further comprising: a sixth transmitting module configured to transmit client identification information to the server; and the receiving module is configured to receive a decryption prompting message fed back by the server, wherein the server sends the decryption prompting message to the client when determining that the client identification information does not belong to preset white list client identification information.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a playing system of live data, a server and a client, wherein the server includes a sending apparatus of live data as described in the above embodiments; the client comprises a playing device of the live data as described in the above embodiment.
According to a sixth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method for playing or sending live data as described above.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions when executed by a processor of an electronic device enable the electronic device to execute the method for playing or transmitting live data as described above.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer program product, which, when executed by a processor of an electronic device, enables the electronic device to perform the playing or sending method of live data as described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the server generates an encrypted playing entry message of a target live broadcast room, sends the encrypted playing entry message to the client, sends a decryption prompt message to the client when receiving an acquisition request of the client for live broadcast data of the encrypted playing entry message, acquires a decryption parameter fed back by the client according to the decryption prompt message, further judges whether the decryption parameter meets a decryption condition corresponding to the encrypted playing entry message, and finally sends the live broadcast data corresponding to the encrypted playing entry message to the client when the decryption parameter meets the decryption condition. Thus, privacy protection of live data in a live scenario is achieved, extending the application scenario of live, it being understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a block diagram illustrating a system for transmitting live data according to an exemplary embodiment.
Fig. 2 is a flow diagram illustrating a method of transmitting live data according to an example embodiment.
Fig. 3 is a diagram illustrating an encryption parameter setting scenario in accordance with an example embodiment.
Fig. 4 is a flowchart illustrating a method of transmitting live data according to another exemplary embodiment.
Fig. 5 is a diagram illustrating an encryption parameter setting scenario in accordance with another illustrative embodiment.
Fig. 6 is a flowchart illustrating a method of transmitting live data according to still another exemplary embodiment.
FIG. 7 is a diagram illustrating a scenario of decrypting a hint message, according to another example embodiment.
Fig. 8 is a schematic structural diagram of a transmission apparatus of live data according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a transmission apparatus of live data according to another embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a transmission apparatus of live data according to still another embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a playback apparatus for live data according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a playback apparatus for live data according to another embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In order to solve the technical problem that the privacy of the live data cannot be protected in the background art, the method for encrypting the live data can ensure that the live data are not leaked.
In order to describe the encryption scene of the live data more clearly, the following description focuses on a server and a client side included in a playing system of the live data, where the client may be any electronic device with a live application, and the electronic device may be a notebook computer, a smart phone, an intelligent wearable device, and the like, and referring to fig. 1, the playing system of the live data includes a server 100 and a client 200, where a user of the client 200 provides a host user with a front-end operation of encrypting the live data, and a user of the client triggers to open the live data, and the server is used for password verification and the like.
The following description focuses first on the server side.
Specifically, fig. 2 is a flowchart of a method for sending live data according to an embodiment of the present disclosure, and as shown in fig. 2, the method for playing live data includes:
in step 101, an encrypted playback entry message of the target live broadcast room is generated, and the encrypted playback entry message is sent to the client.
It should be understood that the purpose of privacy protection of the live data in the present embodiment is to control the live data to be viewable by only a designated viewing user, but not all viewable, for example, for education live data, it is desirable to designate a school, a viewing user corresponding to a local instructor to be viewable, and the like.
Therefore, in this embodiment, it is necessary to display an encrypted playback entry message corresponding to the target live broadcast room, where the encrypted playback entry message does not have any public property for the live broadcast video of the target live broadcast room, and the live broadcast data of the target live broadcast room cannot be obtained based on the encrypted playback entry message only. In different application scenarios, the encrypted playing entry message may be in a video cover form of a live broadcast room, or in a password connection form, and the like, and in the following specific embodiment, different application scenarios of the encrypted playing entry message will be described, which is not described herein again.
In some possible embodiments, the encrypted play entry message of the target live broadcast room may be generated by the server according to the trigger operation after the anchor user triggers the corresponding encrypted control of the target live broadcast room at the client, or may be generated according to the relevant information of the target live broadcast room after the corresponding target live broadcast room is obtained by matching in the database according to the target live broadcast room identifier after the encrypted instruction carrying the target live broadcast room identifier is sent by the anchor user.
In step 102, when an acquisition request of a client for live data of an encrypted playing entry message is received, a decryption prompting message is sent to the client.
In the embodiment of the present disclosure, when an acquisition request of a client for live data of an encrypted playback entry message is received, for example, after a trigger operation of a viewing user on the encrypted playback entry message sent by the client is received, and after the trigger operation is determined to meet a preset trigger condition (for example, the trigger operation is a double click), it is determined that the acquisition request of the client for live data of the encrypted playback entry message is acquired.
In this embodiment, after detecting the trigger operation of the viewing user on the play entry message, the corresponding live data is not directly displayed, but a decryption prompt message is displayed to instruct the user to input a password for viewing.
In different application scenarios, the decryption prompting message has different forms, for example, the decryption prompting message may include a password input interface, may also be a text prompting message, or may be a text voice prompting message, where the decryption prompting message is used to instruct a user to input a decryption parameter and a form of inputting the decryption parameter, and the like, for example, "please speak the decryption parameter to the microphone" that the decryption prompting message is in a voice form.
In some possible examples, the decryption prompting message further includes anchor information of the target live broadcast room, and information in the form of encryption parameters, such as prompting whether the confidential parameters are gesture passwords or voice passwords, and the like, so that a viewing user can quickly recall the corresponding decryption parameters.
In step 103, the decryption parameters fed back by the client according to the decryption prompt message are obtained.
The decryption parameter is in a form corresponding to the decryption prompt message, and when the decryption prompt message is a password input interface, the decryption parameter is in a password form and the like.
In step 104, it is determined whether the decryption parameter satisfies a decryption condition corresponding to the encrypted playback entry message.
In this embodiment, in order to determine whether the client is a user capable of viewing live data, it is necessary to determine whether the decryption parameter satisfies a decryption condition corresponding to the encrypted playback entry message.
It should be noted that, in different application scenarios, if the decryption conditions are different, the corresponding ways of determining whether the decryption parameter satisfies the decryption condition corresponding to the encrypted playback entry message are different, which are exemplified as follows:
example one:
in this example, the encryption parameter corresponding to the encrypted playback entry message is stored in advance in the database of the server, and then, after the decryption parameter is obtained, the preset database is queried, and after the encryption parameter corresponding to the encrypted playback entry message is obtained, it is determined whether the decryption parameter is the same as the encryption parameter.
For example, as shown in fig. 3, when the encryption parameter is an encryption password (in the figure, the encryption password is an example in a digital form), a password setting interface may be displayed in a pop-up window form in the live broadcast room, and the anchor user may set the encryption password in the interface. In this embodiment, in order to determine that the set password is the anchor user, it may be further detected whether fingerprint information when the password is set matches a fingerprint of an anchor user registered in advance in the live broadcast room, and the set encryption password is only valid when the fingerprint matches.
Example two:
in this example, a corresponding encryption password can be generated in real time according to a certain algorithm, and the encryption password is used for encrypting the live broadcast room so as to further enhance the non-cracking performance of the encryption password.
In this embodiment, user identification information of a target live broadcast room and live broadcast room identification information are obtained, where the user identification information may be an account number of a host user, and the live broadcast room identification information may be a live broadcast room label, and may also be information that can uniquely locate live broadcast data of the host at a time point of the live broadcast room, and further, an encrypted password corresponding to the target live broadcast room is obtained by calculating the user identification information and the live broadcast room identification information through a preset algorithm, and in this embodiment, because the user identification information and the live broadcast room identification have uniqueness, the generated encrypted password also has uniqueness, thereby avoiding a possibility that the encrypted password is cracked, and in this embodiment, after the corresponding encrypted password is calculated, the encrypted password may be sent to the host user so that the host user shares the encrypted password with a watching user who wants to share the live broadcast data, or, a request for a list of viewing users may be sent to the client of the anchor user, and the encrypted password is shared to the viewing user who wants to share the live data according to the list of viewing users sent by the anchor user.
In this embodiment, for example, different preset algorithms may be used to implement the calculation of the user identification information and the live broadcast room identification information, and as a possible implementation manner, the hash value of the user identification information and the live broadcast room identification information may be calculated by using a preset hash algorithm, and the hash value is used as an encryption password.
For another example, n random numbers in the user identification information may be obtained, where n is a natural number, and when the user identification information is less than n numbers, the numbers included in the user identification information are randomly repeated to complement the n natural numbers, where both the random numbers and the random times may be random, and multiple numbers may be random each time. And then, acquiring the number corresponding to the live broadcast room identifier, when the live broadcast room identifier is a live broadcast time point, using a number string formed in sequence by using all numbers corresponding to the year, month and day of the live broadcast time and the start time as the number corresponding to the live broadcast room identifier, when the live broadcast room identifier is a live broadcast room number, converting the live broadcast room number into a binary system, and then acquiring the number corresponding to binary data, further taking m bits before the ratio of the number of the live broadcast room identifier and n random numbers in the user identifier as an encryption password, wherein m is a natural number, and when m is less than m, randomly repeating the number in the ratio, wherein the random numbers and the random times can be random, and a plurality of numbers can be random every time, and also can be random one number.
Therefore, in this embodiment, whether the decryption condition is satisfied can be known based on the judgment of the decryption parameter and the encrypted password.
Example three:
in this example, when the viewing user pays attention to a plurality of anchor live broadcast rooms all having encrypted live broadcast data, the pressure of the viewing user to memorize the decryption parameters is large, in order to relieve the memory pressure, in this example, a preset parameter feature of the decryption parameters may be defined, the preset parameter feature corresponds to a composition rule of the decryption parameters, for example, the decryption parameters are 5 bits, the first 2 bits are numbers, the last 3 bits are letters, for example, the decryption parameters are all symbols, and for example, the decryption parameters are 12 bits, etc., the parameter feature of the decryption parameters is extracted, whether the parameter feature satisfies the preset parameter feature is judged, only the parameter feature matches with the preset parameter feature, and it is considered that the corresponding decryption parameters satisfy the corresponding decryption conditions.
Certainly, in some possible examples, in order to further improve the viewing efficiency of live data in a target live broadcast room, and avoid that corresponding viewing users can view live data only by manually inputting decryption parameters, white list client identification information may also be set, and corresponding live data may be directly displayed for client identification information (which may also be understood as account information of the viewing user) in the white list client identification information.
In this embodiment, before displaying the decryption prompting message, client identification information is obtained, it is determined that the client identification information does not belong to the preset white list client identification information, and if the viewing user belongs to the white list client identification information, the corresponding live broadcast data is directly displayed.
The white list client identification information in this embodiment needs to be set in advance by the anchor user, and certainly, according to the scene needs, the anchor user may also dynamically adjust the white list account number, and in some embodiments, the anchor user may also set different white list client identification information for different live broadcast time periods, for example, when the live broadcast time is 1 point-1 point 10 minutes, the corresponding white list client identification information is different from the white list client identification information corresponding to the live broadcast time of 2 points-2 points 10 minutes, so as to meet the viewing limitation of a specific viewing user for some sensitive information. The white list client identification information can be sent to a server for storage by the client where the anchor user is located, and therefore viewing efficiency and privacy protection of live data are considered.
In step 105, when the decryption parameter satisfies the decryption condition, the live data corresponding to the encrypted playback entry message is sent to the client.
In this embodiment, if the decryption parameter meets the decryption condition, the live broadcast data in the target live broadcast room is played, and the played data in the current target live broadcast room is provided to the client where the watching user is located, so as to meet the watching service of the watching user.
Therefore, when the live data of the target live broadcast room is opened, the corresponding live data cannot be watched unless the watching user grasps the decryption parameter corresponding to the encryption parameter, and the privacy of the live data is protected. The method can provide good security service for the situations that the live broadcasting function of the star live broadcasting is familiar in advance, and the testing of the new added function in the live broadcasting application is carried out.
In summary, the method for sending live broadcast data according to the embodiment of the present disclosure generates an encrypted broadcast entry message in a target live broadcast room, sends the encrypted broadcast entry message to a client, sends a decryption prompt message to the client when receiving an acquisition request of the client for live broadcast data of the encrypted broadcast entry message, acquires a decryption parameter fed back by the client according to the decryption prompt message, further determines whether the decryption parameter satisfies a decryption condition corresponding to the encrypted broadcast entry message, and finally sends live broadcast data corresponding to the encrypted broadcast entry message to the client when the decryption parameter satisfies the decryption condition. Therefore, privacy protection of live broadcast data in a live broadcast scene is realized, and the live broadcast application scene is expanded.
In actual execution, in order to further protect the privacy of the live data in the target live broadcast room, the form of encrypting and playing the entry message can be flexibly set, so as to further reduce the exposure rate of the live data in the target live broadcast room.
In one embodiment of the present disclosure, as shown in fig. 4, generating an encrypted playback entry message for a target live broadcast room includes:
in step 201, a live encryption request for a target live broadcast room is obtained.
In step 202, an encrypted playback entry message is generated in accordance with the live encryption request.
The live broadcast encryption request may be actively confirmed by the server according to a preset type of the target live broadcast room, for example, the preset type of the target live broadcast room is a test type specially set in a scene such as a special test, and when it is detected that the type of the target live broadcast room is the preset type, the encryption request for the target live broadcast room is directly obtained.
Certainly, a client where the target live broadcast room is located may also actively send an anchor encryption request, as a possible implementation manner, when it is detected that the user is about to open the live broadcast room, an active popup window inquires whether to encrypt the broadcast, and when the user triggers a confirmation control in the popup window, the live broadcast encryption request is sent to the server.
As another possible implementation manner, only some users with permission are queried, and preset anchor user information with encrypted playing permission is preset, where the anchor user information may be information of a face image of an anchor, a user account, and the like, which can uniquely locate an anchor user.
And before entering a live broadcast room, if the trigger of the user on the encryption control is obtained, obtaining user information of the corresponding user, and if the user information is determined to belong to the preset anchor user information, considering that the user has the encryption permission, and sending a live broadcast encryption request to a server.
Or, in the live broadcast process of the anchor user, if the anchor user is detected to trigger a preset encryption control in a live broadcast room interface or send a voice encryption instruction and the like, acquiring the anchor user information of the anchor user, and if the anchor user information is determined to belong to the preset anchor user information, considering that the anchor user has an encryption authority, and sending a live broadcast encryption request to the server.
As another possible implementation manner, the random encryption request of the user is satisfied, a trigger condition of the encryption playing request is set, the trigger condition may be a voice keyword, a gesture password, a trigger operation of a corresponding control, and the like, and when the anchor user is in the anchor process and the behavior data meets the trigger condition, the live encryption request is sent to the server.
In this embodiment, the encrypted time point may be sent to the server at the same time, so that only the live data after the time point when the trigger condition starts to be satisfied is encrypted, the previous live data is disclosed, and all the live data may also be encrypted according to the setting of the user.
Further, an encrypted playing entry message is generated according to the live broadcast encryption request.
In some possible examples, the encrypted playback entry message is in a form related to an encryption manner, and thus, an encryption manner corresponding to the live encryption request is determined, wherein the encryption manner may include that the personal homepage is visible, all are visible, none are visible, and the like.
In an embodiment of the disclosure, when an encryption request sent by a client and directed to a target live broadcast room is obtained, an encryption mode selection message is sent to the client, the encryption mode selection message may be in a voice form or a popup window form, and then an encryption mode fed back by the client according to the encryption mode selection message is obtained.
As shown in fig. 5, when the anchor user triggers the control corresponding to the live broadcast encryption request, an encryption mode setting interface corresponding to the anchor user may be provided at the client, where the encryption mode setting interface includes controls of multiple encryption modes, so that the anchor user may send the corresponding encryption mode to the service according to the trigger operation of the anchor user on the encryption mode.
When the encryption mode is homepage encryption, acquiring a cover image of a live broadcast room of a target live broadcast room, and taking the cover image of the live broadcast room as an encrypted playing entry message, wherein the cover image of the live broadcast room can be set by a main broadcast user at a client, can also be randomly matched by a server in a preset gallery, and the like.
And when the encryption mode is stream address encryption, acquiring play address information of a target live broadcast room, and encrypting the play address information according to a preset encryption algorithm to generate the encrypted play entry message.
It is to be understood that stream address encryption may be understood as "totally invisible" in the above-described encryption manner, thereby further reducing exposure of live data.
In this embodiment, the play address information of the target live broadcast room is obtained, where the play address information may be understood as a stream address carrying plaintext information of live broadcast data of the target live broadcast room, and encrypted address information is generated by encrypting the play address information according to a preset encryption algorithm, where the encrypted address information may be understood as link information such as a password not carrying plaintext information of live broadcast data, where the preset encryption algorithm may be any password generation algorithm in the prior art, and is not listed here. Therefore, the encrypted address information does not carry plaintext information of live data, and the leakage risk of the live data is reduced.
Naturally, different visible ranges corresponding to different encryption manners are different, for example, a guest visible range corresponding to a homepage decryption manner is the homepage visible range, and the like, so as to better adapt to the encryption manner, a corresponding display position may be determined for the encryption manner, wherein, when the encryption manner is the homepage encryption, the corresponding display position is the homepage where the target live broadcast room is located, and when the encryption manner is the stream address encryption, the corresponding display position is the platform information of the viewing user terminal to be shared, such as WeChat or QQ, and the like, wherein, when the encryption manner is the stream address encryption, the corresponding display position may be determined by the active user in the client and then sent to the server, or the server may be determined according to a default receiving display position of the corresponding viewing terminal, wherein, when the display position is determined by the server, the server needs to request the client of the active user to send the client identification information of the viewing user, and storing the corresponding relation between the client identification information of the watching user and the default display position.
In summary, the live data sending method according to the embodiment of the present disclosure can reduce exposure to the broadcast entry message from multiple channels, and ensure privacy and security of the live data.
The following description focuses on the client side.
Specifically, fig. 6 is a flowchart of a method for playing live data according to an embodiment of the present disclosure, and as shown in fig. 6, the method includes:
in step 301, an encrypted playback entry message sent by the server is obtained and displayed.
In the embodiment, only the encrypted playing entry message sent by the server is displayed, instead of displaying the corresponding live data, so that the privacy of the live data is protected.
In step 302, when a trigger operation for the encrypted playback entry message is acquired, an acquisition request for live data is sent to the server.
The trigger operation is related to the display form of the playing entry message, when the playing entry message is in a picture form such as a video cover and the like, the corresponding trigger operation is a click operation or a long-time press operation and the like, and when the playing entry message is in a password link form and the like, the corresponding trigger operation is a click operation, or the corresponding password link is copied and the corresponding live application is opened and the like.
In step 303, the display server sends the decryption hint message fed back according to the acquisition request, and sends the decryption parameters input according to the decryption hint message to the server.
In this embodiment, after detecting the trigger operation of the client of the viewing user on the play entry message, the decryption prompting message is displayed instead of directly displaying the corresponding live data, so as to indicate the viewing user to input the decryption parameter for viewing.
In different application scenarios, the decryption prompting message has different forms, and the following examples are illustrated:
example one:
in this example, the decryption prompt message is a corresponding password input interface, for example, as shown in fig. 7, when the encryption parameter is an encryption password, the decryption prompt message is a password input interface, and the user inputs the decryption parameter on the password input interface, where, with reference to fig. 7, when the decryption parameter is input incorrectly, the password error prompt message may also be displayed, in this embodiment, when the decryption parameter input incorrectly reaches a preset number of times, the corresponding viewing user is denied to view, that is, the user account corresponding to the viewing user will not provide the decryption prompt message, nor respond to the user's trigger operation on the encrypted play entry message.
Example two:
in this example, the decryption prompting message includes anchor information of the target live broadcast room and information of the form of the encryption parameter, such as whether the prompting secret parameter is a gesture password or a voice password, and then, after a confirmation operation of the user on the decryption prompting message is detected, a decryption parameter input interface is popped up for the viewing user to input the corresponding decryption parameter on the decryption parameter input interface. The confirmation operation may be sending a voice instruction with a "confirmation" keyword, or executing a preset gesture action on the interface of the corresponding live application.
Certainly, in some possible examples, in order to further improve the viewing efficiency of live data in a target live broadcast room, and avoid that corresponding viewing users can view live data only by manually inputting decryption parameters, white list client identification information may also be set, and corresponding live data may be directly displayed for client identification information (which may also be understood as account information of the viewing user) in the white list client identification information.
And if the server determines that the client identification information does not belong to the preset white list client identification information, sending a decryption prompt message to the client.
In this embodiment, client identification information is sent to the server, and if the server determines that the client identification information does not belong to the preset white list client identification information, the server directly displays the corresponding live broadcast data if the client of the viewing user belongs to the white list client identification information.
In step 304, live broadcast data corresponding to the encrypted play entry message and fed back by the server are received and displayed, wherein the server feeds back the live broadcast data when judging that the decryption parameter meets the decryption condition corresponding to the encrypted play entry message.
In this embodiment, when the server determines that the decryption parameter satisfies the decryption condition corresponding to the encrypted playback entry message, the server feeds back the live data, and receives and displays the live data corresponding to the encrypted playback entry message, which is fed back by the server.
In summary, the method for playing the live broadcast data according to the embodiment of the present disclosure acquires and displays an encrypted broadcast entry message sent by a server, sends an acquisition request of the live broadcast data to the server when a trigger operation on the encrypted broadcast entry message is acquired, further displays a decryption prompt message fed back by the server according to the acquisition request, and sends a decryption parameter input according to the decryption prompt message to the server, and finally receives and displays the live broadcast data corresponding to the encrypted broadcast entry message and fed back by the server, where the server feeds back the live broadcast data when determining that the decryption parameter satisfies a decryption condition corresponding to the encrypted broadcast entry message. Therefore, for the client, the corresponding live broadcast data can be watched only when the correct decryption parameters are input, privacy protection of the live broadcast data in a live broadcast scene is realized, and the live broadcast application scene is expanded.
Based on the above embodiment, the encrypted playing entry message also carries the corresponding display position, so that the encrypted playing entry message sent by the server and the display position corresponding to the encrypted playing entry message are obtained, and the encrypted playing entry message is displayed according to the display position.
When the encrypted playing entry message is generated by the server encrypting the playing address information according to a preset encryption algorithm, the copying operation of the encrypted playing entry message at the display position is obtained, and when the opening operation of the direct playing application after the copying operation is obtained, the triggering operation of the encrypted playing entry message is obtained.
For example, when the display position is WeChat, when the connection of the watching user in the client copy WeChat is acquired and the corresponding live application is opened within the preset time, the copy operation of the encrypted play entry message corresponding to the display position is acquired.
In summary, according to the method for playing the live broadcast data in the embodiment of the present disclosure, the watching user can enter the corresponding live broadcast room to watch the live broadcast data based on the encrypted playing entry messages at different display positions, so that the watching requirement of the user is met while the privacy of the live broadcast data is ensured, and the small-range exposure of the live broadcast data is realized.
In order to implement the foregoing embodiment, an embodiment of the present disclosure further provides a device for sending live data. Fig. 8 is a schematic structural diagram of a transmission apparatus of live data according to an embodiment of the present disclosure, and as shown in fig. 8, the transmission apparatus of live data includes: a first sending module 110, a second sending module 120, a first obtaining module 130, a judging module 140 and a third sending module 150, wherein,
a first sending module 110, configured to generate an encrypted playback entry message of a target live broadcast room, and send the encrypted playback entry message to a client;
a second sending module 120, configured to send a decryption prompting message to the client when receiving an acquisition request of the client for live data of the encrypted playback entry message;
a first obtaining module 130, configured to obtain a decryption parameter fed back by the client according to the decryption prompting message;
a determining module 140 configured to determine whether the decryption parameter satisfies a decryption condition corresponding to the encrypted playback entry message;
a third sending module 150, configured to send live data corresponding to the encrypted playback entry message to the client when the decryption parameter satisfies the decryption condition.
In an embodiment of the present disclosure, the determining module 140 is specifically configured to:
inquiring a preset database, and acquiring an encryption parameter corresponding to the encrypted playing entry message;
and judging whether the decryption parameters are the same as the encryption parameters.
In an embodiment of the present disclosure, the determining module 140 is specifically configured to:
acquiring user identification information and live broadcast room identification information of the target live broadcast room;
calculating the user identification information and the live broadcast room identification information through a preset algorithm to obtain an encrypted password corresponding to the target live broadcast room;
and judging whether the decryption parameter is the same as the encryption password.
In an embodiment of the present disclosure, the determining module 140 is specifically configured to:
extracting the parameter characteristics of the decryption parameters;
and judging whether the parameter characteristics are matched with preset parameter characteristics.
In one embodiment of the present disclosure, as shown in fig. 9, on the basis of fig. 8, the apparatus further includes a second obtaining module 160, a second determining module 170, wherein,
a second obtaining module 160 configured to obtain client identification information corresponding to the client;
a second determining module 170 configured to determine that the client identification information does not belong to a preset white list of client identification information.
In summary, the apparatus for sending live broadcast data according to the embodiment of the present disclosure generates an encrypted broadcast entry message of a target live broadcast room, sends the encrypted broadcast entry message to a client, sends a decryption prompt message to the client when receiving an acquisition request of the client for live broadcast data of the encrypted broadcast entry message, acquires a decryption parameter fed back by the client according to the decryption prompt message, further determines whether the decryption parameter satisfies a decryption condition corresponding to the encrypted broadcast entry message, and finally sends live broadcast data corresponding to the encrypted broadcast entry message to the client when the decryption parameter satisfies the decryption condition. Therefore, privacy protection of live broadcast data in a live broadcast scene is realized, and the live broadcast application scene is expanded.
In actual execution, in order to further protect the privacy of the live data in the target live broadcast room, the form of encrypting and playing the entry message can be flexibly set, so as to further reduce the exposure rate of the live data in the target live broadcast room.
In an embodiment of the present disclosure, the first sending module 110 is specifically configured to:
acquiring a live broadcast encryption request aiming at the target live broadcast room;
and generating the encrypted playing entrance message according to the live broadcast encryption request.
In an embodiment of the present disclosure, the first sending module 110 is specifically configured to:
determining an encryption mode corresponding to the live broadcast encryption request;
when the encryption mode is homepage encryption, acquiring a cover image of a live broadcast room of the target live broadcast room, and taking the cover image of the live broadcast room as the encrypted playing entrance message;
and when the encryption mode is stream address encryption, acquiring play address information of the target live broadcast room, and encrypting the play address information according to a preset encryption algorithm to generate the encrypted play entry message.
In an embodiment of the present disclosure, the first sending module 110 is specifically configured to:
when an encryption request which is sent by the client and aims at the target live broadcast room is obtained, an encryption mode selection message is sent to the client;
and acquiring the encryption mode fed back by the client according to the encryption mode selection message.
In one embodiment of the present disclosure, as shown in fig. 10, the apparatus further includes a first determining module 180, based on the apparatus shown in fig. 8, wherein,
a first determining module 180, configured to determine a display position corresponding to the encryption manner;
the first sending module 110 is specifically configured to send the display position of the encrypted playback entry message to the client.
In conclusion, the sending device of the live data in the embodiment of the disclosure can reduce the exposure of the playing entry message from multiple channels, and ensures the privacy and safety of the live data.
In order to implement the above embodiment, the present disclosure further provides a playback apparatus for live data. Fig. 11 is a schematic structural diagram of a playback apparatus for live data according to an embodiment of the present application, where as shown in fig. 11, the playback apparatus for live data includes: a first display module 210, a fourth transmission module 220, a fifth transmission module 230, and a second display module 240, wherein,
a first display module 210 configured to acquire and display an encrypted play entry message sent by a server;
a fourth sending module 220, configured to send an obtaining request of live broadcast data to the server when a trigger operation on the encrypted play entry message is obtained;
a fifth sending module 230, configured to display a decryption prompting message fed back by the server according to the acquisition request, and send a decryption parameter input according to the decryption prompting message to the server;
a second display module 240 configured to receive and display live broadcast data corresponding to the encrypted playback entry message, which is fed back by the server, wherein the live broadcast data is fed back by the server when it is determined that the decryption parameter meets the decryption condition corresponding to the encrypted playback entry message.
In one embodiment of the present disclosure, as shown in fig. 12, on the basis as shown in fig. 11, the apparatus further includes: a sixth transmitting module 250 and a receiving module 260, wherein,
a sixth transmitting module 250 configured to transmit the client identification information to the server;
a receiving module 260 configured to receive the decryption input message fed back by the server, wherein the server sends the decryption input message to the client when determining that the client identification information does not belong to the preset white list client identification information.
In summary, the apparatus for sending live broadcast data according to the embodiment of the present disclosure generates an encrypted broadcast entry message of a target live broadcast room, sends the encrypted broadcast entry message to a client, sends a decryption prompt message to the client when receiving an acquisition request of the client for live broadcast data of the encrypted broadcast entry message, acquires a decryption parameter fed back by the client according to the decryption prompt message, further determines whether the decryption parameter satisfies a decryption condition corresponding to the encrypted broadcast entry message, and finally sends live broadcast data corresponding to the encrypted broadcast entry message to the client when the decryption parameter satisfies the decryption condition. Therefore, privacy protection of live broadcast data in a live broadcast scene is realized, and the live broadcast application scene is expanded.
In actual execution, in order to further protect the privacy of the live data in the target live broadcast room, the form of encrypting and playing the entry message can be flexibly set, so as to further reduce the exposure rate of the live data in the target live broadcast room.
In an embodiment of the present disclosure, the first display module 210 is specifically configured to:
acquiring the encrypted playing entry message sent by the server and a display position corresponding to the encrypted playing entry message;
and displaying the encrypted playing entry message according to the display position.
When the encrypted play entry message is generated by the server encrypting the play address information according to a preset encryption algorithm, the fourth sending module 220 is specifically configured to:
obtaining the copy operation of the encrypted playing entry message at the display position;
and when the opening operation of the live broadcast application after the copying operation is acquired, acquiring the triggering operation of the encrypted playing entry message.
In summary, the playing device for live broadcast data in the embodiment of the present disclosure enables a viewing user to enter a corresponding live broadcast room to view live broadcast data based on encrypted play entry messages in different display positions, thereby satisfying the viewing requirements of the user while ensuring the privacy of the live broadcast data, and realizing the small-scale exposure of the live broadcast data.
In order to realize the above embodiment, the present disclosure further provides an electronic device. Fig. 13 is a block diagram of an electronic device proposed according to the present disclosure.
As shown in fig. 13, the electronic device 2000 includes:
a memory 2010 and a processor 2020, a bus 2030 connecting the different components (including the memory 2010 and the processor 2020), the memory 2010 storing a computer program, the program being executed by the processor 2020 to implement the method for playing or sending live data according to the embodiments of the present disclosure.
Bus 2030 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The electronic device 2000 typically includes a variety of electronic device readable media. Such media may be any available media that is accessible by electronic device 2000 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 2010 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)2040 and/or cache memory 2050. The electronic device 2000 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 2060 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 13, commonly referred to as a "hard disk drive"). Although not shown in FIG. 13, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 2030 through one or more data media interfaces. Memory 2010 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
Program/utility 2080, having a set (at least one) of program modules 2070, may be stored in, for example, memory 2010, such program modules 2070 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 2070 generally perform the functions and/or methods in the embodiments described in this disclosure.
The electronic device 2000 may also communicate with one or more external devices 2090 (e.g., keyboard, pointing device, display 2091, etc.), one or more devices that enable a user to interact with the electronic device 2000, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 2000 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 2092. Also, the electronic device 2000 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 2093. As shown in fig. 13, the network adapter 2093 communicates with the other modules of the electronic device 2000 over a bus 2030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 2000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 2020 executes various functional applications and data processing by executing programs stored in the memory 2010.
It should be noted that, for the implementation process and the technical principle of the electronic device of this embodiment, reference is made to the foregoing explanation on the method for playing or sending live data in the embodiment of the present disclosure, and details are not described here again.
In summary, the electronic device according to the embodiment of the present disclosure acquires and displays an encrypted playback entry message sent by a server, sends an acquisition request of live data to the server when acquiring a trigger operation on the encrypted playback entry message, further displays a decryption prompt message fed back by the server according to the acquisition request, sends a decryption parameter input according to the decryption prompt message to the server, and finally receives and displays live data corresponding to the encrypted playback entry message and fed back by the server, where the server feeds back the live data when determining that the decryption parameter satisfies a decryption condition corresponding to the encrypted playback entry message. Therefore, for the client, the corresponding live broadcast data can be watched only when the correct decryption parameters are input, privacy protection of the live broadcast data in a live broadcast scene is realized, and the live broadcast application scene is expanded.
In order to implement the above embodiments, the present disclosure also provides a storage medium.
Wherein the instructions in the storage medium, when executed by a processor of the electronic device, enable the electronic device to perform the method of playing or sending live data as described above.
To implement the above embodiments, the present disclosure also provides a computer program product, which when executed by a processor of an electronic device, enables the electronic device to execute the playing or sending method of live data as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for sending live broadcast data is applied to a server and is characterized by comprising the following steps:
generating an encrypted playing entry message of a target live broadcast room, and sending the encrypted playing entry message to a client;
when receiving an acquisition request of the client for the live broadcast data of the encrypted play entry message, sending a decryption prompt message to the client;
acquiring a decryption parameter fed back by the client according to the decryption prompt message;
judging whether the decryption parameters meet decryption conditions corresponding to the encrypted playing entry message;
and when the decryption parameters meet the decryption conditions, sending live broadcast data corresponding to the encrypted playing entry message to the client.
2. The method of claim 1, wherein generating the encrypted playback entry message for the target live broadcast room comprises:
acquiring a live broadcast encryption request aiming at the target live broadcast room;
and generating the encrypted playing entrance message according to the live broadcast encryption request.
3. The method of claim 2, wherein the generating the encrypted playback entry message in accordance with the live encryption request comprises:
determining an encryption mode corresponding to the live broadcast encryption request;
when the encryption mode is homepage encryption, acquiring a cover image of a live broadcast room of the target live broadcast room, and taking the cover image of the live broadcast room as the encrypted playing entrance message;
and when the encryption mode is stream address encryption, acquiring play address information of the target live broadcast room, and encrypting the play address information according to a preset encryption algorithm to generate the encrypted play entry message.
4. The method of claim 3, wherein the determining the encryption mode corresponding to the live encryption request comprises:
when an encryption request which is sent by the client and aims at the target live broadcast room is obtained, an encryption mode selection message is sent to the client;
and acquiring the encryption mode fed back by the client according to the encryption mode selection message.
5. A method for playing live data is applied to a client and is characterized by comprising the following steps:
acquiring and displaying an encrypted playing entry message sent by a server;
when the trigger operation of the encrypted playing entry message is acquired, sending a request for acquiring live broadcast data to the server;
displaying a decryption prompt message fed back by the server according to the acquisition request, and sending a decryption parameter input according to the decryption prompt message to the server;
and receiving and displaying live broadcast data corresponding to the encrypted playing entry message fed back by the server, wherein the server feeds back the live broadcast data when judging that the decryption parameter meets the decryption condition corresponding to the encrypted playing entry message.
6. A transmission device of live broadcast data is applied to a server and is characterized by comprising:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is configured to generate an encrypted playing entrance message of a target live broadcast room and send the encrypted playing entrance message to a client;
the second sending module is configured to send a decryption prompt message to the client when receiving an acquisition request of the client for the live broadcast data of the encrypted playing entry message;
a first obtaining module configured to obtain a decryption parameter fed back by the client according to the decryption prompt message;
the judging module is configured to judge whether the decryption parameters meet decryption conditions corresponding to the encrypted playing entry message;
and the third sending module is configured to send live broadcast data corresponding to the encrypted playing entry message to the client when the decryption parameter meets the decryption condition.
7. A playing device of live broadcast data is applied to a client and is characterized by comprising:
the first display module is configured to acquire and display the encrypted playing entry message sent by the server;
the fourth sending module is configured to send a request for obtaining live broadcast data to the server when the triggering operation on the encrypted playing entry message is obtained;
a fifth sending module, configured to display a decryption prompting message fed back by the server according to the acquisition request, and send a decryption parameter input according to the decryption prompting message to the server;
and the second display module is configured to receive and display live broadcast data corresponding to the encrypted playing entry message, which is fed back by the server, wherein the server feeds back the live broadcast data when judging that the decryption parameter meets the decryption condition corresponding to the encrypted playing entry message.
8. A playing system of live broadcast data is characterized by comprising a server and a client, wherein,
the server comprises a transmission device of live data according to claim 6;
the client comprises a playback device of live data as claimed in claim 7.
9. An electronic device, comprising:
a processor;
a memory configured to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement a method of transmitting live data according to any one of claims 1-4 or a method of playing live data according to claim 5.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of transmitting live data as claimed in any one of claims 1 to 4, or a method of playing live data as claimed in claim 5.
CN202010819776.1A 2020-08-14 2020-08-14 Method, device and system for sending and playing live broadcast data Active CN112135166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010819776.1A CN112135166B (en) 2020-08-14 2020-08-14 Method, device and system for sending and playing live broadcast data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010819776.1A CN112135166B (en) 2020-08-14 2020-08-14 Method, device and system for sending and playing live broadcast data

Publications (2)

Publication Number Publication Date
CN112135166A true CN112135166A (en) 2020-12-25
CN112135166B CN112135166B (en) 2022-03-25

Family

ID=73851636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010819776.1A Active CN112135166B (en) 2020-08-14 2020-08-14 Method, device and system for sending and playing live broadcast data

Country Status (1)

Country Link
CN (1) CN112135166B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365097A (en) * 2021-08-10 2021-09-07 北京达佳互联信息技术有限公司 Live broadcast information stream processing method, device and system, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120166627A1 (en) * 2010-12-28 2012-06-28 Stephen Kraiman Monitoring and managing a http session independent of client and server configurations
CN104394432A (en) * 2014-11-26 2015-03-04 广州华多网络科技有限公司 Video studio creating method and service device
CN106534876A (en) * 2016-10-11 2017-03-22 北京小米移动软件有限公司 Target user determining method and target user determining device
CN106792034A (en) * 2017-02-10 2017-05-31 深圳创维-Rgb电子有限公司 Live method and mobile terminal is carried out based on mobile terminal
CN109688480A (en) * 2019-01-14 2019-04-26 广州虎牙信息科技有限公司 A kind of live broadcasting method, terminal device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120166627A1 (en) * 2010-12-28 2012-06-28 Stephen Kraiman Monitoring and managing a http session independent of client and server configurations
CN104394432A (en) * 2014-11-26 2015-03-04 广州华多网络科技有限公司 Video studio creating method and service device
CN106534876A (en) * 2016-10-11 2017-03-22 北京小米移动软件有限公司 Target user determining method and target user determining device
CN106792034A (en) * 2017-02-10 2017-05-31 深圳创维-Rgb电子有限公司 Live method and mobile terminal is carried out based on mobile terminal
CN109688480A (en) * 2019-01-14 2019-04-26 广州虎牙信息科技有限公司 A kind of live broadcasting method, terminal device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
微赞雷雷: "如何玩转加密直播", 《HTTPS://WWW.WEIZAN.CN/T/D-2859050》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365097A (en) * 2021-08-10 2021-09-07 北京达佳互联信息技术有限公司 Live broadcast information stream processing method, device and system, electronic equipment and storage medium
CN113365097B (en) * 2021-08-10 2021-12-07 北京达佳互联信息技术有限公司 Live broadcast information stream processing method, device and system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112135166B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN110011958B (en) Information encryption method and device, computer equipment and storage medium
CN106251278B (en) A kind of image encryption domain reversible information hidden method based on histogram feature
CN101529366B (en) Identification and visualization of trusted user interface objects
US9235732B2 (en) Secure communication methods
US10110374B2 (en) Preventing pattern recognition in electronic code book encryption
WO2007005909A2 (en) Methods and apparatus for authentication of content delivery and playback applications
US20100313028A1 (en) Electronic Signature Method and Electronic Signature Tool
US20140351583A1 (en) Method of implementing a right over a content
US9356787B2 (en) Secure communication architecture including sniffer
US11245530B2 (en) System and method for secure communication
US9454677B1 (en) Secure communication architecture including video sniffer
CN110262908A (en) A kind of processing method and processing device of shear plate data
CN110008718A (en) A kind of image processing method and terminal
CN112135166B (en) Method, device and system for sending and playing live broadcast data
CN112243000B (en) Application data processing method and device, computer equipment and storage medium
CN108900472B (en) Information transmission method and device
CN108052828B (en) Method and device for generating screen recording file, terminal and storage medium
CN115333865B (en) Client data security management method of video conference system
CN111177770B (en) Sensitive information protection method, mobile equipment and storage device
CN103650459A (en) Information presentation method and equipment
KR100838488B1 (en) The method and apparatus for protecting identification data using one-time and altered identification data generation mechanism, need not to install the program for preventing keystroke hacking on user computer
CN106156571B (en) Encrypting fingerprint tool, encrypting fingerprint tool encrypting and deciphering system and encipher-decipher method
CN113904865A (en) Log transmission method and device based on asymmetric algorithm
WO2019136496A1 (en) System and method for secure communication
US20110288976A1 (en) Total computer security

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