Data processing method and apparatus, computer device, and readable storage medium
By displaying the virtual image animation of the interactive object in the application interface and responding to the operation, the problem of single message reminder and low operating efficiency in the existing technology is solved, and the effects of personalized reminder and efficient processing of new messages are achieved.
Patent Information
- Application Number
- PCT/CN2023/131595
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-21
- Filing Date
- 2023-11-14
- Publication Date
- 2024-08-29
AI Technical Summary
The existing message reminder method is too simple and cannot highlight high-value messages, and the message preview box cannot be operated, which reduces the efficiency of new message processing.
Display a message list in the application interface, including a message preview box associated with the interactive object, display the avatar animation based on the message sent by the interactive object, respond to the animation operation to execute related message services, and realize personalized resource animation display and direct operation of new information.
It enriches the new message reminder method, improves the efficiency of new message processing, highlights high-value messages through animation display of specific content, and simplifies the operation process.
Smart Images

Figure CN2023131595_29082024_PF_FP_ABST
Abstract
Description
Data processing method, device, computer equipment, and readable storage medium
[0001] Priority information
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on February 21, 2023, with application number 2023101798624 and application name “Data processing method, device, computer equipment and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of Internet technology, and in particular to a data processing method, apparatus, computer equipment, and readable storage medium. Background Art
[0004] Existing message notification methods display a red dot in the message preview box to indicate new messages. However, this red dot doesn't reflect the specific content of the new message. All new messages sent by everyone are displayed with the same red dot, making it difficult to highlight which messages require special attention, resulting in a monotonous new message notification method. Furthermore, the red dot in the message preview box doesn't allow any action to be taken on the new message; it only serves to indicate the existence of a new message. Only by clicking the message preview box and entering the chat can any action be taken on the new message, reducing the efficiency of processing new messages.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a data processing method, apparatus, computer device, and readable storage medium, which can enrich the reminder method of new messages and improve the efficiency of processing new messages.
[0007] On the one hand, an embodiment of the present application provides a data processing method, including:
[0008] Displaying a message list in the application interface, the message list including a message preview box associated with the interactive object, the message preview box including an avatar area and a target area that does not overlap with the avatar area;
[0009] Displaying a first preview message in a message preview box, where the first preview message is generated based on a first original interaction message sent by the interaction object;
[0010] In the target area of the message preview frame, a first resource animation including a virtual image corresponding to the interactive object is displayed, where the first resource animation is determined based on the media content and the media format of the media content included in the first original interactive message;
[0011] In response to the triggering operation on the first resource animation, a message service associated with the first original interaction message is executed.
[0012] In one aspect, an embodiment of the present application provides a data processing device, including:
[0013] A list display module, configured to display a message list in an application interface; the message list includes a message preview box associated with an interactive object, the message preview box including an avatar area and a target area that does not overlap with the avatar area;
[0014] A message display module, configured to display a first preview message in the message preview box, where the first preview message is generated based on a first original interaction message sent by the interaction object;
[0015] an animation display module, configured to display a first resource animation including a virtual image corresponding to the interactive object in a target area of the message preview frame, wherein the first resource animation is determined based on media content included in the first original interactive message and a media format of the media content;
[0016] The animation triggering module is configured to execute a message service associated with the first original interaction message in response to a triggering operation on the first resource animation.
[0017] Wherein, the first resource animation is composed of the first resource sub-animation and the second resource sub-animation;
[0018] The animation display module includes:
[0019] A first animation display unit is configured to display a first resource sub-animation formed by a virtual image corresponding to an interactive object in a target area of the message preview frame;
[0020] The second animation display unit is used to display a second resource sub-animation in the target area. The second resource sub-animation is generated based on a message virtual resource that can be used to interact with the virtual image; the message virtual resource is determined based on the media content contained in the first original interactive message and the media format of the media content.
[0021] Among them, the animation trigger module includes:
[0022] The first triggering unit is configured to display media data associated with the media content having a viewing media format in the first original interaction message in response to a triggering operation on the first resource animation if the first resource animation is a triggerable resource animation.
[0023] a second triggering unit, configured to display an interactive area associated with the interactive object in response to a triggering operation on the first resource animation if the first resource animation is an untriggerable resource animation;
[0024] The second triggering unit is configured to display the first original interaction message in the interaction area.
[0025] Wherein, the first resource animation includes viewing a message virtual resource;
[0026] A first triggering unit is specifically configured to switch the application interface to the viewing interface in response to a triggering operation on the first resource animation;
[0027] The first triggering unit is specifically configured to display media data associated with the media content having a viewing media format in the first original interactive message in the viewing interface; the viewing media format is a triggerable media format indicated by the viewing message virtual resource.
[0028] Wherein, the first resource animation includes an audio message virtual resource;
[0029] A first triggering unit is specifically configured to display, in response to a triggering operation on the first resource animation, a playback progress corresponding to the media content in an audio media format in the first original interactive message; the audio media format is a triggerable media format indicated by the audio message virtual resource;
[0030] The first trigger unit is further specifically configured to respond to a drag operation on the playback progress and play the media content in the audio media format according to the dragged playback progress.
[0031] Among them, the first resource animation includes receiving the message virtual resource;
[0032] A first triggering unit is specifically configured to display resource description information and a resource collection control corresponding to the media content having a collection media format in the first original interaction message in response to a triggering operation on the first resource animation; the collection media format is a triggerable media format indicated by the collection message virtual resource;
[0033] The first triggering unit is further specifically configured to respond to a triggering operation on the resource obtaining control and obtain the animation virtual resource indicated by the resource description information.
[0034] Wherein, the message virtual resource includes the image message virtual resource;
[0035] The second animation display unit is specifically configured to determine the media content included in the first original interaction message as an image message virtual resource if the media format of the media content included in the first original interaction message is a media format corresponding to image type content;
[0036] The second animation display unit is specifically configured to display the second resource sub-animation in the target area, where the second resource sub-animation is generated based on an image message virtual resource that can be used to interact with the virtual image.
[0037] Wherein, the message virtual resource includes the file message virtual resource;
[0038] The second animation display unit is specifically configured to obtain a file message virtual resource indicated by the media content included in the first original interaction message if the media format of the media content included in the first original interaction message is a media format corresponding to the file type content;
[0039] The second animation display unit is specifically configured to display the second resource sub-animation in the target area, where the second resource sub-animation is generated based on a file message virtual resource that can be used to interact with the virtual image.
[0040] Among them, the message virtual resource includes a video message virtual resource;
[0041] The second animation display unit is specifically configured to obtain a preview video frame from the media content included in the first original interaction message if the media format of the media content included in the first original interaction message is a media format corresponding to video type content, and determine the preview video frame as a video message virtual resource;
[0042] The second animation display unit is specifically configured to display the second resource sub-animation in the target area, where the second resource sub-animation is generated based on a video message virtual resource that can be used to interact with the virtual image.
[0043] The animation display module is specifically used to display the preset message resources in the target area of the message preview box;
[0044] The animation display module is specifically configured to obtain the first resource animation from the server according to the object identifier of the interactive object if the first resource animation including the virtual image corresponding to the interactive object does not exist in the terminal memory;
[0045] The animation display module is specifically configured to update the preset message resource in the target area based on the first resource animation.
[0046] The message display module is specifically used to obtain the number of unread messages and the latest message body for the interactive object from the message management database according to the object identifier of the interactive object;
[0047] The message display module is specifically configured to accumulate the number of unread messages according to the first original interaction message to obtain an updated number of unread messages;
[0048] A message display module, specifically configured to update the latest message body according to the first original interactive message to obtain an updated latest message body;
[0049] The message display module is specifically configured to display a first preview message corresponding to the first original interactive message in a message preview box based on updating the number of unread messages and updating the latest message body.
[0050] The message display module is further configured to clear the updated unread message count to obtain the initialized unread message count when responding to a trigger operation on the first resource animation;
[0051] The message display module is further specifically used to initialize the updated latest message body to obtain the initialized latest message body;
[0052] The message display module is further specifically configured to cancel the first resource animation in the display target area based on the initialized number of unread messages and the initialized latest message body.
[0053] The device further comprises:
[0054] An animation association module, configured to display a second preview message in the message preview box; the second preview message is determined based on a second original interaction message sent by the interaction object;
[0055] An animation association module, configured to display a second resource animation including a virtual image in a target area; the second resource animation is determined based on the media content and the media format of the media content included in the second original interaction message;
[0056] The animation association module is used to display a third resource animation commonly associated with the first original interaction message and the second original interaction message in the application interface if the first original interaction message and the second original interaction message meet the message superposition condition.
[0057] The device further comprises:
[0058] A condition judgment module is used to obtain a first message sending timestamp of the first original interaction message and a second message sending timestamp of the second original interaction message, and determine a time interval between the first message sending timestamp and the second message sending timestamp;
[0059] a condition judgment module, configured to determine, if the time interval is less than or equal to a duration threshold, a relationship between the first original interaction message and the second original interaction message and a message superposition condition based on the semantic similarity between the first original interaction message and the second original interaction message;
[0060] The condition judgment module is configured to determine that the first original interaction message and the second original interaction message do not meet the message superposition condition if the time interval is greater than a duration threshold.
[0061] The condition judgment module is specifically configured to input the first original interaction message and the second original interaction message into the semantic analysis model, perform feature extraction on the first original interaction message and the second original interaction message using the semantic analysis model, and output a first message feature corresponding to the first original interaction message and a second message feature corresponding to the second original interaction message;
[0062] a condition judgment module, specifically configured to determine a feature similarity between the first message feature and the second message feature, and determine the feature similarity as a semantic similarity between the first original interaction message and the second original interaction message;
[0063] a condition judgment module, specifically configured to determine that the first original interaction message and the second original interaction message meet a message superposition condition if the semantic similarity is greater than or equal to a similarity threshold;
[0064] The condition judgment module is specifically configured to determine that the first original interaction message and the second original interaction message do not meet the message superposition condition if the semantic similarity is less than a similarity threshold.
[0065] In one aspect, an embodiment of the present application provides a computer device, including: a processor and a memory;
[0066] The processor is connected to a memory, wherein the memory is used to store a computer program. When the computer program is executed by the processor, the computer device executes the method provided in the embodiment of the present application.
[0067] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.
[0068] In one aspect, an embodiment of the present application provides a computer program product, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the method provided in the embodiment of the present application.
[0069] In an embodiment of the present application, a message list is displayed in an application interface, the message list includes a message preview box associated with an interactive object, the message preview box includes an avatar area and a target area that does not overlap with the avatar area, and then a first preview message generated based on the first original interactive message sent by the interactive object is displayed in the message preview box, and a first resource animation containing a virtual image corresponding to the interactive object is displayed in the target area. The first resource animation is determined based on the media content and the media format of the media content contained in the first original interactive message, and then in response to a trigger operation for the first resource animation, the message service associated with the first original interactive message is executed. Thus, when the first original interactive message sent by the interactive object is received, the virtual image corresponding to the interactive object can be obtained, and the first resource animation containing the virtual image corresponding to the interactive object (i.e., the first resource animation associated with the first original interactive message) is obtained based on the media content and the media format of the media content contained in the first original interactive message. When different interactive objects send the first original interactive message, resource animations corresponding to different interactive objects can be generated based on the virtual images corresponding to different interactive objects. Since the virtual images corresponding to different interactive objects are different, the resource animations corresponding to different interactive objects generated based on the different virtual images are different, thereby realizing personalized resource animation display. Moreover, when the media content contained in the first original interactive message is different, the first resource animation is different, so that the specific content in the first original interactive message can be reflected through the first resource animation, so that when the first original interactive message is a high-value new message, the high-value new message (that is, the new message that needs to be paid special attention to) can be highlighted through the first resource animation, thereby enriching the reminder method of the new message. In addition, by responding to the trigger operation for the first resource animation, the message service associated with the first original interactive message can be directly executed without entering the chat interface where the first original interactive message is located, simplifying the process of operating the new message and improving the efficiency of processing the new message. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0071] FIG1 is a schematic diagram of a network architecture provided in an embodiment of the present application;
[0072] FIG2 is a flow chart of a data processing method provided in an embodiment of the present application;
[0073] FIG3 is a schematic diagram of a scene showing a first resource animation provided by an embodiment of the present application;
[0074] FIG4 is a schematic diagram of a scene of an object image provided in an embodiment of the present application;
[0075] FIG5 is a flow chart of a data processing method provided in an embodiment of the present application;
[0076] FIG6 is a schematic diagram of a process for processing emoticon messages according to an embodiment of the present application;
[0077] FIG7 is a schematic diagram of a scenario for processing document messages provided in an embodiment of the present application;
[0078] FIG8 is a schematic diagram of a scenario for processing picture messages provided by an embodiment of the present application;
[0079] FIG9 is a schematic diagram of a scenario for processing emoticon messages provided in an embodiment of the present application;
[0080] FIG10 is a schematic diagram of a scenario for processing a video message provided in an embodiment of the present application;
[0081] FIG11 is a schematic diagram of a scenario for processing an audio message provided in an embodiment of the present application;
[0082] FIG12 is a schematic diagram of a scenario for processing a gift message provided in an embodiment of the present application;
[0083] FIG13 is a schematic diagram of a scenario for processing a red envelope message provided in an embodiment of the present application;
[0084] FIG14 is a schematic diagram of a scenario for processing a poke message according to an embodiment of the present application;
[0085] FIG15 is a schematic diagram of a process of triggering a first resource animation according to an embodiment of the present application;
[0086] FIG16 is a flow chart of a data processing method provided in an embodiment of the present application;
[0087] FIG17 is a schematic diagram of a scenario of a message management database provided in an embodiment of the present application;
[0088] FIG18 is a schematic diagram of a process for displaying a first resource animation according to an embodiment of the present application;
[0089] FIG19 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;
[0090] FIG20 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0091] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0092] Specifically, please refer to Figure 1, which is a structural diagram of a network architecture provided by an embodiment of the present application. As shown in Figure 1, the network architecture may include a server 2000 and a terminal device cluster. Among them, the terminal device cluster may specifically include one or more terminal devices, and the number of terminal devices in the terminal device cluster will not be limited here. As shown in Figure 1, multiple terminal devices may specifically include terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n; terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n can be directly or indirectly connected to the server 2000 through wired or wireless communication, so that each terminal device can exchange data with the server 2000 through the network connection.
[0093] Among them, each terminal device in the terminal device cluster can include: smart phones, tablet computers, laptops, desktop computers, intelligent voice interaction devices, smart home appliances (for example, smart TVs), wearable devices, vehicle terminals, aircraft and other smart terminals with data processing functions. It should be understood that each terminal device in the terminal device cluster shown in Figure 1 can be installed with an application client. When the application client runs in each terminal device, it can interact with the server 2000 shown in Figure 1. Among them, the application client can specifically include a vehicle client, a smart home client, an entertainment client (for example, a game client), a multimedia client (for example, a video client), a social client and an information client (for example, a news client) and other clients with data processing functions. Among them, the application client can be integrated in a client (for example, a social client), or the application client can be an independent client (for example, a news client). The embodiment of the present application does not limit the type of the application client.
[0094] Among them, the server 2000 shown in Figure 1 can be the server corresponding to the application client. The server 2000 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0095] For ease of understanding, embodiments of the present application may select one terminal device from the multiple terminal devices shown in FIG. 1 as a target terminal device, and embodiments of the present application may select one terminal device from the multiple terminal devices shown in FIG. 1 as a sample terminal device. For example, embodiments of the present application may use terminal device 3000a shown in FIG. 1 as a sample terminal device, and embodiments of the present application may use terminal device 3000c shown in FIG. 1 as a target terminal device. Application clients with data processing capabilities may be installed in the target terminal device and the sample terminal device, respectively. In this case, the target terminal device may implement data exchange with server 2000 via the application client, and the sample terminal device may implement data exchange with server 2000 via the application client.
[0096] For ease of understanding, in the embodiments of the present application, the user may be referred to as an interaction object, the interaction object may be a user who logs in to the application client, the user corresponding to the target terminal device may be referred to as the target interaction object, and the user corresponding to the sample terminal device may be referred to as the sample interaction object. Among them, the target interaction object can be used as both a message receiver and a message sender. For example, the target interaction object can become a message receiver through the application client in the target terminal device, and the target interaction object can also become a message sender through the application client in the target terminal device. Similarly, the sample interaction object can be used as both a message sender and a message receiver. For example, the sample interaction object can become a message sender through the application client in the sample terminal device, and the sample interaction object can also become a message receiver through the application client in the sample terminal device. Among them, the target terminal device and the sample terminal device both run the application client corresponding to the server 2000, and the application client can realize the sending and receiving of interaction messages (for example, the first original interaction message) between the target terminal device and the sample terminal device. For ease of understanding, the embodiments of the present application are described as follows: the target interaction object is the message sender and the sample interaction object is the message receiver.
[0097] For example, the message sender (i.e., the target interaction object) and the message receiver (i.e., the sample interaction object) can be connected through the server 2000, and the target interaction object can send the first original interaction message through the application client in the target terminal device. The server 2000 can synchronize the first original interaction message from the target terminal device to the sample terminal device, and display the first preview message in the message list of the application interface of the sample terminal device. Among them, the sample terminal device can display the first preview message in the message preview box of the message list, and display the first resource animation containing the virtual image corresponding to the interaction object in the target area of the message preview box, and then execute the message service associated with the first original interaction message in response to the trigger operation for the first resource animation. Among them, the target area does not overlap with the avatar area in the message preview box, and the first resource animation is generated based on the media content contained in the first original interaction message and the media format of the media content.
[0098] Optionally, the application interface displays a virtual social scene, in which a message list can be displayed. The avatar displayed in the message list can also be considered an avatar displayed in the virtual social scene, and the avatar can be displayed and interacted with in the virtual social scene. The virtual social scene refers to a 3D (short for Three Dimensions) virtual space based on the future internet, featuring connected perception and sharing, that exhibits convergence and physical persistence through virtual augmentation of physical reality, or an interactive, immersive, and collaborative world. Just as the physical universe is a series of spatially interconnected worlds, the virtual social scene can also be considered a collection of many worlds.
[0099] Further, please refer to Figure 2, which is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the server 2000 in the embodiment corresponding to Figure 1 above, and the terminal device can be the sample terminal device or target terminal device in the embodiment corresponding to Figure 1 above. For ease of understanding, the embodiment of the present application is described by taking the method executed by a terminal device as an example. Among them, the data processing method can include the following steps S101-S104:
[0100] Step S101, displaying a message list in the application interface;
[0101] The message list may include a message preview box associated with an interactive object, and may also include message preview boxes associated with other interactive objects (e.g., candidate interactive objects). In other words, the message list may include S message preview boxes, where S may be a non-negative integer. When S is a positive integer, the S message preview boxes may include the message preview box associated with the interactive object, and the S message preview boxes may be sorted from top to bottom by timestamp.
[0102] The message preview box includes an avatar area and a target area that does not overlap with the avatar area. The avatar area is used to display the avatar of the interactive object. The displayed avatar of the interactive object can be an actual image or a virtual avatar.
[0103] The message preview box can also be called a message item, a chat item, etc. Clicking the item opens AIO (All In One). AIO refers to a public chat window component, that is, participating in many different types of conversations such as friends, groups, and public accounts in the application client. In order to provide a unified interactive experience, the application client provides a chat window component shared by different sessions. The input operations, click operations, and other behavioral habits in the component can be considered consistent.
[0104] Step S102: displaying a first preview message in a message preview box;
[0105] The first preview message is generated based on the first original interaction message sent by the interaction object. When the terminal device is a sample terminal device, the first original interaction message may be sent by the target interaction object; when the terminal device is a target terminal device, the first original interaction message may be sent by the sample interaction object. For ease of understanding, this embodiment of the application uses the terminal device as a sample terminal device and the first original interaction message sent by the target interaction object as an example. In this case, the target interaction object can be simply referred to as the interaction object, and the sample terminal device can be simply referred to as the terminal device.
[0106] Among them, the message preview box includes an avatar area and a target area that does not overlap with the avatar area, that is, the target area can be an area in the message preview box except the avatar area. Optionally, displaying the first preview message in the message preview box in S102 can be displaying the first preview message in a preset area of the target area.
[0107] Among them, after receiving the first original interaction message sent by the interaction object, the terminal device can display a message preview box in the message list (that is, the message preview box in the message list is triggered by the first original interaction message), and then display the first preview message corresponding to the first original interaction message in the message preview box. Optionally, the terminal device can also display the message preview box in the message list before receiving the first original interaction message sent by the interaction object (that is, the message preview box in the message list is not triggered by the first original interaction message, and the message preview box in the message list is triggered by historical interaction messages, and the historical interaction messages can be interaction messages with an interaction time earlier than the first original interaction message), and then directly display the first preview message corresponding to the first original interaction message in the message preview box.
[0108] Among them, the interactive objects that conduct message interaction with the sample interactive object may also include other interactive objects (for example, candidate interactive objects) in addition to the target interactive object, and the message preview box may also be used to display other interactive messages (for example, candidate interactive messages sent by candidate interactive objects) sent by other interactive objects (for example, candidate interactive objects).
[0109] It is understandable that if the first original interaction message is a plain text message (i.e., an ordinary text message), the terminal device can determine the character length of the first original interaction message after receiving the first original interaction message sent by the target terminal device through the server. Furthermore, if the character length of the first original interaction message is greater than the length threshold, the first original interaction message and the first preview message are different. At this time, the terminal device can crop the first original interaction message to obtain the first preview message corresponding to the first original interaction message; optionally, if the character length of the first original interaction message is less than or equal to the length threshold, the first original interaction message and the first preview message are the same. The length threshold is determined by the device width of the terminal device. The embodiment of the present application does not limit the specific value of the length threshold. For example, the length threshold can be equal to 18 characters. For example, the first original interaction message may be "Good night", and the character length of "Good night" is less than or equal to the length threshold. In this case, the first preview message may be "Good night"; for another example, the first original interaction message may be "I went to the amusement park with him today, and we had a lot of fun!", and the character length of "I went to the amusement park with him today, and we had a lot of fun!" is greater than the length threshold. In this case, the first preview message may be "I went to the amusement park with him today, and I..."
[0110] Optionally, if the first original interaction message is not a plain text message, the terminal device may generate a first preview message corresponding to the first original interaction message according to the media content included in the first original interaction message. For example, if the first original interaction message contains document content, the first preview message corresponding to the first original interaction message may be "[document]XXX", and "XXX" may be the title of the document content; for another example, if the first original interaction message contains video content, the first preview message corresponding to the first original interaction message may be "[video]"; for another example, if the first original interaction message contains image content, the first preview message corresponding to the first original interaction message may be "[image]"; for another example, if the first original interaction message contains image content and the first original interaction message contains a text message (for example, the first original interaction message may be "Look at the photo [image] I took"), the first preview message corresponding to the first original interaction message may be "Look at the photo [image] I took", where "[image]" in the first original interaction message is the image content, and "[image]" in the first preview message is the text message; for another example, if the first original interaction message contains two image contents, the first preview message corresponding to the first original interaction message may be "[image][image]".
[0111] Step S103: Displaying a first resource animation including a virtual image corresponding to the interactive object in the target area of the message preview box;
[0112] Specifically, the terminal device can display a first resource sub-animation formed by the virtual image corresponding to the interactive object in the target area of the message preview box; at the same time, the terminal device can display a second resource sub-animation in the target area, and the second resource sub-animation is generated based on the message virtual resource that can be used to interact with the virtual image. The first resource animation is composed of the first resource sub-animation and the second resource sub-animation, that is, the first resource sub-animation and the second resource sub-animation can be collectively referred to as the first resource animation. The target area does not overlap with the avatar area in the message preview box; the message virtual resource in the second resource sub-animation is determined based on the media content contained in the first original interactive message and the media format of the media content. Accordingly, the first resource animation is determined based on the media content contained in the first original interactive message and the media format of the media content.
[0113] Optionally, the terminal device may display the first resource sub-animation formed by the virtual image corresponding to the interactive object in the target area of the message preview box, and then determine the first resource sub-animation as the first resource animation including the virtual image corresponding to the interactive object.
[0114] The first resource animation can be dynamic or static. It is understood that the first resource sub-animation and the second resource sub-animation can both be dynamic; alternatively, the first resource sub-animation and the second resource sub-animation can both be static; alternatively, the first resource sub-animation can be dynamic and the second resource sub-animation can be static; alternatively, the first resource sub-animation can be static and the second resource sub-animation can be dynamic.
[0115] It should be understood that when the first resource animation is displayed in the target area, the terminal device can respond to a sliding operation on the application interface by sliding the message preview box in the application interface, that is, sliding the target area in the message preview box. Furthermore, the terminal device can display the first resource animation containing the virtual image corresponding to the interactive object in the sliding target area, that is, the first resource animation can scroll up and down with the message preview box.
[0116] It should be understood that the terminal device can display the preset message resources in the target area of the message preview box, and then when the first original interactive message can trigger the generation of the first resource animation containing the virtual image corresponding to the interactive object, obtain the first resource animation containing the virtual image corresponding to the interactive object, and update the preset message resources in the target area based on the first resource animation (that is, cancel the display of the preset message resources and display the first resource animation). Optionally, the terminal device may not need to display the preset message resources in the target area of the message preview box, but when the first original interactive message can trigger the generation of the first resource animation containing the virtual image corresponding to the interactive object, directly obtain the first resource animation containing the virtual image corresponding to the interactive object, and then display the first resource animation in the target area of the message preview box. Optionally, the terminal device can also display the preset message resources in the target area of the message preview box when the first original interactive message cannot trigger the generation of the first resource animation containing the virtual image corresponding to the interactive object.
[0117] Among them, it can be understood that the media format of the media content contained in the first original interactive message can be specified by message_type. Since the media format of the media content contained in the first original interactive message can be one or more (that is, the first original interactive message can contain one or more media contents), the message_type associated with the first original interactive message can represent one or more media contents in the first original interactive message in a list manner. At this time, when the message_type of the unread message (for example, the first original interactive message) is an ordinary text message (that is, a plain text message) (that is, message_type indicates that the first original interactive message includes text content and does not include other content), the new message reminder is in the form of a preset message resource; when the message_type of the unread message (for example, the first original interactive message) is not an ordinary text message (that is, message_type indicates that the first original interactive message includes other content in addition to text content, for example, the first original interactive message includes image content and text content), the new message reminder can be displayed in the form of a virtual image.
[0118] For ease of understanding, please refer to Figure 3, Figure 3 is a schematic diagram of a scene showing the first resource animation provided by an embodiment of the present application. The message preview box 30a as shown in Figure 3 can be the message preview box displayed in the message list, and the message preview box 30a can include an avatar area 31a, a resource animation display area 32a, a default prompt display area 32b, an object nickname 33a and a preview message 33b. The resource animation display area 32a can be used to display resource animation (e.g., the first resource animation), the default prompt display area 32b can be used to display preset message resources, the object nickname 33a can be used to display the object nickname (e.g., the application nickname of the interactive object in the application client), and the preview message 33b can be used to display a preview message (e.g., the first preview message). Wherein, the resource animation display area 32a and the default prompt display area 32b belong to the target area of the message preview box 30a, and the target area can be the area other than the avatar area 31a in the message preview box 30a.
[0119] The message preview box 30b shown in Figure 3 can be a message preview box containing preset message resources. The message preview box 30b can include an avatar area 31b, a default prompt display area 32c, an object nickname "piggy" and a preview message 33c; the message preview box 30c shown in Figure 3 can be a message preview box containing a first resource animation. The message preview box 30c can include an avatar area 31c, a resource animation display area 32d, an object nickname "piggy" and a preview message 33d.
[0120] The terminal device can directly display the message preview box 30b or the message preview box 30c, and can also switch the message preview box 30b to the message preview box 30c after displaying the message preview box 30b. The message preview box 30b (i.e., the display mode of the preset message resource) and the message preview box 30c (i.e., the display mode of the virtual image) are in a parallel relationship (i.e., a mutually exclusive relationship), and cannot be displayed simultaneously. When the virtual image is present, the preset message resource must be hidden, and the virtual image must be displayed first in place of the preset message resource.
[0121] It is understood that the virtual avatar corresponding to an interactive object can be determined by the interactive object's object image. For example, the interactive object's object image can represent a super image show created by the interactive object. The super image show is an upgraded version of the image show, exploring and attempting to move from 2D (two-dimensional) to 3D (three-dimensional) image shows, and can be generated by a game rendering engine. When the interactive object updates its object image (e.g., by pinching its face or changing its outfit), a tag value (i.e., the object identifier of the virtual avatar) and an updated virtual avatar corresponding to the updated object image can be generated. By updating the object image, the resource animation associated with the same interactive message can be different for the same interactive object in different outfits (i.e., object images). For another example, the interactive object's object image can represent the interactive object's object behavior. For example, the interactive object's object image can be generated based on the interactive object's click behavior and viewing behavior in the application client. For another example, the interactive object's object image can be determined by an image uploaded by the interactive object, and the image image can include the interactive object's object image.
[0122] Among them, in this application, when data related to click behavior and viewing behavior is involved, when the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and national standards of the country in which they are located. For example, the target terminal device can display a prompt message "Do you want to record the current click behavior and viewing formation, and send the recorded information to the server?" Only after the user corresponding to the target terminal device (i.e., the interactive object) has authorized it, can the object behavior be uploaded to the server.
[0123] For ease of understanding, please refer to Figure 4, which is a schematic diagram of an object image scene provided in an embodiment of the present application. As shown in Figure 4, the object image of the interactive object can be object image 40a, and the virtual image corresponding to the interactive object generated based on object image 40a can be virtual image 40c. The posture of virtual image 40c can be fixed (for example, raising a hand) or non-fixed (for example, raising a hand, covering the face, etc.). This application does not limit this. For ease of understanding, this embodiment of the present application uses the virtual image posture of raising a hand as an example for explanation.
[0124] It is understandable that if the first resource animation includes a first resource sub-animation, the terminal device can generate the first resource sub-animation based on the virtual image 40c, and the area displayed by the first resource sub-animation can be the area range 41a. Optionally, if the first resource animation includes a first resource sub-animation and a second resource sub-animation, the terminal device can generate the first resource sub-animation based on the virtual image 40c, and generate the second resource sub-animation based on the message virtual resource 40b (here, the message virtual resource 40b is a heart as an example for explanation, and the message virtual resource 40b can also be other virtual resources besides a heart), and then superimpose the first resource sub-animation and the second resource sub-animation to obtain the first resource animation 40d.
[0125] As shown in Figure 4, the first resource animation 40d may include a virtual image 40c and a message virtual resource 40b, wherein the area range displayed by the first resource sub-animation may be the area range 41a, and the area range displayed by the second resource sub-animation may be the area range 41b. In other words, the area range displayed by the virtual image 40c may be the area range 41a, and the area range displayed by the message virtual resource 40b may be the area range 41b. The area range displayed by the first resource animation may be the union of the area range 41a and the area range 41b.
[0126] Step S104: In response to the triggering operation on the first resource animation, executing a message service associated with the first original interaction message.
[0127] Specifically, in an implementable manner, executing the message service associated with the first original interaction message may include: displaying an interaction area associated with the interaction object, and displaying the first original interaction message in the interaction area.
[0128] In another practicable manner, executing the message service associated with the first original interaction message may include: displaying media data associated with the media content in the viewing media format in the first original interaction message.
[0129] Specifically, if the first resource animation is a non-triggerable resource animation, the terminal device may, in response to a triggering operation on the first resource animation, display an interaction area associated with the interactive object. Furthermore, the terminal device may display the first original interaction message in the interaction area. Alternatively, if the first resource animation is a triggerable resource animation, the terminal device may, in response to a triggering operation on the first resource animation, display media data associated with media content in a viewing media format in the first original interaction message.
[0130] For the specific process of the terminal device displaying the media data associated with the media content in the viewing media format in the first original interaction message, please refer to the description of step S205 in the embodiment corresponding to FIG. 5 below.
[0131] Optionally, the terminal device may respond to a trigger operation on a non-target area in the message preview frame and display an interaction area associated with the interaction object. The non-target area may be an area in the message preview frame excluding the area where the first resource animation is located. Furthermore, the terminal device may display the first original interaction message in the interaction area.
[0132] It should be understood that before responding to the trigger operation for the first resource animation (or non-target area), the terminal device may continue to display the first resource animation in the target area, and then cancel the display of the first resource animation in the target area after responding to the trigger operation for the first resource animation (or non-target area). Optionally, the terminal device may also cancel the display of the first resource animation in the target area when responding to the sliding operation for the first resource animation.
[0133] Optionally, the terminal device may further display the first resource animation in the target area based on the display duration. The display duration may be the time during which the first resource animation is continuously displayed in the target area. The embodiment of the present application does not limit the display duration of the first resource animation. For example, the display duration of the first resource animation may be 10s (i.e., 10 seconds).
[0134] It is understandable that the interaction area can be a group chat interaction area (that is, the sample interaction object and the target interaction object can be interaction objects for group chat), or it can be a single chat (Customer to Customer, C2C) interaction area (that is, the sample interaction object and the target interaction object can be interaction objects for single chat), and the embodiments of the present application do not limit this. Correspondingly, the message preview box associated with the interaction object can be a message preview box corresponding to the group chat, or it can be a message preview box corresponding to the single chat. In addition, the target interaction object and the sample interaction object can be friends with each other, or they can not be friends with each other (that is, they are non-friends with each other), and the embodiments of the present application do not limit this.
[0135] The data processing method provided by the embodiment of the present application is through displaying a message list in the application interface, the message list includes a message preview box associated with the interactive object, the message preview box includes an avatar area and a target area that does not overlap with the avatar area, and then displays a first preview message generated based on the first original interactive message sent by the interactive object in the message preview box, and displays a first resource animation containing a virtual image corresponding to the interactive object in the target area, the first resource animation is determined based on the media content contained in the first original interactive message and the media format of the media content, and then in response to the trigger operation for the first resource animation, executes the message service associated with the first original interactive message. Thus, when the first original interactive message sent by the interactive object is received, the virtual image corresponding to the interactive object can be obtained, and the first resource animation containing the virtual image corresponding to the interactive object (i.e., the first resource animation associated with the first original interactive message) is obtained based on the media content contained in the first original interactive message and the media format of the media content. When different interactive objects all send the first original interactive message, resource animations corresponding to different interactive objects can be generated based on the virtual images corresponding to different interactive objects. Since the virtual images corresponding to different interactive objects are different, the resource animations corresponding to different interactive objects generated based on different virtual images are different, thereby realizing personalized resource animation display. Moreover, when the media content contained in the first original interactive message is different, the first resource animation is different, thereby the specific content in the first original interactive message can be reflected through the first resource animation, so that when the first original interactive message is a new message of high value, the high-value new message (i.e., a new message that needs to be paid special attention to) can be highlighted through the first resource animation, thereby enriching the reminder method of the new message. In addition, by responding to the trigger operation for the first resource animation, the message service associated with the first original interactive message can be directly executed without entering the chat interface where the first original interactive message is located, thereby simplifying the process of operating the new message and improving the efficiency of processing the new message.
[0136] Further, please refer to Figure 5, which is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the server 2000 in the embodiment corresponding to Figure 1 above, and the terminal device can be the sample terminal device or target terminal device in the embodiment corresponding to Figure 1 above. For ease of understanding, the embodiment of the present application is described by taking the method executed by a terminal device as an example. Among them, the data processing method can include the following steps S201-S207:
[0137] Step S201: displaying a first preview message in a message preview box;
[0138] The first preview message is determined based on the first original interaction message sent by the interaction object. The specific process of displaying the first preview message in the message preview box can be found in the description of step S102 in the embodiment corresponding to FIG. 2 above, and will not be repeated here.
[0139] Step S202 , synchronously displaying a first resource sub-animation formed by the avatar corresponding to the interactive object and a second resource sub-animation in the target area of the message preview frame, the second resource sub-animation being generated based on the message virtual resource that can be used to interact with the avatar;
[0140] Among them, the message virtual resource may include an image message virtual resource. It should be understood that the terminal device can display a first resource sub-animation formed by the virtual image corresponding to the interactive object in the target area of the message preview box. Furthermore, if the media format of the media content contained in the first original interactive message is a media format corresponding to image type content, the terminal device can determine the media content contained in the first original interactive message as an image message virtual resource. Furthermore, the terminal device can display a second resource sub-animation in the target area, and the second resource sub-animation is generated based on the message virtual resource that can be used to interact with the virtual image. Among them, the media content contained in the first original interactive message may include but is not limited to image content (see the description of the embodiment corresponding to Figure 8 below) and expression content (see the description of the embodiment corresponding to Figure 9 below), that is, image content and expression content can be collectively referred to as image type content.
[0141] Optionally, the message virtual resource may include a file message virtual resource. It should be understood that the terminal device may display a first resource sub-animation formed by the virtual avatar corresponding to the interactive object in the target area of the message preview box. Furthermore, if the media format of the media content contained in the first original interactive message is a media format corresponding to file type content, the terminal device may obtain the file message virtual resource indicated by the media content contained in the first original interactive message. Furthermore, the terminal device may display a second resource sub-animation in the target area, the second resource sub-animation being generated based on the file message virtual resource that can be used to interact with the virtual avatar. The media content contained in the first original interactive message may include, but is not limited to, document content (see the description of the embodiment corresponding to FIG. 7 below), audio content (see the description of the embodiment corresponding to FIG. 11 below), gift content (see the description of the embodiment corresponding to FIG. 12 below), red envelope content (see the description of the embodiment corresponding to FIG. 13 below), and transfer content. That is, document content, audio content, gift content, red envelope content, and transfer content may be collectively referred to as file type content.
[0142] Optionally, the message virtual resource may include a video message virtual resource. It should be understood that the terminal device may display a first resource sub-animation formed by the virtual image corresponding to the interactive object in the target area of the message preview box. Furthermore, if the media format of the media content contained in the first original interactive message is the media format corresponding to the video type content, the terminal device may obtain a preview video frame in the media content contained in the first original interactive message and determine the preview video frame as the video message virtual resource. Optionally, the terminal device may obtain a video message virtual resource indicated by the media format of the media content contained in the first original interactive message. Furthermore, the terminal device may display a second resource sub-animation in the target area, and the second resource sub-animation is generated based on the video message virtual resource that can be used to interact with the virtual image. Among them, the media content contained in the first original interactive message may include but is not limited to video content (see the description of the embodiment corresponding to Figure 10 below), that is, video content can be collectively referred to as video type content, and the video content can be a long video or a short video, which is not limited in this application.
[0143] It is understood that the preview video frame can be a video frame in the video content, and the embodiments of the present application do not limit which frame in the video content the preview video frame is. For example, the preview video frame can be the first video frame in the video content; for another example, the preview video frame can be the last video frame in the video content; for another example, the preview video frame can be the video frame with the highest video score in the video content. In this case, the terminal device can input each video frame in the video content into the video frame scoring model, and the video frame scoring model can output the video score corresponding to each video frame in the video content.
[0144] For ease of understanding, the processing flow of emoticon messages (i.e., emoticon content) can be seen in Figure 6, which is a schematic diagram of a process for processing emoticon messages provided in an embodiment of the present application. The processing flow of messages other than emoticon messages can be seen in the description of Figure 6. As shown in Figure 6, the terminal device can execute step S11, and through step S11, the display of the preset message resource (for example, the preset message resource can be a red dot (i.e., a red circle) that does not include numbers, a red dot (i.e., a red circle) that includes numbers, etc., is explained here by taking the preset message resource that can be a red dot that does not include numbers as an example), and hiding the red dot prompt means canceling the display of the red dot that does not include numbers.
[0145] Furthermore, as shown in Figure 6, the terminal device may execute step S12 to determine whether the media content contained in the first original interaction message is emoticon content. If the media content contained in the first original interaction message is not emoticon content, step S13 is executed. If the media content contained in the first original interaction message is emoticon content, step S14 is executed. In step S13, the terminal device may perform other message type new message reminder processing on the first original interaction message, for example, determining whether the media content contained in the first original interaction message is image content.
[0146] Optionally, as shown in FIG6 , the terminal device can render a virtual image thumbnail through step S14, that is, display the virtual image corresponding to the interactive object, and the virtual image can be a thumbnail generated based on the virtual image. Further, the terminal device can execute step S15, and intercept the expression in the message through step S15, that is, obtain the media content contained in the first original interactive message, and determine the media content contained in the first original interactive message as an image message virtual resource. The media content here can be the expression content in the first original interactive message, that is, the image message virtual resource can be the expression content in the first original interactive message. Further, the terminal device can execute step S16, and superimpose the thumbnail with the expression through step S16, that is, superimpose the virtual image corresponding to the interactive object (first resource sub-animation) and the image message virtual resource (second resource sub-animation) to obtain the first resource animation.
[0147] It is understandable that the specific process of the terminal device displaying the first resource animation can be referred to the description of the embodiments corresponding to Figures 7 to 14 below. Figures 7 to 14 can represent different first resource animations triggered by different first original interaction messages. Among them, the first resource animation can include the first resource sub-animation, and can also include the first resource sub-animation and the second resource sub-animation. The specific process of the first resource animation including the first resource sub-animation and the second resource sub-animation can be referred to the description of the embodiments corresponding to Figures 7 to 13 below. The specific process of the first resource animation including the first resource sub-animation can be referred to the description of the embodiment corresponding to Figure 14 below.
[0148] For ease of understanding, please refer to Figure 7, which is a schematic diagram of a scenario for processing document messages provided in an embodiment of the present application. Figure 7 shows a schematic diagram of a scenario in which document content and a virtual avatar are superimposed. Application interfaces 70a and 70b shown in Figure 7 may be application interfaces of an application client in a terminal device at different times. Application interfaces 70c and 70d shown in Figure 7 may be application interfaces of an application client in a terminal device at different times.
[0149] As shown in FIG7 , the terminal device may display an application interface 70a in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 71b) sent by the interaction partner, the terminal device may switch application interface 70a to application interface 70b and display interaction message 71b in interaction area 71a of application interface 70b. Interaction message 71b may be document content.
[0150] Optionally, as shown in FIG7 , the terminal device may display an application interface 70c in the application client. If the terminal device receives the first original interaction message (e.g., interaction message 71b) sent by the interaction object, the terminal device may display a first resource animation (e.g., resource animation 71c) in the target area of the message preview box associated with the interaction object, and display a first preview message (e.g., preview message 71e) in the message preview box associated with the interaction object. The resource animation 71c may include a file message virtual resource 71d corresponding to the document content, and the preview message 71e may include preview content "[File] Product Copy" corresponding to the document content. The "Product Copy" may be a document title belonging to the document content. The document content in the embodiment of the present application may include but is not limited to word documents, excel documents, and txt documents. The embodiment of the present application may also generate different file message virtual resources for word documents, excel documents, and txt documents, respectively.
[0151] For ease of understanding, please refer to Figure 8, which is a schematic diagram of a scenario for processing image messages provided in an embodiment of the present application. Figure 8 shows a schematic diagram of a scenario in which image content and a virtual image are superimposed. Application interfaces 80a and 80b shown in Figure 8 can be application interfaces of an application client in a terminal device at different times. Application interfaces 80c and 80d shown in Figure 8 can be application interfaces of an application client in a terminal device at different times.
[0152] As shown in FIG8 , the terminal device may display an application interface 80a in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 81b) sent by the interaction partner, the terminal device may switch application interface 80a to application interface 80b and display interaction message 81b in interaction area 81a of application interface 80b. Interaction message 81b may be image content.
[0153] Optionally, as shown in FIG8 , the terminal device may display an application interface 80c in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 81b) sent by the interaction object, the terminal device may display a first resource animation (e.g., resource animation 81c) in the target area of the message preview box associated with the interaction object, and display a first preview message (e.g., preview message 81e) in the message preview box associated with the interaction object. Resource animation 81c may include an image message virtual resource 81d corresponding to the image content, and preview message 81e may include preview content "[Picture]" corresponding to the image content.
[0154] For ease of understanding, please refer to Figure 9, which is a schematic diagram of a scenario for processing an emoticon message provided in an embodiment of the present application. Figure 9 shows a schematic diagram of a scenario in which emoticon content and a virtual image are superimposed. Application interfaces 90a and 90b shown in Figure 9 may be application interfaces of an application client in a terminal device at different times. Application interfaces 90c and 90d shown in Figure 9 may be application interfaces of an application client in a terminal device at different times.
[0155] As shown in Figure 9, the terminal device may display an application interface 90a in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 91b) sent by the interaction partner, the terminal device may switch application interface 90a to application interface 90b and display interaction message 91b in interaction area 91a of application interface 90b. Interaction message 91b may be the emoticon content "bomb."
[0156] Optionally, as shown in FIG9 , the terminal device may display an application interface 90c in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 91b) sent by the interaction object, the terminal device may display a first resource animation (e.g., resource animation 91c) in the target area of the message preview box associated with the interaction object, and display a first preview message (e.g., preview message 91e) in the message preview box associated with the interaction object. Resource animation 91c may include an image message virtual resource 91d corresponding to the emoticon content, and preview message 91e may include a preview content "bomb" corresponding to the emoticon content.
[0157] For ease of understanding, please refer to Figure 10, which is a schematic diagram of a scenario for processing a video message provided in an embodiment of the present application. Figure 10 is a schematic diagram of a scenario in which video content and a virtual image are superimposed. Application interfaces 100a and 100b shown in Figure 10 may be application interfaces of an application client in a terminal device at different times. Application interfaces 100c and 100d shown in Figure 10 may be application interfaces of an application client in a terminal device at different times.
[0158] As shown in FIG10 , the terminal device may display an application interface 100a in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 101b) sent by the interaction partner, the terminal device may switch the application interface 100a to the application interface 100b and display the interaction message 101b in the interaction area 101a of the application interface 100b. The interaction message 101b may be video content.
[0159] Optionally, as shown in FIG10 , the terminal device may display an application interface 100c in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 101b) sent by an interaction object, the terminal device may display a first resource animation (e.g., resource animation 101c) in the target area of the message preview box associated with the interaction object, and display a first preview message (e.g., preview message 101e) in the message preview box associated with the interaction object. Resource animation 101c may include a video message virtual resource 101d corresponding to the video content, and preview message 101e may include preview content "[video]" corresponding to the video content.
[0160] For ease of understanding, please refer to Figure 11, which is a schematic diagram of a scenario for processing an audio message provided in an embodiment of the present application. Figure 11 is a schematic diagram of a scenario in which audio content and a virtual image are superimposed. Application interfaces 110a and 110b shown in Figure 11 may be application interfaces of an application client in a terminal device at different times. Application interfaces 110c and 110d shown in Figure 11 may be application interfaces of an application client in a terminal device at different times.
[0161] As shown in FIG11 , the terminal device may display an application interface 110a in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 111b) sent by the interaction partner, the terminal device may switch the application interface 110a to the application interface 110b and display the interaction message 111b in the interaction area 111a of the application interface 110b. The interaction message 111b may be audio content.
[0162] Optionally, as shown in FIG11 , the terminal device may display an application interface 110c in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 111b) sent by the interaction object, the terminal device may display a first resource animation (e.g., resource animation 111c) in the target area of the message preview box associated with the interaction object, and display a first preview message (e.g., preview message 111e) in the message preview box associated with the interaction object. Resource animation 111c may include a file message virtual resource 111d corresponding to the audio content, and preview message 111e may include preview content "[audio]" corresponding to the audio content.
[0163] For ease of understanding, please refer to Figure 12, which is a schematic diagram of a scenario for processing gift messages provided in an embodiment of the present application. Figure 12 is a schematic diagram of a scenario in which gift content and a virtual image are superimposed. Application interfaces 120a and 120b shown in Figure 12 can be application interfaces of an application client in a terminal device at different times. Application interfaces 120c and 120d shown in Figure 12 can be application interfaces of an application client in a terminal device at different times.
[0164] As shown in FIG12 , the terminal device may display an application interface 120a in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 121b) sent by the interaction partner, the terminal device may switch application interface 120a to application interface 120b and display interaction message 121b in interaction area 121a of application interface 120b. Interaction message 121b may be gift content.
[0165] Optionally, as shown in FIG12 , the terminal device may display an application interface 120c in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 121b) sent by the interaction object, the terminal device may display a first resource animation (e.g., resource animation 121c) in the target area of the message preview box associated with the interaction object, and display a first preview message (e.g., preview message 121e) in the message preview box associated with the interaction object. Resource animation 121c may include a file message virtual resource 121d corresponding to the gift content, and preview message 121e may include preview content "[gift]" corresponding to the gift content.
[0166] For ease of understanding, please refer to Figure 13, which is a schematic diagram of a scenario for processing a red envelope message provided in an embodiment of the present application. As shown in Figure 13, a schematic diagram of a scenario in which the red envelope content and the virtual image are superimposed, application interface 130a and application interface 130b shown in Figure 13 can be the application interfaces of the application client in the terminal device at different times, and application interface 130c and application interface 130d shown in Figure 13 can be the application interfaces of the application client in the terminal device at different times.
[0167] As shown in FIG13 , the terminal device may display an application interface 130a in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 131b) sent by the interaction partner, the terminal device may switch from application interface 130a to application interface 130b and display interaction message 131b in interaction area 131a of application interface 130b. Interaction message 131b may be the content of a red envelope.
[0168] Optionally, as shown in FIG13 , the terminal device may display an application interface 130c in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 131b) sent by the interaction object, the terminal device may display a first resource animation (e.g., resource animation 131c) in the target area of the message preview box associated with the interaction object, and display a first preview message (e.g., preview message 131e) in the message preview box associated with the interaction object. Resource animation 131c may include a file message virtual resource 131d corresponding to the red envelope content, and preview message 131e may include preview content "[red envelope]" corresponding to the red envelope content.
[0169] It should be understood that the first original interactive message may also include media content in multiple media formats, that is, the first original interactive message may simultaneously include at least two media contents of text content, image content, expression content, document content, red envelope content, gift content, transfer content, audio content and video content. At this time, the terminal device may determine the displayed first resource sub-animation and second resource sub-animation based on the media content in multiple media formats contained in the first original interactive message. For example, the first original interactive message may include text content and expression content (for example, the first original interactive message may be "throw you a bomb [bomb]", "[bomb]" may represent an expression of "bomb" style); for another example, the first original interactive message may include text content and image content (for example, the first original interactive message may be "look at my dance photo [picture]", "[picture]" may be a picture); for another example, the first original interactive message may include text content and expression content (for example, the first original interactive message may be "throw you a bomb [bomb][love]", "[bomb]" may represent "bomb" style expression). In this case, the second resource sub-animation may be determined by the first media content in the first original interactive message that can trigger the generation of a message virtual resource (i.e., "[bomb]", in this case, the second resource sub-animation may include a message virtual resource in the "[bomb]" style), or by all media content in the first original interactive message that can trigger the generation of a message virtual resource (i.e., "[bomb]" and "[love]", in this case, the second resource sub-animation may include a message virtual resource in the "[bomb]" style and a message virtual resource in the "[love]" style).
[0170] Step S203: Displaying a first resource sub-animation formed by the virtual image corresponding to the interactive object in the target area of the message preview frame;
[0171] It should be understood that if the media format of the media content included in the first original interactive message corresponds to the interactive content, the terminal device may not need to display the second resource sub-animation in the target area. The second resource sub-animation is generated based on the message virtual resource that can be used to interact with the avatar. Instead, the terminal device may directly display the first resource sub-animation formed by the avatar corresponding to the interactive object in the target area of the message preview frame. The interactive content may include but is not limited to poke content, shake content, and pat content.
[0172] For easier understanding, please refer to Figure 14, which is a schematic diagram of a scenario for processing a Poke-Poke message according to an embodiment of the present application. Application interfaces 140a and 140b shown in Figure 14 may be application interfaces of an application client in a terminal device at different times, and application interfaces 140c and 140d shown in Figure 14 may be application interfaces of an application client in a terminal device at different times.
[0173] As shown in Figure 14, the terminal device can display application interface 140a in the application client. If the terminal device receives a first original interaction message (e.g., interaction message 141b) sent by the interaction object, the terminal device can switch application interface 140a to application interface 140b and display interaction message 141b in interaction area 141a of application interface 140b. Interaction message 141b can be a poke content (or a shake content, a pat content, etc.), and interaction message 141b cannot be used to trigger the generation of a second resource sub-animation.
[0174] Optionally, as shown in FIG14 , the terminal device may display an application interface 140c in the application client. If the terminal device receives the first original interaction message (e.g., interaction message 141b) sent by the interaction object, the terminal device may display a first resource animation (e.g., resource animation 141c) in the target area of the message preview box associated with the interaction object, and display a first preview message (e.g., preview message 141d) in the message preview box associated with the interaction object. Preview message 141d may include preview content "The piglet poked you" corresponding to the poke content (or preview content "The piglet shook you" corresponding to the shake content, or preview content "The piglet patted you" corresponding to the pat content).
[0175] It is understood that in the embodiments corresponding to Figures 7-14 above, the first resource sub-animations corresponding to different first original interaction messages are identical. For example, the first resource sub-animation can be the avatar raising its hand. In practice, the first resource sub-animations corresponding to different first original interaction messages may also be different. This example illustrates the case where the first resource sub-animations corresponding to different first original interaction messages are identical.
[0176] Step S204, determining the resource animation type of the first resource animation;
[0177] It is understandable that the resource animation type of the first resource animation can be a resource animation type corresponding to a triggerable resource animation or a resource animation type corresponding to an untriggerable resource animation. If the resource animation type of the first resource animation is a resource animation type corresponding to a triggerable resource animation (i.e., the first resource animation is a triggerable resource animation), the terminal device can execute the following step S205; alternatively, if the resource animation type of the first resource animation is a resource animation type corresponding to an untriggerable resource animation (i.e., the first resource animation is an untriggerable resource animation), the terminal device can execute the following steps S206 and S207.
[0178] Step S205 : if the first resource animation is a triggerable resource animation, then in response to a triggering operation on the first resource animation, displaying media data associated with the media content having the viewing media format in the first original interaction message;
[0179] Among them, the first resource animation may include viewing a message virtual resource. It should be understood that if the first resource animation is a triggerable resource animation, the terminal device may switch the application interface to the viewing interface in response to a trigger operation for the first resource animation (i.e., in response to a trigger operation for the virtual image in the first resource animation or in response to a trigger operation for the message virtual resource in the first resource animation). Among them, the trigger operation for the first resource animation refers to a trigger operation for viewing the virtual image in the first resource animation or a trigger operation for viewing the message virtual resource in the first resource animation. Further, the terminal device may display media data associated with the media content having a viewing media format in the first original interactive message in the viewing interface. Among them, the viewing media format is a triggerable media format indicated by the viewing message virtual resource, and the viewing media format may be a media format corresponding to the document content, a media format corresponding to the picture content, or a media format corresponding to the video content.
[0180] Optionally, in one embodiment, a triggerable resource animation means that the virtual image in the resource animation can be triggered to be viewed by an operation, or the message virtual resource in the resource animation can be triggered to be viewed by an operation. An untriggerable resource animation means that the virtual image in the resource animation cannot be triggered to be viewed by an operation, or the message virtual resource in the resource animation cannot be triggered to be viewed by an operation.
[0181] For ease of understanding, please refer to Figure 7 again. The terminal device can respond to a trigger operation on resource animation 71c (for example, the terminal device can respond to a trigger operation on file message virtual resource 71d (i.e., view message virtual resource 71d) in resource animation 71c) and switch application interface 70c to application interface 70d (or view interface 70d). Media data associated with the media content in the view media format in interactive message 71b is displayed in application interface 70d, i.e., media data associated with the document content is displayed in application interface 70d. For example, the media data associated with the document content can be text 71f, images, tables, etc. in the document content.
[0182] For ease of understanding, please refer to Figure 8 again. The terminal device can respond to a trigger operation on the resource animation 81c (for example, the terminal device can respond to a trigger operation on the image message virtual resource 81d (i.e., the viewing message virtual resource 81d) in the resource animation 81c), switch the application interface 80c to the application interface 80d (or viewing interface 80d), and display the media data associated with the media content in the viewing media format in the interactive message 81b in the application interface 80d, that is, display the media data associated with the image content in the application interface 80d. For example, the media data associated with the image content may include the image content 81f, the camera parameters for capturing the image content, the size of the image content, the image editing control 82a, the image viewing control 82b, the image sharing control 82c, etc. The image editing control 82a may be used to edit the image content 81f (e.g., crop the image content 81f), the image viewing control 82b may be used to view historical image content communicated with the interactive object, which historical image content may include the image content 81f, and the image sharing control 82c may be used to share the image content 81f. Optionally, the image viewing control 82b may be used to view historical video content and historical image content communicated with the interactive object.
[0183] For ease of understanding, please refer to Figure 10 again. The terminal device can respond to a trigger operation on the resource animation 101c (for example, the terminal device can respond to a trigger operation on the video message virtual resource 101d (i.e., the viewing message virtual resource 101d) in the resource animation 101c), switch the application interface 100c to the application interface 100d (or viewing interface 100d), and display the media data associated with the media content in the viewing media format in the interactive message 101b in the application interface 100d, that is, display the media data associated with the video content in the application interface 100d. For example, the media data associated with the video content may include a video frame 101h in the video content, a video playback progress control 101g, a video playback control 101f, a video editing control 102a, a video viewing control 102b, a video sharing control 102c, etc. The video playback control 101f may be used to control the playback or pause of the video content, the video playback progress control 101g may be used to control the playback progress of the video content, and the video playback progress control 101g may be used to drag. The video editing control 102a may be used to edit the video content (e.g., to capture a video frame in the video content). The video viewing control 102b may be used to view historical video content communicated with the interactive object, and the historical video content may include the video content to which the video frame 101h belongs. The video sharing control 102c may be used to share the video content to which the video frame 101h belongs. Optionally, the video viewing control 102b may be used to view historical video content and historical image content communicated with the interactive object.
[0184] Optionally, the first resource animation may include an audio message virtual resource. It should be understood that if the first resource animation is a triggerable resource animation, the terminal device may respond to a trigger operation on the first resource animation (i.e., respond to a trigger operation on the virtual image in the first resource animation or respond to a trigger operation on the message virtual resource in the first resource animation) to display the playback progress corresponding to the media content in the audio media format in the first original interactive message. The audio media format is a triggerable media format indicated by the audio message virtual resource. Furthermore, the terminal device may respond to a drag operation on the playback progress and play the media content in the audio media format according to the dragged playback progress. The audio media format may be a media format corresponding to the audio content.
[0185] For ease of understanding, please refer to Figure 11 again. The terminal device can respond to a trigger operation on the resource animation 111c (for example, the terminal device can respond to a trigger operation on the file message virtual resource 111d (i.e., the audio message virtual resource 111d) in the resource animation 111c), switch the application interface 110c to the application interface 110d, and display the playback progress corresponding to the media content in the audio media format in the interactive message 111b in the application interface 110d, that is, display the playback progress corresponding to the audio content in the application interface 110d. For example, the playback progress corresponding to the audio content may include an audio playback progress control control 111g, an audio playback control control 111f, etc. The audio playback control control 111f can be used to control the playback or pause of the audio content, the audio playback progress control control 111g can be used to control the playback progress of the audio content, and the audio playback progress control control 111g can be used for dragging.
[0186] Optionally, the first resource animation may include a message collection virtual resource. It should be understood that if the first resource animation is a triggerable resource animation, the terminal device may respond to a trigger operation on the first resource animation (i.e., respond to a trigger operation on the virtual image in the first resource animation or respond to a trigger operation on the message virtual resource in the first resource animation) to display the resource description information and resource collection control corresponding to the media content with the collection media format in the first original interactive message. Among them, the collection media format is a triggerable media format indicated by the collection message virtual resource, and the collection media format may be a media format corresponding to the red envelope content, a media format corresponding to the gift content, or a media format corresponding to the transfer content. Furthermore, the terminal device may respond to a trigger operation on the resource collection control to collect the animation virtual resource indicated by the resource description information.
[0187] For ease of understanding, please refer to Figure 12 again. The terminal device can respond to a trigger operation for the resource animation 121c (for example, the terminal device can respond to a trigger operation for the file message virtual resource 121d (i.e., receiving the message virtual resource 121d) in the resource animation 121c), switch the application interface 120c to the application interface 120d, and display the resource collection area 122a corresponding to the media content with the collection media format in the interactive message 121b in the application interface 120d, and display the resource description information 122b and the resource collection control 122c in the resource collection area 122a, that is, display the resource description information 122b and the resource collection control 122c corresponding to the gift content in the application interface 120d. Further, the terminal device can respond to a trigger operation for the resource collection control 122c and collect the animation virtual resource indicated by the resource description information 122b. The animation virtual resource here can be "50 game coins."
[0188] For ease of understanding, please refer to Figure 13 again. The terminal device can respond to a trigger operation on the resource animation 131c (for example, the terminal device can respond to a trigger operation on the file message virtual resource 131d (i.e., receiving the message virtual resource 131d) in the resource animation 131c), switch the application interface 130c to the application interface 130d, and display the resource collection area 132a corresponding to the media content with the collection media format in the interactive message 131b in the application interface 130d, and display the resource description information 132b and the resource collection control 132c in the resource collection area 132a, that is, display the resource description information 132b and the resource collection control 132c corresponding to the red envelope content in the application interface 130d. Further, the terminal device can respond to the trigger operation on the resource collection control 132c to receive the animation virtual resource indicated by the resource description information 132b.
[0189] Step S206 : if the first resource animation is a non-triggerable resource animation, then in response to a triggering operation on the first resource animation, displaying an interactive area associated with the interactive object;
[0190] Step S207: Display the first original interaction message in the interaction area.
[0191] For ease of understanding, please refer to Figure 9 again. The terminal device can respond to the trigger operation for the resource animation 91c (for example, the terminal device can respond to the trigger operation for the image message virtual resource 91d in the resource animation 91c), switch the application interface 90c to the application interface 90d, and display the interactive message 91b in the interactive area of the application interface 90d.
[0192] For ease of understanding, please refer to Figure 14 again. The terminal device can respond to a trigger operation on the resource animation 141c (for example, the terminal device can respond to a trigger operation on the virtual image in the resource animation 141c), switch the application interface 140c to the application interface 140d, and display the interactive message 141b in the interactive area of the application interface 140d.
[0193] For ease of understanding, please refer to Figure 15, which is a flow chart of a method for triggering a first resource animation provided by an embodiment of the present application. As shown in Figure 15, the terminal device can execute step S21, and respond to the new message reminder of clicking the virtual image performed by the sample interactive object through step S21, that is, the terminal device can respond to the triggering operation for the first resource animation. Further, the terminal device can execute step S22, and determine whether the first original interactive message is a file-type message through step S22. The file-type message here can be an interactive message including document content, picture content, video content, audio content, gift content or red envelope content.
[0194] Furthermore, as shown in FIG15 , if the first original interaction message is not a file-type message (i.e., the first original interaction message does not include document content, image content, video content, audio content, gift content, or red envelope content), the terminal device may execute step S26, and no resource animation processing is required in step S26. Alternatively, if the first original interaction message is a file-type message (i.e., the first original interaction message includes document content, image content, video content, audio content, gift content, or red envelope content), the terminal device may execute step S23, and determine whether the first original interaction message is a picture message or a video message through step S23.
[0195] Furthermore, as shown in FIG15 , if the first original interactive message is a picture message or a video message (i.e., the first original interactive message includes picture content or video content), the terminal device may execute step S24 to open the picture content or video content in the first original interactive message. Step S24 may open the picture content in the first original interactive message through a picture viewer and the video content in the first original interactive message through a video viewer. Furthermore, the terminal device may execute step S25 to perform unread message elimination processing, i.e., cancel the display of the first resource animation in the target area.
[0196] Optionally, as shown in Figure 15, if the first original interaction message is not a picture message or a video message (that is, the first original interaction message does not include picture content or video content), the terminal device can execute step S27 to determine whether the first original interaction message is an ordinary file message through step S27. The ordinary file message here can be an interaction message including document content.
[0197] Furthermore, as shown in FIG15 , if the first original interaction message is a common file message (i.e., the first original interaction message includes document content), the terminal device may execute step S28 to open the file (i.e., document content) in the first original interaction message. Step S28 may open the document content in the first original interaction message through a file viewer. Furthermore, the terminal device may execute step S25 to perform unread message deletion, i.e., cancel the display of the first resource animation in the target area.
[0198] Optionally, as shown in Figure 15, if the first original interaction message is not an ordinary file message (that is, the first original interaction message does not include document content), the terminal device can execute step S29 to determine whether the first original interaction message is a voice message through step S29. The voice message here can be an interaction message including voice content.
[0199] Furthermore, as shown in FIG15 , if the first original interaction message is a voice message (i.e., the first original interaction message includes voice content), the terminal device may execute step S30 to perform voice playback processing, and then execute step S31 to play the voice content in the first original interaction message. Furthermore, the terminal device may execute step S25 to perform unread message deletion processing, i.e., cancel the display of the first resource animation in the target area.
[0200] Optionally, as shown in Figure 15, if the first original interaction message is not a voice message (that is, the first original interaction message does not include voice content), the terminal device can execute step S32 and perform other processing through step S32. For example, step S32 can determine whether the first original interaction message is an interactive message (that is, whether the first original interaction message includes red envelope content or gift content).
[0201] Thus, it can be seen that after receiving the first original interactive message sent by the interactive object, the embodiment of the present application can display the first resource sub-animation in the target area of the message preview box according to the media content and the media format of the media content contained in the first original interactive message, or synchronously display the first resource sub-animation and the second resource sub-animation. Therefore, the embodiment of the present application can display different resource animations according to the different media content contained in the first original interactive message, the different media formats of the media content, and the different virtual images corresponding to the different interactive objects, thereby realizing new message reminders based on resource animations, enriching the reminder method of new messages, and improving the fun of receiving new messages. Furthermore, since the first resource animation can have different resource animation types, when responding to the trigger operation for the first resource animation with different resource animation types, the terminal device can execute different message services. Among them, the message service can be to display media data associated with the media content with the viewing media format in the first original interactive message, and the message service can also be to display the interactive area associated with the interactive object, and then display the first original interactive message in the interactive area, so that the efficiency of processing new messages can be improved based on different message services.
[0202] Further, please refer to Figure 16, which is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the server 2000 in the embodiment corresponding to Figure 1 above, and the terminal device can be the sample terminal device or target terminal device in the embodiment corresponding to Figure 1 above. For ease of understanding, the embodiment of the present application is described by taking the method executed by a terminal device as an example. Among them, the data processing method can include the following steps S301-S306:
[0203] Step S301, displaying a message list in the application interface;
[0204] The message list includes a message preview box associated with the interactive object. For example, the message list can refer to the application interface 70c of the embodiment corresponding to Figure 7 above. The application interface 70c can include a message preview box associated with the interactive object (i.e., "piggy"), and the message preview box associated with "piggy" can display a preview message 71e.
[0205] Step S302: Displaying a first preview message in a message preview box;
[0206] Specifically, the terminal device can obtain the number of unread messages and the latest message body for the interactive object from the message management database according to the object identifier of the interactive object. Furthermore, the terminal device can accumulate the number of unread messages according to the first original interactive message to obtain the updated number of unread messages, that is, determine the sum of the first default message number (i.e., 1) and the number of unread messages as the updated number of unread messages; the terminal device can update the latest message body according to the first original interactive message to obtain the updated latest message body, that is, determine the first original interactive message as the updated latest message body. Furthermore, the terminal device can display the first preview message corresponding to the first original interactive message in the message preview box based on the updated number of unread messages and the updated latest message body. Wherein, the first preview message is generated based on the first original interactive message sent by the interactive object.
[0207] Furthermore, in response to a trigger operation for the first resource animation, the terminal device may clear the updated unread message count to obtain an initialized unread message count, i.e., determine the second default message count (i.e., 0) as the initialized unread message count; the terminal device may initialize the updated latest message body to obtain an initialized latest message body, i.e., the initialized latest message body is empty. Furthermore, the terminal device may cancel the display of the first resource animation in the target area based on the initialized unread message count and the initialized latest message body.
[0208] Similarly, when responding to a trigger operation on a non-target area in the message preview box, the terminal device can also clear the number of updated unread messages and initialize the latest updated message body. In this way, when exiting the interactive area associated with the interactive object and returning to the application interface where the message list is located, the terminal device will not continue to display the first resource animation in the target area of the message preview box.
[0209] For ease of understanding, please refer to Figure 17, which is a scenario diagram of a message management database provided in an embodiment of the present application. As shown in Figure 17, the terminal device may include a message management database, which may perform data processing via an unread message management component. The message management database may store message items corresponding to different interaction objects. For example, the message management database may be used to store message item 170a, message item 170b, message item 170c, ..., message item 170d. Message item 170a is used as an example for description.
[0210] The message item shown in Figure 17 may include an account ID, unread counts, and the latest message body. The account ID, unread counts, and the latest message body may be stored through a map structure, the key may be the account ID, and the value may be the unread counts and the latest message body. For example, the account ID in message item 170a may represent the object ID of the target interactive object (the object ID is unique), the unread counts in message item 170a may represent the number of unread messages for the target interactive object, and the latest message body in message item 170a may represent the latest message body for the target interactive object. Therefore, when the terminal device receives the first original interactive message sent by the target interactive object, responds to the trigger operation for the first resource animation, and responds to the trigger operation for the non-target area, the unread counts and the latest message body in message item 170a may be updated.
[0211] It should be understood that the embodiments of the present application can classify messages that are not read in the chat interface (for example, the application interface 70b in the embodiment corresponding to Figure 7) as new messages. Therefore, when the terminal device receives a new message (for example, the first original interactive message), it can judge the first original interactive message. If the first original interactive message is unread (that is, the terminal device is not currently in the chat interface), the message management database is updated through the unread message manager (that is, the unread message management component). Among them, the unread message manager is a singleton (the object of the singleton mode has only one copy in the entire system, that is, the message item in the message management database is unique for the same interactive object). The unread message manager can manage the unread counts corresponding to each interactive object and the latest message body corresponding to each interactive object, so as to carry out subsequent business processing.
[0212] Step S303: Displaying a first resource animation including a virtual image corresponding to the interactive object in the target area of the message preview box;
[0213] Specifically, the terminal device can display the preset message resource in the target area of the message preview box. Furthermore, if the terminal memory does not contain the first resource animation containing the virtual image corresponding to the interactive object, the terminal device can obtain the first resource animation from the server according to the object identifier of the interactive object. Furthermore, the terminal device can update the preset message resource in the target area based on the first resource animation. At the same time, the terminal device can store the first resource animation obtained from the server in the terminal memory to avoid multiple download requests. Among them, the target area does not overlap with the avatar area in the message preview box; the first resource animation is determined based on the media content contained in the first original interactive message and the media format of the media content.
[0214] Optionally, if there is a first resource animation containing a virtual image corresponding to the interactive object in the terminal memory, the terminal device can update the preset message resource in the target area based on the first resource animation in the terminal memory. It can be understood that the first resource animation in the terminal memory needs to meet the effective period (for example, 7 days). If the first resource animation in the terminal memory is within the effective period, the terminal device can display the first resource animation in the terminal memory; optionally, if the first resource animation in the terminal memory is not within the effective period, the terminal device needs to obtain a new first resource animation from the server again, and then display the obtained new first resource animation. Among them, the first resource animation in the terminal memory and the new first resource animation obtained from the server can be the same or different. If the interactive object does not update the virtual image within the effective period, the first resource animation in the terminal memory and the new first resource animation obtained from the server can be the same. If the interactive object updates the virtual image within the effective period, the first resource animation in the terminal memory and the new first resource animation obtained from the server can be different.
[0215] When the terminal device stores the first resource animation obtained from the server in the terminal memory, it can also store the current time point (for example, time T1). In this way, the terminal device can determine the time interval between the sending time point of the first original interactive message (for example, time T2) and time T1 as the interval period. Furthermore, if the interval period is less than or equal to the valid period, it is determined that the first resource animation in the terminal memory is within the valid period; optionally, if the interval period is greater than the valid period, it is determined that the first resource animation in the terminal memory is not within the valid period.
[0216] The terminal device may obtain the first resource animation from the server before receiving the first original interaction message. Alternatively, the terminal device may obtain the first resource animation from the server after receiving the first original interaction message. Alternatively, the terminal device may obtain both the first resource animation and the first original interaction message from the server simultaneously with receiving the first original interaction message. Alternatively, the terminal device may generate the first resource animation locally without obtaining the first resource animation from the server.
[0217] Optionally, the terminal device may obtain the first resource sub-animation from the server without directly obtaining the first resource animation from the server, and superimpose the first resource sub-animation obtained from the server and the second resource sub-animation generated locally to obtain the first resource animation. Among them, the first resource sub-animation and the second resource sub-animation can both be regarded as imageviews (i.e., view controls), and superimposing the first resource sub-animation and the second resource sub-animation can be regarded as the superposition of two imageviews (i.e., double-image superposition), and the imageview of the second resource sub-animation is covered on the imageview of the first resource sub-animation. For example, the display range of the imageview of the second resource sub-animation can be the area range 41b in the embodiment corresponding to Figure 4 above, and the display range of the imageview of the first resource sub-animation can be the area range 41a in the embodiment corresponding to Figure 4 above.
[0218] Among them, the terminal memory may include the memory managed by the virtual image thumbnail manager (i.e., the virtual image thumbnail component), and the virtual image thumbnail manager can be used to maintain the mapping relationship between the account identifier and the thumbnail (i.e., the virtual image), or the virtual image thumbnail manager can be used to maintain the mapping relationship between the account identifier and the resource animation, and the mapping relationship in the virtual image thumbnail manager can be used to support multiple services in the application client. In this way, if the virtual image thumbnail manager does not have the mapping relationship required by a certain service, it can trigger background download (for example, downloading the first resource animation from the server). Furthermore, if the first resource animation is downloaded successfully, an update event event is broadcast, and based on the update event event, multiple services are instructed to refresh the thumbnails. For example, one of the multiple services can update the default resource animation to the first resource animation.
[0219] Upon receiving an animation acquisition request sent by a terminal device based on an object identifier, the server may generate a first resource animation and then return the first resource animation to the terminal device. Optionally, the server may also pre-generate first resource animations corresponding to popular object images. In this way, when the terminal device sends an animation acquisition request to the server based on the object identifier, the server may directly acquire the pre-generated first resource animation, thereby reducing the delay in the terminal device acquiring the resource animation.
[0220] Step S304: displaying the second preview message in the message preview box;
[0221] The second preview message is determined based on the second original interaction message sent by the interaction object. Before the terminal device displays the second preview message in the target area, it can cancel the display of the first preview message in the target area.
[0222] The specific process of the terminal device displaying the second preview message in the message preview box can be found in the above description of displaying the first preview message in the message preview box, which will not be repeated here.
[0223] Step S305 , displaying a second resource animation including a virtual image in the target area;
[0224] The second resource animation is determined based on the media content and the media format of the media content contained in the second original interaction message. Before the terminal device displays the second resource animation in the target area, the terminal device may cancel the display of the first resource animation in the target area. Optionally, the terminal device may also display the first resource animation and the second resource animation simultaneously in the target area.
[0225] The specific process of the terminal device displaying the second resource animation including the virtual image in the target area can refer to the above description of displaying the first resource animation including the virtual image in the target area, which will not be repeated here.
[0226] It is understandable that when the second original interaction message is the same as the first original interaction message, the first resource animation is the same as the second resource animation; optionally, when the second original interaction message is different from the first original interaction message, the first resource animation and the second resource animation can be the same, or the first resource animation and the second resource animation can be different. For example, when the second original interaction message is "[Picture]" and the first original interaction message is "Look at the picture I took [Picture]", the first resource animation and the second resource animation are the same. For another example, when the second original interaction message is "[Picture]" and the first original interaction message is "[Video]", the first resource animation and the second resource animation are different.
[0227] For ease of understanding, please refer to Figure 18, which is a flow chart of a process for displaying a first resource animation provided by an embodiment of the present application. As shown in Figure 18, the terminal device may include three management modules: virtual image thumbnail management (i.e., virtual image thumbnail management manager), latest message list, and unread message management (i.e., unread message management manager). In other words, the terminal device may include three management components: virtual image thumbnail management component, latest message list component, and unread message management component. Among them, the thumbnail refresh mechanism is uniformly managed by the virtual image thumbnail manager, and the thumbnails corresponding to the chat items are maintained by the virtual image thumbnail manager.
[0228] As shown in Figure 18, the terminal device can receive a new message (for example, the first original interactive message) through step S41 when receiving a new message. Further, the terminal device can execute step S42, and preview the message in the message list through step S42, that is, step S42 can display the first preview message corresponding to the first original interactive message in the message list. Further, the terminal device can execute step S43, and perform a red dot new message reminder through step S43, that is, step S43 can display the preset message resource in the message preview box in the message list. Further, the terminal device can execute step S44, and determine whether the first original interactive message is an ordinary text message through step S44. The ordinary text message here can be an interactive message that does not include document content, picture content, emoticon content, video content, audio content, gift content, red envelope content and poke content.
[0229] Further, as shown in Figure 18, if the first original interaction message is an ordinary text message (that is, the first original interaction message does not include document content, picture content, emoticon content, video content, audio content, gift content, red envelope content and poke content), the terminal device can execute step S50, and step S50 indicates the end of the process.
[0230] Optionally, as shown in Figure 18, if the first original interaction message is not an ordinary text message (that is, the first original interaction message includes document content, picture content, expression content, video content, audio content, gift content, red envelope content or poke content), the terminal device can execute step S45, and determine through step S45 whether there is a virtual image thumbnail in the terminal memory, that is, determine whether there is a virtual image corresponding to the interactive object in the terminal memory, that is, determine whether there is a first resource animation containing the virtual image corresponding to the interactive object.
[0231] Furthermore, as shown in FIG18 , if the terminal memory contains a first resource animation including a virtual image, the terminal device may execute step S51 when there are unread messages, and hide the red dot prompt in step S51, i.e., cancel the display of the preset message resource. Furthermore, the terminal device may execute step S52, and display a new message prompt of the virtual image in step S52, i.e., display the first resource animation including the virtual image.
[0232] Optionally, as shown in FIG18 , if the first resource animation containing the virtual image does not exist in the terminal memory, the terminal device may execute step S46, and request the virtual image thumbnail from the server through step S46, that is, obtain the first resource animation from the server through the URL (Uniform Resource Locator) of the virtual image thumbnail. Further, the terminal device may execute step S47, and download the thumbnail through step S47, that is, download the first resource animation from the server. Further, the terminal device may execute step S48, and determine whether the first resource animation is downloaded successfully through step S48.
[0233] Furthermore, as shown in FIG18 , if the first resource animation is successfully downloaded, the terminal device may execute step S49 to determine whether the application client has any unread messages for the interactive object. Furthermore, if the application client has any unread messages for the interactive object, the terminal device may execute step S51 to hide the red dot prompt, i.e., cancel the display of the preset message resource. Furthermore, the terminal device may execute step S52 to display a new message prompt for the avatar, i.e., display the first resource animation including the avatar.
[0234] Optionally, as shown in Figure 18, since the terminal device may respond to the trigger operation for the message preview box, the application client may not have any unread messages for the interactive object. If the application client does not have any unread messages for the interactive object, the terminal device can execute step S50, which indicates the end of the process.
[0235] Optionally, as shown in FIG18 , due to network reasons or other reasons, the first resource animation may fail to be downloaded. If the first resource animation fails to be downloaded, the terminal device may execute step S50 , which indicates the end of the process.
[0236] Step S306: If the first original interaction message and the second original interaction message meet the message superposition condition, a third resource animation commonly associated with the first original interaction message and the second original interaction message is displayed in the application interface.
[0237] Specifically, if the first original interaction message and the second original interaction message meet the message overlay condition, the terminal device can display a first resource sub-animation formed by the virtual image corresponding to the interactive object in the target area of the message preview frame. Furthermore, the terminal device can display a third resource sub-animation that can be used to interact with the virtual image, formed by the message virtual resource associated with the first original interaction message and the message virtual resource associated with the second original interaction message in the target area. The first resource sub-animation and the third resource sub-animation can be collectively referred to as the third resource animation commonly associated with the first original interaction message and the second original interaction message.
[0238] It is understood that the terminal device may cancel the display of the second resource animation in the target area before displaying the third resource animation in the target area. Optionally, the terminal device may also determine whether the first original interaction message and the second original interaction message meet the message overlay condition upon receiving the second original interaction message, and then directly display the third resource animation in the application interface without displaying the second resource animation (i.e., without executing step S305).
[0239] Optionally, if the first original interaction message and the second original interaction message meet the message overlay condition, the terminal device can display the first resource sub-animation formed by the virtual image corresponding to the interactive object in the target area of the message preview box. Furthermore, the terminal device can display the fourth resource sub-animation formed by the update message virtual resources (for example, ribbons, stars, etc.) in the target area, which can be used to interact with the virtual image. Among them, the first resource sub-animation and the fourth resource sub-animation can be collectively referred to as the third resource animation commonly associated with the first original interaction message and the second original interaction message. At this time, before the terminal device displays the third resource animation in the target area, it can cancel the display of the second resource animation in the target area, or display the first resource animation, the second resource animation and the third resource animation in the target area at the same time.
[0240] It should be understood that the terminal device can obtain the first message sending timestamp of the first original interaction message and the second message sending timestamp of the second original interaction message, and determine the time interval between the first message sending timestamp and the second message sending timestamp. Furthermore, if the time interval is less than or equal to the duration threshold, the terminal device can determine the relationship between the first original interaction message and the second original interaction message and the message superposition condition based on the semantic similarity between the first original interaction message and the second original interaction message. Optionally, if the time interval is greater than the duration threshold, the terminal device can determine that the first original interaction message and the second original interaction message do not meet the message superposition condition. In particular, the embodiment of the present application does not limit the specific value of the duration threshold. For example, the duration threshold can be equal to 0.85 seconds.
[0241] Among them, the specific process of determining the relationship between the first original interaction message and the second original interaction message and the message superposition condition based on the semantic similarity between the first original interaction message and the second original interaction message can be described as follows: the terminal device can input the first original interaction message and the second original interaction message into the semantic analysis model respectively, and extract features of the first original interaction message and the second original interaction message respectively through the semantic analysis model, and output the first message feature corresponding to the first original interaction message and the second message feature corresponding to the second original interaction message. Further, the terminal device can determine the feature similarity between the first message feature and the second message feature, and determine the feature similarity as the semantic similarity between the first original interaction message and the second original interaction message. Further, if the semantic similarity is greater than or equal to the similarity threshold, the terminal device can determine that the first original interaction message and the second original interaction message meet the message superposition condition. Optionally, if the semantic similarity is less than the similarity threshold, the terminal device can determine that the first original interaction message and the second original interaction message do not meet the message superposition condition.
[0242] It can be understood that the semantic analysis model is generated by iterative training of the initial semantic analysis model. The embodiment of the present application does not limit the model type of the semantic analysis model. For example, the semantic analysis model can be a Bidirectional Encoder Representations from Transformers (BERT) model, a robustly optimized BERT pre-training approach (RoBERTa for short), etc.
[0243] It can be seen from this that the embodiment of the present application can display the first preview message corresponding to the first original interactive message in the message preview box of the application interface, and then display the first resource animation containing the virtual image corresponding to the interactive object in the target area of the message preview box; similarly, the embodiment of the present application can display the second preview message corresponding to the second original interactive message in the message preview box of the application interface, and then display the second resource animation containing the virtual image corresponding to the interactive object in the target area of the message preview box. Furthermore, if the first original interactive message and the second original interactive message meet the message superposition condition, the third resource animation associated with the first original interactive message and the second original interactive message is displayed in the application interface. Since different first resource animations and second resource animations can be generated for different interactive objects (i.e., different faces for different people), the embodiment of the present application can realize a personalized resource animation display method, and the reminder method of new messages can be enriched based on the first resource animation, the second resource animation and the third resource animation.
[0244] Further, referring to FIG. 19 , FIG. 19 is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device 1 may include: a list display module 11, a message display module 12, an animation display module 13, and an animation triggering module 14; further, the data processing device 1 may also include: an animation association module 15, and a condition judgment module 16;
[0245] A list display module 11 is used to display a message list in the application interface, wherein the message list includes a message preview box associated with the interactive object, and the message preview box includes an avatar area and a target area that does not overlap with the avatar area;
[0246] A message display module 12 is configured to display a first preview message in the message preview box, where the first preview message is generated based on a first original interaction message sent by the interaction object;
[0247] The message display module 12 is specifically configured to obtain the number of unread messages and the latest message body for the interaction object from the message management database according to the object identifier of the interaction object;
[0248] The message display module 12 is specifically configured to accumulate the number of unread messages according to the first original interaction message to obtain an updated number of unread messages;
[0249] The message display module 12 is specifically configured to update the latest message body according to the first original interactive message to obtain an updated latest message body;
[0250] The message display module 12 is specifically configured to display a first preview message corresponding to the first original interactive message in the message preview box based on the updated number of unread messages and the updated latest message body.
[0251] The message display module 12 is further configured to clear the updated unread message count to obtain the initialized unread message count when responding to a trigger operation on the first resource animation.
[0252] The message display module 12 is further specifically configured to initialize the updated latest message body to obtain an initialized latest message body;
[0253] The message display module 12 is further specifically configured to cancel the first resource animation in the display target area based on the initialized number of unread messages and the initialized latest message body.
[0254] Animation display module 13, configured to display a first resource animation including a virtual image corresponding to the interactive object in a target area of the message preview frame, wherein the first resource animation is determined based on media content included in the first original interactive message and a media format of the media content;
[0255] Wherein, the first resource animation is composed of the first resource sub-animation and the second resource sub-animation;
[0256] The animation display module 13 includes: a first animation display unit 131, a second animation display unit 132;
[0257] The first animation display unit 131 is configured to display a first resource sub-animation formed by a virtual image corresponding to an interactive object in a target area of the message preview frame;
[0258] The second animation display unit 132 is used to display a second resource sub-animation in the target area. The second resource sub-animation is generated based on a message virtual resource that can be used to interact with the virtual image; the message virtual resource is determined based on the media content contained in the first original interactive message and the media format of the media content.
[0259] Wherein, the message virtual resource includes the image message virtual resource;
[0260] The second animation display unit 132 is specifically configured to determine the media content included in the first original interaction message as an image message virtual resource if the media format of the media content included in the first original interaction message is a media format corresponding to image type content;
[0261] The second animation display unit 132 is specifically configured to display a second resource sub-animation in the target area, where the second resource sub-animation is generated based on an image message virtual resource that can be used to interact with the virtual image.
[0262] Wherein, the message virtual resource includes the file message virtual resource;
[0263] The second animation display unit 132 is specifically configured to obtain a file message virtual resource indicated by the media content included in the first original interaction message if the media format of the media content included in the first original interaction message is a media format corresponding to the file type content;
[0264] The second animation display unit 132 is specifically configured to display a second resource sub-animation in the target area, where the second resource sub-animation is generated based on a file message virtual resource that can be used to interact with the virtual image.
[0265] Wherein, the message virtual resource includes a video message virtual resource;
[0266] The second animation display unit 132 is specifically configured to obtain a preview video frame from the media content included in the first original interaction message if the media format of the media content included in the first original interaction message is a media format corresponding to video type content, and determine the preview video frame as a video message virtual resource;
[0267] The second animation display unit 132 is specifically configured to display a second resource sub-animation in the target area, where the second resource sub-animation is generated based on a video message virtual resource that can be used to interact with the virtual image.
[0268] Among them, the specific implementation of the first animation display unit 131 and the second animation display unit 132 can refer to the description of step S103 in the embodiment corresponding to Figure 2 and the description of steps S202-step S203 in the embodiment corresponding to Figure 5, which will not be repeated here.
[0269] Among them, the animation display module 13 is specifically used to display the preset message resource in the target area of the message preview box;
[0270] The animation display module 13 is specifically configured to obtain the first resource animation from the server according to the object identifier of the interactive object if the first resource animation including the virtual image corresponding to the interactive object does not exist in the terminal memory;
[0271] The animation display module 13 is specifically configured to update the preset message resource in the target area based on the first resource animation.
[0272] The animation triggering module 14 is configured to execute a message service associated with the first original interaction message in response to a triggering operation on the first resource animation.
[0273] The animation trigger module 14 includes: a first trigger unit 141, a second trigger unit 142;
[0274] The first triggering unit 141 is configured to display media data associated with the media content having the viewing media format in the first original interaction message in response to a triggering operation on the first resource animation if the first resource animation is a triggerable resource animation.
[0275] Wherein, the first resource animation includes viewing a message virtual resource;
[0276] The first triggering unit 141 is specifically configured to switch the application interface to the viewing interface in response to a triggering operation on the first resource animation;
[0277] The first triggering unit 141 is specifically configured to display media data associated with the media content having a viewing media format in the first original interactive message in the viewing interface; the viewing media format is a triggerable media format indicated by the viewing message virtual resource.
[0278] Wherein, the first resource animation includes an audio message virtual resource;
[0279] The first triggering unit 141 is specifically configured to display the playback progress of the media content in the audio media format in the first original interactive message in response to a triggering operation on the first resource animation; the audio media format is a triggerable media format indicated by the audio message virtual resource;
[0280] The first triggering unit 141 is further specifically configured to respond to a dragging operation on the playback progress and play the media content in the audio media format according to the dragged playback progress.
[0281] Among them, the first resource animation includes receiving the message virtual resource;
[0282] The first triggering unit 141 is specifically configured to display resource description information and a resource collection control corresponding to the media content having a collection media format in the first original interaction message in response to a triggering operation on the first resource animation; the collection media format is a triggerable media format indicated by the collection message virtual resource;
[0283] The first triggering unit 141 is further specifically configured to respond to a triggering operation on the resource obtaining control and obtain the animation virtual resource indicated by the resource description information.
[0284] A second triggering unit 142 is configured to display an interactive area associated with the interactive object in response to a triggering operation on the first resource animation if the first resource animation is an untriggerable resource animation;
[0285] The second triggering unit 142 is configured to display the first original interaction message in the interaction area.
[0286] Among them, the specific implementation of the first trigger unit 141 and the second trigger unit 142 can refer to the description of step S104 in the embodiment corresponding to Figure 2 and the description of steps S205 to S207 in the embodiment corresponding to Figure 5, and will not be repeated here.
[0287] Optionally, the animation association module 15 is configured to display a second preview message in the message preview box; the second preview message is determined based on the second original interaction message sent by the interaction object;
[0288] Animation association module 15, configured to display a second resource animation including a virtual image in a target area; the second resource animation is determined based on the media content and the media format of the media content included in the second original interaction message;
[0289] The animation associating module 15 is configured to display a third resource animation associated with the first original interaction message and the second original interaction message in the application interface if the first original interaction message and the second original interaction message meet a message superposition condition.
[0290] Optionally, a condition judgment module 16 is configured to obtain a first message sending timestamp of the first original interaction message and a second message sending timestamp of the second original interaction message, and determine a time interval between the first message sending timestamp and the second message sending timestamp;
[0291] a condition judgment module 16 configured to determine, if the time interval is less than or equal to a duration threshold, a relationship between the first original interaction message and the second original interaction message and a message superposition condition based on the semantic similarity between the first original interaction message and the second original interaction message;
[0292] The condition judgment module 16 is configured to determine that the first original interaction message and the second original interaction message do not meet the message superposition condition if the time interval is greater than a duration threshold.
[0293] The condition judgment module 16 is specifically configured to input the first original interaction message and the second original interaction message into a semantic analysis model, perform feature extraction on the first original interaction message and the second original interaction message using the semantic analysis model, and output a first message feature corresponding to the first original interaction message and a second message feature corresponding to the second original interaction message.
[0294] The condition judgment module 16 is specifically configured to determine a feature similarity between the first message feature and the second message feature, and determine the feature similarity as a semantic similarity between the first original interaction message and the second original interaction message;
[0295] The condition judgment module 16 is specifically configured to determine that the first original interaction message and the second original interaction message meet the message superposition condition if the semantic similarity is greater than or equal to a similarity threshold;
[0296] The condition judgment module 16 is specifically configured to determine that the first original interaction message and the second original interaction message do not meet the message superposition condition if the semantic similarity is less than a similarity threshold.
[0297] Among them, the specific implementation of the list display module 11, the message display module 12, the animation display module 13 and the animation trigger module 14 can be found in the description of steps S101 to S104 in the embodiment corresponding to FIG2 and the description of steps S201 to S207 in the embodiment corresponding to FIG5 , which will not be repeated here. Among them, the specific implementation of the animation association module 15 and the condition judgment module 16 can be found in the description of steps S304 to S306 in the embodiment corresponding to FIG16 , which will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated.
[0298] Further, please refer to Figure 20, which is a structural diagram of a computer device provided in an embodiment of the present application. The computer device can be a terminal device or a server. As shown in Figure 20, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, in some embodiments, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. Optionally, the memory 1005 may also be at least one storage device located away from the aforementioned processor 1001. As shown in FIG. 20 , the memory 1005 , which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.
[0299] In the computer device 1000 shown in FIG20 , the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an interface for user input; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0300] Displaying a message list in the application interface; the message list includes a message preview box associated with the interactive object;
[0301] Displaying a first preview message in the message preview box; the first preview message is determined based on the first original interaction message sent by the interaction object;
[0302] In the target area of the message preview frame, a first resource animation including a virtual image corresponding to the interaction object is displayed; the target area does not overlap with the avatar area in the message preview frame; the first resource animation is determined based on the media content and the media format of the media content included in the first original interaction message;
[0303] In response to the triggering operation on the first resource animation, a message service associated with the first original interaction message is executed.
[0304] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the data processing method described in the embodiments corresponding to FIG. 2 , FIG. 5 , or FIG. 16 , or can also execute the data processing device 1 described in the embodiment corresponding to FIG. 19 , and thus will not be described in detail here. Furthermore, the description of the beneficial effects of employing the same method will not be repeated here.
[0305] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 mentioned above. When the processor executes the computer program, it can execute the description of the data processing method in the embodiment corresponding to Figure 2, Figure 5 or Figure 16 above. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the embodiment of the computer-readable storage medium involved in this application, please refer to the description of the method embodiment of this application.
[0306] In addition, it should be noted that: the embodiment of the present application also provides a computer program product, which may include a computer program, and the computer program may be stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor can execute the computer program, so that the computer device performs the description of the data processing method in the embodiment corresponding to Figure 2, Figure 5 or Figure 16 above, and therefore, it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer program product embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0307] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0308] The above disclosure is merely an embodiment of the present application and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, characterized in that: include: Displaying a message list in the application interface, the message list including a message preview box associated with the interactive object, the message preview box including an avatar area and a target area that does not overlap with the avatar area; Displaying a first preview message in the message preview box, where the first preview message is generated based on a first original interaction message sent by the interaction object; Displaying a first resource animation including a virtual image corresponding to the interactive object in the target area, wherein the first resource animation is determined based on media content included in the first original interactive message and a media format of the media content; In response to a triggering operation on the first resource animation, a message service associated with the first original interaction message is executed.
2. The method according to claim 1, characterized in that The first resource animation is composed of a first resource sub-animation and a second resource sub-animation; The displaying of a first resource animation including a virtual image corresponding to the interactive object in the target area of the message preview box includes: In the target area of the message preview box, displaying the first resource sub-animation formed by the virtual image corresponding to the interactive object; In the target area, a second resource sub-animation is displayed, where the second resource sub-animation is generated based on a message virtual resource that can be used to interact with the virtual image; the message virtual resource is determined based on media content included in the first original interaction message and a media format of the media content.
3. The method according to claim 1 or 2, characterized in that: The executing, in response to the triggering operation on the first resource animation, a message service associated with the first original interaction message includes: If the first resource animation is a triggerable resource animation, in response to a triggering operation on the first resource animation, media data associated with the media content having a triggerable media format in the first original interaction message is displayed.
4. The method according to claim 1 or 2, characterized in that: The executing, in response to the triggering operation on the first resource animation, a message service associated with the first original interaction message includes: If the first resource animation is a non-triggerable resource animation, in response to a triggering operation on the first resource animation, displaying an interactive area associated with the interactive object; The first original interaction message is displayed in the interaction area.
5. The method according to claim 3, characterized in that: The first resource animation includes viewing a message virtual resource; The method of displaying, in response to the triggering operation on the first resource animation, media data associated with the media content in the viewing media format in the first original interaction message comprises: In response to a triggering operation on the first resource animation, switching the application interface to a viewing interface; The media data associated with the media content having the viewing media format in the first original interactive message is displayed in the viewing interface; the viewing media format is a triggerable media format indicated by the viewing message virtual resource.
6. The method according to claim 3, characterized in that The first resource animation includes an audio message virtual resource; The method of displaying, in response to the triggering operation on the first resource animation, media data associated with the media content in the viewing media format in the first original interaction message comprises: In response to a trigger operation on the first resource animation, displaying the playback progress corresponding to the media content in the audio media format in the first original interactive message; the audio media format is a triggerable media format indicated by the audio message virtual resource; The method further comprises: In response to the dragging operation on the playing progress, the media content in the audio media format is played according to the dragged playing progress.
7. The method according to claim 3, characterized in that The first resource animation includes receiving a message virtual resource; The method of displaying, in response to the triggering operation on the first resource animation, media data associated with the media content in the viewing media format in the first original interaction message comprises: In response to a trigger operation for the first resource animation, displaying resource description information and resource collection controls corresponding to the media content having a collection media format in the first original interaction message; the collection media format is a triggerable media format indicated by the collection message virtual resource; The method further comprises: In response to a triggering operation on the resource collection control, the animation virtual resource indicated by the resource description information is collected.
8. The method according to claim 2, characterized in that: The message virtual resource includes an image message virtual resource; Displaying the second resource sub-animation in the target area includes: If the media format of the media content included in the first original interaction message is a media format corresponding to image type content, determining the media content included in the first original interaction message as the image message virtual resource; The second resource sub-animation is displayed in the target area, where the second resource sub-animation is generated based on the image message virtual resource that can be used to interact with the virtual character.
9. The method according to claim 2, characterized in that: The message virtual resource includes a file message virtual resource; Displaying the second resource sub-animation in the target area includes: If the media format of the media content included in the first original interaction message is a media format corresponding to the file type content, acquiring the file message virtual resource indicated by the media content included in the first original interaction message; The second resource sub-animation is displayed in the target area, where the second resource sub-animation is generated based on the file message virtual resource that can be used to interact with the virtual character.
10. The method according to claim 2, characterized in that The message virtual resource includes a video message virtual resource; Displaying the second resource sub-animation in the target area includes: If the media format of the media content included in the first original interaction message is a media format corresponding to video type content, obtaining a preview video frame in the media content included in the first original interaction message, and determining the preview video frame as the video message virtual resource; The second resource sub-animation is displayed in the target area, where the second resource sub-animation is generated based on the video message virtual resource that can be used to interact with the virtual character.
11. The method according to claim 1, characterized in that: The displaying of a first resource animation including a virtual image corresponding to the interactive object in the target area of the message preview box includes: In the target area of the message preview box, displaying a preset message resource; If the first resource animation including the virtual image corresponding to the interactive object does not exist in the terminal memory, acquiring the first resource animation from the server according to the object identifier of the interactive object; The preset message resource in the target area is updated based on the first resource animation.
12. The method according to any one of claims 1 to 11, characterized in that: Displaying the first preview message in the message preview box includes: According to the object identifier of the interactive object, obtaining the number of unread messages and the latest message body for the interactive object from a message management database; Accumulating the number of unread messages according to the first original interaction message to obtain an updated number of unread messages; Updating the latest message body according to the first original interaction message to obtain an updated latest message body; Based on the updated unread message quantity and the updated latest message body, a first preview message corresponding to the first original interaction message is displayed in the message preview box.
13. The method according to claim 12, characterized in that The method further comprises: When responding to a trigger operation on the first resource animation, the updated number of unread messages is cleared to obtain an initialized number of unread messages; Initializing the updated latest message body to obtain an initialized latest message body; Based on the initialized number of unread messages and the initialized latest message body, the first resource animation in the target area is canceled.
14. The method according to any one of claims 1 to 13, characterized in that: The method further comprises: Displaying a second preview message in the message preview box; the second preview message is determined based on a second original interaction message sent by the interaction object; In the target area, displaying a second resource animation including the virtual image; the second resource animation is determined based on the media content included in the second original interaction message and the media format of the media content; If the first original interaction message and the second original interaction message meet the message superposition condition, a third resource animation commonly associated with the first original interaction message and the second original interaction message is displayed in the application interface.
15. The method according to claim 14, characterized in that The method further comprises: Obtaining a first message sending timestamp of the first original interaction message and a second message sending timestamp of the second original interaction message, and determining a time interval between the first message sending timestamp and the second message sending timestamp; If the time interval is less than or equal to the duration threshold, determining, according to the semantic similarity between the first original interaction message and the second original interaction message, a relationship between the first original interaction message and the second original interaction message and the message superposition condition; If the time interval is greater than the duration threshold, it is determined that the first original interaction message and the second original interaction message do not meet the message superposition condition.
16. The method according to claim 15, characterized in that The determining, according to the semantic similarity between the first original interaction message and the second original interaction message, a relationship between the first original interaction message and the second original interaction message and the message superposition condition includes: inputting the first original interaction message and the second original interaction message into a semantic analysis model respectively, performing feature extraction on the first original interaction message and the second original interaction message respectively through the semantic analysis model, and outputting a first message feature corresponding to the first original interaction message and a second message feature corresponding to the second original interaction message; Determine a feature similarity between the first message feature and the second message feature, and determine the feature similarity as a semantic similarity between the first original interaction message and the second original interaction message; If the semantic similarity is greater than or equal to a similarity threshold, determining that the first original interaction message and the second original interaction message meet the message superposition condition; If the semantic similarity is less than the similarity threshold, it is determined that the first original interaction message and the second original interaction message do not satisfy the message superposition condition.
17. A data processing device, characterized in that: include: A list display module, used to display a message list in an application interface, wherein the message list includes a message preview box associated with an interactive object, wherein the message preview box includes an avatar area and a target area that does not overlap with the avatar area; A message display module, configured to display a first preview message in the message preview box, wherein the first preview message is generated based on a first original interaction message sent by the interaction object; An animation display module, used to display a first resource animation including a virtual image corresponding to the interactive object in a target area of the message preview frame, wherein the first resource animation is determined based on media content included in the first original interactive message and a media format of the media content; The animation triggering module is used to execute a message service associated with the first original interaction message in response to a triggering operation on the first resource animation.
18. A computer device, characterized in that: include: Processor and memory; The processor is connected to the memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 16.
20. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium and is suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Instant message processing method and device
CN106888150A
Message icon display method and device, terminal and storage medium
CN110134484A
Unread message display method and device, electronic equipment and storage medium
CN114650264A
Session message display method and device, terminal and storage medium
CN115373547A
Display control method and device, electronic device and storage medium
US20220261126A1
