Cross-platform virtual gift processing method, system and device and storage medium

By sharing cross-platform virtual gift key business logic, synchronizing gift information and processing gift special effects display on different platforms, the problems of high complexity, low efficiency and poor consistency in the development of existing mid-to-cross platforms are solved, and efficient and unified gift information synchronization and special effects display are achieved, improving development efficiency and user experience.

CN120034695APending Publication Date: 2025-05-23SHANGHAI BILIBILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510193866.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-20
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

The existing gift special effects display system has the problems of high development complexity, low development efficiency and poor cross-platform consistency.

Method used

By sharing cross-platform virtual gift key business logic, synchronizing gift information and processing gift special effects displays on different platforms, cross-platform development frameworks are used to achieve cross-platform consistency.

Benefits of technology

It effectively reduces the repeated development labor among various platforms, reduces development and maintenance costs, improves development efficiency, ensures cross-platform consistency, improves user experience, and avoids memory leakage problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034695A_ABST
    Figure CN120034695A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a cross-platform virtual gift processing method, system and device and a storage medium, and the method comprises the steps: obtaining gift information of a virtual gift in response to a sending request executed by a user for the virtual gift; synchronizing the gift information to a sharing module; and synchronizing the gift information to each platform by using the cross-platform virtual gift key business logic in the sharing module, determining the gift special effect corresponding to the virtual gift according to the gift information, and processing the special effect display of each platform for the gift special effect. According to the present application, by sharing the cross-platform virtual gift key business logic, the gift information is synchronized to each platform and the gift special effect display of different platforms is processed, so that the repeated development labor among the platforms is effectively reduced, the development complexity is reduced, the development efficiency is greatly improved, and the cross-platform consistency is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Internet technologies, and in particular, to a cross-platform virtual gift processing method, system, device, and storage medium. Background Art

[0002] With the rise of technologies such as live streaming and social networking, virtual gifts and their gift special effects have become key functions for platforms to enhance the user experience. In a live streaming environment, viewers can send virtual gifts to the live streamer, and at the same time, the gift special effects corresponding to the virtual gifts are displayed in the live streaming interface; the virtual gifts sent by viewers are not only symbols of items, but more importantly, interactions with the live streamer and other viewers, and the gift special effects endow these interactions with visual and auditory expressiveness.

[0003] In the prior art, different platforms such as Android, iOS, HarmonyOS, and Web platforms can provide interactive functions based on virtual gifts. However, for the synchronization of virtual gift information and the display of gift special effects on different platforms, the existing gift special effect display systems usually need to rely on their respective platforms for independent implementation and code development, with high cross-platform development complexity, increasing the workload of development and maintenance, low development efficiency, and the business logics and implementation methods between different platforms may be repeated, resulting in code redundancy and resource waste. In addition, due to different implementation methods of each platform, there may be differences in the gift special effects displayed on different platforms, with poor cross-platform consistency, thus affecting the user experience. Summary of the Invention

[0004] In view of the above problems, the present application proposes a cross-platform virtual gift processing method, system, device, and storage medium for solving the following problems: The existing gift special effect display systems have problems of high development complexity, low development efficiency, and poor cross-platform consistency in the synchronization of virtual gift information and the display of gift special effects on different platforms.

[0005] According to one aspect of the embodiments of the present application, a cross-platform virtual gift processing method is provided, including:

[0006] Responding to a sending request executed by a user for a virtual gift, and obtaining the gift information of the virtual gift;

[0007] Synchronizing the gift information to a shared module;

[0008] Using the cross-platform key business logic of virtual gifts in the shared module, synchronizing the gift information to each platform, and determining the gift special effects corresponding to the virtual gifts according to the gift information, and processing the special effect display of each platform for the gift special effects.

[0009] Furthermore, before obtaining gift information of the virtual gift in response to a sending request executed by the user for the virtual gift, the method further includes:

[0010] Based on the cross-platform development framework, set up the cross-platform virtual gift key business logic, and store the virtual gift key business logic in the shared module.

[0011] Furthermore, the key business logic of virtual gifts includes: gift information synchronization logic and gift special effect display logic;

[0012] Using the cross-platform virtual gift key business logic in the shared module, the gift information is synchronized to each platform, and the gift special effects corresponding to the virtual gift are determined according to the gift information. Processing the special effects display of the gift special effects on each platform further includes:

[0013] Utilize the gift information synchronization logic in the shared module to parse the gift information, and synchronize the parsed gift information to various platforms through the synchronization interface;

[0014] Determine the gift special effect corresponding to the virtual gift according to the gift type in the gift information;

[0015] Utilize the gift special effects display logic in the shared module and process the special effects display of each platform for gift special effects through the special effects display interface, so that each platform can play gift special effects.

[0016] Further, using the gift information synchronization logic in the sharing module to parse the gift information, and synchronizing the parsed gift information to each platform through the synchronization interface further includes:

[0017] Utilize the gift information synchronization logic in the shared module, parse the gift information through the gift data model in the shared module, and synchronize the parsed gift information to each platform through the synchronization interface.

[0018] Furthermore, the gift data model includes a gift identifier, a gift type, a special effect duration, and additional attributes.

[0019] Furthermore, the method further comprises:

[0020] After the gift special effects are played, the system resources occupied by the gift special effects during the playing process are cleaned up.

[0021] According to another aspect of an embodiment of the present application, a cross-platform virtual gift processing system is provided, including:

[0022] An acquisition unit, adapted to acquire gift information of a virtual gift in response to a sending request executed by a user for a virtual gift; and synchronize the gift information to a sharing module;

[0023] The processing unit is suitable for utilizing the cross-platform virtual gift key business logic in the shared module to synchronize gift information to each platform, determine the gift special effects corresponding to the virtual gift according to the gift information, and process the special effects display of the gift special effects on each platform.

[0024] According to another aspect of the embodiment of the present application, there is provided a computing device, including: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0025] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned cross-platform virtual gift processing method.

[0026] According to another aspect of the embodiments of the present application, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned cross-platform virtual gift processing method.

[0027] According to another aspect of an embodiment of the present application, a computer program product is provided, comprising at least one executable instruction, wherein the executable instruction enables a processor to perform operations corresponding to the above-mentioned cross-platform virtual gift processing method.

[0028] According to the technical solution provided in the embodiment of the present application, by sharing the cross-platform virtual gift key business logic to synchronize gift information to each platform and process the gift special effects display of different platforms, not only the repetitive development work between platforms is effectively reduced, the development and maintenance costs are reduced, the development complexity is reduced, and the development efficiency is greatly improved, but also it is effectively ensured that consistent gift special effects can be displayed between different platforms, ensuring cross-platform consistency and improving user experience; and, a cross-platform resource management and automatic cleanup mechanism can also be adopted to effectively ensure that the corresponding system resources of the gift special effects can be released in time after the playback is completed, thereby avoiding memory leaks, improving resource management efficiency, optimizing system performance, and effectively maintaining efficient system operation.

[0029] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation method of the embodiment of the present application is listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only used for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present application. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0031] Figure 1 A schematic diagram showing a process flow of a cross-platform virtual gift processing method according to an embodiment of the present application is shown;

[0032] Figure 2 A schematic diagram showing a flow chart of a cross-platform virtual gift processing method according to another embodiment of the present application is shown;

[0033] Figure 3 A structural block diagram of a cross-platform virtual gift processing system according to an embodiment of the present application is shown;

[0034] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0036] First, the terms involved in one or more embodiments of the present application are explained.

[0037] KMP (Kotlin Multiplatform): is a cross-platform development framework based on the Kotlin programming language that allows developers to write cross-platform application code and share business logic on different platforms (such as Android, iOS, Web, Hongmeng, etc.).

[0038] Memory leak: refers to the situation where a program applies for memory (such as creating objects and variables) during operation, but does not release the memory properly after use, causing the memory to remain occupied and unable to be used again. As time goes by, more and more memory is leaked, which may eventually cause the program to run slower, freeze, or even crash.

[0039] Figure 1 A schematic diagram of a process of a cross-platform virtual gift processing method according to an embodiment of the present application is shown. Figure 1 As shown, the method comprises the following steps:

[0040] Step S101, in response to a sending request executed by a user for a virtual gift, acquiring gift information of the virtual gift.

[0041] In a live broadcast environment, users can watch the live broadcast content of the anchor through the client, and can also interact with the anchor and other viewers during the viewing process by sending virtual gifts to the anchor. In the process of sending virtual gifts, the gift special effects corresponding to the virtual gifts need to be synchronously displayed in the live broadcast interface. Specifically, a variety of virtual gifts are set in the virtual gift panel in the live broadcast interface, and users can select the virtual gifts they want to send and generate a sending request for the virtual gift. In response to the sending request, the gift information of the virtual gift is obtained, so as to determine the gift special effects to be played according to the gift information and display the special effects. Among them, the gift information may include: gift identification, gift type, special effect duration, additional attributes and other information.

[0042] Step S102, synchronizing the gift information to the sharing module.

[0043] In an embodiment of the present application, gift information is synchronized to each platform by sharing a cross-platform virtual gift key business logic, and gift special effects display on different platforms are processed. Specifically, a cross-platform virtual gift key business logic written based on a cross-platform development framework is provided in the shared module. The virtual gift key business logic is specifically the core logic code related to virtual gift processing. The virtual gift key business logic can be run on different platforms, and different platforms may include Android, iOS, Hongmeng, Web platform, etc. After the gift information of the virtual gift is obtained in step S101, the gift information is synchronized to the shared module, so as to use the virtual gift key business logic and gift information in the shared module to perform gift information synchronization and gift special effects display and other processing.

[0044] Step S103, using the cross-platform virtual gift key business logic in the shared module, synchronize the gift information to each platform, determine the gift special effects corresponding to the virtual gift according to the gift information, and process the special effects display of the gift special effects on each platform.

[0045] Among them, the key business logic of virtual gifts may include: gift information synchronization logic and gift special effect display logic. Specifically, the gift information synchronization logic in the shared module can be used to synchronize gift information to each platform; and the shared model can determine the gift special effects corresponding to the virtual gift based on the gift information, wherein the gift special effects may include animation special effects, particle special effects, sound effects, full-screen special effects, bullet screen special effects, etc. In the embodiment of the present application, it is not necessary for each platform to determine which gift special effects need to be played for the virtual gift; the gift special effect display logic in the shared module is used to process the special effects display of gift special effects on each platform, and each platform can present the corresponding effects according to its corresponding rendering engine.

[0046] According to the cross-platform virtual gift processing method provided in the embodiment of the present application, by sharing the cross-platform virtual gift key business logic to synchronize gift information to each platform and process the gift special effects display of different platforms, it not only effectively reduces the repetitive development work between platforms, reduces development and maintenance costs, reduces development complexity, and greatly improves development efficiency, but also effectively ensures that consistent gift special effects can be displayed between different platforms, ensures cross-platform consistency, and improves user experience.

[0047] Figure 2 A schematic diagram of a cross-platform virtual gift processing method according to another embodiment of the present application is shown. Figure 2 As shown, the method comprises the following steps:

[0048] Step S201, based on the cross-platform development framework, set the cross-platform virtual gift key business logic, and store the virtual gift key business logic in the shared module.

[0049] In the embodiment of the present application, the cross-platform virtual gift key business logic is shared through a cross-platform development framework. The cross-platform development framework can be specifically a KMP development framework, and a set of virtual gift key business logic can be written in the Kotlin programming language. The virtual gift key business logic can be run on different platforms such as Android, iOS, Web, and Hongmeng. By sharing the virtual gift key business logic, it can effectively reduce the repeated development work between platforms, reduce development and maintenance costs, reduce development complexity, and greatly improve development efficiency.

[0050] Among them, a cross-platform virtual gift key business logic is set. The virtual gift key business logic is specifically the core logic code related to virtual gift processing. Specifically, the virtual gift key business logic may include gift information synchronization logic and gift special effect display logic; utilizing the cross-platform characteristics of the KMP development framework, the gift information synchronization logic and gift special effect display logic are stored in a shared module to be shared to various platforms. The shared module is responsible for processing the synchronization of gift information and the display of gift special effects. Each platform only needs to implement platform-related UI rendering, video playback and other functions.

[0051] Step S202, in response to the user's sending request for the virtual gift, obtain the gift information of the virtual gift, and synchronize the gift information to the sharing module.

[0052] In the live broadcast environment, a variety of virtual gifts are set in the virtual gift panel in the live broadcast interface, such as flowers, love, applause, cheers, fireworks, meteor showers, snowflakes, butterflies, sports cars, blind boxes, bullet screens and other virtual gifts. Different types of virtual gifts have different gift effects, which may include animation effects, particle effects, sound effects, full-screen effects, bullet screen effects, etc. Among them, animation effects attract attention through dynamic visual elements; particle effects create an atmosphere through a large number of tiny particle effects, usually with a sense of flow or diffusion; sound effects enhance the expressiveness of virtual gifts through sound, usually combined with animation effects or particle effects; full-screen effects cover the entire live broadcast screen to create a strong visual impact; bullet screen effects display virtual gifts in the form of bullet screens to enhance interactivity.

[0053] For example, the gift special effects corresponding to the virtual gift fireworks may include animation effects of fireworks blooming, the gift special effects corresponding to the virtual gift snowflakes may include particle effects of snowflakes falling, the gift special effects corresponding to the virtual gift applause may include sound effects of applause, and the gift special effects corresponding to the virtual gift sports car may include animation effects and sound effects of the sports car starting.

[0054] When watching a live broadcast, the user can select the virtual gift that he wants to send to the anchor from the virtual gift panel, and generate a sending request for the virtual gift, wherein the sending request may include information such as the user ID, the live broadcast room ID, the gift ID of the virtual gift (such as the gift ID), and the request time. In step S202, in response to the sending request, the gift information of the virtual gift is obtained. For example, the gift ID of the virtual gift can be extracted from the sending request, and the gift information related to the gift ID can be obtained from the database, etc. using the network request library; the gift information is synchronized to the sharing module, so as to use the virtual gift key business logic and gift information in the sharing module to perform gift information synchronization and gift special effect display and other processing.

[0055] Step S203, using the gift information synchronization logic in the sharing module, the gift information is parsed, and the parsed gift information is synchronized to each platform through the synchronization interface.

[0056] In an embodiment of the present application, a cross-platform sharing of key business logic and gift data models of virtual gifts is realized through a cross-platform development framework. Among them, in the sharing module, a gift data model is defined, such as GiftInfo, and the gift data model includes gift identification, gift type, special effect duration and additional attributes, etc., wherein the additional attributes may include the color, size, image, price, etc. of the virtual gift. The gift data model is used to parse gift information and synchronize gift information between different platforms. In order to facilitate the synchronization of gift information to different platforms, a general and unified synchronization interface is also defined to ensure that gift information can be consistently obtained and updated on different platforms.

[0057] Utilize the gift information synchronization logic in the shared module, parse the gift information through the gift data model in the shared module, and synchronize the parsed gift information to each platform through the synchronization interface. Each platform needs to implement the synchronization interface to handle the acquisition and synchronization of gift information on different platforms. For example, both the Android platform and the iOS platform need to implement the synchronization interface to pull gift information from the server through the synchronization interface and ensure synchronization updates.

[0058] Step S204: Determine the gift special effect corresponding to the virtual gift according to the gift type in the gift information.

[0059] Among them, there is a corresponding relationship between the gift type and the gift special effect, and those skilled in the art can set the corresponding relationship according to actual needs, which is not specifically limited here. In step S204, the sharing model can determine which gift special effect or effects need to be displayed for the virtual gift based on the gift type in the acquired gift information and the corresponding relationship.

[0060] Step S205, using the gift special effect display logic in the shared module, processing the special effect display of each platform for the gift special effect through the special effect display interface, so that each platform plays the gift special effect.

[0061] In order to facilitate the processing of gift special effects display on different platforms, a general and unified special effects display interface is also defined to handle the special effects display of virtual gifts of different gift types, including animation special effects, particle special effects, sound effects, etc. The embodiment of the present application is implemented through cross-platform special effects. After determining the gift special effects that need to be displayed, the gift special effects display logic in the shared module is used to process the special effects display of each platform for gift special effects through the special effects display interface. Different platforms play the corresponding gift special effects according to the specific implementation, and the corresponding gift special effects can be played in the platform-specific module to ensure the complete display of the gift special effects. Different platforms present gift special effects in different ways, and need to present the corresponding effects according to their specific rendering engines, but the core gift special effects display logic is implemented through shared code.

[0062] The embodiment of the present application effectively ensures that consistent gift effects can be displayed between different platforms by sharing the gift data model and cross-platform gift special effects display logic, ensures cross-platform consistency, and improves user experience.

[0063] The following is an example of a cross-platform special effect implementation:

[0064] class GiftEffectPlayerImpl:GiftEffectPlayer{

[0065]

[0066] In the above example, it is implemented using KorGE and can be used on Android and iOS platforms. Specifically, the above code uses the Kotlin programming language to write a class called GiftEffectPlayerImpl, which implements the GiftEffectPlayer interface (i.e., the special effects display interface) and overrides the playGiftEffect method. This class is responsible for dynamically loading and playing the corresponding gift special effects, including animation special effects, particle special effects, and sound special effects, according to the different gift types (type) of the parameter giftInfo (i.e., gift information) of the passed-in gift data model (GiftInfo), completing the dynamic special effects display and cross-platform implementation.

[0067] Among them, the when expression is used to handle different types of gift special effects, and the special effect type of the virtual gift is determined according to the value of giftInfo.type. If the value of giftInfo.type is "animation", it means that animation special effects need to be played, then the video player object videoPlayer is configured, initialized by videoPlayer("animations / ${giftInfo.id}.mp4"), and the video file with the path animations / ${giftInfo.id}.mp4 is loaded, and videoPlayer.play() is used to play the animation. If the value of giftInfo.type is "particle", it means that particle special effects need to be played, then the particle system object particleSystem is configured, initialized by ParticleSystem("particles / ${giftInfo.id}.json"), and the particle configuration file with the path particles / ${giftInfo.id}.json is loaded, and particleSystem.start() is used to play particle special effects. If the value of giftInfo.type is "sound", indicating that sound effects need to be played, the sound effect player object soundPlayer is configured, initialized through SoundPlayer("sounds / ${giftInfo.id}.mp3"), and the audio file with the path sounds / ${giftInfo.id}.mp3 is loaded. SoundPlayer.play() is used to play the sound effects.

[0068] Step S206, after the gift special effects are played, the system resources occupied by the gift special effects during the playing process are cleaned up.

[0069] Considering that each gift special effect will occupy certain system resources (such as video player objects, particle system objects, sound effect player objects, etc.) during playback, in order to avoid memory leaks and performance degradation, the embodiment of the present application also introduces a cross-platform resource management and automatic cleanup mechanism. For gift special effects such as animations, particles, and sound effects, after playback, the relevant system resources occupied by them are automatically cleaned up in a timely manner, effectively maintaining the efficient operation of the system. Based on the cross-platform development framework, the sharing module can ensure that no unnecessary memory leaks are generated during the playback of animations and other gift special effects by reasonably managing the object life cycle, so that system resources can be cleaned up in a timely manner when no longer needed, achieving memory optimization.

[0070] After the gift special effects are played, the sharing module can call back each platform to notify each platform that the gift special effects have been played. In an optional implementation, a general and unified resource cleaning interface can also be defined. Through the resource cleaning interface, the system resources occupied by the gift special effects during the playback process are cleaned up according to the preset cleaning strategy; in another optional implementation, after the gift special effects are played, each platform cleans up the system resources occupied by the gift special effects during the playback process according to the preset cleaning strategy. Those skilled in the art can set the preset cleaning strategy according to actual needs, and no specific limitation is made here. For example, the usage characteristics of system resources related to gift special effects can be analyzed based on the historical interaction data of each user on virtual gifts, and then the preset cleaning strategy can be reasonably set.

[0071] In specific application scenarios, a certain life cycle can be preset for system resources related to gift special effects. When a system resource exists for longer than its corresponding preset life cycle, the system resource is automatically cleaned up so that the system resource is released in time when it is no longer needed to avoid memory leaks.

[0072] According to the cross-platform virtual gift processing method provided by the embodiment of the present application, the cross-platform characteristics of the cross-platform development framework are utilized to store the gift information synchronization logic and the gift special effect display logic in the shared module. The gift information is synchronized to each platform through the shared module and the gift special effect display of different platforms is processed. Different platforms play the corresponding gift special effects according to the specific implementation, thereby ensuring the diversified display of gift special effects and the consistency across platforms, effectively reducing the repeated development work between platforms, reducing the development complexity, simplifying the development process, and greatly improving the development efficiency; and, adopting a cross-platform resource management and automatic cleanup mechanism, effectively ensuring that the corresponding system resources of the gift special effects can be released in time after the playback is completed, avoiding memory leakage problems, improving resource management efficiency, realizing efficient resource management, optimizing system performance, and effectively maintaining efficient operation of the system; the embodiment of the present application provides a cross-platform, efficient and consistent gift information synchronization and special effect display solution, which effectively solves the problems of high complexity, development redundancy, inconsistent special effect display, and improper resource management in the prior art.

[0073] Figure 3 A structural block diagram of a cross-platform virtual gift processing system according to an embodiment of the present application is shown. Figure 3 As shown, the system includes: an acquisition unit 310 and a processing unit 320.

[0074] The acquisition unit 310 is adapted to: acquire gift information of a virtual gift in response to a sending request executed by a user for a virtual gift; and synchronize the gift information to the sharing module.

[0075] The processing unit 320 is suitable for: utilizing the cross-platform virtual gift key business logic in the shared module to synchronize the gift information to each platform, determining the gift special effects corresponding to the virtual gift according to the gift information, and processing the special effects display of the gift special effects on each platform.

[0076] Optionally, the system further includes a setting unit 330; the setting unit 330 is adapted to: based on a cross-platform development framework, set a cross-platform virtual gift key business logic, and store the virtual gift key business logic in a shared module.

[0077] Optionally, the key business logic of virtual gifts includes: gift information synchronization logic and gift special effects display logic; the processing unit 320 is further suitable for: utilizing the gift information synchronization logic in the shared module to parse the gift information, and synchronizing the parsed gift information to each platform through the synchronization interface; determining the gift special effects corresponding to the virtual gift according to the gift type in the gift information; utilizing the gift special effects display logic in the shared module to process the special effects display of the gift special effects on each platform through the special effects display interface, so that each platform can play the gift special effects.

[0078] Optionally, the processing unit 320 is further adapted to: utilize the gift information synchronization logic in the sharing module, parse the gift information through the gift data model in the sharing module, and synchronize the parsed gift information to each platform through the synchronization interface.

[0079] Optionally, the gift data model includes a gift identifier, a gift type, a special effect duration, and additional attributes.

[0080] Optionally, the processing unit 320 is further adapted to: after the gift special effect is played, clean up the system resources occupied by the gift special effect during the playing process.

[0081] The description of the above units refers to the corresponding description in the method embodiment, which will not be repeated here.

[0082] According to the cross-platform virtual gift processing system provided by the embodiment of the present application, the cross-platform characteristics of the cross-platform development framework are utilized to store the gift information synchronization logic and the gift special effect display logic in the shared module. The gift information is synchronized to each platform through the shared module and the gift special effect display of different platforms is processed. Different platforms play the corresponding gift special effects according to the specific implementation, ensuring the diversified display of gift special effects and the consistency across platforms, effectively reducing the repeated development work between platforms, reducing the development complexity, simplifying the development process, and greatly improving the development efficiency; and, adopting a cross-platform resource management and automatic cleanup mechanism, effectively ensuring that the corresponding system resources of the gift special effects can be released in time after the playback is completed, avoiding memory leakage problems, improving resource management efficiency, realizing efficient resource management, optimizing system performance, and effectively maintaining efficient operation of the system; the embodiment of the present application provides a cross-platform, efficient and consistent gift information synchronization and special effect display solution, which effectively solves the problems of high complexity, development redundancy, inconsistent special effect display and improper resource management existing in the prior art.

[0083] An embodiment of the present application provides a non-volatile computer storage medium, which stores at least one executable instruction or computer program, which enables a processor to perform operations corresponding to the cross-platform virtual gift processing method in any of the above-mentioned method embodiments.

[0084] An embodiment of the present application provides a computer program product, which includes at least one executable instruction or computer program, which can enable a processor to perform operations corresponding to the cross-platform virtual gift processing method in any of the above-mentioned method embodiments.

[0085] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the computing device.

[0086] like Figure 4 As shown, the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

[0087] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the cross-platform virtual gift processing method for a computing device.

[0088] Specifically, the program 410 may include program codes, which include computer operation instructions.

[0089] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0090] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0091] Program 410 can be specifically used to enable processor 402 to execute the cross-platform virtual gift processing method in any of the above-mentioned method embodiments. The specific implementation of each step in program 410 can refer to the corresponding descriptions in the corresponding steps and units in the above-mentioned cross-platform virtual gift processing method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiments, which will not be repeated here.

[0092] The algorithm and display provided herein are not inherently related to any specific computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the present application embodiment is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present application embodiment described herein, and the above description of specific languages ​​is to disclose the best mode of implementation of the present application embodiment.

[0093] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0094] Similarly, it should be understood that in order to streamline the present disclosure and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed embodiments of the present application require more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the embodiment of the present application.

[0095] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0096] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the embodiments of the present application and to form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0097] The various component embodiments of the embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to the embodiments of the present application. The embodiments of the present application can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the embodiments of the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0098] It should be noted that the above embodiments illustrate rather than limit the embodiments of the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The embodiments of the present application may be implemented by means of hardware including several different elements and by means of appropriately programmed computers. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

Claims

1. A cross-platform virtual gift processing method, comprising: In response to a sending request executed by a user for a virtual gift, acquiring gift information of the virtual gift; Synchronize the gift information to the sharing module; The cross-platform virtual gift key business logic in the shared module is utilized to synchronize the gift information to each platform, determine the gift special effects corresponding to the virtual gift based on the gift information, and process the special effects display of the gift special effects on each platform.

2. The method according to claim 1, before obtaining the gift information of the virtual gift in response to the sending request executed by the user for the virtual gift, the method further comprises: Based on the cross-platform development framework, a cross-platform virtual gift key business logic is set, and the virtual gift key business logic is stored in the shared module.

3. The method according to claim 1, wherein: The key business logic of virtual gifts includes: gift information synchronization logic and gift special effect display logic; The utilizing the cross-platform virtual gift key business logic in the shared module to synchronize the gift information to each platform, and determining the gift special effect corresponding to the virtual gift according to the gift information, and processing the special effect display of the gift special effect on each platform further includes: Utilizing the gift information synchronization logic in the sharing module, the gift information is parsed, and the parsed gift information is synchronized to each platform through the synchronization interface; Determine, according to the gift type in the gift information, a gift special effect corresponding to the virtual gift; By utilizing the gift special effect display logic in the shared module, the special effect display of each platform for the gift special effect is processed through the special effect display interface, so that each platform can play the gift special effect.

4. The method according to claim 3, wherein the gift information synchronization logic in the sharing module is used to parse the gift information, and the parsed gift information is synchronized to each platform through a synchronization interface, further comprising: The gift information synchronization logic in the shared module is utilized to parse the gift information through the gift data model in the shared module, and the parsed gift information is synchronized to each platform through the synchronization interface.

5. According to the method of claim 4, the gift data model includes gift identification, gift type, special effect duration and additional attributes.

6. The method according to any one of claims 1 to 5, further comprising: After the gift special effect is played, the system resources occupied by the gift special effect during the playing process are cleaned up.

7. A cross-platform virtual gift processing system, comprising: an acquisition unit, adapted to acquire gift information of the virtual gift in response to a sending request executed by a user for the virtual gift; Synchronize the gift information to the sharing module; The processing unit is suitable for utilizing the cross-platform virtual gift key business logic in the shared module to synchronize the gift information to each platform, determine the gift special effects corresponding to the virtual gift according to the gift information, and process the special effects display of the gift special effects on each platform.

8. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the cross-platform virtual gift processing method as described in any one of claims 1-6.

9. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to perform operations corresponding to the cross-platform virtual gift processing method as described in any one of claims 1-6.

10. A computer program product, comprising at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the cross-platform virtual gift processing method as described in any one of claims 1-6.