Information display method and related equipment
By generating double array models and transition data of presentation methods, the problem of unsmooth display of special effects combinations is solved, and the smooth display of multiple special effects and user experience is improved.
Patent Information
- Application Number
- CN202110869306.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-30
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-07-30
AI Technical Summary
The existing technology cannot effectively display multiple special effect combinations, resulting in poor display of special effect combinations and poor user experience.
By obtaining message display information, including the prop identification code to be displayed and the corresponding display method identification code, generating a dual array model, constructing the display method transition data, realizing the overall display of special effects combinations, ensuring the special effects transformation process and combination, and avoiding other special effects jumping and playing in a queue. .
It realizes smooth display of multiple special effects, improving the user's freshness and experience quality.
Smart Images

Figure CN115695886B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an information display method and related equipment. Background Art
[0002] When live streaming, user terminals and anchor terminals often need to display special effects. Generally, the special effect display process only requires displaying one special effect. However, when faced with multiple special effect combinations, existing technical solutions cannot display the special effect combination and can only display the special effects in the combination one by one. As a result, the special effect combination is easily affected by the special effects in the non-special effect combination during the display process, resulting in an unsmooth display of the special effect combination and a poor user experience. Summary of the invention
[0003] The embodiment of the present invention provides an information display method and related equipment, which avoids the problem of poor display effect of special effect combination.
[0004] In a first aspect, an embodiment of the present invention provides an information display method, which is used in a user terminal, including:
[0005] Acquire message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed;
[0006] When the display mode identification code of the prop to be displayed corresponds to at least two display modes, a first display mode for display is generated based on the identification code of the prop to be displayed, wherein the first display mode includes initial display information and a first preset screen, and the initial display information is text information;
[0007] A second display mode is generated based on the text information, wherein the second display mode includes a screen corresponding to the text information and a second preset screen; and information display is completed based on the first display mode and the second display mode.
[0008] Optionally, the step of completing information display based on the first display mode and the second display mode includes:
[0009] The identification code of the props to be displayed and the identification code of the display mode of the props to be displayed generate a double array model;
[0010] Constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model;
[0011] Inserting the display mode transition data into the dual array model to generate an overall display array;
[0012] The props to be displayed corresponding to the message display information are displayed based on the overall display array.
[0013] Optionally, the step of generating a double array model based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed includes:
[0014] Searching for target display information corresponding to the message display information based on the identification code of the prop to be displayed and the display mode identification code corresponding to the prop to be displayed, wherein the source of the message display information is the server side, the source of the target display information is the gift interface, and the gift interface is an interface for obtaining gift data of the prop to be displayed;
[0015] The dual array model is generated based on the message display information and the target display information.
[0016] Optionally, before the step of constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model, the method further includes:
[0017] Constructing a transformation function based on the message display information and the target display information, wherein the transformation function is used to transform the display mode of the props to be displayed;
[0018] The transformation function is distributed with the dual array model.
[0019] Optionally, the step of constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model includes:
[0020] Acquire animation special effects model data according to the transformation function;
[0021] Convert the animation special effects model data into an animation special effects array;
[0022] The animation special effect array is used as display mode transition data between adjacent display modes.
[0023] Optionally, the step of displaying the props to be displayed corresponding to the message display information based on the overall display array includes:
[0024] Use the cross-module function calling method to call the play function;
[0025] The props to be displayed are displayed based on the playback function.
[0026] Optionally, the step of constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model includes:
[0027] The double array model is constructed based on the function:
[0028] NSMutableArray*animations=[DYSharkCookTool getAnimations:countgiftSocketModel:dgbpropInfo:propInfo animation:animation propGiftCount:propGiftCount];
[0029] Construct display mode transition data between adjacent display modes in the at least two display modes, wherein DYSharkCookTool is a tool for constructing a dual display mode, getAnimations is a function for constructing a dual display mode, count is the number of functions for constructing a dual display mode, giftSocketModel is the first model data for constructing a dual display mode, propInfo is the data of a second model for constructing a dual model, animation represents the transformed model data, NSMutableArray*animations is the transition data finally obtained, and the first model data, the second model data and the transformed model data are basic data obtained according to the message display information and the target display information.
[0030] In a second aspect, an embodiment of the present application provides an information display device, including:
[0031] A data acquisition module, used to acquire message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed;
[0032] A generating module, when the display mode identification code of the prop to be displayed corresponds to at least two display modes, generates a first display mode for display based on the identification code of the prop to be displayed, wherein the first display mode includes initial display information and a first preset screen, and the initial display information is text information;
[0033] A conversion module, configured to generate a second display mode based on the text information, wherein the second display mode includes a screen corresponding to the text information and a second preset screen;
[0034] The playing module is used to complete information display based on the first display mode and the second display mode.
[0035] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the above-mentioned memory and executable on the above-mentioned processor, wherein the above-mentioned processor is used to implement the steps of the above-mentioned information display method when executing the computer program stored in the memory.
[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored: when the above-mentioned computer program is executed by a processor, the steps of the above-mentioned information display method are implemented.
[0037] The embodiments of the above invention have the following advantages or beneficial effects:
[0038] By acquiring message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed; when the identification code of the display mode of the prop to be displayed corresponds to at least two display modes, generating a second display mode based on a first display mode that is displayed first, wherein the first display mode includes the identification code of the prop to be displayed; generating a second special effect through a first special effect, thereby realizing a special effect generation method; when the identification code of the display mode of the prop to be displayed corresponds to at least two display modes, generating a dual array model based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed; transforming the message display information based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed, so that the data of the dual array model is According to the gift interface from the server and the user terminal, the dual array model can be realized to provide a data basis for the subsequent steps; according to the dual array model, the display mode transition data between the adjacent display modes in the at least two display modes is constructed; when playing the special effects, other special effects can be transformed to realize the display process of the special effect combination; the display mode transition data is inserted into the dual array model to generate an overall display array; the display mode transition data between the adjacent display modes in the special effect combination containing at least two special effects is inserted into the dual array model of the special effect to generate an overall display array, so that the special effect transformation process is combined with the special effect, so that when the special effect combination is displayed, it cannot be interrupted by other special effects; based on the overall display array, the props to be displayed corresponding to the message display information are displayed. Multiple special effects can be played, which is obviously more complicated than the conventional special effect playback and has more steps, which is very helpful for improving the user's freshness. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flow chart of an information display method provided in an embodiment of the present application;
[0040] Figure 2 It is a structural schematic diagram of an information display device provided in an embodiment of the present application;
[0041] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0042] Figure 4It is a schematic diagram of the structure of a storage medium provided in an embodiment of the present application;
[0043] Figure 5 It is an information display scene diagram provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0045] Figure 1 This is a flow chart of an information display method provided in an embodiment of the present application. The information display method provided in this embodiment can be applied to live broadcast scenarios. The method can be executed by an information display device, which can be implemented by software and / or hardware, and is usually integrated in a terminal.
[0046] like Figure 1 As shown, an embodiment of the present invention provides an information display method for a user terminal, which specifically includes the following steps:
[0047] S101, obtaining message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed;
[0048] In a possible implementation, the server message is monitored to obtain the message display information, and the monitoring function is:
[0049] message:(NSString*)message eventType:
[0050] Among them, message: is the function name of the function that receives the message, (NSString*)message is the message string of the message received from the server, and eventType is the string of the message received from the server.
[0051] For example, when the monitored event actually occurs, the event generator will send a message to the listener that registered the event, telling the listener certain information. At the same time, the listener can also obtain an event object, based on which it can obtain relevant properties and perform relevant operations.
[0052] Then, the monitoring method can be used to obtain message display information in a timely manner, thereby avoiding interference of other messages to the user terminal.
[0053] S102, when the display mode identification code of the prop to be displayed corresponds to at least two display modes, generating a first display mode for displaying first based on the identification code of the prop to be displayed, wherein the first display mode includes initial display information and a first preset screen, and the initial display information includes text information;
[0054] Understandably, reference Figure 5 , Figure 5 There are two ways to display props: Figure 5 The figure on the left in the middle represents the first display mode, Figure 5 The figure on the right of the figure represents the second display mode; the first display mode includes initial display information (ie Figure 5 banner information in the ) and the first preset screen ( Figure 5 The cartoon character in the left figure, i.e., the first special effect), the initial display information includes text information (the words "cooking a spaceship");
[0055] S103: Generate a second display mode based on the first display mode, wherein the second display mode includes a second preset screen corresponding to the text information; wherein the step of generating the second display mode based on the first display mode is specifically: converting the first preset screen into the second preset screen based on the text information of the initial display information; it is understandable that, based on this step, the second display mode is generated according to the banner content in the first display mode, and the conversion of the two special effects is realized, and the conversion method of the two special effects is specifically:
[0056] Based on the text information in the banner in the first display mode, the first preset picture (first special effect) is converted into the second preset picture (second special effect, i.e. Figure 5 The cartoon spaceship special effects image in the figure on the right) thus realizes the conversion of the special effects between the first display mode and the second display mode.
[0057] S104, completing information display based on the first display mode and the second display mode;
[0058] When the display mode identification code of the prop to be displayed corresponds to at least two display modes, generating a double array model based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed;
[0059] In a possible implementation, the step of generating a dual array model based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed includes:
[0060] Searching for target display information corresponding to the message display information based on the identification code of the prop to be displayed and the display mode identification code corresponding to the prop to be displayed, wherein the source of the message display information is the server side, the source of the target display information is the gift interface, and the gift interface is an interface for obtaining gift data of the prop to be displayed;
[0061] The dual array model is generated based on the message display information and the target display information.
[0062] Exemplarily, based on the identification code of the prop to be displayed and the identification code of the display mode corresponding to the prop to be displayed, the transformation function is:
[0063] PropId:dgb.pid effectId:dgb.eid completion:
[0064] The target display information is transformed through a message. The monitored message comes from the server. The target display information is obtained from the gift interface. The message from the server and the message content obtained from the gift interface are combined and encapsulated into the double array model.
[0065] In a possible implementation manner, before the step of constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model, the method further includes:
[0066] Constructing a transformation function based on the message display information and the target display information, wherein the transformation function is used to transform the display mode of the props to be displayed;
[0067] The transformation function is distributed with the dual array model.
[0068] For example, after receiving a message from the server, the message needs to be passed to the controller, which complies with the function:
[0069] -(void)receivedCount:(NSInteger)count giftModel:(model*)dgb propInfo:(NSDictionary*)propInfo prop:(DYEffectGroupModel*)prop
[0070] To display and transform special effects, where receivedCount is the function that receives messages, (NSInteger)count is the number of times the special effect is shown, giftModel is the model of the gift, that is, the gift model corresponding to the gift id, (model*)dgb is the model corresponding to the special effect that needs to be displayed, that is, the gift model corresponding to the prop id, propInfo: (NSDictionary*)propInfo is the message type that needs to be monitored, which is a prop model for transforming special effects, that is, the model corresponding to the prop, prop: (DYEffectGroupModel*)prop is another prop model that needs to be queued, and the other prop model that needs to be queued is obtained through the message display information, and the prop id and gift id are obtained through the message display information.
[0071] Exemplarily, the function is implemented in two levels:
[0072] [self showAnimationWithEggSentCount:count giftSocketModel:dgbpropInfo:propInfo animation:propEffect.animation propGiftCount:propGiftCount];
[0073] Distribute the dgb parameter, propInfo parameter, propEffect.animation parameter and propGiftCount parameter, where Self is the current controller and showAnimationWithEggSentCount is the method for displaying special effects.
[0074] By further distributing the above-mentioned transformation functions and models, common codes can be shared as much as possible, thus reducing code complexity and simplifying the development process.
[0075] In a possible implementation, the step of constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model includes:
[0076] Acquire animation special effects model data according to the transformation function;
[0077] Convert the animation special effects model data into an animation special effects array;
[0078] The animation special effect array is used as display mode transition data between adjacent display modes.
[0079] Exemplarily, the step of constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model includes:
[0080] The double array model is constructed based on the function:
[0081] NSMutableArray*animations=[DYSharkCookTool getAnimations:countgiftSocketModel:dgbpropInfo:propInfo animation:animation propGiftCount:propGiftCount];
[0082] Construct display mode transition data between adjacent display modes in the at least two display modes, wherein DYSharkCookTool is a tool for constructing a dual display mode, getAnimations is a function for constructing a dual display mode, count is the number of functions for constructing a dual display mode, giftSocketModel is the first model data for constructing a dual display mode, propInfo is the data of a second model for constructing a dual model, animation represents the transformed model data, NSMutableArray*animations is the transition data finally obtained, and the first model data, the second model data and the transformed model data are basic data obtained according to the message display information and the target display information.
[0083] In a possible implementation, the display mode transition data is inserted into the dual array model to generate an overall display array;
[0084] Inserting the display mode transition data into the dual array model to generate an overall display array; inserting the display mode transition data between adjacent display modes in a special effect combination containing at least two special effects into the dual array model of the special effect to generate an overall display array, so that the special effect transformation process is combined with the special effect, so that when the special effect combination is displayed, it cannot be interrupted by other special effects
[0085] In a possible implementation, the props to be displayed corresponding to the message display information are displayed based on the overall display array.
[0086] In a possible implementation, the step of displaying the props to be displayed corresponding to the message display information based on the overall display array includes:
[0087] Use the cross-module function calling method to call the play function;
[0088] The props to be displayed are displayed based on the playback function.
[0089] Exemplarily, the step of displaying the props to be displayed corresponding to the message display information based on the overall display array includes:
[0090] Play the function by default:
[0091] box_callerWithCheckSelector(DYBGiftInterfaceProtocol,@selector(play:animations:),play:dgb animations:animations.copy);
[0092] Display the props to be displayed corresponding to the message display information, where box_callerWithCheckSelector is a cross-module function call method, DYBGiftInterfaceProtocol is a playback interface function, @selector(play:animations:) is a pointer to the called playback interface function, and lay:dgb animations:animations.copy is the target display array.
[0093] By acquiring message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed; when the identification code of the display mode of the prop to be displayed corresponds to at least two display modes, a dual array model is generated based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed; based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed, the message display information is transformed so that data of the dual array model is derived from a gift interface between a server and a user terminal, thereby realizing that the dual array model can be realized and providing a data basis for subsequent steps; according to the dual array model The double array model constructs display mode transition data between adjacent display modes in the at least two display modes; so that other special effects can be transformed when playing special effects, and the display process of the special effect combination is realized; the display mode transition data is inserted into the double array model to generate an overall display array; the display mode transition data between adjacent display modes in a special effect combination including at least two special effects is inserted into the double array model of the special effect to generate an overall display array, so that the special effect transformation process is combined with the special effect, so that when the special effect combination is displayed, it cannot be interrupted by other special effects; based on the overall display array, the props to be displayed corresponding to the message display information are displayed.
[0094] The following is an embodiment of an information display device provided by an embodiment of the present invention. The device and the information display methods of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the information display device, reference can be made to the embodiment of the above-mentioned text processing method.
[0095] In one possible real-time approach, Figure 2 As shown, the embodiment of the present application provides an information display device, including:
[0096] The data acquisition module 201 is used to acquire message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed;
[0097] A generating module 202, when the display mode identification code of the prop to be displayed corresponds to at least two display modes, generates a first display mode for display based on the identification code of the prop to be displayed, wherein the first display mode includes initial display information and a first preset screen, and the initial display information is text information;
[0098] A conversion module 203, configured to generate a second display mode based on the text information, wherein the second display mode includes a screen corresponding to the text information and a second preset screen;
[0099] The playing module 204 is used to complete information display based on the first display mode and the second display mode.
[0100] By acquiring message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed; when the identification code of the display mode of the prop to be displayed corresponds to at least two display modes, a dual array model is generated based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed; based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed, the message display information is transformed so that data of the dual array model is derived from a gift interface between a server and a user terminal, thereby realizing that the dual array model can be realized and providing a data basis for subsequent steps; according to the dual array model The double array model constructs display mode transition data between adjacent display modes in the at least two display modes; so that other special effects can be transformed when playing special effects, and the display process of the special effect combination is realized; the display mode transition data is inserted into the double array model to generate an overall display array; the display mode transition data between adjacent display modes in a special effect combination including at least two special effects is inserted into the double array model of the special effect to generate an overall display array, so that the special effect transformation process is combined with the special effect, so that when the special effect combination is displayed, it cannot be interrupted by other special effects; based on the overall display array, the props to be displayed corresponding to the message display information are displayed.
[0101] In one possible real-time approach, Figure 3 As shown, an embodiment of the present application provides an electronic device, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, it implements: obtaining message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed; when the identification code of the display mode of the prop to be displayed corresponds to at least two display modes, generating a dual array model based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed; constructing display mode transition data between adjacent display modes in the at least two display modes according to the dual array model; inserting the display mode transition data into the dual array model to generate an overall display array; and displaying the prop to be displayed corresponding to the message display information based on the overall display array.
[0102] By acquiring message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed; when the identification code of the display mode of the prop to be displayed corresponds to at least two display modes, a dual array model is generated based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed; based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed, the message display information is transformed so that data of the dual array model is derived from a gift interface between a server and a user terminal, thereby realizing that the dual array model can be realized and providing a data basis for subsequent steps; according to the dual array model The double array model constructs display mode transition data between adjacent display modes in the at least two display modes; so that other special effects can be transformed when playing special effects, and the display process of the special effect combination is realized; the display mode transition data is inserted into the double array model to generate an overall display array; the display mode transition data between adjacent display modes in a special effect combination including at least two special effects is inserted into the double array model of the special effect to generate an overall display array, so that the special effect transformation process is combined with the special effect, so that when the special effect combination is displayed, it cannot be interrupted by other special effects; based on the overall display array, the props to be displayed corresponding to the message display information are displayed.
[0103] In a possible real-time method, an embodiment of the present application provides a computer-readable storage medium 400 on which a computer program 411 is stored. When the computer program 411 is executed by a processor, it implements: obtaining message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed; when the identification code of the display mode of the prop to be displayed corresponds to at least two display modes, generating a dual array model based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed; constructing display mode transition data between adjacent display modes in the at least two display modes according to the dual array model; inserting the display mode transition data into the dual array model to generate an overall display array; and displaying the prop to be displayed corresponding to the message display information based on the overall display array.
[0104] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0105] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0106] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0107] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0108] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0109] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described above, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. An information display method, used in a user terminal, characterized in that: include: Acquire message display information, wherein the message display information includes an identification code of a prop to be displayed and an identification code of a display mode corresponding to the prop to be displayed; When the display mode identification code of the prop to be displayed corresponds to at least two display modes, a first display mode for displaying is generated based on the identification code of the prop to be displayed, wherein the first display mode includes initial display information and a first preset screen, and the initial display information includes text information; Generating a second display mode based on the first display mode, wherein the second display mode includes a second preset screen corresponding to the text information; wherein the step of generating the second display mode based on the first display mode specifically comprises: converting the first preset screen into the second preset screen based on the text information of the initial display information; Complete information display based on the first display mode and the second display mode; The step of completing information display based on the first display mode and the second display mode includes: The identification code of the props to be displayed and the identification code of the display mode of the props to be displayed generate a double array model; Constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model; Inserting the display mode transition data into the dual array model to generate an overall display array; Displaying the items to be displayed corresponding to the message display information based on the overall display array; The step of generating a double array model based on the identification code of the prop to be displayed and the identification code of the display mode of the prop to be displayed includes: Searching for target display information corresponding to the message display information based on the identification code of the prop to be displayed and the display mode identification code corresponding to the prop to be displayed, wherein the source of the message display information is the server side, the source of the target display information is the gift interface, and the gift interface is an interface for obtaining gift data of the prop to be displayed; The dual array model is generated based on the message display information and the target display information.
2. The information display method according to claim 1, characterized in that: Before the step of constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model, the step further includes: Constructing a transformation function based on the message display information and the target display information, wherein the transformation function is used to transform the display mode of the props to be displayed; The transformation function is distributed with the dual array model.
3. The information display method according to claim 2, characterized in that: The step of constructing presentation mode transition data between adjacent presentation modes in the at least two presentation modes according to the dual array model comprises: Acquire animation special effects model data according to the transformation function; Convert the animation special effects model data into an animation special effects array; The animation special effect array is used as display mode transition data between adjacent display modes.
4. The information display method according to claim 1, characterized in that: The step of displaying the props to be displayed corresponding to the message display information based on the overall display array includes: Use the cross-module function calling method to call the play function; The props to be displayed are displayed based on the playback function.
5. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the information display method according to any one of claims 1 to 4 when executing the computer program stored in the memory.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information display method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Virtual gift special effect animation display method, device and apparatus
CN108289234A
Method and device for displaying information
CN109981787A
Display method and device, computer equipment and storage medium
CN111880709A
Method and apparatus for displaying rich text message on network platform, and computer storage medium
US20150244661A1
Method and apparatus for serialization and deserialization of message structure
US20210028970A1
