CN113556278B - Expression sending method and device - Google Patents

Expression sending method and device Download PDF

Info

Publication number
CN113556278B
CN113556278B CN202110821960.4A CN202110821960A CN113556278B CN 113556278 B CN113556278 B CN 113556278B CN 202110821960 A CN202110821960 A CN 202110821960A CN 113556278 B CN113556278 B CN 113556278B
Authority
CN
China
Prior art keywords
throwing
expression
information
data packet
conversation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110821960.4A
Other languages
Chinese (zh)
Other versions
CN113556278A (en
Inventor
刘彦明
黄少豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110821960.4A priority Critical patent/CN113556278B/en
Publication of CN113556278A publication Critical patent/CN113556278A/en
Application granted granted Critical
Publication of CN113556278B publication Critical patent/CN113556278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an expression sending method and device, which are applied to a client, wherein the client provides a session interface, and the method comprises the following steps: receiving a session message data packet sent by a server, and judging whether the session message data packet carries throwing information or not; the conversation message data packet is generated based on an expression throwing instruction in the conversation interface, wherein the throwing information comprises a thrown party and throwing expression information; and if the session message data packet carries the throwing information, displaying an expression special effect associated with the throwing expression information on the session interface. The data format of a session message data packet triggered and sent in an expression throwing scene is defined, and based on throwing information carried in the session message data packet, point-to-point expression directional throwing is realized, and emotion expression of a special user in IM group chatting is enhanced.

Description

Expression sending method and device
Technical Field
The invention relates to the technical field of computers, in particular to an expression sending method and an expression sending device.
Background
With the rapid development of the internet, various online social applications have appeared to perform social activities, such as Instant Messaging (IM) applications, which are internet-based services for Instant Messaging, to perform Instant Messaging, and in the process of using these social applications, users often send some expressions as session messages in order to more vividly and vividly express the emotion of the users, and the interest of communication between users can be greatly promoted by means of the expression to perform a conversation. At present, in the IM group chat, when any user sends an expression, all users can receive the sent expression content, a scheme for expressing the emotion of a certain specific user does not exist, and the targeted emotion expression of the certain specific user is difficult to realize.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide an expression transmitting method and a corresponding expression transmitting apparatus that overcome or at least partially solve the above problems.
The embodiment of the invention discloses an expression sending method, which is applied to a client, wherein the client provides a session interface, and the method comprises the following steps:
receiving a session message data packet sent by a server, and judging whether the session message data packet carries throwing information or not; the conversation message data packet is generated based on an expression throwing instruction in the conversation interface, wherein the throwing information comprises a thrown party and throwing expression information;
and if the session message data packet carries the throwing information, displaying an expression special effect associated with the throwing expression information on the session interface.
Optionally, the conversation interface includes a group chat interface, and the displaying the emotive special effect associated with the throwing emotive information on the conversation interface includes:
acquiring throwing animation information corresponding to the throwing expression information from the throwing information; the throwing animation information comprises animation materials and animation track information;
and generating animation resources by adopting the throwing animation information and the throwing animation process matched with the throwing animation information, and playing the animation resources on the group chat interface.
The embodiment of the invention also discloses an expression sending method which is applied to a client, wherein the client provides a session interface, and the method comprises the following steps:
detecting an expression throwing instruction aiming at a target expression; the expression throwing instruction comprises throwing information, wherein the throwing information comprises a thrown party and throwing expression information;
and generating a conversation message data packet according to the expression throwing instruction, and sending the conversation message data packet to a server so as to display an expression special effect associated with the throwing expression information on a conversation interface of the thrown party.
Optionally, the detecting an expression throwing instruction for a target expression includes:
responding to selection operation aiming at an expression panel in a session interface, and determining a target expression;
responding to the object selection operation continuous with the selection operation, and determining a session object from the session interface;
and generating an expression throwing instruction aiming at the target expression based on the target expression determined by the selection operation and the conversation object determined by the object selection operation. Optionally, the generating a session message data packet according to the expression throwing instruction and sending the session message data packet to a server includes:
generating throwing expression information for displaying on a conversation interface according to the target expression, and generating thrown party information according to the conversation object;
and generating a conversation message data packet by using the throwing expression information and the thrown party information according to a predefined data structure format so as to send the generated conversation message data packet to the server.
Optionally, the generating information of a thrown party according to the session object includes:
acquiring a throwing ending position of the throwing operation, and determining the relative orientation information of the throwing ending position and throwing expression information displayed on a conversation interface; the relative orientation information is used for informing that the throwing ending position is positioned at the user position of a sender corresponding to the conversation messages in a preset sequence in a preset direction relative to the current throwing expression information;
and determining a target user selected by the throwing operation by using the relative orientation information, and generating information of a thrown party.
Optionally, the session interface includes a group chat interface, and the method further includes:
detecting an expression throwing instruction aiming at a target expression, and acquiring a throwing track aiming at the target expression;
and displaying a throwing track animation corresponding to the throwing track on a group chat interface.
The embodiment of the invention also discloses an expression sending device which is applied to a client, wherein the client provides a session interface, and the device comprises:
the throwing information judging module is used for receiving the session message data packet sent by the server and judging whether the session message data packet carries throwing information or not; the conversation message data packet is generated based on an expression throwing instruction in the conversation interface, wherein the throwing information comprises a thrown party and throwing expression information;
and the expression special effect display module is used for displaying the expression special effect associated with the throwing expression information on the conversation interface when the conversation message data packet carries the throwing information.
Optionally, the conversation interface includes a group chat interface, and the expression special effect display module includes:
the throwing animation information acquisition submodule is used for acquiring throwing animation information corresponding to the throwing expression information from the throwing information; the throwing animation information comprises animation materials and animation track information;
and the animation resource playing sub-module is used for generating animation resources by adopting the throwing animation information and the throwing animation process matched with the throwing animation information, and playing the animation resources on the group chat interface.
The embodiment of the invention also discloses an expression sending device, which is applied to a client, wherein the client provides a session interface, and the device comprises:
the expression throwing instruction detection module is used for detecting an expression throwing instruction aiming at a target expression; the expression throwing instruction comprises throwing information, wherein the throwing information comprises a thrown party and throwing expression information;
and the conversation message data packet sending module is used for generating a conversation message data packet according to the expression throwing instruction and sending the conversation message data packet to a server so as to display an expression special effect associated with the throwing expression information on a conversation interface of the thrown party.
Optionally, the expression throwing instruction detecting module includes:
the selection operation response submodule is used for responding the selection operation aiming at the expression panel in the conversation interface and determining a target expression;
the object selection operation response submodule is used for responding to the object selection operation continuous with the selection operation and determining a conversation object from the conversation interface;
and the expression throwing instruction generating submodule is used for generating an expression throwing instruction aiming at the target expression based on the target expression determined by the selection operation and the conversation object determined by the object selection operation. Optionally, the session message packet sending module includes:
the throwing expression information generating submodule is used for generating throwing expression information which is used for being displayed on a conversation interface according to the target expression;
the thrown party information generation submodule is used for generating thrown party information according to the session object;
and the session message data packet generating submodule is used for generating a session message data packet by the throwing expression information and the thrown party information according to a predefined data structure format so as to send the generated session message data packet to the server.
Optionally, the tossed party information generating sub-module includes:
the relative orientation information determining unit is used for acquiring a throwing ending position of the throwing operation and determining the relative orientation information between the throwing ending position and the throwing expression information displayed on the conversation interface; the relative orientation information is used for informing that the throwing ending position is positioned at the user position of a sender corresponding to the conversation messages in a preset sequence in a preset direction relative to the current throwing expression information;
and the thrown party information generating unit is used for determining the target user selected by the throwing operation by adopting the relative direction information and generating thrown party information.
Optionally, the session interface includes a group chat interface, and the apparatus further includes:
the throwing track acquisition module is used for detecting an expression throwing instruction aiming at a target expression and acquiring a throwing track aiming at the target expression;
and the throwing track animation display module is used for displaying the throwing track animation corresponding to the throwing track on the group chat interface.
The embodiment of the invention also discloses an electronic device, which comprises: a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing the steps of any of the expression transmitting methods.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is used for realizing the steps of any expression sending method when being executed by a processor.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, a session message data packet received from a server is analyzed by a client, and an expression special effect associated with a throwing expression is displayed on a session interface under the condition that the received session message data packet carries throwing information, wherein the throwing information can be generated based on an expression throwing instruction responding to a target expression, namely the received session message data packet is triggered and sent under an expression throwing scene. By defining the data format of a session message data packet triggered and sent in an expression throwing scene and based on throwing information carried in the session message data packet, point-to-point expression directional throwing is realized, brand-new interactive experience is brought to a traditional expression character chatting scene, the communication distance is further shortened, and the emotion expression of a certain special user in IM group chatting is enhanced.
Drawings
FIG. 1 is a flowchart illustrating steps of an embodiment of an expression sending method according to the present invention;
FIG. 2 is a flow chart of steps in another embodiment of an emoticon transmission method of the present invention;
FIG. 3 is a flowchart of the interaction steps for sending emoticons in an embodiment of the present invention;
fig. 4A to 4B are application scenario diagrams of an expression sending method according to an embodiment of the present invention;
fig. 5 is an application scenario diagram of another expression sending method according to an embodiment of the present invention;
FIG. 6 is a block diagram of an embodiment of an expression transmitting apparatus according to the present invention;
fig. 7 is a block diagram of another expression transmitting apparatus according to another embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In an IM chat scene, the interestingness of communication among users can be promoted by using a dialogue mode of expressions, at present, in an IM group chat, when any user sends an expression, all users can receive the sent expression content, and a scheme for expressing the emotion of a certain specific user does not exist.
One of the core ideas of the embodiment of the invention is to provide a scheme of expression oriented throwing, when emotion expression is required for a certain specific user, an AT instruction (Attention, which is an instruction applied to connection and communication between terminal equipment and an application) can be adopted to specially remind the specific user, and specifically, a data format of a session message data packet triggered and sent in an expression throwing scene can be defined, and point-to-point expression oriented throwing is realized based on throwing information carried in the session message data packet.
Referring to fig. 1, a flowchart of steps of an embodiment of an expression sending method according to the present invention is shown, and is applied to a client, where the client is in communication connection with a server, and the embodiment of the present invention mainly aims at a communication process between a receiver and a server, which is a client of a thrown party, and specifically may include the following steps:
step 101, receiving a session message data packet sent by a server, and judging whether the session message data packet carries throwing information or not;
in an IM scenario, a user client may establish a communication connection with a server through a long connection, so as to implement communication between different users, specifically, the user client that establishes the long connection with the server may be all user clients in an IM group chat, and different user clients may implement mutual communication through the server.
The long connection established between the user client and the server means that a plurality of data packets can be continuously sent on one established connection, and if the data packets are not sent in the period of maintaining the connection, both sides of the established connection are required to send a link detection packet, and the long connection can be used as a communication basis in an IM scene; the data packet sent through the long connection may refer to a data unit in communication transmission, and the data unit may carry a message to be transmitted to implement both-side communication in the data transmission process.
In the embodiment of the present invention, a special reminder for a specific user may be implemented by using an AT instruction, when a user (equivalent to a throwing party) in an IM group chat directionally throws a target emotion to another user (equivalent to a throwing party), specifically, a user client of the throwing party may receive a session message data packet sent by a server, where the session message data packet generally has a data structure, and AT this time, the received session data packet may be analyzed to obtain information carried in a data unit, so as to know a message transmitted by a current server.
Specifically, in the process that the throwing party in the throwing direction is oriented to throw the target expression, the session message of the thrown target expression at the moment can be defined through the appointed data structure format, and when the client/server end receives the session message data packet, the data packet can be analyzed according to the preset data structure format to obtain the transmitted message.
In practical application, the user client of the thrown party analyzes the received conversation message data packet, and can judge whether the conversation message data packet carries throwing information, and at this time, the conversation message data packet carrying throwing information can be a data packet generated according to an agreed data structure format, and indicates that the data packet is a conversation message in an expression throwing scene.
The conversation message data packet can be generated based on an expression throwing instruction in the conversation interface, wherein the expression throwing instruction can be expressed as selection rubbing of a target expression and a thrown conversation object, namely when the target expression determined based on the selection operation of an expression panel in the conversation interface and the conversation object determined based on the object selection operation continuous to the selection operation are detected, the expression throwing instruction is determined to be detected on the conversation interface.
And step 102, if the conversation message data packet carries throwing information, displaying an expression special effect associated with the throwing expression information on a conversation interface.
Under the condition that the received conversation message data packet carries throwing information, the current conversation message data packet is the conversation message in an expression throwing scene, and on the basis of realizing point-to-point expression directional throwing, expression special effects related to the throwing expression information can be displayed on a conversation interface of a user client side, so that the emotional expression of a throwing user is enhanced.
The carried throwing information can comprise a thrown party and throwing expression information.
In practical application, when it is analyzed that the session message data packet carries throwing information, that is, meets the condition of being thrown, it can be known that the session message transmitted by the data packet is "a certain expression that a certain user throws to you", that is, it can be known that the throwing party, the information of the thrown party and the information of the throwing expression.
After judging that the received conversation message meets the throwing condition, the user client of the thrown party can trigger and display the expression special effect associated with the throwing expression information through the running program, and in a specific implementation, the displayed expression special effect can be animation, and the animation can refer to a technology which can misunderstand that pictures or objects or pictures moving works and films thereof can be mistaken by generating visual artifacts through a series of static solid-state images (frames) shot at regular time and continuously changing according to a certain frequency, moving or playing speed (for example, playing at the speed of 16 pictures per second).
In an embodiment of the present invention, for displaying an expression special effect associated with throwing expression information on a session interface of a thrown party, throwing animation information corresponding to the throwing expression information may be first obtained from the throwing information, the obtained throwing animation information may include animation material and animation track information, and at this time, animation resources may be generated by using the throwing animation information and a throwing animation process matched with the throwing animation information, and the method may be implemented by playing the generated animation resources.
In practical application, the throwing information can be packaged into a conversation message data packet in an expression throwing scene according to a predetermined structure format, and then the throwing information can also have a data structure format predetermined in the expression throwing scene.
Specifically, a data structure may be designed to describe the throwing information in the IM scene, where the data structure of the throwing information may define a sender of the message (i.e., an emoticon throwing party), a receiver of the message (i.e., a thrown party), a thrown emoticon (i.e., a target emoticon), and throwing animation information corresponding to the thrown emoticon.
The defined throwing animation information may be mainly used to describe scene information corresponding to a throwing expression, for example, "/hug" is an expression, and the animation corresponding to the whole throwing process may be an animation designed around the emotion and/or scene to be conveyed by "/hug", and at this time, the throwing animation information may be used to define all information, including materials/tracks, that needs to be involved in the designed animation. A data structure can be designed to describe the throwing animation information, and the throwing information, the material and track information of the animation, and the animation material and track logic can be defined in the data structure of the throwing animation information.
After throwing animation information containing animation materials and animation track information is obtained from the throwing information, corresponding assembly animation can be matched locally at a user client of a throwing party, animation resources with a throwing animation process are completed locally according to an implementer of the user client, and then the generated animation resources can be played by a driving program.
Specifically, an assembly animation can be designed to describe a throwing animation process in a specific scene, throwing animation information, total duration of the animation, a range interval of an animation view, start time and end time of the animation, start coordinates and end coordinates of the animation, the assembly animation realized by using animation materials and trajectory logic, and an animation implementer corresponding to the animation process can be defined in the assembly animation.
In practical application, the animation resource with the process of throwing the animation is locally completed according to an implementer, specifically, the animation resource can be implemented through an animation implementer interface for implementing the animation process, generally, lottie technology (a third party library which can support multiple platforms such as Android/iOS/Web/Windows and can support After using animation materials) is used by default on Android to generate the animation resource according to specific animation display logic, and the Lottie library technology is used to support playing of the animation resource. It should be noted that, a set of lottiee animations may be designed for each expression supporting throwing, so that the playing time of a high-quality animation may be driven by a program.
In the embodiment of the invention, the session message data packet received from the server is analyzed by the client, and the expression special effect associated with the throwing expression is displayed on the session interface of the throwing party under the condition that the received session message data packet carries throwing information, wherein the throwing information can be generated based on an expression throwing instruction responding to a target expression, namely the received session message data packet is triggered and sent under an expression throwing scene. The data format of a conversation message data packet triggered and sent in an expression throwing scene is defined, point-to-point expression directional throwing is achieved based on throwing information carried in the conversation message data packet, brand-new interactive experience is brought to a traditional expression character chatting scene, the communication distance is further shortened, and emotion expression of a specific user in IM group chatting is enhanced.
Referring to fig. 2, a flowchart of steps of another embodiment of an expression sending method according to the present invention is shown, where the method is applied to a client, and the client may provide a session interface and may be in communication connection with a server, and the embodiment of the present invention mainly aims at a communication process between a throwing party client, that is, a sending end and the server, and specifically includes the following steps:
step 201, detecting an expression throwing instruction for a target expression, generating a conversation message data packet according to the expression throwing instruction, and sending the conversation message data packet to a server.
In the IM scenario, a special alert for a specific user may be implemented by using an AT instruction, for example, a user (corresponding to a throwing party) in an IM group chat directs to throw a target emotion to another user (corresponding to a thrown party), in an embodiment of the present invention, a user client of the throwing party may generate a session message data packet based on a detected emotion throwing instruction for the target emotion, and send the session message data packet to a server, so that other user clients in the IM group chat may receive the session message data packet, thereby implementing communication between different users.
Specifically, the conversation message data packet may be generated based on an emoticon throwing instruction in the conversation interface, wherein the emoticon throwing instruction may be expressed as a selection operation of a target emoticon and a thrown conversation object, that is, when a target emoticon determined based on the selection operation of an emoticon panel in the conversation interface and a conversation object determined based on an object selection operation continuous to the selection operation are detected, it can be determined that the emoticon throwing instruction is currently detected on the conversation interface.
In practical applications, the target expression can be determined in response to the selection operation of the expression panel in the conversation interface, then the conversation object can be determined in response to the object selection operation continuous with the selection operation, and the expression throwing instruction for the target expression can be generated based on the target expression determined by the selection operation and the conversation object determined by the object selection operation.
As an example, the expression throwing instruction manner for the target expression may be detected by determining that an expression throwing instruction for the target expression is detected when an object selection operation consecutive to the selection operation is detected in a case where a throwing function of the target expression is woken up, for example, a long press of an expression supporting throwing is performed. The object selection operation continuous with the selection operation may be represented as a throwing operation of throwing to the thrown party for the target expression, that is, a dragging operation of the throwing party user on the target expression, for example, dragging the target expression to an image position of the thrown party in the conversation interface.
In an embodiment of the present invention, the generated session message data packet may be generated by packaging according to a predetermined data structure format in an expression throwing scene, and specifically, the throwing message may be defined according to the predetermined data structure format.
In a data structure designed to describe throwing information in an IM scene, a sender of a message (i.e., an expressive throwing party), a receiver of the message (i.e., a throwing party), a throwing expression (i.e., a target expression), and throwing animation information corresponding to the throwing expression may be defined.
At this time, throwing expression information for displaying on the conversation interface can be generated according to the target expression selected by the throwing operation included in the throwing instruction, and the information of the thrown party can be generated according to the target user selected by the throwing operation, and then the throwing expression information and the information of the thrown party are generated into a conversation message data packet according to a predefined data structure format, so that the generated conversation message data packet can be sent to the server.
In a specific implementation, the size of an IM chat interface is not consistent in different system and device differences, for example, the position of (100 ) coordinates of 1080x1920 on the screen of the a device, and the coordinates of 720x1080 on the screen of the B device cannot be directly used (100 ), and the specifically used coordinates of the screen of the user client device are automatically adapted by the display of different devices, and at this time, the target user selected by the throwing operation is determined not by information such as the touch start/end point of the throwing operation, but by the relative orientation information of the touch end point position of the throwing operation with respect to the currently transmitted target emotive conversation message.
Specifically, a throwing ending position of the throwing operation may be acquired, and relative orientation information between the throwing ending position and throwing expression information displayed on the session interface may be determined, where the relative orientation information may be used to inform that the throwing ending position is located at a user position of a sender corresponding to a session message in a preset sequence in a preset direction relative to the current throwing expression information, so as to determine a target user selected by the throwing operation using the relative orientation information, and generate thrown party information according to the determined target user.
As an example, only the casting party needs to be informed that the casting party sends the information to the x-th information in the up/down direction, and the avatar user corresponding to the information sent by the casting party is the casting party, the information sent by the casting party (for example, the target expression) and the position of the target user may be determined on different devices according to the above description.
In a preferred embodiment, when an expression throwing instruction for a target expression is detected, a throwing track of a throwing operation for the target expression can be acquired, a throwing track animation corresponding to the throwing track is displayed on a session interface, and interestingness of a throwing party in chatting by using traditional expression characters is improved.
In the embodiment of the invention, the data format of the conversation message data packet triggered and sent in the expression throwing scene is defined, and the point-to-point expression directional throwing is realized based on the throwing information carried in the conversation message data packet, so that brand-new interactive experience is brought to the traditional expression character chatting scene, the communication distance is further shortened, and the emotional expression of a specific user in the IM group chat is enhanced.
Referring to fig. 3, a flowchart of interaction steps of expression sending in the embodiment of the present invention is shown, and when the flowchart is applied to a client, the client may provide a session interface, and mainly focuses on expression sending on a user client interaction plane, and specifically may include the following steps:
step 301, responding to selection operation of an expression panel in a session interface, and determining a target expression;
in an embodiment of the present invention, the session interface provided by the user client may include a group chat interface of an IM group chat, and at this time, the target emotion selected to be sent may be determined in response to a selection operation of the user on an emotion panel in the group chat interface, so as to determine a session object to be thrown for the selected target emotion and generate an emotion throwing instruction.
Step 302, responding to the object selection operation continuous with the selection operation, determining a conversation object from a conversation interface, and sending a target expression to the conversation object.
In the embodiment of the present invention, after the target expression is determined, a session object that throws the target expression may be further determined from the group chat interface in response to an object selection operation that is consecutive to the selection operation for determining the target expression, so as to send the target expression to the session object.
In practical application, the target expression is sent to the session object, which is mainly represented by sending a session message data packet carrying the target expression to a client where the session object is located.
After an expression throwing instruction aiming at the target expression is generated based on the target expression determined by the selection operation and the conversation object determined by the object selection operation, a conversation message data packet with throwing information for sending to a server can be generated based on the expression throwing instruction, so that a receiving end (namely a thrown party) of a user client can realize point-to-point expression directional throwing based on the received conversation message data packet. Specifically, user information of a throwing target expression and an expression special effect associated with the target expression are displayed on a chat interface of a thrown party.
In order to facilitate those skilled in the art to further understand the expression sending method provided in the embodiment of the present invention, the following description is made with reference to an application scenario:
referring to fig. 4A to 4B, an application scenario diagram of an expression sending method in an embodiment of the present invention mainly focuses on expression sending in an interactive layer on a user client.
Specifically, when the throwing party user uses an expression, the throwing function of the target expression can be awakened, for example, in the case of pressing for a long time to support the throwing expression, the throwing party user who is thrown by the target expression is determined in response to the expression throwing instruction aiming at the target expression, and then the expression special effect associated with the target expression is displayed on the conversation interface of the throwing party; and a throwing track of the throwing operation aiming at the target expression can be obtained, and a throwing track animation corresponding to the throwing track is displayed on conversation interfaces of the throwing party, the thrown party and other users except the thrown party in the IM group chat.
In practical application, for a user client of a throwing party, as shown in fig. 4A, when a user uses an expression, the target expression can be obtained by long-pressing the target expression, and the target expression is dragged to a head portrait area of a thrown target user, so that the directional throwing of the expression is realized, and at this time, in the process of dragging the expression, a throwing track animation of the target expression can be displayed.
For the user client of the thrown party, as shown in fig. 4B, all users in the whole IM group will see a special effect animation from the throwing starting point to the throwing restarting point, and the thrown party will also receive an enhanced special effect display, as an example, a user a throws a "/hug" expression to a user B, except that an IM group chat member can see a conversation message that the user a sends the "/hug" expression to the user B, the client device of the user B will also separately receive an animation that is designed to express the emotion and/or scene to be conveyed, wherein what is displayed on the conversation interface of the user B should be that a throwing track animation is seen from the throwing position first, then the information of the throwing party and the expression information are displayed, and finally the animation corresponding special effect of the throwing expression is played, and the interaction effect of the emotion expression is enhanced under the condition of realizing point-to point expression orientation.
Referring to fig. 5, an application scenario diagram of another expression sending method in the embodiment of the present invention mainly focuses on expression sending in a technical level on a user client.
Specifically, in an IM scenario, a user client may establish a communication connection with a server through a long connection, so as to implement communication among different users, where it is assumed that a user 1, a user 2, a user 3, a user 4, and a user 5 exist in an IM group chat group, and in a group chat process, the users 1 to 5 may establish a long connection between the client and the server to implement message transmission.
As an example, suppose that the user 2 is a sending end of a current session message, and directionally throws an emoticon a to the user 4 serving as a message receiving end, at this time, the user 2 serves as a throwing party of the emoticon, the user 4 serves as a thrown party, the client of the user 2 can send data packet information to the server end to indicate that "the user 2 sends the emoticon a, and the emoticon is to throw the user 4", meanwhile, the server end can parse the data packet when receiving the session message sent by the user 2, after parsing to obtain the internal information, the server end sends a session message "the emoticon a is sent by the user 2" to all group chat users, and determines that a target user who is currently thrown is the user 4, and then additionally sends a session message "the emoticon a is thrown by the user 2" and an emoticon special effect corresponding to the thrown emoticon a "to the user 4.
In the embodiment of the invention, the data format of the session message data packet triggered and sent in the expression throwing scene is defined, and point-to-point expression directional throwing is realized based on the throwing information carried in the session message data packet, so that brand-new interactive experience is brought to the traditional expression character chatting scene, the communication distance is further shortened, and the emotional expression of a special user in the IM group chatting is enhanced.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those of skill in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the embodiments of the invention.
Referring to fig. 6, a block diagram of an embodiment of an expression sending apparatus according to the present invention is shown, and is applied to a client, where the client provides a session interface, and the client may specifically include the following modules:
a throwing information determining module 601, configured to receive a session message data packet sent by the server, and determine whether the session message data packet carries throwing information; the conversation message data packet is generated based on an expression throwing instruction in the conversation interface, wherein the throwing information comprises a thrown party and throwing expression information;
an expression special effect display module 602, configured to display an expression special effect associated with the throwing expression information on the session interface when the session message data packet carries the throwing information.
In an embodiment of the present invention, the conversation interface includes a group chat interface, and the emotive special effects display module 602 may include the following sub-modules:
the throwing animation information acquisition submodule is used for acquiring throwing animation information corresponding to the throwing expression information from the throwing information; the throwing animation information comprises animation materials and animation track information;
and the animation resource playing sub-module is used for generating animation resources by adopting the throwing animation information and the throwing animation process matched with the throwing animation information, and playing the animation resources on the group chat interface.
Referring to fig. 7, a block diagram of an embodiment of an expression sending apparatus according to the present invention is shown, and is applied to a client, where the client provides a session interface, and the client may specifically include the following modules:
the expression throwing instruction detection module 701 is used for detecting an expression throwing instruction aiming at a target expression; the expression throwing instruction comprises throwing information, wherein the throwing information comprises a thrown party and throwing expression information;
a session message data packet sending module 702, configured to generate a session message data packet according to the emotion throwing instruction, and send the session message data packet to a server, so as to display an emotion special effect associated with the expression throwing information on a session interface of a thrown party.
In an embodiment of the present invention, the expression throwing instruction detecting module 701 may include the following sub-modules:
the selection operation response submodule is used for responding the selection operation aiming at the expression panel in the conversation interface and determining a target expression;
the object selection operation response submodule is used for responding to the object selection operation continuous with the selection operation and determining a conversation object from the conversation interface;
and the expression throwing instruction generating submodule is used for generating an expression throwing instruction aiming at the target expression based on the target expression determined by the selection operation and the conversation object determined by the object selection operation.
In an embodiment of the present invention, the session message packet sending module 702 may include the following modules:
the throwing expression information generating submodule is used for generating throwing expression information which is used for being displayed on a conversation interface according to the target expression;
the thrown party information generation submodule is used for generating thrown party information according to the session object;
and the session message data packet generating submodule is used for generating a session message data packet according to the throwing expression information and the thrown party information and a predefined data structure format so as to send the generated session message data packet to the server.
In one embodiment of the present invention, the thrown party information generation submodule may include the following units:
the relative orientation information determining unit is used for acquiring a throwing ending position of the throwing operation and determining the relative orientation information between the throwing ending position and the throwing expression information displayed on the conversation interface; the relative orientation information is used for informing that the throwing ending position is positioned at the user position of a sender corresponding to the conversation messages in a preset sequence in a preset direction relative to the current throwing expression information;
and the thrown party information generating unit is used for determining the target user selected by the throwing operation by adopting the relative direction information and generating thrown party information.
In an embodiment of the present invention, the session interface includes a group chat interface, and the apparatus may further include:
the throwing track acquisition module is used for detecting an expression throwing instruction aiming at a target expression and acquiring a throwing track aiming at the target expression;
and the throwing track animation display module is used for displaying the throwing track animation corresponding to the throwing track on a group chat interface.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
the expression sending method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein when the computer program is executed by the processor, the computer program realizes each process of the expression sending method embodiment, can achieve the same technical effect, and is not described again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the processes of the embodiment of the expression sending method, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrases "comprising one of \ ...does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The method for sending an expression and the device for sending an expression provided by the invention are described in detail above, and specific examples are applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. An expression sending method, applied to a client, relates to at least two clients, and the client provides a session interface, and the method comprises the following steps:
receiving a session message data packet sent by a server, and judging whether the session message data packet carries throwing information or not; the conversation message data packet is generated based on an expression throwing instruction in the conversation interface, wherein the throwing information comprises a thrown party and throwing expression information, the expression throwing instruction is generated based on selection operation of an expression panel in the conversation interface and object selection operation continuous with the selection operation, and the object selection operation is embodied based on dragging operation of dragging a target expression to the thrown party;
if the session message data packet carries the throwing information, an expression special effect associated with the throwing expression information is displayed on a session interface of the thrown party; the expressive special effects are used for enhancing emotional expression of the thrown party in the conversation interface.
2. The method of claim 1, wherein the session interface comprises a group chat interface, wherein presenting the emotive special effect associated with the throwing emotive information at the session interface comprises:
acquiring throwing animation information corresponding to the throwing expression information from the throwing information; the throwing animation information comprises animation materials and animation track information;
and generating animation resources by adopting the throwing animation information and the throwing animation process matched with the throwing animation information, and playing the animation resources on the group chat interface.
3. An expression sending method, applied to a client, relates to at least two clients, and the client provides a session interface, and the method comprises the following steps:
detecting an expression throwing instruction aiming at a target expression; the expression throwing instruction is generated based on selection operation of an expression panel in a conversation interface and object selection operation continuous with the selection operation and comprises throwing information, wherein the object selection operation is embodied based on dragging operation of dragging a target expression to a thrown party, and the throwing information comprises the thrown party and throwing expression information;
generating a conversation message data packet according to the expression throwing instruction, and sending the conversation message data packet to a server so as to display an expression special effect associated with the throwing expression information on a conversation interface of a thrown party; the expressive special effects are used for enhancing emotional expression of the thrown party in the conversation interface.
4. The method of claim 3, wherein detecting the emotive throwing instruction for the target emotive comprises:
responding to selection operation aiming at an expression panel in a session interface, and determining a target expression;
responding to an object selection operation continuous with the selection operation, and determining a session object from the session interface;
and generating an expression throwing instruction aiming at the target expression based on the target expression determined by the selection operation and the conversation object determined by the object selection operation.
5. The method of claim 3, wherein the generating a conversation message data packet according to the emotive throwing instruction and sending the conversation message data packet to a server comprises:
generating throwing expression information for displaying on a conversation interface according to the target expression, and generating thrown party information according to a conversation object;
and generating a session message data packet by using the throwing expression information and the thrown party information according to a predefined data structure format so as to send the generated session message data packet to the server.
6. The method of claim 5, wherein generating tossed party information from the session object comprises:
acquiring a throwing ending position of throwing operation, and determining relative orientation information between the throwing ending position and throwing expression information displayed on a session interface; the relative orientation information is used for informing that the throwing ending position is positioned at the user position of a sender corresponding to the conversation messages in a preset sequence in a preset direction relative to the current throwing expression information;
and determining a target user selected by the throwing operation by using the relative orientation information, and generating information of a thrown party.
7. The method of claim 3, wherein the session interface comprises a group chat interface, the method further comprising:
detecting an expression throwing instruction aiming at a target expression, and acquiring a throwing track aiming at the target expression;
and displaying a throwing track animation corresponding to the throwing track on a group chat interface.
8. An expression sending device applied to a client, relating to at least two clients, wherein the client provides a session interface, and the device comprises:
the system comprises a throwing information judging module, a judging module and a judging module, wherein the throwing information judging module is used for receiving a session message data packet sent by a server and judging whether the session message data packet carries throwing information; the conversation message data packet is generated based on an expression throwing instruction in the conversation interface, wherein the throwing information comprises a thrown party and throwing expression information, the expression throwing instruction is generated based on selection operation of an expression panel in the conversation interface and object selection operation continuous with the selection operation, and the object selection operation is embodied based on dragging operation of dragging a target expression to the thrown party;
the expression special effect display module is used for displaying an expression special effect related to the throwing expression information on a conversation interface of the thrown party when the conversation message data packet carries the throwing information; the expressive special effects are used for enhancing emotional expression of the thrown party in the conversation interface.
9. An emotion sending device, applied to a client, involving at least two clients, the client providing a session interface, the device comprising:
the expression throwing instruction detection module is used for detecting an expression throwing instruction aiming at a target expression; the expression throwing instruction is generated based on selection operation of an expression panel in a conversation interface and object selection operation continuous with the selection operation and comprises throwing information, wherein the object selection operation is embodied based on dragging operation of dragging a target expression to a thrown party, and the throwing information comprises the thrown party and throwing expression information;
the conversation message data packet sending module is used for generating a conversation message data packet according to the expression throwing instruction and sending the conversation message data packet to a server so as to display an expression special effect associated with the throwing expression information on a conversation interface of a thrown party; the expressive special effects are used for enhancing emotional expression of the thrown party in the conversation interface.
10. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of transmitting the expressions according to any one of claims 1-2 or 3-7.
11. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and wherein the computer program, when executed by a processor, implements the steps of the method for transmitting an expression according to any one of claims 1 to 2 or 3 to 7.
CN202110821960.4A 2021-07-20 2021-07-20 Expression sending method and device Active CN113556278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110821960.4A CN113556278B (en) 2021-07-20 2021-07-20 Expression sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110821960.4A CN113556278B (en) 2021-07-20 2021-07-20 Expression sending method and device

Publications (2)

Publication Number Publication Date
CN113556278A CN113556278A (en) 2021-10-26
CN113556278B true CN113556278B (en) 2023-04-18

Family

ID=78103639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110821960.4A Active CN113556278B (en) 2021-07-20 2021-07-20 Expression sending method and device

Country Status (1)

Country Link
CN (1) CN113556278B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114419201A (en) * 2022-01-19 2022-04-29 北京字跳网络技术有限公司 Animation display method, animation display device, electronic equipment, animation display medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447873A (en) * 2010-10-13 2012-05-09 张明 Ha-ha video network video chat entertainment auxiliary system
CN103309872A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Method and device for processing dynamic expression
CN108322383A (en) * 2017-12-27 2018-07-24 广州市百果园信息技术有限公司 Expression interactive display method, computer readable storage medium and terminal
CN109964212A (en) * 2016-10-21 2019-07-02 舒格有限公司 Information processing system
CN112748976A (en) * 2020-08-05 2021-05-04 腾讯科技(深圳)有限公司 Expression element display method, device and equipment and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897561A (en) * 2016-05-26 2016-08-24 努比亚技术有限公司 Message sending method, device and system
CN106506177A (en) * 2016-10-17 2017-03-15 捷开通讯(深圳)有限公司 A kind of method of group chatting, server and client
CN110086639A (en) * 2019-05-13 2019-08-02 湖北潘多拉网络科技有限公司 Group chat method and device
CN110177041B (en) * 2019-05-31 2022-05-03 网易(杭州)网络有限公司 Voice information sending method and device, storage medium and electronic device
CN110365500A (en) * 2019-07-24 2019-10-22 长春风火轮科技有限公司 A kind of Group Communication method and system suitable for multiple network platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447873A (en) * 2010-10-13 2012-05-09 张明 Ha-ha video network video chat entertainment auxiliary system
CN103309872A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Method and device for processing dynamic expression
CN109964212A (en) * 2016-10-21 2019-07-02 舒格有限公司 Information processing system
CN108322383A (en) * 2017-12-27 2018-07-24 广州市百果园信息技术有限公司 Expression interactive display method, computer readable storage medium and terminal
CN112748976A (en) * 2020-08-05 2021-05-04 腾讯科技(深圳)有限公司 Expression element display method, device and equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN113556278A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
US10652175B2 (en) Message sending method and apparatus, computer terminal, and storage medium
US9881359B2 (en) Video communication method and system in instant communication
CN104935497B (en) Communication session method and device
CN106462241B (en) Dismissing notifications in response to presented notifications
WO2016197874A1 (en) Information processing method and device
US20120069028A1 (en) Real-time animations of emoticons using facial recognition during a video chat
CN113438150B (en) Expression sending method and device
TW201528728A (en) Method and apparatus of processing expression information in instant communication
TW201423419A (en) System and method for touch-based communications
TW201546704A (en) Instant messaging (1)
JP6492198B2 (en) Information processing method, terminal, and computer storage medium
JP2018519593A (en) Voice chat mode self-adaptive method and apparatus
CN110634220B (en) Information processing method and device
CN104243463A (en) Method and device for displaying virtual items
TW201541331A (en) Instant messaging
EP2824600A1 (en) Method and device for processing animated emoticon
KR101396715B1 (en) A method of providing a visual representation in a speech bubble including instant message and mobile terminal thereof
CN108174023B (en) Information displaying method and device, computer installation and computer readable storage medium
CN113556278B (en) Expression sending method and device
CN109728996B (en) Communication information display method, user equipment, storage medium and device
CN113438149A (en) Expression sending method and device
US20150341472A1 (en) System for real-time, graphics-based web communication using HTML 5 WebSockets
CN112187628B (en) Method and device for processing identification picture
CN111683002B (en) Chat expression sending control method and device
KR20160031574A (en) Messaging service method for providing speech bubble effect, storage medium recording program and device therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant