Emoticon message processing method and device, electronic equipment and medium

CN116527622BActive Publication Date: 2026-09-29BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310431458.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2026-09-29
Estimated Expiration
2043-04-20

AI Technical Summary

Technical Problem

[0003]本公开提供一种表情消息处理方法、装置、电子设备及介质,以至少解决相关技术中表情信息与魔法表情信息耦合增加维护成本以及魔法表情播放规则不能满足需求的问题

Benefits of technology

[0032]本公开实施例的表情消息处理方法,通过用于记录特定表情与魔法表情的映射关系的映射表,解除表情消息与魔法表情信息之间的耦合,易于维护,降低了维护成本,用于记录特定表情与魔法表情的映射关系;在接收到第一表情消息的情况下,获取第一表情消息中的第一表情标识;基于第一表情标识,查询映射表,确定是否存在与第一表情消息对应的目标魔法表情;在存在与第一表情消息对应的目标魔法表情的情况下,根据所述魔法表情播放策略,播放目标魔法表情,能够满足不同类型的魔法表情的播放需求,提高用户体验感和用户黏性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116527622B_ABST
    Figure CN116527622B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an expression message processing method and device, electronic equipment and medium, comprising: in response to receiving a first expression message, obtaining a first expression identifier in the first expression message; based on the first expression identifier, querying a mapping table to determine whether there is a target magic expression corresponding to the first expression message, the mapping table being used to record the mapping relationship between a specific expression and a magic expression; in the case where there is a target magic expression corresponding to the first expression message, playing the target magic expression according to a magic expression playing strategy. The expression message processing method records the mapping relationship between a specific expression and a magic expression through a mapping table, eliminates the coupling between expression information and magic expression information, is easy to maintain, and reduces maintenance costs; the magic expression is played according to the magic expression playing strategy, reasonably processing the playing of different types of magic expressions, and improving the intimacy between users and user stickiness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and medium for processing emoticons. Background Technology

[0002] Instant messaging (IM) has become the most popular communication method, with various IM software emerging and service providers offering increasingly rich communication service functions. Besides sending emoticons, users can engage in more fun activities in chat scenarios, such as playing novel magical emoticon animations after sending emoticon messages. These magical emoticons have cooler and more realistic effects. One technical solution for triggering magical emoticon animations involves adding magical emoticon material information to the emoticon message. When the server sends an emoticon message, it also includes the magical emoticon information. When the client receives the emoticon message, it attempts to obtain the magical emoticon information, then obtains the magical emoticon material, and finally renders the animation. While this method is more direct in obtaining magical emoticon information, coupling it to the emoticon message increases additional maintenance costs. Another approach is to play magical emoticons in chronological order, playing them as they arrive. If a magical emoticon animation is currently playing, it is interrupted, and the latest magical emoticon animation is played. This playback rule is relatively simple, but not user-friendly. For example, users might prefer to see fully rendered, composite magical emoticons, which this approach cannot satisfy. Summary of the Invention

[0003] This disclosure provides a method, apparatus, electronic device, and medium for processing emoticons, to at least solve the problems in related technologies where the coupling of emoticon information and magical emoticon information increases maintenance costs and magical emoticon playback rules cannot meet requirements. The technical solution of this disclosure is as follows:

[0004] According to a first aspect of the present disclosure, an emoji message processing method is provided, including:

[0005] In response to receiving a first emoticon message, the first emoticon identifier in the first emoticon message is obtained;

[0006] Based on the first emoticon identifier, a mapping table is queried to determine whether there is a target magic emoticon corresponding to the first emoticon message; the mapping table is used to record the mapping relationship between specific emoticons and magic emoticons, and the magic emoticon is an emoticon with a specific playback effect;

[0007] If a target magic emoticon exists that corresponds to the first emoticon message, the target magic emoticon is played according to the magic emoticon playback strategy.

[0008] In an optional embodiment of this disclosure, when a target magical emoji corresponding to the first emoji message exists, playing the target magical emoji according to the magical emoji playback strategy includes: creating a magical emoji to be played task and determining the priority of the magical emoji to be played task; and playing the target magical emoji according to the priority of the magical emoji to be played task.

[0009] In an optional embodiment of this disclosure, playing the target magic emoticon according to the priority of the magic emoticon to be played task includes: determining whether a magic emoticon is currently being played; if a magic emoticon is not currently being played, directly executing the magic emoticon to be played task and playing the target magic emoticon; if a magic emoticon is currently being played, playing the target magic emoticon according to the priority of the magic emoticon to be played task and the priority of the task corresponding to the currently playing magic emoticon.

[0010] In an optional embodiment of this disclosure, the step of playing the target magic emoji based on the priority of the magic emoji to be played task and the priority of the task corresponding to the currently playing magic emoji when a magic emoji is currently playing includes: determining whether the priority of the magic emoji to be played task meets the playback condition when a magic emoji is currently playing; if the priority of the magic emoji to be played task meets the playback condition, playing the target magic emoji based on the priority of the magic emoji to be played task and the priority of the task corresponding to the currently playing magic emoji; and discarding the magic emoji to be played task if the priority of the magic emoji to be played task does not meet the playback condition.

[0011] In an optional embodiment of this disclosure, when the priority of the magic emoji to be played task meets the playback conditions, the target magic emoji is played according to the priority of the magic emoji to be played task and the priority of the task corresponding to the currently playing magic emoji, including: when the priority of the magic emoji to be played task is higher than the priority of the task corresponding to the currently playing magic emoji, the currently playing magic emoji is interrupted, the magic emoji to be played task is executed, and the target magic emoji is played.

[0012] In an optional embodiment of this disclosure, when the priority of the magic emoji to be played task meets the playback conditions, the target magic emoji is played according to the priority of the magic emoji to be played task and the priority of the task corresponding to the currently playing magic emoji, including: when the priority of the magic emoji to be played task is the same as the priority of the task corresponding to the currently playing magic emoji, the magic emoji to be played task is added to the play queue; when the currently playing magic emoji finishes playing, the magic emoji to be played task in the play queue is executed.

[0013] In an optional embodiment of this disclosure, determining the priority of the magic emoji to be played task includes: determining the priority of the magic emoji to be played task based on the type of the target magic emoji.

[0014] In an optional embodiment of this disclosure, the method further includes: obtaining a second emoticon identifier of the sent second emoticon message; and determining the type of the target magic emoticon based on the first emoticon identifier of the first emoticon message and the second emoticon identifier of the second emoticon message.

[0015] In an optional embodiment of this disclosure, the method further includes: determining the number of magic emoji tasks to be played in the queue to be played; and when the number of magic emoji tasks to be played in the queue to be played is greater than or equal to a threshold, determining tasks to be discarded in the queue to be played, and discarding the tasks to be discarded.

[0016] According to a second aspect of the present disclosure, an emoji message playback device is provided, comprising:

[0017] The parsing unit is configured to, in response to receiving a first emoticon message, obtain the first emoticon identifier from the first emoticon message;

[0018] The query unit is configured to query the mapping table based on the first emoticon identifier to determine whether there is a target magic emoticon corresponding to the first emoticon message; the mapping table is used to record the mapping relationship between specific emoticons and magic emoticons, and the magic emoticon is an emoticon with a specific playback effect;

[0019] The playback unit is configured to play the target magic emoticon according to the magic emoticon playback strategy when a target magic emoticon corresponding to the first emoticon message exists.

[0020] In an optional embodiment of this disclosure, the playback unit is further configured to: create a magic emoji to be played task when a target magic emoji corresponding to the first emoji message exists, and determine the priority of the magic emoji to be played task; and play the target magic emoji according to the priority of the magic emoji to be played task.

[0021] In an optional embodiment of this disclosure, the playback unit is further configured to: determine whether a magic emoticon is currently being played; if a magic emoticon is not currently being played, directly execute the magic emoticon playback task and play the target magic emoticon; if a magic emoticon is currently being played, play the target magic emoticon according to the priority of the magic emoticon playback task and the priority of the task corresponding to the currently playing magic emoticon.

[0022] In an optional embodiment of this disclosure, the playback unit is further configured to: determine whether the priority of the magic emoji playback task meets the playback conditions when a magic emoji is currently being played; if the priority of the magic emoji playback task meets the playback conditions, play the target magic emoji according to the priority of the magic emoji playback task and the priority of the task corresponding to the currently playing magic emoji; and discard the magic emoji playback task if the priority of the magic emoji playback task does not meet the playback conditions.

[0023] In an optional embodiment of this disclosure, the playback unit is further configured to: interrupt the currently playing magic emoji, execute the magic emoji playback task, and play the target magic emoji when the priority of the magic emoji to be played task is higher than the priority of the task corresponding to the currently playing magic emoji.

[0024] In an optional embodiment of this disclosure, the playback unit is further configured to: add the magic emoji to be played task to the play queue if the priority of the magic emoji to be played task is the same as the priority of the task corresponding to the currently playing magic emoji; and execute the magic emoji to be played task in the play queue if the currently playing magic emoji has finished playing.

[0025] In an optional embodiment of this disclosure, the playback unit is further configured to: determine the priority of the magic emoticon to be played task based on the type of the target magic emoticon.

[0026] In an optional embodiment of this disclosure, the playback unit is further configured to: acquire a second emoticon identifier of the sent second emoticon message; and determine the type of the target magic emoticon based on the first emoticon identifier of the first emoticon message and the second emoticon identifier of the second emoticon message.

[0027] In an optional embodiment of this disclosure, the playback unit is further configured to: determine the number of magic emoji tasks to be played in the queue to be played; when the number of magic emoji tasks to be played in the queue to be played is greater than or equal to a threshold, determine tasks to be discarded in the queue to be played, and discard the tasks to be discarded.

[0028] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement an emoji message processing method according to any embodiment of the present disclosure.

[0029] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein at least one computer program is stored therein, the at least one computer program being loaded and executed by a processor to enable a computer to implement the emoji message processing method of any embodiment of the present disclosure.

[0030] According to a fifth aspect of the present disclosure, a computer program product is provided that, when instructions in the computer program product are executed by a processor of an electronic device, enables the electronic device to perform the video generation method described above.

[0031] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:

[0032] The emoticon message processing method of this disclosure decouples emoticon messages and magical emoticon information by using a mapping table to record the mapping relationship between specific emoticons and magical emoticons. This facilitates maintenance and reduces maintenance costs. The method records the mapping relationship between specific emoticons and magical emoticons. Upon receiving a first emoticon message, it obtains a first emoticon identifier from the first emoticon message. Based on the first emoticon identifier, it queries the mapping table to determine whether a target magical emoticon corresponding to the first emoticon message exists. If a target magical emoticon corresponding to the first emoticon message exists, it plays the target magical emoticon according to the magical emoticon playback strategy. This method can meet the playback needs of different types of magical emoticons, improving user experience and user stickiness.

[0033] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0034] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0035] Figure 1A schematic diagram illustrating the application environment of the emoticon message processing method according to an embodiment of the present disclosure is shown.

[0036] Figure 2 A flowchart illustrating an embodiment of the emoticon message processing method of this disclosure is shown;

[0037] Figure 3A A schematic diagram illustrating a terminal receiving an emoji message according to an embodiment of the present disclosure is shown;

[0038] Figure 3B A schematic diagram illustrating the playback of magic emoticons on a terminal according to an embodiment of this disclosure is shown;

[0039] Figure 4A A schematic diagram of a non-synthetic magical emoticon in an emoticon message processing method according to an embodiment of the present disclosure is shown;

[0040] Figure 4B A schematic diagram of synthesizing magical emoticons in an emoticon message processing method according to an embodiment of the present disclosure is shown;

[0041] Figure 5 A schematic diagram of a sub-process of an emoticon message processing method according to an embodiment of the present disclosure is shown;

[0042] Figure 6 A flowchart illustrating an embodiment of the emoticon message processing method of this disclosure is shown.

[0043] Figure 7 A schematic diagram of the structure of an emoticon message processing apparatus according to an embodiment of the present disclosure is shown;

[0044] Figure 8 A schematic diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation

[0045] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0046] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0047] Please see Figure 1The diagram illustrates an application environment for an emoji message processing method according to an exemplary embodiment. The application environment may include a terminal 11 and a server 12, which are connected via a wireless network.

[0048] Terminal 11 can be a smartphone, tablet, laptop, desktop computer, etc., but is not limited to these. Terminal 11 has client software such as an application (App) installed to provide human-computer interaction functions. The application can be a standalone application or a subroutine within an application. For example, the application can be a short video application or an instant messaging application.

[0049] Server 12 can be a server that provides background services for applications in terminal 11. Server 12 can be a standalone physical server, or a server cluster or distributed system consisting of multiple physical servers.

[0050] Those skilled in the art will understand that the number of terminals described above can be only one, dozens, hundreds, or more. This disclosure does not limit the number of terminals or the type of device.

[0051] Figure 2 A flowchart illustrating an embodiment of the emoticon message processing method of this disclosure is shown. Figure 2 As shown, this emoji message processing method can be applied to... Figure 1 Terminal 11 is shown. (As shown) Figure 2 As shown, the emoji message processing method includes:

[0052] Step S201: In response to receiving the first emoticon message, obtain the first emoticon identifier in the first emoticon message.

[0053] The emoticon identifier is used to uniquely identify an emoticon. The emoticon identifier can be an emoticon ID.

[0054] Taking the aforementioned emoji message processing method as an example, applicable to instant messaging applications on mobile phones, such as... Figure 3A As shown, user A receives a message message1, which is an emoji message, and the corresponding emoji is displayed on the interface of user A's instant messaging application.

[0055] Step S202: Based on the first emoticon identifier, query the mapping table to determine whether there is a target magic emoticon corresponding to the first emoticon message.

[0056] The mapping table records the mapping relationship between specific emoticons and magical emoticons. Specific emoticons refer to those that can trigger magical emoticons. This mapping table can record the IDs of both specific and magical emoticons. The mapping table can be stored on the server side and sent to the client when a user opens the instant messaging software. When the mapping table on the server changes, the updated mapping table can be promptly sent to the client.

[0057] In an optional embodiment, the mapping table is shown in Table 1 below:

[0058] Table 1:

[0059] Non-synthesized magic emoticon 1 Emoji 1 Non-synthesized magic emoticons 2 Emoji 2 Synthetic magic expression 1 Emoji 1, Emoji 1 Synthetic magic expression 2 Emoji 3, Emoji 4

[0060] During chat, if users receive emoji messages, they need to process them according to certain rules. Only specific emojis can trigger magical emoji effects. A mapping table is created by recording the specific emojis that can trigger magical emoji effects and their corresponding magical emojis. When it's necessary to modify the specific emojis that trigger magical emoji effects or the corresponding magical emojis, this mapping table can be modified, making it easy to maintain. Compared to technical solutions that couple magical emoji information to emoji information, this reduces maintenance costs and increases flexibility.

[0061] In this step, we check if the first emoji identifier exists in the mapping table. If the first emoji identifier exists, it means that the emoji message can trigger the magic emoji effect. If the first emoji identifier does not exist, it means that the emoji message cannot trigger the magic emoji effect.

[0062] Step S203: If a target magic emoticon exists that corresponds to the first emoticon message, play the target magic emoticon according to the magic emoticon playback strategy.

[0063] The magic emoticon playback strategy defines the playback rules for different magic emoticons. This strategy restricts the playback order or priority of different magic emoticons, such as playing them immediately, adding them to a playback queue, or not playing them at all. In an optional embodiment, magic emoticons can be categorized, and playback rules can be set for different types of magic emoticons, thus forming the magic emoticon playback strategy.

[0064] Continuing with the example above, when user A's terminal queries the mapping table based on the identifier of the emoticon message 'message1', and determines that the corresponding magic emoticon exists, if the magic emoticon corresponding to 'message1' needs to be played immediately according to the magic emoticon playback strategy, then the magic emoticon will be played on the display interface of user A's instant messaging application, such as... Figure 3B As shown.

[0065] In an optional embodiment, magic emoticons are divided into non-synthesized magic emoticons and synthesized magic emoticons. Non-synthesized magic emoticons are triggered by a specific emoticon. For example... Figure 4A As shown, user A sends a specific emoji (emoji 1 in Table 1) to user B, triggering a non-synthesized magic emoji (emoji 1 in Table 1). Synthesized magic emojis require two or more users to send the same or different specific emojis within a certain timeframe to trigger this. For example... Figure 4B As shown, user a and user b both send each other an emoji 'a' over a period of time, triggering a synthesized magic emoji.

[0066] Since creating magical emojis requires two or more users to send specific emojis to each other, and is completed collaboratively by two or more people, the magical emoji playback strategy can be set as follows to increase intimacy between users, improve user experience and engagement:

[0067] (1) Synthesized magic emoticons can interrupt the playback of non-synthesized magic emoticons, while non-synthesized magic emoticons cannot interrupt the playback of synthesized magic emoticons.

[0068] (2) Magic emoticons of the same type cannot interrupt each other. That is, a synthesized magic emoticon cannot interrupt the playback of a synthesized magic emoticon, and a non-synthesized magic emoticon cannot interrupt the playback of a non-synthesized magic emoticon.

[0069] If a target magic emoticon exists that corresponds to the first emoticon message, the playback rules for the target magic emoticon are determined according to the magic emoticon playback strategy, such as whether to play the target magic emoticon immediately, whether to add the magic emoticon to the playback queue, or whether to discard the target magic emoticon.

[0070] The emoticon message processing method of this invention decouples emoticon messages and magical emoticon information by using a mapping table to record the mapping relationship between specific emoticons and magical emoticons. This facilitates maintenance and reduces maintenance costs. The method records the mapping relationship between specific emoticons and magical emoticons. Upon receiving a first emoticon message, it obtains a first emoticon identifier from the first emoticon message. Based on the first emoticon identifier, it queries the mapping table to determine whether a target magical emoticon corresponding to the first emoticon message exists. If a target magical emoticon corresponding to the first emoticon message exists, it plays the target magical emoticon according to the magical emoticon playback strategy. This method can meet the playback needs of different types of magical emoticons, improving user experience and user stickiness.

[0071] In optional embodiments, such as Figure 5 As shown, step S203 above includes:

[0072] Step S501: If a target magic emoticon corresponding to the first emoticon message exists, create a magic emoticon play task and determine the priority of the magic emoticon play task;

[0073] Step S502: Play the target magic emoticon according to the priority of the magic emoticon to be played task.

[0074] In this embodiment, when a target magic emoji corresponding to the first emoji message exists, a magic emoji playback task is created, and the priority of the magic emoji playback task (hereinafter referred to as the playback task) is determined. The priority of the playback task can be determined based on the type of the target magic emoji. For example, if the target magic emoji is a composite magic emoji, the playback task has a high priority; if the target magic emoji is a non-composite magic emoji, the playback task has a low priority. By prioritizing tasks corresponding to relatively complex composite magic emojis and tasks corresponding to relatively simple non-composite magic emojis, complex composite magic emojis are played before non-composite magic emojis, satisfying users' desire to watch complex magic emojis they participated in, thus improving the user experience.

[0075] Determining whether a target magic emoticon is a composite or non-composite magic emoticon requires considering both the previously sent and the next sent emoticon messages. For example, if the mapping table confirms the existence of a composite and non-composite magic emoticon corresponding to a first emoticon identifier, the second emoticon identifier of the sent second emoticon message can be obtained. Based on the first emoticon identifier of the first message and the second emoticon identifier of the second message, the type of magic emoticon is determined. The time difference between the sending time of the second emoticon message and the receiving time of the first emoticon message is within a certain range; the second emoticon message can be sent before or after receiving the first emoticon message. After obtaining the second emoticon identifier, it is determined whether a composite magic emoticon corresponding to the first and second emoticon identifiers exists. If it does, the target magic emoticon is that composite magic emoticon, and the playback task has a high priority; if it does not exist, the target magic emoticon is the non-composite magic emoticon corresponding to the first emoticon identifier, and the playback task has a low priority. Combining the received and sent emoticon messages to determine the type of magic emoticon—that is, whether it is a composite or non-composite magic emoticon—accurately identifies the type and complexity of the magic emoticon, thereby determining its priority.

[0076] After determining the priority of the task to be played, the method for playing the target magic emote can be determined based on the priority of the task to be played. For example, if the task to be played is of high priority, the playback of low-priority tasks can be interrupted, and if the task to be played is of low priority, the playback of high-priority tasks cannot be interrupted.

[0077] In an optional embodiment, the emoji message processing method further includes: determining whether a magic emoji is currently playing; if not, directly playing the target magic emoji; if so, playing the target magic emoji according to the priority of the task to be played and the priority corresponding to the task of the currently playing magic emoji. That is, based on the priority of the task to be played and the priority corresponding to the task of the currently playing magic emoji, it is determined whether to play the target magic emoji immediately, add it to the waiting queue to wait for the currently playing magic emoji to finish playing, or not play the target magic emoji at all.

[0078] For example, if the priority of the task to be played is higher than the priority of the task corresponding to the currently playing magic emoticon, the currently playing magic emoticon is interrupted, the task to be played is executed directly, and the target magic emoticon is played; if the priority of the task to be played is the same as the priority of the task corresponding to the currently playing magic emoticon, the target magic emoticon is played after the currently playing magic emoticon has finished playing.

[0079] The priorities of tasks awaiting playback that are higher than those of the currently playing magic emoticon include: the task awaiting playback has a high priority, while the task of the currently playing magic emoticon has a low priority. Tasks awaiting playback that have the same priority as the task of the currently playing magic emoticon include: both tasks have a high priority, or both tasks have a low priority. Tasks awaiting playback that have a lower priority than those of the currently playing magic emoticon include: the task awaiting playback has a low priority, while the task of the currently playing magic emoticon has a high priority.

[0080] When a magic emoji is currently playing, comparing the priority of the task corresponding to the currently playing magic emoji with the priority of the task to be played can satisfy the need to play high-priority tasks and improve the user experience.

[0081] In an optional embodiment, to further ensure priority playback of the synthesized magic emoticon, when a magic emoticon is currently playing, it is determined whether the priority of the magic emoticon's pending playback task meets the playback conditions. If the priority of the magic emoticon's pending playback task meets the playback conditions, the target magic emoticon is played according to the priority of the magic emoticon's pending playback task and the priority of the task corresponding to the currently playing magic emoticon. If the priority of the magic emoticon's pending playback task does not meet the playback conditions, the magic emoticon's pending playback task is discarded. The playback conditions are used to limit the magic emoticons that can be played. For example, the playback conditions could be: if the priority of the pending playback task is high, then the target magic emoticon is played after the currently playing magic emoticon has finished playing; if the priority of the pending playback task is low, then the pending playback task is discarded, and the playback of the target magic emoticon is abandoned.

[0082] In an optional embodiment, while waiting for the currently playing magic emoticon to finish playing, the tasks to be played can be added to the play queue. After the currently playing magic emoticon finishes playing, the tasks in the play queue are executed in order, and the corresponding magic emoticons are played.

[0083] In an optional embodiment, the capacity of the play queue can be limited, i.e., the number of magic emoji tasks to be played in the play queue is determined; when the number of magic emoji tasks to be played in the play queue is greater than or equal to a threshold, tasks to be discarded in the play queue are determined and discarded. For example, when the number of tasks to be played in the play queue is greater than or equal to the threshold, the earliest task to enter the play queue is discarded according to the time sequence, i.e., the task at the head of the play queue is discarded. The threshold can be set flexibly, and this disclosure does not impose any limitations on it.

[0084] This embodiment limits the capacity of the playback queue, which on the one hand allows for the timely playback of the latest, high-priority magic emoticons, and on the other hand saves storage space and reduces storage costs.

[0085] Figure 6 A flowchart illustrating another embodiment of the emoticon message processing method of this disclosure is shown. In this embodiment, the emoticon playback strategy includes: (1) setting the priority of tasks corresponding to non-synthesized emoticons to low priority, and setting the priority of tasks corresponding to synthesized emoticons to high priority; (2) low-priority tasks cannot interrupt high-priority tasks, high-priority tasks can interrupt low-priority tasks, and tasks of the same priority cannot interrupt each other; (3) only high-priority tasks are retained in the playback queue, and low-priority tasks are not retained. Based on this emoticon playback strategy, such as... Figure 6 As shown, the emoticon message processing method in this embodiment includes:

[0086] Step S601: In response to receiving the first emoticon message, obtain the first emoticon identifier in the first emoticon message.

[0087] Step S602: Based on the first emoticon identifier, query the mapping table to determine whether there is a target magic emoticon corresponding to the first emoticon message.

[0088] Step S603: If a target magic emoticon corresponding to the first emoticon message exists, create a magic emoticon play task and determine the priority of the magic emoticon play task;

[0089] Step S604: Determine if a magic emoticon is currently playing;

[0090] Step S605: If a magic emoticon is currently playing, determine whether the priority of the magic emoticon to be played task is high priority;

[0091] Step S606: If the priority of the task to be played by the magic emoticon is high, determine whether the priority of the task corresponding to the magic emoticon currently being played is high.

[0092] Step S607: If the priority of the task corresponding to the currently playing magic emoticon is low, interrupt the currently playing magic emoticon, execute the magic emoticon waiting to be played task, and play the target magic emoticon;

[0093] Step S608: If the task corresponding to the currently playing magic emoticon has a high priority, add the magic emoticon task to the play queue.

[0094] Step S609: After the currently playing magic emoticon has finished playing, execute the task in the waiting queue and play the corresponding magic emoticon;

[0095] Step S610: If the priority of the magic emoticon to be played task is low, discard the task to be played.

[0096] Figure 7 A schematic diagram of the structure of an emoticon message playback device 700 according to an embodiment of the present disclosure is shown, as follows: Figure 7 As shown, the device 700 includes:

[0097] The parsing unit 701 is configured to, in response to receiving a first emoticon message, obtain a first emoticon identifier from the first emoticon message;

[0098] The query unit 702 is configured to query a mapping table based on the first emoticon identifier to determine whether there is a target magic emoticon corresponding to the first emoticon message; the mapping table is used to record the mapping relationship between specific emoticons and magic emoticons, and the magic emoticon is an emoticon with a specific playback effect;

[0099] The playback unit 703 is configured to play the target magic emoticon according to the magic emoticon playback strategy when a target magic emoticon corresponding to the first emoticon message exists.

[0100] In an optional embodiment of this disclosure, the playback unit is further configured to: create a magic emoji to be played task when a target magic emoji corresponding to the first emoji message exists, and determine the priority of the magic emoji to be played task; and play the target magic emoji according to the priority of the magic emoji to be played task.

[0101] In an optional embodiment of this disclosure, the playback unit is further configured to: determine whether a magic emoticon is currently being played; if a magic emoticon is not currently being played, directly execute the magic emoticon playback task and play the target magic emoticon; if a magic emoticon is currently being played, play the target magic emoticon according to the priority of the magic emoticon playback task and the priority of the task corresponding to the currently playing magic emoticon.

[0102] In an optional embodiment of this disclosure, the playback unit is further configured to: determine whether the priority of the magic emoticon to be played task meets the playback conditions when the magic emoticon is currently being played; if the priority of the magic emoticon to be played task meets the playback conditions, play the target magic emoticon according to the priority of the magic emoticon to be played task and the priority of the task corresponding to the currently playing magic emoticon; and discard the magic emoticon to be played task if the priority of the magic emoticon to be played task does not meet the playback conditions.

[0103] In an optional embodiment of this disclosure, the playback unit is further configured to: interrupt the currently playing magic emoji, execute the magic emoji playback task, and play the target magic emoji when the priority of the magic emoji to be played task is higher than the priority of the task corresponding to the currently playing magic emoji.

[0104] In an optional embodiment of this disclosure, the playback unit is further configured to: add the magic emoji to be played task to the play queue if the priority of the magic emoji to be played task is the same as the priority of the task corresponding to the currently playing magic emoji; and execute the magic emoji to be played task in the play queue if the currently playing magic emoji has finished playing.

[0105] In an optional embodiment of this disclosure, the playback unit is further configured to: acquire a second emoticon identifier of the sent second emoticon message; and determine the type of the target magic emoticon based on the first emoticon identifier of the first emoticon message and the second emoticon identifier of the second emoticon message.

[0106] In an optional embodiment of this disclosure, the playback unit is further configured to: determine the number of magic emoji tasks to be played in the queue to be played; when the number of magic emoji tasks to be played in the queue to be played is greater than or equal to a threshold, determine tasks to be discarded in the queue to be played, and discard the tasks to be discarded.

[0107] Regarding the apparatus in the above embodiments, the specific manner in which each unit performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0108] Figure 8 This is a schematic diagram illustrating the structure of an electronic device, such as a server, according to an exemplary embodiment. (Refer to...) Figure 8 The server 800 includes a processing component 801, which further includes one or more processors, and memory resources represented by memory 802 for storing instructions, such as applications, that can be executed by the processing component 801. The applications stored in memory 802 may include one or more units, each corresponding to a set of instructions. Furthermore, the processing component 801 is configured to execute instructions to perform the aforementioned emoji message processing method.

[0109] Server 800 may also include a power supply component 803 configured to perform power management of server 800, a wired or wireless network interface 804 configured to connect server 800 to a network, and an input / output (I / O) interface 805. Electronic device 800 can operate on an operating system stored in memory 802, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or similar.

[0110] In an exemplary embodiment, a storage medium including instructions is also provided, which, when executed by a processor of a server, enables the server to perform the emoji message processing method as described in any of the above methods. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.

[0111] In an exemplary embodiment, a computer program product is also provided, comprising readable program code executable by a server's processor to perform the aforementioned emoji message processing method. Optionally, the program code may be stored in a storage medium of a terminal or server, which may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device.

[0112] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims. In this disclosure, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0113] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for processing emoji messages, characterized in that, include: In response to receiving a first emoji message, the first emoji identifier in the first emoji message is obtained; Based on the first emoticon identifier, query the mapping table to determine whether there is a target magic emoticon corresponding to the first emoticon message; The mapping table is used to record the mapping relationship between specific expressions and magic expressions, where the magic expressions are expressions with specific playback effects; The types of magic emoticons are divided into non-synthesized magic emoticons and synthesized magic emoticons; the synthesized magic emoticons are triggered by two or more users sending the same specific emoticon or different specific emoticons within a certain period of time; If a target magic emoticon exists that corresponds to the first emoticon message, a magic emoticon play task is created; Retrieve the second emoji identifier of the sent second emoji message; The type of the target magic emoticon is determined based on the first emoticon identifier of the first emoticon message and the second emoticon identifier of the second emoticon message; Based on the type of the target magical emoticon, the priority of the task to be played for the magical emoticon is determined; wherein, the priority of the synthesized magical emoticon is higher than that of the non-synthesized magical emoticon; Play the target magic emoticon according to the priority of the magic emoticon to be played task.

2. The method according to claim 1, characterized in that, Based on the priority of the magic emoticon to be played task, play the target magic emoticon, including: Check if a magic emote is currently playing; If no magic emoticon is currently playing, directly execute the magic emoticon playback task and play the target magic emoticon; If a magic emoticon is currently playing, the target magic emoticon is played according to the priority of the task to be played and the priority of the task corresponding to the currently playing magic emoticon.

3. The method according to claim 2, characterized in that, When a magic emoticon is currently playing, playing the target magic emoticon according to the priority of the task to be played for the magic emoticon and the priority of the task corresponding to the currently playing magic emoticon includes: If a magic emoticon is currently playing, determine whether the priority of the magic emoticon to be played meets the playback conditions; If the priority of the magic emoji to be played meets the playback condition, the target magic emoji is played according to the priority of the magic emoji to be played and the priority of the task corresponding to the currently playing magic emoji. If the priority of the magic emoticon to be played does not meet the playback conditions, the magic emoticon to be played task is discarded.

4. The method according to claim 3, characterized in that, If the priority of the task to be played for the magic emoticon meets the playback condition, the target magic emoticon is played according to the priority of the task to be played for the magic emoticon and the priority of the task corresponding to the currently playing magic emoticon, including: If the priority of the task to be played for the magic emoticon is higher than the priority of the task corresponding to the currently playing magic emoticon, the currently playing magic emoticon is interrupted, the task to be played for the magic emoticon is executed, and the target magic emoticon is played.

5. The method according to claim 3, characterized in that, If the priority of the task to be played for the magic emoticon meets the playback condition, the target magic emoticon is played according to the priority of the task to be played for the magic emoticon and the priority of the task corresponding to the currently playing magic emoticon, including: If the priority of the magic emoji to be played is the same as the priority of the task corresponding to the currently playing magic emoji, the magic emoji to be played task is added to the play queue. Once the currently playing magic emoticon has finished playing, execute the magic emoticon waiting to be played task in the waiting queue.

6. The method according to claim 5, characterized in that, The method further includes: Determine the number of magic emoticons to be played in the queue to be played; When the number of magic emoticons to be played in the queue is greater than or equal to a threshold, tasks to be discarded in the queue are identified and discarded.

7. An emoji message playback device, characterized in that, include: The parsing unit is configured to, in response to receiving a first emoticon message, obtain a first emoticon identifier from the first emoticon message; The query unit is configured to query a mapping table based on the first emoticon identifier to determine whether there is a target magic emoticon corresponding to the first emoticon message; The mapping table is used to record the mapping relationship between specific expressions and magic expressions, where the magic expressions are expressions with specific playback effects; The types of magic emoticons are divided into non-synthesized magic emoticons and synthesized magic emoticons; the synthesized magic emoticons are triggered by two or more users sending the same specific emoticon or different specific emoticons within a certain period of time; The playback unit is configured to create a magic emoticon to be played task when a target magic emoticon corresponding to the first emoticon message exists; Retrieve the second emoji identifier of the sent second emoji message; The type of the target magic emoticon is determined based on the first emoticon identifier of the first emoticon message and the second emoticon identifier of the second emoticon message; Based on the type of the target magical emoticon, the priority of the task to be played for the magical emoticon is determined; wherein, the priority of the synthesized magical emoticon is higher than that of the non-synthesized magical emoticon; the target magical emoticon is played according to the priority of the task to be played for the magical emoticon.

8. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the emoji message processing method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to enable the computer to implement the emoji message processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and system for mobile terminal to send and receive messages

    CN102946592A

  • Robot animation expression system and achieving method thereof

    CN105291109A

  • Dynamic content playing method and apparatus

    CN1801813A

  • Method and device for adding emoji, apparatus and storage medium

    US20230016941A1

  • Image processing method and apparatus and computer-readable storage medium

    US20230083897A1