CN109218757B - Method and equipment for displaying special effect of virtual gift - Google Patents

Method and equipment for displaying special effect of virtual gift Download PDF

Info

Publication number
CN109218757B
CN109218757B CN201710522432.2A CN201710522432A CN109218757B CN 109218757 B CN109218757 B CN 109218757B CN 201710522432 A CN201710522432 A CN 201710522432A CN 109218757 B CN109218757 B CN 109218757B
Authority
CN
China
Prior art keywords
special effect
virtual gift
target
target virtual
rendering function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710522432.2A
Other languages
Chinese (zh)
Other versions
CN109218757A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710522432.2A priority Critical patent/CN109218757B/en
Publication of CN109218757A publication Critical patent/CN109218757A/en
Application granted granted Critical
Publication of CN109218757B publication Critical patent/CN109218757B/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/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • H04N21/2351Processing of additional data, e.g. scrambling of additional data or processing content descriptors involving encryption of additional data
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4353Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving decryption of additional data
    • 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/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • 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/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method and equipment for displaying a special effect of a virtual gift, wherein the method comprises the following steps: receiving a virtual gift message sent by a server accessed by the anchor terminal equipment, wherein the virtual gift message comprises an identifier of a target virtual gift given by a viewer and a target key used for decrypting a target special effect rendering function corresponding to the target virtual gift; reading out the encrypted target special effect rendering function based on the identification of the target virtual gift; decrypting the encrypted target special effect rendering function by using the target key; running the target special effect rendering function; encoding the special effect of the target virtual gift and the live video collected by the anchor end into a video stream; and sending the video stream to the server so that the server sends the video stream to a plurality of audience devices accessing the server.

Description

Method and equipment for displaying special effect of virtual gift
Technical Field
The invention relates to the technical field of computers, in particular to a method and equipment for displaying a special effect of a virtual gift.
Background
In webcasts, viewers purchase virtual gifts to be gifted to the anchor. Some virtual gifts have dynamic special effects, such as flower blooms or fireworks blooms. The process of gifting a virtual gift having a special effect includes: the method comprises the following steps that a spectator purchases a virtual gift at spectator end equipment, and the spectator end equipment sends a message of the purchased virtual gift to a server; then, the server sends the message of the purchased virtual gift to the host terminal equipment; then, rendering a special effect by the main broadcasting terminal equipment based on the message of the virtual gift; then, the anchor end encodes the special effect and the live video together into a video stream and sends the video stream to a server; and then the server sends the video stream to each spectator terminal device for playing, so that all spectators can see the live video and the special effect of the virtual gift.
In the above process, in legal situations, the viewer presents the virtual gift to generate the corresponding special effect, and how many times the viewer presents the virtual gift to generate the special effect.
However, some anchor broadcasters make sense of fraud, and falsely display the special effect to the user under the condition that no audience presents gifts, or falsely and repeatedly display the special effect of a single virtual gift, so that not only is network resources wasted, but also the information security of website live broadcast is more unfavorable.
Disclosure of Invention
The embodiment of the invention provides a method and equipment for displaying the special effect of a virtual gift, which are used for avoiding the problem that a host falsely displays the special effect of the virtual gift.
In a first aspect, the present invention provides a method for displaying special effects of virtual gifts, which is applied to a host device, where the host device stores N encrypted special effect rendering functions, each special effect rendering function is used to render a special effect of a virtual gift, each encrypted special effect rendering function is stored in correspondence with an identifier of each virtual gift, N is a positive integer, and the method includes:
receiving a virtual gift message sent by a server accessed by the anchor terminal equipment, wherein the virtual gift message comprises an identifier of a target virtual gift given by a viewer and a target key used for decrypting a target special effect rendering function corresponding to the target virtual gift;
reading out the encrypted target special effect rendering function based on the identification of the target virtual gift;
decrypting the encrypted target special effect rendering function by using the target key to obtain the target special effect rendering function;
running the target special effect rendering function to render the special effect of the target virtual gift;
encoding the special effect of the target virtual gift and the live video collected by the main broadcasting end equipment into a video stream;
and sending the video stream to the server, so that the server sends the video stream to a plurality of audience devices accessing the server, and the plurality of audience devices display the special effect of the target virtual gift and a live video based on the video stream.
Optionally, after the running of the target special effect rendering function, the method further includes:
deleting the target key;
and releasing the target special effect rendering function.
Optionally, the method further includes:
acquiring the decryption times for decrypting the target special effect rendering function and/or the operation times for operating the target special effect rendering function;
and sending the decryption times and/or the operation times to the server so that the server judges whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times, and sending the video stream to a plurality of pieces of audience equipment accessed to the server when the special effect of the target virtual gift in the video stream is legal.
In a second aspect, the present invention provides a method for displaying special effects of virtual gifts, which is applied to a server, a host device and a plurality of audience devices, wherein the server is accessed to the server, the server stores N keys, the host device stores N encrypted special effect rendering functions, each key is used for decrypting one encrypted special effect rendering function, each special effect rendering function is used for rendering a special effect of one virtual gift, each encrypted special effect rendering function is stored corresponding to an identifier of each virtual gift, and N is a positive integer, the method includes:
receiving a gifting message which is sent by the audience terminal equipment and represents the gifting of the anchor target virtual gift;
determining an identifier of the target virtual gift based on the gifting message, and determining a target key for decrypting a target special effect rendering function corresponding to the target virtual gift;
obtaining a virtual gift message comprising an identification of the target virtual gift and the target key;
sending the virtual gift message to the anchor terminal device, so that the anchor terminal device reads the encrypted target special effect rendering function based on the identifier of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key to obtain the decrypted target special effect rendering function, runs the target special effect rendering function to render the special effect of the target virtual gift, encodes the special effect of the target virtual gift and the live video collected by the anchor terminal into a video stream, and sends the video stream to the server;
receiving the video stream sent by the anchor terminal equipment;
and sending the video stream to a plurality of the spectator end devices so that the plurality of the spectator end devices display the special effect of the target virtual gift and the live video based on the video stream.
Optionally, after receiving a gifting message indicating that a target virtual gift of a anchor is gifted, the method further includes:
inquiring the virtual gift purchased by the audience corresponding to the audience terminal equipment based on the presentation message;
determining whether the virtual gift purchased by the viewer includes the target virtual gift;
if the virtual gift purchased by the viewer includes the target virtual gift, performing the step of determining an identification of the target virtual gift and a target key corresponding to the target virtual gift based on the gifting message;
if the virtual gift purchased by the viewer does not include the target virtual gift, determining that the gifting message is illegal, not performing the step of determining the identification of the target virtual gift and the target key corresponding to the target virtual gift based on the gifting message.
Optionally, after receiving the video stream sent by the anchor device, the method further includes:
receiving the decryption times of the anchor terminal equipment decrypting the target special effect rendering function and/or the running times of running the target special effect rendering function, which are sent by the anchor terminal equipment;
judging whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times;
and when the special effect of the target virtual gift in the video stream is legal, executing the step of sending the video stream to a plurality of audience devices accessing the server.
Optionally, determining whether the special effect of the target virtual gift in the video stream is legal based on the decryption times and/or the operation times includes:
judging whether the decryption times are smaller than a first preset time or not; when the decryption times are less than the first preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the decryption times are larger than or equal to the first preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or
Judging whether the operation times are less than a second preset time or not; when the running times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the running times are larger than or equal to the second preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or
Judging whether the decryption times are smaller than a first preset time or not, and judging whether the operation times are smaller than a second preset time or not; when the decryption times are less than the first preset times and the operation times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are larger than or equal to the first preset times and/or the operation times are larger than or equal to the second preset times, indicating that the special effect of the target virtual gift in the video stream is illegal.
Optionally, before determining whether the special effect of the target virtual gift in the video stream is legal based on the decryption times and/or the operation times, the method further includes:
acquiring the number of the target virtual gifts presented by the anchor;
judging whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times, wherein the judging step comprises the following steps:
judging whether the decryption times are equal to the number of the target virtual gifts or not; when the decryption times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the decryption times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or
Judging whether the running times are equal to the number of the target virtual gifts or not; when the running times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the number of the operation times is not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or
Judging whether the decryption times and the operation times are equal to the number of the target virtual gifts or not; when the decryption times and the operation times are equal to the number of the target virtual gifts, the fact that the special effect of the target virtual gifts in the video stream is legal is shown; and when the decryption times and/or the operation times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal.
Optionally, determining whether the special effect of the target virtual gift in the video stream is legal based on the decryption times and/or the operation times includes:
judging whether the decryption times are equal to the operation times or not; when the decryption times are equal to the operation times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are not equal to the operation times, indicating that the special effect of the target virtual gift in the video stream is illegal.
In a third aspect, the present invention provides a anchor terminal device, where N encrypted special effect rendering functions are stored in the anchor terminal device, each special effect rendering function is used to render a special effect of a virtual gift, each encrypted special effect rendering function is stored in correspondence with an identifier of each virtual gift, where N is a positive integer, and the anchor terminal device includes:
a receiving module, configured to receive a virtual gift message sent by a server accessed by the anchor device, where the virtual gift message includes an identifier of a target virtual gift given by a viewer and a target key used to decrypt a target special effect rendering function corresponding to the target virtual gift;
a reading module, configured to read out the encrypted target special effect rendering function based on the identifier of the target virtual gift;
the decryption module is used for decrypting the encrypted target special effect rendering function by using the target key to obtain the target special effect rendering function;
the rendering module is used for operating the target special effect rendering function so as to render the special effect of the target virtual gift;
the encoding module is used for encoding the special effect of the target virtual gift and the live video collected by the main broadcasting end equipment into video streams;
the first sending module is used for sending the video stream to the server so that the server sends the video stream to a plurality of audience devices accessing the server, and the plurality of audience devices display the special effect of the target virtual gift and a live video based on the video stream.
Optionally, the anchor device further includes:
a deletion module for deleting the target key after the target special effect rendering function is run;
and the release module is used for releasing the target special effect rendering function.
Optionally, the anchor device further includes:
an obtaining module, configured to obtain a decryption time for decrypting the target special effect rendering function and/or a running time for running the target special effect rendering function;
a second sending module, configured to send the decryption frequency and/or the operation frequency to the server, so that the server determines, based on the decryption frequency and/or the operation frequency, whether a special effect of a target virtual gift in the video stream is legal, and sends the video stream to a plurality of pieces of audience equipment accessing the server when the special effect of the target virtual gift in the video stream is legal.
In a fourth aspect, the present invention provides a server, to which a anchor device and a plurality of viewer devices access, where the server stores N keys, the anchor device stores N encrypted special effect rendering functions, each key is used to decrypt one encrypted special effect rendering function, each special effect rendering function is used to render a special effect of a virtual gift, each encrypted special effect rendering function is stored in correspondence with an identifier of each virtual gift, and N is a positive integer, and the server includes:
a first receiving module, configured to receive a gifting message that represents a gifting of a anchor virtual gift and is sent by the audience equipment;
a determining module, configured to determine, based on the gifting message, an identifier of the target virtual gift, and a target key for decrypting a target special effect rendering function corresponding to the target virtual gift;
an obtaining module for obtaining a virtual gift message comprising an identification of the target virtual gift and the target key;
a first sending module, configured to send the virtual gift message to the anchor terminal device, so that the anchor terminal device reads the encrypted target special effect rendering function based on an identifier of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key, obtains the decrypted target special effect rendering function, runs the target special effect rendering function to render a special effect of the target virtual gift, encodes the special effect of the target virtual gift and a live video acquired by the anchor terminal into a video stream, and sends the video stream to the server;
a second receiving module, configured to receive the video stream sent by the anchor device;
and the second sending module is used for sending the video stream to a plurality of the spectator end devices so as to enable the plurality of the spectator end devices to display the special effect of the target virtual gift and the live video based on the video stream.
Optionally, the server further includes:
a third receiving module, configured to receive, after receiving the video stream sent by the anchor device, the decryption frequency for decrypting the target special effect rendering function and/or the operation frequency for operating the target special effect rendering function by the anchor device, where the decryption frequency and/or the operation frequency are sent by the anchor device;
the judging module is used for judging whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times;
and when the special effect of the target virtual gift in the video stream is legal, notifying the second sending module to execute the step of sending the video stream to a plurality of pieces of audience equipment accessing the server.
Optionally, the determining module is configured to determine whether the decryption frequency is less than a first preset frequency; when the decryption times are less than the first preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the decryption times are larger than or equal to the first preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or judging whether the operation times are less than a second preset time or not; when the running times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the running times are larger than or equal to the second preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or judging whether the decryption times are smaller than a first preset time or not, and judging whether the operation times are smaller than a second preset time or not; when the decryption times are less than the first preset times and the operation times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are larger than or equal to the first preset times and/or the operation times are larger than or equal to the second preset times, indicating that the special effect of the target virtual gift in the video stream is illegal.
Optionally, the server further includes:
an obtaining module, configured to obtain the number of target virtual gifts given by the anchor before determining whether the special effect of the target virtual gifts in the video stream is legal based on the decryption times and/or the operation times;
the judging module is used for judging whether the decryption times are equal to the number of the target virtual gifts or not; when the decryption times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the decryption times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or judging whether the running times are equal to the number of the target virtual gifts or not; when the running times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the number of the operation times is not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or judging whether the decryption times and the operation times are equal to the number of the target virtual gifts or not; when the decryption times and the operation times are equal to the number of the target virtual gifts, the fact that the special effect of the target virtual gifts in the video stream is legal is shown; and when the decryption times and/or the operation times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal.
Optionally, the judging module is configured to judge whether the decryption frequency is equal to the operation frequency; when the decryption times are equal to the operation times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are not equal to the operation times, indicating that the special effect of the target virtual gift in the video stream is illegal.
In a fifth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the first aspect.
In a sixth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the second aspects.
In a seventh aspect, the present invention provides a viewer side device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of the first aspect when executing the program.
In an eighth aspect, the present invention provides a server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of the second aspect when executing the program.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
in the technical scheme of the embodiment of the invention, N special effect rendering functions for rendering the special effect of the virtual gift are encrypted and stored in a main broadcasting terminal device, a key is stored in a server, N is a positive integer, the server determines the identifier of the target virtual gift based on a presentation message which is sent by audience terminal devices and represents the presentation message for presenting the main broadcasting target virtual gift, decrypts the target key of the target special effect rendering function corresponding to the target virtual gift, and then sends the virtual gift message comprising the identifier of the target virtual gift and the target key to the main broadcasting terminal device. The main broadcasting terminal equipment reads out the encrypted target special effect rendering function based on the identification of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key to obtain the decrypted target special effect rendering function, then operates the target special effect rendering function to render the special effect of the target virtual gift, codes the special effect of the target virtual gift and the live broadcast video collected by the main broadcasting terminal into video streams, and finally sends the video streams to the server, and the server sends the video streams to the plurality of audience terminal equipment so that the plurality of audience terminal equipment can display the special effect of the target virtual gift and the live broadcast video based on the video streams. Therefore, because the special effect rendering function in the main broadcasting terminal equipment is in an encrypted state, the server can decrypt and operate only when providing the corresponding key, and the key provided by the server is consistent with the virtual gift actually presented by the audience, so that the main broadcasting terminal equipment can only render the special effect of the virtual gift actually presented by the audience, cannot render the special effect of the virtual gift not presented by the audience, and cannot falsely display the special effect of the virtual gift for the audience to see, the technical problem of falsely displaying the special effect of the virtual gift is solved, the technical effect of avoiding the main broadcasting from falsely displaying the special effect of the virtual gift is realized, the waste of network resources is reduced, and the information safety is improved.
Drawings
FIG. 1 is a schematic diagram of a possible network architecture according to the present invention;
fig. 2 is a flowchart of a method for displaying a special effect of a virtual gift on a device side of an anchor terminal according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for displaying a special effect of a virtual gift on a server side according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an anchor device according to an embodiment of the present invention;
FIG. 5 is a block diagram of a server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another anchor device in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of another server in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and equipment for displaying the special effect of a virtual gift, which are used for avoiding the problem that a host falsely displays the special effect of the virtual gift.
In order to solve the technical problems, the technical scheme provided by the invention has the following general idea:
in the technical scheme of the embodiment of the invention, N special effect rendering functions for rendering the special effect of the virtual gift are encrypted and stored in a main broadcasting terminal device, a key is stored in a server, N is a positive integer, the server determines the identifier of the target virtual gift based on a presentation message which is sent by audience terminal devices and represents the presentation message for presenting the main broadcasting target virtual gift, decrypts the target key of the target special effect rendering function corresponding to the target virtual gift, and then sends the virtual gift message comprising the identifier of the target virtual gift and the target key to the main broadcasting terminal device. The main broadcasting terminal equipment reads out the encrypted target special effect rendering function based on the identification of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key to obtain the decrypted target special effect rendering function, then operates the target special effect rendering function to render the special effect of the target virtual gift, codes the special effect of the target virtual gift and the live broadcast video collected by the main broadcasting terminal into video streams, and finally sends the video streams to the server, and the server sends the video streams to the plurality of audience terminal equipment so that the plurality of audience terminal equipment can display the special effect of the target virtual gift and the live broadcast video based on the video streams. Therefore, because the special effect rendering function in the main broadcasting terminal equipment is in an encrypted state, the server can decrypt and operate only when providing the corresponding key, and the key provided by the server is consistent with the virtual gift actually presented by the audience, so that the main broadcasting terminal equipment can only render the special effect of the virtual gift actually presented by the audience, cannot render the special effect of the virtual gift not presented by the audience, and cannot falsely display the special effect of the virtual gift for the audience to see, the technical problem of falsely displaying the special effect of the virtual gift is solved, the technical effect of avoiding the main broadcasting from falsely displaying the special effect of the virtual gift is realized, the waste of network resources is reduced, and the information safety is improved.
The technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are described in detail in the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The invention provides a method for displaying the special effect of a virtual gift. In order to introduce a method of displaying a special effect of a virtual gift, a network architecture to which the method can be applied will be first introduced. Please refer to fig. 1, which is a schematic diagram of a possible network architecture according to the present invention.
Specifically, as shown in fig. 1, in the webcast, there may be one or more anchor devices (only one is shown in fig. 1), and the anchor device shown in fig. 1 is described later, and the method performed by the rest of the anchor devices is similar. There may be zero, one, or more viewer-side devices. The anchor terminal equipment and the audience terminal equipment are both accessed to the server through the network. For convenience of description, it is assumed that one or more audience devices accessing the server receive the video stream transmitted by the main broadcast device in fig. 1, in other words, one or more audiences watch live broadcasts of the same main broadcast at the one or more audience devices.
Each viewer may purchase a virtual gift through their viewer-side device and gift the purchased virtual gift to the anchor. In the related art, the server notifies the host device according to the type and amount of virtual gifts actually presented by the viewers. Under normal conditions, the anchor terminal equipment calls and runs a special effect rendering function corresponding to the virtual gift type actually given by the audience to render the special effect of the virtual gift according to the notification of the server, and the calling times are consistent with the number of the virtual gifts given by the audience.
Next, a method of displaying a special effect of a virtual gift on the side of the host apparatus will be described first. Referring to fig. 2, a flowchart of a method for displaying a special effect of a virtual gift on a host device side is shown. The method comprises the following steps:
s101: receiving a virtual gift message sent by a server accessed by the anchor terminal equipment;
s102: reading out the encrypted target special effect rendering function based on the identification of the target virtual gift;
s103: decrypting the encrypted target special effect rendering function by using the target key to obtain the target special effect rendering function;
s104: running the target special effect rendering function to render the special effect of the target virtual gift;
s105: encoding the special effect of the target virtual gift and the live video collected by the main broadcasting end equipment into a video stream;
s106: and sending the video stream to the server.
In the embodiment of the present invention, the anchor device stores N encrypted special effect rendering functions. N is a positive integer, such as 1, 3, or 10, etc., and the present invention is not particularly limited. The number of encrypted special effect rendering functions stored by the anchor device is consistent with the number of virtual gifts with special effects provided by the server. The server sets a unique identifier for each virtual gift in advance and synchronizes the identifier of each virtual gift to the host device. And the anchor terminal equipment correspondingly stores each encrypted special effect rendering function according to the identification of the virtual gift. And then the rendered virtual gift special effect and the live video collected by the main broadcasting end equipment are encoded into video streams and sent to the server. The server sends the video stream to all the audience equipment watching the main broadcast live broadcast, and all the audiences can watch the special effect of the virtual gift and the live broadcast video on the audience equipment.
For example, the server provides 3 special virtual gifts, specifically named roses, lilies and tulips. Roses (roses) are identified as 1, lilies (lily) are identified as 2, tulips (tulip) are identified as 3. The special effect rendering function of Roses (Roses) is Roses _ Resuloce, and the encrypted Roses _ Resuloce is Roses _ Resuloce; the special effect rendering function of Lily (Lily) is Lily _ Resuoce, and the encrypted Lily _ Resuoce is Lily _ Resuoce; the special effect rendering function of Tulip (Tulip) is Tulip _ Resuoce, and encrypted Tulip _ Resuoce is Tulip _ Resuoce. And the anchor terminal equipment correspondingly stores each special effect rendering function according to the identification of each virtual gift. The method can be specifically realized by the following codes:
map [1] ═ Roses _ Resuloce; // store Roses _ Resucoce using Map container
Map [2] ═ Lily _ Resuoce; // store Lily _ Resucoce using Map container
Map [3] ═ Tulip _ Resuoce; // store Tulip _ Resuoce using Map container
In order to avoid that the anchor terminal device randomly calls the special effect rendering function and further falsely renders the virtual gift, the embodiment of the invention stores N secret keys for decrypting the special effect rendering function in the server. Specifically, the server also stores N keys in correspondence with the identification of the virtual gift. In the above example, the Key for decrypting Roses _ Resucoce is Key1, the Key for decrypting Lily _ Resucoce is Key2, and the Key for decrypting Tulip _ Resucoc is Key 3. And the server correspondingly stores each key according to the identification of each virtual gift. The method can be specifically realized by the following codes:
map [1] ═ Key 1; v. use of Map Container store Key1
Map [2] ═ Key 2; v. use of Map Container store Key2
Map [3] ═ Key 3; v. use of Map Container store Key3
In a specific implementation process, the N keys may be the same, and preferably, the N keys are not identical.
The viewer purchases the virtual gift on the viewer-side device according to the virtual gift list provided by the server, and gifts the purchased virtual gift to the anchor. The embodiment of the invention refers to the virtual gift given to the main broadcast by the audience as the target virtual gift. The anchor terminal device generates donation information indicating that the anchor target virtual gift is donated according to an operation of the donation target virtual gift performed by the user, and transmits the donation information to the server.
The server receives the presentation information, analyzes the presentation information, and determines a target virtual gift to be presented by the audience. Optionally, the server may also determine the number of target virtual gifts based on the comp message. Next, an identification of the target virtual gift is determined, and a corresponding key is read based on the identification of the target virtual gift. In the embodiment of the present invention, a special effect rendering function for rendering a target virtual gift special effect is referred to as a target special effect rendering function, and a key for decrypting the target special effect rendering function is referred to as a target key.
Then, the server packages the identification of the target virtual gift and the target key to obtain the virtual gift message. Optionally, the server packages the target virtual gift number in the virtual gift message according to the target virtual gift number included in the presentation information, and sends the target virtual gift number to the host device. In S101, the anchor device receives a virtual gift message.
Following the example above, assume that the server receives a comp message sent by an audience device, and by parsing the comp message, determines that the audience comp anchor 1 roses (roses). The server then determines that the identification of the target virtual gift is 1 and reads out the corresponding stored target Key1 based on the identification 1. The server then generates a virtual gift message (1, Key1,1) in accordance with (identification of the target virtual gift, target Key, number of target virtual gifts). Wherein, the identification of the target virtual gift represented by the virtual gift message (1, Key1,1) is 1, and the target Key is Key 1. Further, the virtual gift message also indicates that the number of target virtual gifts is 1. The server then sends the virtual gift message (1, Key1,1) to the anchor device. Further, the anchor device receives the virtual gift message (1, Key1, 1).
After receiving the virtual gift message, the anchor terminal equipment analyzes the identification of the target virtual gift and the target key in the virtual gift message. For example, after receiving the virtual gift message (1, Key1,1), the host device parses the identifier 1 and the destination Key1 of the destination virtual gift, and further parses the number 1 of the destination virtual gift.
Then, in S102, according to the identifier of the target virtual gift, the target special effect rendering function corresponding to the identifier is read into the memory. In the above example, since the identifier of the target virtual gift is 1 by parsing the virtual gift message, the anchor device reads the special effect rendering function Roses _ Resucoce stored corresponding to the identifier 1.
Next, in S103, the encrypted target special effect rendering function in the memory is decrypted using the target key. In the embodiment of the invention, the anchor terminal equipment decrypts the encrypted target special effect rendering function according to a preset decryption function. The preset decryption function is a decryption function corresponding to a preset encryption function of the encrypted special effect rendering function. In a specific implementation process, the preset Encryption function and the preset decryption function may be set based on, for example, DES (Data Encryption algorithm) or AES (Advanced Encryption Standard), and the present invention is not limited in particular.
In addition, in an embodiment, the anchor device may encrypt the N special effect rendering functions based on the N keys according to a preset encryption function in advance, so as to obtain the N encrypted special effect rendering functions. In another embodiment, the server encrypts the N special effect rendering functions based on the N keys according to a preset encryption function, further obtains the N encrypted special effect rendering functions, and sends the N encrypted special effect rendering functions to each anchor terminal device for storage. The embodiment facilitates the server to change one or any more of the special effect rendering function, the encryption and decryption algorithm and the secret key. In another embodiment, the N encrypted special effect rendering functions are included in an installation package of the live broadcast application, and then the N encrypted special effect rendering functions can be obtained in the process of installing the live broadcast application by the anchor device. This embodiment also facilitates the server to change one or any number of special effect rendering functions, encryption/decryption algorithms, and keys. In a specific implementation process, for a method for acquiring N encrypted special effect rendering functions by a host device, a person skilled in the art to which the present invention belongs may select any one of the implementation manners according to practice, and the present invention is not limited specifically.
In S102, the anchor device decrypts the encrypted target special effect rendering function according to a preset decryption function and a target key. Along with the above example, the encrypted target special effect rendering function is Roses _ respuoce, the Key is Key1, and assuming that the preset decryption function is AES-based function AES.
Aes.decrypt(roses_resuoce Key1);
Because the N special effect rendering functions are encrypted, the anchor terminal equipment only has a target key, the target key can only decrypt the special effect rendering function of the virtual gift actually given by the audience, and cannot decrypt other special effect rendering functions, the anchor terminal equipment only can decrypt and operate the target special effect rendering function, and then only can render the special effect of the target virtual gift.
After the target special effect rendering function is decrypted, in S104, the target special effect rendering function may be run, and then a special effect of the target virtual gift is rendered in the live broadcast area of the anchor device. For example, if the target special effect rendering function is roses _ Resuloce, the special effect of roses (roses) is rendered.
Next, in S105, the special effect of the target virtual gift and the live video captured by the anchor device are collectively encoded into a video stream. Then, in S106, the video stream is transmitted to the server.
And then, after receiving the video stream, the server sends the video stream to all the viewer-side equipment. After each spectator end device receives the video stream, the video stream is analyzed, and then the analyzed video is displayed in a live broadcast area of the spectator end device. Because the video stream comprises the live video and the special effects of the target virtual gift, the audience device can simultaneously display the live video and the special effects of the target virtual gift. Furthermore, the audience presenting the target virtual gift and all other audiences can watch the special effect of the target virtual gift from the own audience end equipment.
In the technical scheme of the embodiment of the invention, N special effect rendering functions for rendering the special effect of the virtual gift are encrypted and stored in a main broadcasting terminal device, a key is stored in a server, N is a positive integer, the server determines the identifier of the target virtual gift based on a presentation message which is sent by audience terminal devices and represents the presentation message for presenting the main broadcasting target virtual gift, decrypts the target key of the target special effect rendering function corresponding to the target virtual gift, and then sends the virtual gift message comprising the identifier of the target virtual gift and the target key to the main broadcasting terminal device. The main broadcasting terminal equipment reads out the encrypted target special effect rendering function based on the identification of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key to obtain the decrypted target special effect rendering function, then operates the target special effect rendering function to render the special effect of the target virtual gift, codes the special effect of the target virtual gift and the live broadcast video collected by the main broadcasting terminal into video streams, and finally sends the video streams to the server, and the server sends the video streams to the plurality of audience terminal equipment so that the plurality of audience terminal equipment can display the special effect of the target virtual gift and the live broadcast video based on the video streams. Therefore, because the special effect rendering function in the main broadcasting terminal equipment is in an encrypted state, the server can decrypt and operate only when providing the corresponding key, and the key provided by the server is consistent with the virtual gift actually presented by the audience, so that the main broadcasting terminal equipment can only render the special effect of the virtual gift actually presented by the audience, cannot render the special effect of the virtual gift not presented by the audience, and cannot falsely display the special effect of the virtual gift for the audience to see, the technical problem of falsely displaying the special effect of the virtual gift is solved, the technical effect of avoiding the main broadcasting from falsely displaying the special effect of the virtual gift is realized, the waste of network resources is reduced, and the information safety is improved.
As an optional embodiment, the method for displaying the special effect of the virtual gift on the device side of the anchor terminal may further include:
acquiring the decryption times for decrypting the target special effect rendering function and/or the operation times for operating the target special effect rendering function;
and sending the decryption times and/or the operation times to the server so that the server judges whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times, and sending the video stream to a plurality of pieces of audience equipment accessed to the server when the special effect of the target virtual gift in the video stream is legal.
Specifically, the preset decryption function in the embodiment of the present invention not only can decrypt the target special effect rendering function, but also can calculate the decryption times for decrypting the target special effect rendering function. In addition, the special effect rendering function in the embodiment of the invention not only can render the special effect of the virtual gift, but also can calculate the running times. In an embodiment, the decryption times and the operation times are specifically historical times, that is, the total times of decryption and the operation of each special effect rendering function on the anchor device. In another embodiment, the decryption times and the execution times refer to times of decrypting a special effect rendering function and times of executing the special effect rendering function within a preset time period. The preset time period is, for example, 7 days, 10 days, 30 days, etc., and the present invention is not particularly limited. In another embodiment, the decryption times and the running times refer to decrypted times and running times of a special effect rendering function in the live broadcast.
In the embodiment of the invention, the initial decryption frequency in the preset decryption function is preset to be 0, the decryption frequency is increased by 1 every time the preset decryption function runs once, and the previous decryption frequency is covered. And, the preset decryption function outputs the decryption times in addition to the decryption result, namely the target special effect rendering function, during each operation. And presetting the initial operation times of each special effect rendering function as 0, increasing the operation times by 1 when the special effect rendering function operates once, and covering the operation times of the last time. The special effect rendering function outputs the rendering result and the operation times in each operation.
In the embodiment of the present invention, one implementation manner of sending the decryption times and/or the sending operation times is as follows: after the video stream is sent, before the video stream is sent or while the video stream is sent, the anchor device sends the decryption times and/or the operation times to the server. Another embodiment of the number of transmission decryptions and/or the number of transmission runs: and transmitting the decryption times and/or the operation times to the server in the video stream. Another embodiment of the number of transmission decryptions and/or the number of transmission runs: and the decryption times and/or the operation times are contained in other information and are sent to the server. Other information is, for example, identity authentication information or avatar update information, and the like, and those skilled in the art to which the present invention pertains may set the information according to the actual situation, and the present invention is not limited specifically.
And after the server receives the decryption times and/or the operation times sent by the anchor terminal, judging whether the special effect of the target virtual gift in the video stream is legal or not according to the decryption times and/or the operation times. The server may transmit the video stream to all of the spectator devices only if the server determines that the special effect of the target virtual gift is legitimate, and the server may not transmit the video stream to any of the spectator devices if the server determines that the special effect of the target virtual gift is not legitimate. Therefore, the special effect of the legal virtual gift can be displayed for the audience to watch, and the special effect of the false virtual gift cannot be displayed for the audience to watch.
Specifically, the server first needs to determine which decryption times and/or execution times indicate which special effect rendering functions the decryption times and/or execution times are. In one embodiment, the identifier of the target virtual gift and the decryption times and/or the operation times are sent to the server together, and then the server determines a special effect rendering function specifically corresponding to the decryption times and/or the operation times according to the identifier of the target virtual gift. In another embodiment, the server performs image analysis on a special effect of a target virtual gift in the video stream, determines the target virtual gift corresponding to the special effect, and further determines a special effect rendering function corresponding to the decryption times and/or the operation times. In the specific implementation process, a person skilled in the art to which the present invention pertains may select according to the practice, and the present invention is not particularly limited.
In the embodiment of the present invention, there are various embodiments in which the server determines whether the special effect of the target virtual gift in the video stream is legal based on the decryption times and/or the operation times, and three of the embodiments are described below.
The first method comprises the following steps:
in a first embodiment, the server specifically determines through the following process:
judging whether the decryption times are smaller than a first preset time or not; when the decryption times are less than the first preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the decryption times are larger than or equal to the first preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or
Judging whether the operation times are less than a second preset time or not; when the running times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the running times are larger than or equal to the second preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or
Judging whether the decryption times are smaller than a first preset time or not, and judging whether the operation times are smaller than a second preset time or not; when the decryption times are less than the first preset times and the operation times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are larger than or equal to the first preset times and/or the operation times are larger than or equal to the second preset times, indicating that the special effect of the target virtual gift in the video stream is illegal.
The first embodiment is an approximate judgment method. Specifically, if a video stream transmitted by the host device includes a large number of special effects of the target virtual gift, and the number of special effects of the target virtual gift exceeds a normal range or is significantly irregular, it is determined that the special effects of the target virtual gift in the video stream are illegal.
In a specific implementation process, the first preset number and the second preset number can be adaptively set according to the number of virtual gifts given by the anchor. For example, if an anchor receives 3 virtual gift roses per day, the first and second predetermined number of roses may be set to a number slightly greater than 3, for example, 5. Or, the number of virtual gifts received by all the anchor is calculated according to the big data, and then the first preset number and the second preset number are adaptively set according to the number of the virtual gifts received by all the anchor. For example, if the average number of virtual gift roses (roses) received by all anchor daily is 30, the first and second preset number of times may be set to a number greater than 30, for example, 50. Alternatively, the first preset number and the second preset number may be set to a larger number, for example, 200, so that a video stream with a significantly high number is regarded as an illegal video stream.
In a first implementation, the anchor device obtains and sends the decryption times, or the operation times, or the decryption times and the operation times to the server. Then, in an embodiment, the anchor device sends the decryption count, or the decryption count and the operation count, to the server, and the server determines whether the decryption count is greater than a first preset count. When the decryption times are less than a first preset time, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are larger than or equal to a first preset time, the special effect of the target virtual gift in the video stream is represented to be illegal. For example, if the anchor receives an average number of virtual gift Roses (Roses) per day of 30, then the average number of times the anchor device decrypts Roses _ rescues per day should also be 30. If the first preset number is set to be 35, when the decryption number is greater than or equal to 35, it indicates that the anchor device frequently decrypts the roses _ Resucoce on the same day, the possibility of illegally decrypting the target special effect rendering function is high, and further the possibility of falsely rendering the special effect of the target virtual gift is also high, so that the server determines that the special effect of the target virtual gift in the video stream is illegal; when the decryption frequency is less than 35, the decryption frequency of the Roses _ Resucoce on the current day of the main broadcasting terminal equipment is similar to that of the prior art, the probability of illegally decrypting the target special effect rendering function is low, and further the probability of falsely rendering the special effect of the target virtual gift is also low, so that the server determines that the special effect of the target virtual gift in the video stream is legal.
In another embodiment, the anchor device sends the running times, or the decryption times and the running times to the server, and the server determines whether the running times is greater than a second preset time. When the running times are less than a second preset time, the fact that the special effect of the target virtual gift in the video stream is legal is represented; and when the decryption times are larger than or equal to a second preset time, the special effect of the target virtual gift in the video stream is represented to be illegal. For example of the above embodiment, if the average number of roses (roses) of virtual gifts received by the anchor every day is 30, then the average number of times that the anchor device runs the roses _ Resuoce every day should also be 30, and if the second preset number is set to be 35, then when the running number is greater than or equal to 35, it indicates that the anchor device runs the roses _ Resuoce frequently every day, the possibility of illegally running the target special effect rendering function is high, and further the possibility of falsely rendering the special effect of the target virtual gifts is also high, so the server determines that the special effect of the target virtual gifts in the video stream is illegal; when the running times are less than 35, the running times of the roses _ Resucoce of the current day of the main broadcasting terminal equipment are similar to those of the prior art, the possibility of illegally running the target special effect rendering function is low, and further the possibility of falsely rendering the special effect of the target virtual gift is low, so that the server determines that the special effect of the target virtual gift in the video stream is legal.
In a third embodiment, the anchor device sends the decryption count and the operation count to the server, and the server determines whether the decryption count is greater than a first preset count and determines whether the operation count is greater than a second preset count. When the decryption times are less than a first preset time and the operation times are less than a second preset time, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are more than or equal to a first preset time, or the operation times are more than or equal to a second preset time, or the decryption times are more than or equal to the first preset time and the operation times are more than or equal to the second preset time, the special effect of the target virtual gift in the video stream is represented to be illegal. For example of the above embodiment, the average number of roses (roses) of virtual gifts received by the anchor every day is 30, and then the average number of times that the anchor device decrypts and runs roses _ Resucose every day should also be 30, and assuming that the first preset number and the second preset number are both set to be 35, when one or both of the running number and the decryption number is greater than or equal to 35, it indicates that the anchor device frequently decrypts or runs roses _ Resucose in the same day, the possibility of illegally decrypting or running the target special effect rendering function is high, and further the possibility of falsely rendering the special effect of the target virtual gifts is also high, so the server determines that the special effect of the target virtual gifts in the video stream is illegal; when the number of times of operation is less than 35 and the number of times of decryption is also less than 35, the number of times of decryption and operation of the target special effect rendering function of the anchor terminal device on the same day is similar to that of the conventional times, the probability of illegal decryption and operation of the target special effect rendering function is low, and further the probability of falsely rendering the special effect of the target virtual gift is also low, so that the server determines that the special effect of the target virtual gift in the video stream is legal.
As can be seen from the above description, by the first embodiment, the validity of the special effect of the virtual gift in the video example is roughly determined, and the video stream containing the false information can be intercepted and sent to the audience, thereby further avoiding the false display of the special effect of the virtual gift.
And the second method comprises the following steps:
in a second embodiment, before determining validity of the special effect of the virtual gift, the server further includes:
acquiring the number of the target virtual gifts presented by the anchor;
specifically, the judgment is carried out through the following processes:
judging whether the decryption times are equal to the number of the target virtual gifts or not; when the decryption times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the decryption times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or
Judging whether the running times are equal to the number of the target virtual gifts or not; when the running times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the number of the operation times is not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or
Judging whether the decryption times and the operation times are equal to the number of the target virtual gifts or not; when the decryption times and the operation times are equal to the number of the target virtual gifts, the fact that the special effect of the target virtual gifts in the video stream is legal is shown; and when the decryption times and/or the operation times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal.
In order to judge the validity of the special effect of the target virtual gift in the video stream, the server records the number of each type of virtual gift presented by the main broadcast in advance, and updates the number of each virtual gift according to the actual presentation condition.
Correspondingly, the meaning of the number of the target virtual gifts is consistent with the meaning of the decryption times and the operation times. For example, if the decryption times and the operation times are specifically historical times, the number of the target virtual gifts is also historical number, that is, the total number of the target virtual gifts given by the anchor; if the decryption times and the operation times refer to the decryption times and the operation times in a preset time period, the number of the target virtual gifts is also the number of the target virtual gifts presented by the anchor in the preset time period; and if the decryption times and the operation times refer to the decryption times and the operation times of the special effect rendering function in the live broadcast, the number of the target virtual gifts is the number of the target virtual gifts given by the main broadcast in the live broadcast.
The second embodiment is an accurate determination method. Since the server transmits the target key to the anchor device only when the viewer gives the target virtual gift to the anchor, the anchor device decrypts the decryption times of the target special effect rendering functions using the target key, and the number of times the target special effect rendering functions are run should be equal to the number of the target virtual gifts.
Therefore, in the second embodiment, the server first acquires the number of transmission-target virtual gifts. Then, in one embodiment, the anchor device sends the decryption count, or the decryption count and the operation count, to the server, and the server determines whether the decryption count is equal to the number of the target virtual gifts. When the decryption times are equal to the number of the target virtual gifts, the fact that the anchor terminal equipment decrypts the target special effect rendering function according to the number of the target virtual gifts is shown, and then the special effect legality of the target virtual gifts in the video stream is determined; when the decryption times are not equal to the number of the target virtual gifts, the fact that the anchor terminal device does not decrypt the target special effect rendering function according to the number of the target virtual gifts is indicated, and therefore the special effect of the target virtual gifts in the video stream is determined to be illegal.
In another embodiment, the anchor device sends the running times, or the decryption times and the running times, to the server, and the server determines whether the running times are equal to the number of the target virtual gifts. When the running times are equal to the number of the target virtual gifts, the target special effect rendering function is run by the anchor terminal equipment according to the number of the target virtual gifts, and then the special effect legality of the target virtual gifts in the video stream is determined; when the running times are not equal to the number of the target virtual gifts, the fact that the anchor terminal device does not run the target special effect rendering function on the number of the target virtual gifts is indicated, and therefore the special effect of the target virtual gifts in the video stream is determined to be illegal.
In another embodiment, the anchor device sends the decryption count and the operation count to the server, and the server determines whether both the decryption count and the operation count are equal to the number of the target virtual gifts. When the decryption times and the operation times are equal to the number of the target virtual gifts, the fact that the anchor terminal equipment decrypts the target virtual gifts according to the number of the target virtual gifts and operates a target special effect rendering function is shown, and then the special effect legality of the target virtual gifts in the video stream is determined; when one or two of the decryption times or the operation times are not equal to the number of the target virtual gifts, the fact that the anchor terminal device does not decrypt or operate the target special effect rendering function according to the number of the target virtual gifts is indicated, and then the fact that the special effect of the target virtual gifts in the video stream is illegal is determined.
As can be seen from the above description, by recording the number of target virtual gifts given by the anchor, determining the special effect of the target virtual gifts with the decryption times and/or the operation times being unequal to the number of the target virtual gifts as illegal, accurately filtering out the illegal video streams, and intercepting the video stream repeatedly rendering the special effect of the virtual gifts to send to the audience, the special effect of the virtual gifts is further prevented from being displayed falsely.
And the third is that:
in the third embodiment, the server specifically performs the determination by the following process:
judging whether the decryption times are equal to the operation times or not; when the decryption times are equal to the operation times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are not equal to the operation times, indicating that the special effect of the target virtual gift in the video stream is illegal.
In the embodiment of the invention, the target special effect rendering function is encrypted and stored in the anchor terminal equipment, and can be operated only when the target special effect rendering function is decrypted. Running the target special effect rendering function again requires decryption again. Therefore, the number of times of decryption is equal to the number of times of operation in a normal case.
Therefore, the server determines whether the number of times of decryption is equal to the number of times of operation. When the decryption times are equal to the operation times, the fact that the target special effect rendering function is operated once only when the anchor terminal equipment decrypts the target special effect rendering function once is shown, and then the special effect legality of the target virtual gift in the video stream is determined; and when the decryption times are not equal to the operation times, determining that the special effect of the target virtual gift in the video stream is illegal.
In a specific implementation process, a person skilled in the art of the present invention may select any one of the above embodiments according to practice to determine whether the special effect of the target virtual gift in the video stream is legal, and may select various embodiments to combine without conflict, for example, combine approximate determination and accurate determination, and the present invention is not limited in particular.
As an alternative embodiment, after S104, the method may further include:
deleting the target key;
and releasing the target special effect rendering function.
Specifically, after the target special effect rendering function runs the special effect of the output target virtual gift, the anchor terminal device deletes the target key and releases the target special effect rendering function in a decrypted state in the memory, so that the target key is prevented from being stolen, the target special effect rendering function is prevented from being repeatedly run or led out, and the virtual gift special effect is further prevented from being displayed falsely.
The following describes a method for displaying a virtual gift effect on a server side, as shown in fig. 3, including:
s201: receiving a gifting message which is sent by the audience terminal equipment and represents the gifting of the anchor target virtual gift;
s202: determining an identifier of the target virtual gift based on the gifting message, and determining a target key for decrypting a target special effect rendering function corresponding to the target virtual gift;
s203: obtaining a virtual gift message comprising an identification of the target virtual gift and the target key;
s204: sending the virtual gift message to the anchor device;
s205: receiving the video stream sent by the anchor terminal equipment;
s206: and transmitting the video stream to a plurality of the audience equipment.
The above has already described the specific embodiments of S201 to S206 in detail, and for specific reference, the above is not repeated here.
As an optional implementation manner, after S201, the server may further perform:
inquiring the virtual gift purchased by the audience corresponding to the audience terminal equipment based on the presentation message;
determining whether the virtual gift purchased by the viewer includes the target virtual gift;
if the virtual gift purchased by the viewer includes the target virtual gift, performing the step of determining an identification of the target virtual gift and a target key corresponding to the target virtual gift based on the gifting message;
if the virtual gift purchased by the viewer does not include the target virtual gift, determining that the gifting message is illegal, not performing the step of determining the identification of the target virtual gift and the target key corresponding to the target virtual gift based on the gifting message.
Specifically, in the embodiment of the present invention, the server records the virtual gifts purchased by each viewer, and the target virtual gifts given by the viewer should be the purchased virtual gifts. Therefore, upon receiving the gift message, the server queries the virtual gift purchased by the viewer based on the viewer identification and/or the viewer-side device identification included in the gift message. Then, it is determined whether the viewer purchases the virtual gift including the target virtual gift.
In the embodiment of the present invention, if the virtual gift purchased by the viewer includes the target virtual gift, it indicates that the act of giving the main-cast target virtual gift to the viewer is legal, and S202 is performed. On the contrary, if the virtual gift purchased by the viewer does not include the target virtual gift, the viewer cannot give the target virtual gift at this time, and the giving behavior is illegal, so that it is determined that the giving message is illegal. Since the comp message is illegal, the server will not perform S202 and thus subsequent S203 to S206, thereby denying illegal comp behavior.
Further, when it is determined that the gifting message is illegal, the server may further send a first prompt message indicating that the target virtual gift needs to be purchased, or send a second prompt message indicating that the current gifting behavior server does not support, or send a warning message to the spectator side device, which is not limited in the present invention.
As can be seen from the above description, by determining whether the target virtual gift given by the viewer is included in the virtual gifts purchased by the viewer and refusing to perform the giving when the target virtual gift is not included in the virtual gifts purchased by the viewer, i.e., the giving action is illegal, not only is the virtual gift special effect prevented from being falsely displayed by the broadcaster, but also the illegal giving of the viewer is prevented, thereby further avoiding the waste of network resources and improving the information security.
As an optional implementation manner, after S205, the server may further perform:
receiving the decryption times of the anchor terminal equipment decrypting the target special effect rendering function and/or the running times of running the target special effect rendering function, which are sent by the anchor terminal equipment;
judging whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times;
and when the special effect of the target virtual gift in the video stream is legal, executing the step of sending the video stream to a plurality of audience devices accessing the server.
Specifically, the determination of whether the special effect of the target virtual gift in the video stream is legal based on the decryption times and/or the operation times can be implemented in at least three ways.
The first method comprises the following steps:
judging whether the decryption times are smaller than a first preset time or not; when the decryption times are less than the first preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the decryption times are larger than or equal to the first preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or
Judging whether the operation times are less than a second preset time or not; when the running times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the running times are larger than or equal to the second preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or
Judging whether the decryption times are smaller than a first preset time or not, and judging whether the operation times are smaller than a second preset time or not; when the decryption times are less than the first preset times and the operation times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are larger than or equal to the first preset times and/or the operation times are larger than or equal to the second preset times, indicating that the special effect of the target virtual gift in the video stream is illegal.
And the second method comprises the following steps:
before judging whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times, the method further comprises the following steps:
acquiring the number of the target virtual gifts presented by the anchor;
judging whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times, which specifically comprises the following steps:
judging whether the decryption times are equal to the number of the target virtual gifts or not; when the decryption times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the decryption times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or
Judging whether the running times are equal to the number of the target virtual gifts or not; when the running times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the number of the operation times is not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or
Judging whether the decryption times and the operation times are equal to the number of the target virtual gifts or not; when the decryption times and the operation times are equal to the number of the target virtual gifts, the fact that the special effect of the target virtual gifts in the video stream is legal is shown; and when the decryption times and/or the operation times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal.
And the third is that:
judging whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times, which specifically comprises the following steps:
judging whether the decryption times are equal to the operation times or not; when the decryption times are equal to the operation times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are not equal to the operation times, indicating that the special effect of the target virtual gift in the video stream is illegal.
Since the above three embodiments have been described in detail, they are not repeated herein.
Based on the same inventive concept as the method for displaying the special effect of the virtual gift on the side of the anchor terminal device in the foregoing embodiment, the present invention further provides an anchor terminal device, as shown in fig. 4, including:
a receiving module 101, configured to receive a virtual gift message sent by a server accessed by the anchor device, where the virtual gift message includes an identifier of a target virtual gift given by a viewer and a target key used to decrypt a target special effect rendering function corresponding to the target virtual gift;
a reading module 102, configured to read out the encrypted target special effect rendering function based on the identifier of the target virtual gift;
a decryption module 103, configured to decrypt the encrypted target special effect rendering function with the target key to obtain the target special effect rendering function;
a rendering module 104, configured to run the target special effect rendering function to render a special effect of the target virtual gift;
an encoding module 105, configured to encode the special effect of the target virtual gift and the live video collected by the anchor device into a video stream;
a first sending module 106, configured to send the video stream to the server, so that the server sends the video stream to a plurality of viewer-side devices accessing the server, so that the plurality of viewer-side devices display the special effect of the target virtual gift and a live video based on the video stream.
Further, the anchor terminal device further includes:
a deletion module for deleting the target key after the target special effect rendering function is run;
and the release module is used for releasing the target special effect rendering function.
Further, the anchor device further includes:
an obtaining module, configured to obtain a decryption time for decrypting the target special effect rendering function and/or a running time for running the target special effect rendering function;
a second sending module, configured to send the decryption frequency and/or the operation frequency to the server, so that the server determines, based on the decryption frequency and/or the operation frequency, whether a special effect of a target virtual gift in the video stream is legal, and sends the video stream to a plurality of pieces of audience equipment accessing the server when the special effect of the target virtual gift in the video stream is legal.
Various changes and specific examples of the method for displaying the special effect of the virtual gift in the embodiments of fig. 1-2 are also applicable to the anchor device in this embodiment, and those skilled in the art can clearly know the implementation method of the anchor device in this embodiment through the foregoing detailed description of the method for displaying the special effect of the virtual gift, so that the detailed description is omitted here for the sake of brevity of the description.
Based on the same inventive concept as the method for displaying the special effect of the virtual gift on the server side in the foregoing embodiment, the present invention further provides a server, as shown in fig. 5, including:
a first receiving module 201, configured to receive a gifting message that represents gifting a host virtual gift and is sent by the audience equipment;
a determining module 202, configured to determine, based on the gifting message, an identifier of the target virtual gift, and a target key for decrypting a target special effect rendering function corresponding to the target virtual gift;
an obtaining module 203 for obtaining a virtual gift message comprising an identification of the target virtual gift and the target key;
a first sending module 204, configured to send the virtual gift message to the anchor device, so that the anchor device reads the encrypted target special effect rendering function based on the identifier of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key, obtains the decrypted target special effect rendering function, runs the target special effect rendering function to render the special effect of the target virtual gift, encodes the special effect of the target virtual gift and a live video acquired by the anchor into a video stream, and sends the video stream to the server;
a second receiving module 205, configured to receive the video stream sent by the anchor device;
a second sending module 206, configured to send the video stream to a plurality of the spectator end devices, so that the plurality of the spectator end devices display the special effect of the target virtual gift and a live video based on the video stream.
Further, the server further includes:
a third receiving module, configured to receive, after receiving the video stream sent by the anchor device, the decryption frequency for decrypting the target special effect rendering function and/or the operation frequency for operating the target special effect rendering function by the anchor device, where the decryption frequency and/or the operation frequency are sent by the anchor device;
the judging module is used for judging whether the special effect of the target virtual gift in the video stream is legal or not based on the decryption times and/or the operation times;
and when the special effect of the target virtual gift in the video stream is legal, notifying the second sending module to execute the step of sending the video stream to a plurality of pieces of audience equipment accessing the server.
Further, the judging module is used for judging whether the decryption times are smaller than a first preset time; when the decryption times are less than the first preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the decryption times are larger than or equal to the first preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or judging whether the operation times are less than a second preset time or not; when the running times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; when the running times are larger than or equal to the second preset times, showing that the special effect of the target virtual gift in the video stream is illegal; or judging whether the decryption times are smaller than a first preset time or not, and judging whether the operation times are smaller than a second preset time or not; when the decryption times are less than the first preset times and the operation times are less than the second preset times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are larger than or equal to the first preset times and/or the operation times are larger than or equal to the second preset times, indicating that the special effect of the target virtual gift in the video stream is illegal.
Further, the server further includes:
an obtaining module, configured to obtain the number of target virtual gifts given by the anchor before determining whether the special effect of the target virtual gifts in the video stream is legal based on the decryption times and/or the operation times;
the judging module is used for judging whether the decryption times are equal to the number of the target virtual gifts or not; when the decryption times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the decryption times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or judging whether the running times are equal to the number of the target virtual gifts or not; when the running times are equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is legal; when the number of the operation times is not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal; or judging whether the decryption times and the operation times are equal to the number of the target virtual gifts or not; when the decryption times and the operation times are equal to the number of the target virtual gifts, the fact that the special effect of the target virtual gifts in the video stream is legal is shown; and when the decryption times and/or the operation times are not equal to the number of the target virtual gifts, indicating that the special effect of the target virtual gifts in the video stream is illegal. .
Further, the judging module is used for judging whether the decryption times are equal to the operation times; when the decryption times are equal to the operation times, showing that the special effect of the target virtual gift in the video stream is legal; and when the decryption times are not equal to the operation times, indicating that the special effect of the target virtual gift in the video stream is illegal.
Various modifications and specific examples of the method for displaying the special effect of the virtual gift in the embodiments of fig. 1 to 3 are also applicable to the server in this embodiment, and those skilled in the art can clearly know the implementation method of the server in this embodiment through the foregoing detailed description of the method for displaying the special effect of the virtual gift, so for the brevity of the description, detailed descriptions are omitted here.
Based on the same inventive concept as the method for displaying the special effect of the virtual gift on the side of the anchor device in the foregoing embodiments, the present invention also provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of any one of the methods for displaying the special effect of the virtual gift on the anchor device described above.
Based on the same inventive concept as the method for displaying the special effect of the virtual gift on the server side in the foregoing embodiments, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the foregoing methods for displaying the special effect of the virtual gift on the server.
Based on the same inventive concept as the method for displaying the special effect of the virtual gift on the side of the anchor device in the foregoing embodiment, the present invention further provides an anchor device, as shown in fig. 6, including a memory 304, a processor 302, and a computer program stored on the memory 304 and operable on the processor 302, wherein the processor 302, when executing the program, implements the steps of any one of the methods for displaying the special effect of the virtual gift on the anchor device described above.
Where in fig. 6 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
Based on the same inventive concept as the method for displaying the special effect of the virtual gift on the server side in the previous embodiment, the present invention further provides a server, as shown in fig. 7, comprising a memory 404, a processor 402, and a computer program stored on the memory 404 and executable on the processor, wherein the processor 402 executes the program to implement the steps of any one of the methods for displaying the special effect of the virtual gift on the server side.
Where in fig. 7 a bus architecture (represented by bus 400) is shown, bus 400 may include any number of interconnected buses and bridges, with bus 400 linking together various circuits including one or more processors, represented by processor 402, and memory, represented by memory 404. The bus 400 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 406 provides an interface between the bus 400 and the receiver 401 and transmitter 403. The receiver 401 and the transmitter 403 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 402 is responsible for managing the bus 400 and general processing, while the memory 404 may be used for storing data used by the processor 402 in performing operations.
Various changes and specific examples of the method for displaying the special effect of the virtual gift in the embodiments of fig. 1 to 3 are also applicable to the anchor device and the server in this embodiment, and those skilled in the art can clearly know the implementation method of the anchor device and the server in this embodiment through the foregoing detailed description of the method for displaying the special effect of the virtual gift, so for the brevity of the description, detailed descriptions are omitted here.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
in the technical scheme of the embodiment of the invention, N special effect rendering functions for rendering the special effect of the virtual gift are encrypted and stored in a main broadcasting terminal device, a key is stored in a server, N is a positive integer, the server determines the identifier of the target virtual gift based on a presentation message which is sent by audience terminal devices and represents the presentation message for presenting the main broadcasting target virtual gift, decrypts the target key of the target special effect rendering function corresponding to the target virtual gift, and then sends the virtual gift message comprising the identifier of the target virtual gift and the target key to the main broadcasting terminal device. The main broadcasting terminal equipment reads out the encrypted target special effect rendering function based on the identification of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key to obtain the decrypted target special effect rendering function, then operates the target special effect rendering function to render the special effect of the target virtual gift, codes the special effect of the target virtual gift and the live broadcast video collected by the main broadcasting terminal into video streams, and finally sends the video streams to the server, and the server sends the video streams to the plurality of audience terminal equipment so that the plurality of audience terminal equipment can display the special effect of the target virtual gift and the live broadcast video based on the video streams. Therefore, because the special effect rendering function in the main broadcasting terminal equipment is in an encrypted state, the server can decrypt and operate only when providing the corresponding key, and the key provided by the server is consistent with the virtual gift actually presented by the audience, so that the main broadcasting terminal equipment can only render the special effect of the virtual gift actually presented by the audience, cannot render the special effect of the virtual gift not presented by the audience, and cannot falsely display the special effect of the virtual gift for the audience to see, the technical problem of falsely displaying the special effect of the virtual gift is solved, the technical effect of avoiding the main broadcasting from falsely displaying the special effect of the virtual gift is realized, the waste of network resources is reduced, and the information safety is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for displaying special effects of virtual gifts is applied to anchor terminal equipment, and is characterized in that N encrypted special effect rendering functions are stored in the anchor terminal equipment, each special effect rendering function is used for rendering the special effect of one virtual gift, each encrypted special effect rendering function is stored corresponding to the identifier of each virtual gift, N is a positive integer, and the method comprises the following steps:
receiving a virtual gift message sent by a server accessed by the anchor terminal equipment, wherein the virtual gift message comprises an identifier of a target virtual gift given by a viewer and a target key used for decrypting a target special effect rendering function corresponding to the target virtual gift;
reading out the encrypted target special effect rendering function based on the identification of the target virtual gift;
decrypting the encrypted target special effect rendering function by using the target key to obtain the target special effect rendering function;
running the target special effect rendering function to render the special effect of the target virtual gift;
encoding the special effect of the target virtual gift and the live video collected by the main broadcasting end equipment into a video stream;
and sending the video stream to the server, so that the server sends the video stream to a plurality of audience devices accessing the server, and the plurality of audience devices display the special effect of the target virtual gift and a live video based on the video stream.
2. The method of claim 1, after running the target special effect rendering function, further comprising:
deleting the target key;
and releasing the target special effect rendering function.
3. A method for displaying special effects of virtual gifts, which is applied to a server, a host device and a plurality of audience devices accessing the server, wherein the server stores N keys, the host device stores N encrypted special effect rendering functions, each key is used for decrypting one encrypted special effect rendering function, each special effect rendering function is used for rendering a special effect of a virtual gift, each encrypted special effect rendering function is stored corresponding to an identifier of each virtual gift, and N is a positive integer, the method comprising:
receiving a gifting message which is sent by the audience terminal equipment and represents the gifting of the anchor target virtual gift;
determining an identifier of the target virtual gift based on the gifting message, and determining a target key for decrypting a target special effect rendering function corresponding to the target virtual gift;
obtaining a virtual gift message comprising an identification of the target virtual gift and the target key;
sending the virtual gift message to the anchor terminal device, so that the anchor terminal device reads the encrypted target special effect rendering function based on the identifier of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key to obtain the decrypted target special effect rendering function, runs the target special effect rendering function to render the special effect of the target virtual gift, encodes the special effect of the target virtual gift and the live video collected by the anchor terminal into a video stream, and sends the video stream to the server;
receiving the video stream sent by the anchor terminal equipment;
and sending the video stream to a plurality of the spectator end devices so that the plurality of the spectator end devices display the special effect of the target virtual gift and the live video based on the video stream.
4. The method of claim 3, further comprising, after receiving a comp message sent by the spectator device indicating a comp of a anchor target virtual gift:
inquiring the virtual gift purchased by the audience corresponding to the audience terminal equipment based on the presentation message;
determining whether the virtual gift purchased by the viewer includes the target virtual gift;
if the virtual gift purchased by the viewer includes the target virtual gift, performing the step of determining an identification of the target virtual gift and a target key corresponding to the target virtual gift based on the gifting message;
if the virtual gift purchased by the viewer does not include the target virtual gift, determining that the gifting message is illegal, not performing the step of determining the identification of the target virtual gift and the target key corresponding to the target virtual gift based on the gifting message.
5. An anchor device, wherein N encrypted special effect rendering functions are stored in the anchor device, each special effect rendering function is used for rendering a special effect of a virtual gift, each encrypted special effect rendering function is stored in correspondence with an identifier of each virtual gift, N is a positive integer, and the anchor device comprises:
a receiving module, configured to receive a virtual gift message sent by a server accessed by the anchor device, where the virtual gift message includes an identifier of a target virtual gift given by a viewer and a target key used to decrypt a target special effect rendering function corresponding to the target virtual gift;
a reading module, configured to read out the encrypted target special effect rendering function based on the identifier of the target virtual gift;
the decryption module is used for decrypting the encrypted target special effect rendering function by using the target key to obtain the target special effect rendering function;
the rendering module is used for operating the target special effect rendering function so as to render the special effect of the target virtual gift;
the encoding module is used for encoding the special effect of the target virtual gift and the live video collected by the main broadcasting end equipment into video streams;
the first sending module is used for sending the video stream to the server so that the server sends the video stream to a plurality of audience devices accessing the server, and the plurality of audience devices display the special effect of the target virtual gift and a live video based on the video stream.
6. A server to which a host device and a plurality of viewer devices access, wherein the server stores N keys, the host device stores N encrypted special effect rendering functions, each key is used to decrypt one encrypted special effect rendering function, each special effect rendering function is used to render a special effect of a virtual gift, each encrypted special effect rendering function is stored in correspondence with an identifier of each virtual gift, N is a positive integer, the server comprising:
a first receiving module, configured to receive a gifting message that represents a gifting of a anchor virtual gift and is sent by the audience equipment;
a determining module, configured to determine, based on the gifting message, an identifier of the target virtual gift, and a target key for decrypting a target special effect rendering function corresponding to the target virtual gift;
an obtaining module for obtaining a virtual gift message comprising an identification of the target virtual gift and the target key;
a first sending module, configured to send the virtual gift message to the anchor terminal device, so that the anchor terminal device reads the encrypted target special effect rendering function based on an identifier of the target virtual gift, decrypts the encrypted target special effect rendering function by using the target key, obtains the decrypted target special effect rendering function, runs the target special effect rendering function to render a special effect of the target virtual gift, encodes the special effect of the target virtual gift and a live video acquired by the anchor terminal into a video stream, and sends the video stream to the server;
a second receiving module, configured to receive the video stream sent by the anchor device;
and the second sending module is used for sending the video stream to a plurality of the spectator end devices so as to enable the plurality of the spectator end devices to display the special effect of the target virtual gift and the live video based on the video stream.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as claimed in claim 1 or 2.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as claimed in claim 3 or 4.
9. An anchor device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of claim 1 or 2 are implemented when the processor executes the program.
10. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of claim 3 or 4 are performed when the program is executed by the processor.
CN201710522432.2A 2017-06-30 2017-06-30 Method and equipment for displaying special effect of virtual gift Active CN109218757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710522432.2A CN109218757B (en) 2017-06-30 2017-06-30 Method and equipment for displaying special effect of virtual gift

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710522432.2A CN109218757B (en) 2017-06-30 2017-06-30 Method and equipment for displaying special effect of virtual gift

Publications (2)

Publication Number Publication Date
CN109218757A CN109218757A (en) 2019-01-15
CN109218757B true CN109218757B (en) 2020-09-08

Family

ID=64976806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710522432.2A Active CN109218757B (en) 2017-06-30 2017-06-30 Method and equipment for displaying special effect of virtual gift

Country Status (1)

Country Link
CN (1) CN109218757B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572689B (en) * 2019-09-23 2021-09-21 广州方硅信息技术有限公司 Method, device and equipment for displaying resources and live broadcast system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143133A (en) * 2010-08-05 2011-08-03 华为技术有限公司 Method, device and system for supporting advertisement content in hyper text transport protocol (HTTP) stream playing manner
CN103634681A (en) * 2013-11-29 2014-03-12 腾讯科技(成都)有限公司 Method, device, client end, server and system for live broadcasting interaction
CN104221392A (en) * 2012-03-23 2014-12-17 耶德托公司 Controlling access to IP streaming content
CN104363519A (en) * 2014-11-21 2015-02-18 广州华多网络科技有限公司 Online-live-broadcast-based information display method, device and system
CN104618797A (en) * 2015-02-06 2015-05-13 腾讯科技(北京)有限公司 Information processing method and device and client
CN104936004A (en) * 2015-06-05 2015-09-23 广州酷狗计算机科技有限公司 Video recording method and device
CN105100080A (en) * 2015-06-30 2015-11-25 广州华多网络科技有限公司 Card interaction method and system based on online live broadcast and relevant devices
US9270724B1 (en) * 2015-06-25 2016-02-23 Amarone Partners, Llc System and method for content streaming with feature detection
CN105516748A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Method and server for realizing network live broadcasting
CN106101146A (en) * 2016-08-12 2016-11-09 暴风集团股份有限公司 The method and system that Flash peer-to-peer network is live are carried out based on block style
CN106101736A (en) * 2016-06-28 2016-11-09 广州华多网络科技有限公司 The methods of exhibiting of a kind of virtual present and system
CN106453559A (en) * 2016-10-13 2017-02-22 北京奇虎科技有限公司 Method and system for processing business object, server and terminals
CN106789992A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 A kind of live platform main broadcaster white list management method and management system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143133A (en) * 2010-08-05 2011-08-03 华为技术有限公司 Method, device and system for supporting advertisement content in hyper text transport protocol (HTTP) stream playing manner
CN104221392A (en) * 2012-03-23 2014-12-17 耶德托公司 Controlling access to IP streaming content
CN103634681A (en) * 2013-11-29 2014-03-12 腾讯科技(成都)有限公司 Method, device, client end, server and system for live broadcasting interaction
CN104363519A (en) * 2014-11-21 2015-02-18 广州华多网络科技有限公司 Online-live-broadcast-based information display method, device and system
CN104618797A (en) * 2015-02-06 2015-05-13 腾讯科技(北京)有限公司 Information processing method and device and client
CN104936004A (en) * 2015-06-05 2015-09-23 广州酷狗计算机科技有限公司 Video recording method and device
US9270724B1 (en) * 2015-06-25 2016-02-23 Amarone Partners, Llc System and method for content streaming with feature detection
CN105100080A (en) * 2015-06-30 2015-11-25 广州华多网络科技有限公司 Card interaction method and system based on online live broadcast and relevant devices
CN105516748A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Method and server for realizing network live broadcasting
CN106101736A (en) * 2016-06-28 2016-11-09 广州华多网络科技有限公司 The methods of exhibiting of a kind of virtual present and system
CN106101146A (en) * 2016-08-12 2016-11-09 暴风集团股份有限公司 The method and system that Flash peer-to-peer network is live are carried out based on block style
CN106453559A (en) * 2016-10-13 2017-02-22 北京奇虎科技有限公司 Method and system for processing business object, server and terminals
CN106789992A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 A kind of live platform main broadcaster white list management method and management system

Also Published As

Publication number Publication date
CN109218757A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
US20190340384A1 (en) Key providing method, video playing method, server and client
US8233623B2 (en) Methods and systems for blackout provisioning in a distribution network
KR100977106B1 (en) Method and electronic module for secure data transmission
US9215505B2 (en) Method and system for secure processing a stream of encrypted digital audio/video data
CN101977190B (en) Digital content encryption transmission method and server side
CN107613316B (en) Live network push stream verification method and system
CN107733639B (en) Key management method, device and readable storage medium
CN109218837B (en) Method and equipment for displaying special effect of virtual gift
CN109768978B (en) Method and related device for obfuscating data
CN111093097A (en) Stream media data encryption and decryption method and device, electronic equipment and storage medium
CN100401769C (en) Method for enciphering and deciphering living-broadcasting flow-medium data
CN113128999B (en) Block chain privacy protection method and device
TWI559755B (en) System and method for privacy-preserving advertisement selection
CN104506497A (en) Information issuing method and system
CN106549757B (en) Data authenticity identification method of WEB service, server and client
CN109218753B (en) Method and equipment for displaying special effect of virtual gift
CN109218757B (en) Method and equipment for displaying special effect of virtual gift
TW201228399A (en) Method for transmitting and receiving a multimedia content
JP2009519649A (en) Encrypting and decrypting content for conditional access
US9258612B2 (en) Transmission, reception and identification methods, security processor and information recording medium for said methods
US20160226839A1 (en) Secure data transmission
CN108055356A (en) A kind of information processing method, server, client and readable storage medium storing program for executing
CN115225934B (en) Video playing method, system, electronic device and storage medium
CN101331768B (en) Method for transmitting conditional access content
CN112804339B (en) Processing system for timing push message and control method thereof

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