CN107765976B - Message pushing method, terminal and system - Google Patents

Message pushing method, terminal and system Download PDF

Info

Publication number
CN107765976B
CN107765976B CN201610676264.8A CN201610676264A CN107765976B CN 107765976 B CN107765976 B CN 107765976B CN 201610676264 A CN201610676264 A CN 201610676264A CN 107765976 B CN107765976 B CN 107765976B
Authority
CN
China
Prior art keywords
sliding
terminal
track
display interface
touch operation
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
CN201610676264.8A
Other languages
Chinese (zh)
Other versions
CN107765976A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610676264.8A priority Critical patent/CN107765976B/en
Publication of CN107765976A publication Critical patent/CN107765976A/en
Application granted granted Critical
Publication of CN107765976B publication Critical patent/CN107765976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Abstract

The embodiment of the invention discloses a message pushing method, which comprises the following steps: acquiring track data of a sliding track according to sliding touch operation of a user on a display interface; displaying a group of event icons on the display interface along a sliding track; generating a comp message including trajectory data of the sliding trajectory; and pushing the giving message to a second terminal. The embodiment of the invention also discloses a terminal and a system. By adopting the method and the device, the first terminal presents the graphs to the second terminal by sending the track data of the sliding track, so that the resource occupancy rate of the first terminal in presenting the graphs is effectively reduced, and the resource overhead is reduced.

Description

Message pushing method, terminal and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a terminal, and a system for pushing a message.
Background
With the development of the internet live broadcast platform, the video live broadcast technology is rapidly developed, and the video live broadcast is more and more popular with users. At present, a user can log in an internet live broadcast room to watch video content played by a main broadcast, or interact with the main broadcast and the like.
Currently, during the interaction between the audience users and the anchor users, there is often support for the anchor work by the audience users giving gifts to the anchor users. In order to facilitate user operation, the user can draw the gift graph through the gesture of sliding operation on the display interface of the terminal, the drawn gift graph is generated into a picture, and the picture is sent to the anchor broadcast to give the gift to the anchor broadcast.
However, when the user sends the picture to the anchor broadcaster through the terminal to give a gift figure to the anchor broadcaster, the picture occupies a larger storage space, which causes the terminal to take more traffic to send, and increases resource overhead.
Disclosure of Invention
The technical problem to be solved in the embodiments of the present invention is to provide a method, a terminal and a system for pushing a message. The resource occupancy rate of the first terminal in presenting the graphics is effectively reduced, and the resource overhead is reduced.
A first aspect of an embodiment of the present invention provides a message pushing method, which may include:
acquiring track data of a sliding track according to sliding touch operation of a user on a display interface;
displaying a group of event icons on the display interface along a sliding track;
generating a comp message including trajectory data of the sliding trajectory;
and pushing the presentation message to a second terminal so that the second terminal acquires the track data of the sliding track according to the presentation message and displays the group of event icons on a display interface of the second terminal according to the track data of the sliding track.
A second aspect of the embodiments of the present invention provides a message receiving method, which may include:
receiving a presentation message pushed by a first terminal, wherein the presentation message comprises track data of a sliding track;
and displaying a group of event icons on a display interface according to the track data of the sliding track.
A third aspect of the embodiments of the present invention provides a terminal, where the terminal is applicable to a first terminal, and the terminal may include:
the first acquisition unit is used for acquiring track data of a sliding track according to sliding touch operation of a user on a display interface;
the first display unit is used for displaying a group of event icons on the display interface along a sliding track;
a generating unit configured to generate a comp message including trajectory data of the sliding trajectory;
and the pushing unit is used for pushing the presentation message to a second terminal so that the second terminal acquires the track data of the sliding track according to the presentation message and displays the group of event icons on a display interface according to the track data of the sliding track.
A fourth aspect of the embodiments of the present invention provides a terminal, where the terminal is applicable to a second terminal, and the terminal may include:
the terminal comprises a receiving unit, a sending unit and a sending unit, wherein the receiving unit is used for receiving a presentation message pushed by a first terminal, and the presentation message comprises track data of a sliding track;
and the second display unit is used for displaying a group of event icons on a display interface according to the track data of the sliding track.
A fifth aspect of the embodiments of the present invention provides a message interaction system, which may include: the system comprises the first terminal and the second terminal described in the above embodiments.
In the embodiment of the invention, the first terminal acquires the track data of the sliding track according to the sliding touch operation of the user on the display interface, displays a group of event icons on the display interface along the sliding track, generates the presentation message, and the presentation message comprises the track data of the sliding track and is pushed to the second terminal, so that the first terminal presents the graph to the second terminal by sending the track data of the sliding track, the resource occupancy rate of the first terminal in presenting the graph is effectively reduced, and the resource overhead is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of another network architecture provided by embodiments of the present invention;
fig. 3 is a flowchart illustrating a message pushing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a sliding touch operation provided by an embodiment of the invention;
FIG. 5 is a schematic diagram of a gift icon display provided by an embodiment of the present invention;
fig. 6 is a flowchart illustrating another message pushing method according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a further message pushing method according to an embodiment of the present invention;
fig. 8 is a flowchart illustrating a further message pushing method according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating a message receiving method according to an embodiment of the present invention;
FIG. 10 is a schematic illustration showing another gift icon provided by an embodiment of the present invention;
fig. 11 is a flowchart illustrating another message receiving method according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
FIG. 14 is a schematic block diagram of a system according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The message pushing method provided by the embodiment of the invention can be applied to a scene in which the first terminal pushes messages, and particularly can be applied to a scene in which the first terminal pushes messages in live video. Wherein, the first terminal may include: the first terminal is only an example, not an exhaustive list, and includes but is not limited to the first terminal.
The message receiving method provided by the embodiment of the invention can be applied to a scene in which the second terminal receives the message, and particularly can be applied to a scene in which the second terminal receives the message in live video. Wherein the second terminal may include: the second terminal is only an example, and is not exhaustive, and includes but is not limited to the second terminal.
In order to better understand the solution disclosed in the embodiment of the present invention, a network architecture to which the embodiment of the present invention is applicable is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention. In the network architecture shown in fig. 1, a first terminal and a second terminal may be included, the first terminal may be connected to the second terminal through a network, and the first terminal and the second terminal may perform message interaction through the network. Further, referring to fig. 2, fig. 2 is a schematic diagram of another network architecture disclosed in the embodiment of the present invention, and the network architecture shown in fig. 2 may include a first terminal, a server, and a second terminal, where the first terminal and the second terminal may be connected to the server through a network, and the first terminal may perform message interaction with the second terminal through the server. Through the network architecture shown in fig. 1 and 2, a first terminal and a second terminal can perform message interaction.
Based on the network architectures shown in fig. 1 and fig. 2, the embodiment of the invention discloses a message pushing method. The message pushing method provided by the embodiment of the invention will be described in detail below with reference to fig. 3 to 9, where an execution subject of the embodiment is the first terminal.
Fig. 3 is a schematic flow chart of an embodiment of a message pushing method according to an embodiment of the present invention. The message pushing method of the embodiment of the invention comprises the following steps:
and S100, acquiring track data of a sliding track according to the sliding touch operation performed by the user on the display interface.
In the embodiment of the invention, the embodiment of the invention can be applied to the realization in the process of carrying out video live broadcast on the first terminal. Specifically, in the process of live video broadcast by the first terminal, when the user needs to give a gift, the user can perform a sliding touch operation on the display interface of the first terminal to draw a track of a graph. The user can perform sliding touch operation on a display interface of a live broadcast picture of the first terminal, or the user can enter the display interface of a drawing board page for presenting the gift through a specific button or a specific shortcut key in the live broadcast interface and perform sliding operation on the display interface of the drawing board page, so that the first terminal can present the gift according to the sliding operation of the user on the display interface. Wherein, to improve user's visual experience, the width of drawing board page can be unanimous with the width of screen, and the height of drawing board page can be 3/4 of screen width.
In the embodiment of the invention, in the process of carrying out live video broadcasting by the first terminal, the first terminal can detect whether a touch operation of a user on the display interface exists on the display interface of the first terminal in real time, when the first terminal detects that the touch operation of the user on the display interface exists, the first terminal can judge whether the touch operation is a sliding touch operation, and when the first terminal judges that the touch operation is the sliding touch operation, the first terminal can acquire the sliding touch operation input by the user on the display interface and acquire sliding data of a sliding track according to the sliding touch operation. Optionally, when the first terminal monitors that the first terminal enters the display interface of the drawing board page, the first terminal may detect whether a user touches the display interface in real time.
In the embodiment of the present invention, the sliding data of the sliding track may be the position of the sliding track of the sliding touch operation, including a plurality of touch point positions on the sliding track and the position of the sliding track curve. Specifically, the sliding data of the sliding track may be coordinates of the sliding track in a planar coordinate system on the current display interface, including coordinates of a plurality of touch points on the sliding track in the planar coordinate system on the display interface, and a curve function of a track curve of the sliding track in the planar coordinate system on the display interface. When the drawing board page is displayed on the display interface, the plane coordinate system on the display interface can be the plane coordinate system of the drawing board page; when a live video page is displayed on the display interface, the plane coordinate system on the display interface may be a plane coordinate system of the live video page.
Optionally, when the user performs the sliding touch operation on the drawing board page through the display interface, one sliding touch operation mode may specifically refer to fig. 2, and the user may perform the sliding touch operation on the display interface, which is the drawing board page, according to an arc line on fig. 2, so that the first terminal may obtain the trajectory data of the sliding trajectory according to the touch operation on the arc line.
And S101, displaying a group of event icons on the display interface along the sliding track.
In the implementation of the invention, when the first terminal determines the sliding track according to the sliding touch operation of the user on the display interface, the first terminal can display a group of event icons on the display interface along the sliding track, so that the user can acquire the graphs formed by the event icons from the event icons displayed by the first terminal, and determine whether to change or determine to give the pictures according to the graphs, thereby avoiding the graphs formed by the event icons given by the user from not meeting the requirements of the user. The event icon may include a function icon that can perform a function operation, or may be only an icon for arranging graphics. In the embodiment of the present invention, the event icon may preferably be an icon for arranging graphics, which may be used for a purchase gift as a gift icon. The gift icons may be pattern icons, such as "heart-shaped" patterns, "fresh flower" patterns, and the like, or may also be text, numbers, and the like, and are not limited herein. The set of event icons may include at least one gift icon, and the gift icon may be preset by the first terminal in advance, or the first terminal may select a matching gift icon according to a purchase price of the user, or the first terminal may select a corresponding gift icon according to a logged-in account of the user. After the first terminal displays a group of gift icons on the display interface along the sliding track, the first terminal can correspondingly deduct fees for the account of the logged-in user according to the number of the displayed group of gift icons and the price of the gift icons.
In the embodiment of the invention, the first terminal can display the group of gift icons one by one along the sliding track of the sliding operation of the user on the display interface, so that the first terminal can arrange the group of gift icons into the graphs corresponding to the sliding track according to the sliding track and display the graphs on the display interface. The sliding track is the sliding track of the sliding touch operation of the user on the display interface, so that the user can customize the graph of the gift icon displayed by the first terminal for presentation. In a specific application, referring to the display schematic diagram of the gift icons in fig. 3, after the user performs the sliding touch operation on the display interface of the first terminal, the first terminal may display the graphics of the plurality of heart-shaped gift icons along the sliding track of the sliding touch operation of the user on the display interface, so that the display mode of the gift icons presented by the first terminal is flexible and changeable, and the personalized requirements of the user are met.
In this embodiment of the present invention, the first terminal may further obtain an animation effect parameter of the gift icon, where the obtaining of the animation effect parameter of the gift icon by the first terminal specifically may be: the first terminal selects the corresponding animation effect parameters according to the price of the gift presented by the user, or the first terminal selects the corresponding animation effect parameters according to the logged user account, or the first terminal obtains the preset animation effect parameters. The animation effect parameter may specifically be an icon light-emitting effect parameter for lighting an icon, an icon swing effect parameter for swinging an icon left and right, or the like. The first terminal can acquire animation effect parameters to display a group of gift icons in an animation mode, so that the displayed gift icons are rich and diverse in display form and rich in interestingness.
S102, generating a presentation message, wherein the presentation message comprises the track data of the sliding track.
In an embodiment of the present invention, the first terminal may generate a gifting message for gifting a gift, the message including trajectory data of the slide trajectory.
In the embodiment of the invention, the gifting message can also carry information such as an identifier of the gift icon, user account information, and the price of the gift icon purchased by the user.
S103, the giving-away message is pushed to a second terminal.
In the embodiment of the invention, the first terminal and the second terminal can be in the same live broadcast room in the live broadcast, for example, the first terminal can be a terminal for logging in by a common user account in the live broadcast room, and the second terminal can be a terminal for logging in by a main broadcast account in the live broadcast room. The first terminal may directly send a gifting message to the second terminal to gift the second terminal. The first terminal can also push the gifting message to the second terminal through the server, so that the first terminal gifts the gift to the second terminal.
In the embodiment of the present invention, the presentation message may carry trajectory data of the sliding trajectory, and when the second terminal acquires the presentation message, the second terminal may display the set of event icons on its display interface according to the trajectory data of the sliding trajectory.
In the embodiment of the invention, the gifting message can also carry information such as an identifier of the gift icon, user account information, and the price of the gift icon purchased by the user. So that the second terminal obtains the corresponding gift icon according to the information carried by the presentation message to display the corresponding figure.
In the embodiment of the invention, the first terminal acquires the track data of the sliding track according to the sliding touch operation of the user on the display interface, displays a group of event icons on the display interface along the sliding track, generates the presentation message, and the presentation message comprises the track data of the sliding track and is pushed to the second terminal, so that the first terminal presents the graph to the second terminal by sending the track data of the sliding track, the resource occupancy rate of the first terminal in presenting the graph is effectively reduced, and the resource overhead is reduced.
Fig. 6 is a schematic flow chart of another embodiment of a message pushing method according to an embodiment of the present invention. The message pushing method of the embodiment of the invention comprises the following steps:
s200, when the sliding touch operation is monitored, collecting every preset sliding distance to obtain a plurality of touch point positions on a sliding track of the sliding touch operation.
In the embodiment of the invention, when the first terminal monitors that the user performs the sliding touch operation on the display interface of the first terminal to give the gift, the first terminal can acquire a plurality of touch point positions on the sliding track of the sliding touch operation at intervals of a preset sliding distance. The first terminal acquires a plurality of touch point positions on the sliding track of the sliding touch operation at preset sliding distances from the touch point position of the starting point of the sliding track of the sliding touch operation.
In this embodiment of the present invention, the position of the plurality of touch points on the sliding track of the sliding touch operation, where the first terminal can acquire the sliding touch operation at every preset sliding distance, may specifically be: the method comprises the steps that a first terminal collects the position of a starting point touch point of a sliding track of sliding touch operation, whether the distance interval between each touch point position on the sliding track and the position of the touch point collected at the latest time is equal to the sliding distance or not is calculated by the first terminal in real time, and when the distance interval between a certain touch point position on the sliding track and the position of the touch point collected at the latest time is determined to be equal to the sliding distance, the position of the touch point is collected by the first terminal to serve as track data of the sliding track.
S201, displaying a group of event icons on the display interface along the sliding track.
S202, generating a presentation message, wherein the presentation message comprises the track data of the sliding track.
S203, the giving message is pushed to the second terminal.
In the embodiment of the present invention, for specific implementation manners of step S200, step S201, step S202, and step S203, reference may be made to step S100, step S101, step S102, and step S103 in the foregoing embodiment, which is not described herein again.
In the embodiment of the invention, the first terminal acquires the track data of the sliding track according to the sliding touch operation of the user on the display interface, displays a group of event icons on the display interface along the sliding track, generates the presentation message, and the presentation message comprises the track data of the sliding track and is pushed to the second terminal, so that the first terminal presents the graph to the second terminal by sending the track data of the sliding track, the resource occupancy rate of the first terminal in presenting the graph is effectively reduced, and the resource overhead is reduced.
Fig. 7 is a schematic flow chart of a message pushing method according to another embodiment of the present invention. The message pushing method of the embodiment of the invention comprises the following steps:
s300, when the sliding touch operation is monitored, acquiring the position of a starting point touch point on a sliding track of the sliding touch operation.
In the embodiment of the invention, when the first terminal monitors that the user performs the sliding touch operation on the display interface of the first terminal to give the gift, the first terminal can acquire the position of the starting point touch point on the sliding track of the sliding touch operation.
S301, collecting the current touch point position on the sliding track of the current sliding touch at preset time intervals.
In the embodiment of the present invention, when the first terminal acquires the position of the start touch on the sliding track of the sliding touch operation, the first terminal may acquire the current touch point position on the sliding track of the current sliding touch operation at preset time intervals.
S302, judging whether the distance interval between the current touch point position and the touch point position which is collected at the latest time after the current touch point position is collected is larger than a preset sliding distance.
In the embodiment of the invention, when the first terminal collects the position of the current touch point, the first terminal calculates the distance interval between the position of the current touch point and the position of the touch point collected at the latest time from the collected position of the current touch point, and judges whether the distance interval is greater than the preset sliding distance. Specifically, for example: after the first terminal acquires the starting point touch point position, the second terminal acquires a second touch point position, namely the current touch point position, after a preset time interval, the first terminal can determine that the touch point position acquired at the latest time from the acquired current touch point position is the starting touch point position, the first terminal calculates the distance interval between the current touch point position and the starting point touch point position, and judges whether the distance interval is greater than a preset sliding distance.
And S303, when the distance interval is determined to be larger than the sliding distance, determining a new touch point position according to the touch point position acquired at the last time and the sliding distance.
In the embodiment of the present invention, when the first terminal determines that the distance interval is greater than the sliding distance, the first terminal may determine a new touch point position according to the touch point position and the sliding distance acquired the closest time to the current touch point position, where the first terminal may determine the new touch point position on the sliding track according to the touch point position and the sliding distance acquired the closest time to the current touch point position.
In the embodiment of the invention, when the first terminal determines that the distance interval is smaller than the sliding distance, the first terminal deletes the collected current touch point position, and continues to collect the current touch point position after the next time interval.
In the implementation of the invention, when the first terminal determines that the distance interval is equal to the sliding distance, the first terminal collects the position of the current touch point and takes the position of the current touch point as the track data of the sliding track.
S304, setting the new touch point position as the current touch point position.
In the embodiment of the invention, the terminal can set the new touch point position as the collected current touch point position, so that the first terminal can use the new touch point position as the track data of the sliding track.
S305, displaying a group of event icons on the display interface along the sliding track.
S306, generating a presentation message, wherein the presentation message comprises the track data of the sliding track.
S307, the giving message is pushed to the second terminal.
In the embodiment of the present invention, specific implementation manners of step S305, step S306, and step S307 may refer to the specific implementation manners of step S100, step S101, step S102, and step S103 in the foregoing embodiment, which are not described herein again.
In the embodiment of the invention, the first terminal acquires the track data of the sliding track according to the sliding touch operation of the user on the display interface, displays a group of event icons on the display interface along the sliding track, generates the presentation message, and the presentation message comprises the track data of the sliding track and is pushed to the second terminal, so that the first terminal presents the graph to the second terminal by sending the track data of the sliding track, the resource occupancy rate of the first terminal in presenting the graph is effectively reduced, and the resource overhead is reduced.
Fig. 8 is a schematic flow chart of a message pushing method according to another embodiment of the present invention. The message pushing method of the embodiment of the invention comprises the following steps:
and S400, acquiring track data of the sliding track according to the sliding touch operation of the user on the display interface.
S401, displaying a group of event icons on the display interface along the sliding track.
S402, converting the coordinates of the sliding track in a plane coordinate system on the display interface of the current terminal according to a preset standard coordinate system, and obtaining the standard coordinates of the sliding track in the standard coordinate system.
In the embodiment of the present invention, the trajectory data of the sliding trajectory, which is acquired by the first terminal according to the sliding touch operation of the user on the display interface, includes: and coordinates of the sliding track in a plane coordinate system on the current display interface. The coordinates of the sliding track in the plane coordinate system on the current display interface comprise coordinates of a plurality of touch points on the sliding track in the plane coordinate system on the display interface, and a curve function of a track curve of the sliding track in the plane coordinate system on the display interface.
In the embodiment of the invention, because the display interfaces of different terminals have different sizes, in order to achieve a uniform display effect on the graphs displayed on the display interfaces of different terminals, the first terminal can convert the coordinates of the sliding track in the plane coordinate system on the current display interface of the first terminal to obtain the standard coordinates of the sliding track in the standard coordinate system. The first terminal may convert coordinates of the sliding track in a planar coordinate system on the current display interface of the first terminal, and the obtaining of the standard coordinates of the sliding track in the standard coordinate system may specifically be: the first terminal converts the coordinates of the multiple touch points on the sliding track in the plane coordinate system on the current display interface to obtain the standard coordinates of the multiple touch points in the standard coordinate system, or converts a track curve of the sliding track formed by the coordinates in the plane coordinate system on the current display interface to obtain the standard track curve formed by the standard coordinates in the standard coordinate system.
In this embodiment of the present invention, the first terminal converts coordinates of the multiple touch points on the sliding track in the plane coordinate system on the current display interface, and the obtained standard coordinates of the multiple touch points in the standard coordinate system may specifically be: the coordinates of the touch point in the planar coordinate system may include a coordinate x and a coordinate y, and the coordinates of the touch point in the standard coordinate system may include a standard coordinate x and a standard coordinate y, and then the standard coordinate x is the width of the display interface in the standard coordinate system of the display interface/the width of the display interface of the first terminal in the planar coordinate system, and the standard coordinate y is the width of the display interface in the standard coordinate system of the display interface/the width of the display interface of the first terminal in the planar coordinate system.
In this embodiment of the present invention, the first terminal converts a trajectory curve of the sliding trajectory composed of coordinates in a planar coordinate system on the current display interface of the first terminal, and the obtained standard trajectory curve composed of standard coordinates in a standard coordinate system may specifically be: and if the curve function of the track curve of the sliding track in the plane coordinate system is A, and the curve function of the track curve of the sliding track in the standard coordinate system is B, the curve function B is A, the width of the display interface in the standard coordinate system of the display interface/the width of the display interface of the first terminal in the plane coordinate system. In the embodiment of the present invention, the standard coordinate system may be a standard coordinate system that is referred to by all terminals capable of performing live video. The standard coordinate system may specifically have a width of 2048 and a height of 3/4.
S403, generates a presentation message including trajectory data of the slide trajectory.
In the embodiment of the present invention, when the first terminal acquires the standard coordinates of the sliding track in the standard coordinate system, the terminal may generate the presentation message including the track data of the sliding track, where the track data of the sliding track in the gift presentation message is the standard coordinates of the sliding track in the standard coordinate system, so that the second terminal acquires the standard coordinates of the sliding track in the standard coordinate system according to the presentation message, and displays the gift icon along the new sliding track. Thereby make the present icon that first terminal shows unanimous with the display graphic effect of the present icon that the second terminal shows, when avoiding appearing the figure that the terminal of big screen shows the terminal sending of little screen, if show according to the terminal real size on the former little screen for show the too little condition of figure, thereby can carry out suitable adjustment according to the size of terminal display interface to the figure, promote user experience.
In the embodiment of the invention, the first terminal acquires the track data of the sliding track according to the sliding touch operation of the user on the display interface, displays a group of event icons on the display interface along the sliding track, generates the presentation message, and the presentation message comprises the track data of the sliding track and is pushed to the second terminal, so that the first terminal presents the graph to the second terminal by sending the track data of the sliding track, the resource occupancy rate of the first terminal in presenting the graph is effectively reduced, and the resource overhead is reduced.
Based on the network architectures shown in fig. 1 and fig. 2, the embodiment of the invention discloses a message receiving method. A message receiving method according to an embodiment of the present invention will be described in detail below with reference to fig. 9 to 11, where an execution subject of the embodiment is the second terminal.
Fig. 9 is a schematic flowchart of an embodiment of a message receiving method according to an embodiment of the present invention. The message receiving method of the embodiment of the invention comprises the following steps:
s500, receiving a presenting message pushed by the first terminal, wherein the presenting message comprises track data of a sliding track.
In the implementation of the present invention, the second terminal may directly receive the comp message pushed by the first terminal, or the second terminal receives the comp message pushed by the first terminal through the server.
In an embodiment of the invention, the comp message may carry trajectory data for the sliding trajectory. The track data of the sliding track can be the position of the sliding track of the sliding touch operation, including a plurality of touch point positions on the sliding track and the position of the sliding track curve. Specifically, the sliding data of the sliding track may be coordinates of the sliding track in a planar coordinate system on the current display interface, including coordinates of a plurality of touch points on the sliding track in the planar coordinate system on the display interface, and a curve function of a track curve of the sliding track in the planar coordinate system on the display interface.
In the embodiment of the invention, the gifting message can also carry information such as an identifier of the gift icon, user account information, and the price of the gift icon purchased by the user.
And S501, displaying a group of event icons on a display interface according to the track data of the sliding track.
In the implementation of the present invention, the second terminal displays a group of event icons on the display interface according to the trajectory data of the sliding trajectory, wherein the event icons may include function icons capable of performing function operations or only icons for arranging graphics. In the embodiment of the present invention, the event icon may preferably be an icon for arranging graphics. The gift icons may be pattern icons, such as "heart-shaped" patterns, "fresh flower" patterns, and the like, or may also be text, numbers, and the like, and are not limited herein. The group of event icons may include at least one gift icon, and the gift icon may be preset in advance by the second terminal, or the second terminal acquires the corresponding gift icon according to a gift icon identifier carried in the present message, or the second terminal acquires the corresponding gift icon according to a price of the gift icon purchased by the user carried in the present message, or the second terminal may select the corresponding gift icon according to user account information carried in the present message. After the second terminal displays a group of gift icons on the display interface according to the track data of the sliding track, the second terminal can store the deposit of the price corresponding to the number of the displayed group of gift icons.
In the embodiment of the present invention, the second terminal may display the gift icons at a plurality of touch point positions on the sliding track, and therefore, the second terminal may arrange a set of icons into a graph corresponding to the sliding track formed by the plurality of touch point positions according to the sliding track formed by the plurality of touch point positions, and display the graph on the display interface. In a specific application, the shape of the gift icon displayed by the second terminal may refer to the display schematic diagram of the gift icon in fig. 10, and after the terminal acquires the multiple touch point positions on the sliding track, the terminal may respectively display "heart-shaped" gift icons at the multiple touch point positions on the display interface, and form a graph consistent with the sliding track. The second terminal can obtain and display the graph formed by the gift icons presented by the first terminal only according to the received track data of the sliding track, so that the resource occupancy rate when the graph presented by the first terminal is received is effectively reduced, and the resource overhead is reduced.
In this embodiment of the present invention, the second terminal may further obtain an animation effect parameter of the gift icon, where the second terminal may specifically obtain the animation effect parameter of the gift icon: and the second terminal selects the corresponding animation effect parameters according to the price of the gift presented by the user, or the second terminal selects the corresponding animation effect parameters according to the logged user account, or the second terminal acquires the preset animation effect parameters. The animation effect parameter may specifically be an icon light-emitting effect parameter for lighting an icon, an icon swing effect parameter for swinging an icon left and right, or the like. The second terminal can acquire animation effect parameters to carry out animation show on a group of gift icons, so that the display forms of the displayed gift icons are rich and diverse and are rich in interestingness.
In a specific application, the step of obtaining the animation effect parameter by the second terminal to perform animation display on a group of gift icons may be: and the second terminal calculates the current animation frame every preset time and performs drawing and display. Wherein the preset time may be 16 ms. Further, in order to improve the drawing performance of the second terminal, the second terminal may employ a third-party application to draw and display a group of gift icons.
In the embodiment of the invention, the second terminal receives the donation message pushed by the first terminal, wherein the donation message comprises the track data of the sliding track, and a group of event icons are displayed on the display interface according to the track data of the sliding track, so that the second terminal obtains the icons donated by the first terminal according to the track data of the sliding track sent by the first terminal, the resource occupancy rate for obtaining the graphs donated by the first terminal is effectively reduced, and the resource overhead is reduced.
Fig. 11 is a schematic flowchart of an embodiment of a message receiving method according to an embodiment of the present invention. The message receiving method of the embodiment of the invention comprises the following steps:
s600, receiving a donation message pushed by the first terminal.
In the embodiment of the present invention, the trajectory data of the sliding trajectory carried by the comp message includes standard coordinates of the sliding trajectory in a standard coordinate system. The standard coordinates of the sliding track in the standard coordinate system comprise standard coordinates of a plurality of touch points on the sliding track in the standard coordinate system and a standard curve function of a track curve of the sliding track in the standard coordinate system.
S601, converting the standard coordinate of the sliding track in the standard coordinate system according to the plane coordinate on the current display interface to obtain the coordinate of the sliding track in the plane coordinate system on the current display interface.
In the embodiment of the invention, because the display interfaces of different terminals have different sizes, in order to achieve a uniform display effect on the graphs displayed on the display interfaces of different terminals, the first terminal can convert the coordinates of the sliding track in the plane coordinate system on the current display interface of the first terminal to obtain the standard coordinates of the sliding track in the standard coordinate system.
Therefore, when the trajectory data of the sliding trajectory received by the second terminal includes the standard coordinates of the sliding trajectory in the standard coordinate system, the second terminal may convert the standard coordinates of the sliding trajectory in the standard coordinate system to obtain the coordinates of the sliding trajectory in the plane coordinate system on the current display interface of the second terminal. The second terminal converts the standard coordinate of the sliding track in the standard coordinate system, and the obtained coordinate of the sliding track in the plane coordinate system on the current display interface of the second terminal may specifically be: and the second terminal converts the standard coordinates of the plurality of touch points on the sliding track under the standard coordinate system to obtain the coordinates of the plurality of touch points under the plane coordinate system on the current display interface of the second terminal, or converts a standard track curve composed of the standard coordinates under the standard coordinate system to obtain a track curve composed of the coordinates under the plane coordinate system on the current display interface of the second terminal.
In this embodiment of the present invention, the second terminal converts the standard coordinates of the multiple touch points on the sliding track in the standard coordinate system, and the coordinates of the multiple touch points in the plane coordinate system on the current display interface of the second terminal may specifically be: the standard coordinates of the touch point in the standard coordinate system may include a standard coordinate x and a standard coordinate y, and the coordinates of the touch point in the planar coordinate system on the current display interface of the second terminal may include a coordinate x and a coordinate y, where the coordinate x is the standard coordinate x and the width of the display interface in the planar coordinate system of the display interface of the second terminal is/the width of the display interface in the standard coordinate system, and the coordinate y is the standard coordinate y and the width of the display interface in the planar coordinate system of the display interface of the second terminal is/the width of the display interface in the standard coordinate system.
In this embodiment of the present invention, the second terminal converts the standard trajectory curve composed of the standard coordinates in the standard coordinate system to obtain the trajectory curve of the sliding trajectory composed of the coordinates in the plane coordinate system of the current display interface of the second terminal, which may specifically be: and if the curve function of the track curve of the sliding track in the plane coordinate system of the current display interface of the second terminal is A, and the curve function of the track curve of the sliding track in the standard coordinate system is B, the curve function A is B, and the width of the display interface of the second terminal in the plane coordinate system is/the width of the display interface in the standard coordinate system is/is the width of the display interface of the second terminal. In the embodiment of the present invention, the standard coordinate system may be a standard coordinate system that is referred to by all terminals capable of performing live video. The width of the display interface in the standard coordinate system may be 2048, and the height may be 3/4 of the width.
And S602, displaying a group of event icons on the coordinates of the sliding track under the plane coordinate system on the current display interface.
In the embodiment of the present invention, when the second terminal obtains coordinates of the plurality of touch points in the planar coordinate system on the current display interface of the second terminal, the second terminal may respectively display each gift icon in the group of gift icons on the coordinates of the plurality of touch points in the planar coordinate system on the current display interface of the second terminal.
In an embodiment of the present invention, when the second terminal obtains a trajectory curve of a sliding trajectory composed of coordinates in a planar coordinate system of a current display interface of the second terminal, the second terminal may display a group of gift icons one by one along the obtained trajectory curve of the sliding trajectory.
In the embodiment of the invention, the second terminal receives the donation message pushed by the first terminal, wherein the donation message comprises the track data of the sliding track, and a group of event icons are displayed on the display interface according to the track data of the sliding track, so that the second terminal obtains the icons donated by the first terminal according to the track data of the sliding track sent by the first terminal, the resource occupancy rate for obtaining the graphs donated by the first terminal is effectively reduced, and the resource overhead is reduced.
A terminal provided by an embodiment of the present invention will be described below with reference to fig. 12, where in the embodiment of the present invention, the terminal may be a first terminal. It should be noted that fig. 12 shows a terminal for executing the method according to the embodiment of the present invention shown in fig. 3-8, for convenience of description, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the embodiment of the present invention shown in fig. 3-8.
Fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 12, the terminal according to the embodiment of the present invention may include:
the first acquiring unit 100 is configured to acquire trajectory data of a sliding trajectory according to a sliding touch operation of a user on a display interface.
And the first display unit 200 is used for displaying a group of event icons on the display interface along the sliding track.
A generating unit 300 configured to generate a comp message including trajectory data of the sliding trajectory.
A pushing unit 400, configured to push the comp message to a second terminal.
Wherein the track data of the sliding track comprises a plurality of touch point positions on the sliding track;
the first display unit 200 is specifically configured to:
and respectively displaying each event icon in the group of event icons at a plurality of touch point positions on the sliding track.
The first obtaining unit 100 is specifically configured to:
and when the sliding touch operation is monitored, acquiring a plurality of touch point positions on a sliding track of the sliding touch operation at intervals of a preset sliding distance.
Wherein the first obtaining unit 100 includes:
the first acquisition subunit is used for acquiring the position of a starting point touch point on a sliding track of the sliding touch operation when the sliding touch operation is monitored;
the second acquisition subunit is used for acquiring the current touch point position on the sliding track of the current sliding touch operation at intervals of preset time;
the judging subunit is used for judging whether the distance interval between the current touch point position and the touch point position which is acquired at the latest time from the current touch point position is greater than a preset sliding distance or not;
a determining subunit, configured to determine, when it is determined that the distance interval is greater than the sliding distance, a new touch point position according to the touch point position acquired the latest time from the current touch point position and the sliding distance;
and the setting subunit is used for setting the new touch point position as the current touch point position.
The track data of the sliding track acquired according to the sliding touch operation of the user on the display interface comprises coordinates of the sliding track in a plane coordinate system on the current display interface;
the generating unit 300 includes:
the first conversion subunit is used for converting the coordinates of the sliding track in a plane coordinate system on the display interface of the current terminal according to a preset standard coordinate system to obtain the standard coordinates of the sliding track in the standard coordinate system;
and the generation subunit is configured to generate a presentation message including trajectory data of the sliding trajectory, where the trajectory data of the sliding trajectory in the presentation message includes standard coordinates of the sliding trajectory in a standard coordinate system, so that the second terminal acquires the standard coordinates of the sliding trajectory in the standard coordinate system according to the presentation message, and displays the event icon on the standard coordinates.
Wherein, the terminal further includes:
the second acquisition unit is used for acquiring the animation effect parameters;
an adding unit, configured to add the animation effect parameter to the comp message.
It can be understood that the functions of each functional module of the unit in the terminal in this embodiment may be specifically implemented according to the method in the method embodiment described in fig. 3 to fig. 8, and the specific implementation process may refer to the related description of the above method embodiment, which is not described herein again.
In the embodiment of the invention, the first terminal acquires the track data of the sliding track according to the sliding touch operation of the user on the display interface, displays a group of event icons on the display interface along the sliding track, generates the presentation message, and the presentation message comprises the track data of the sliding track and is pushed to the second terminal, so that the first terminal presents the graph to the second terminal by sending the track data of the sliding track, the resource occupancy rate of the first terminal in presenting the graph is effectively reduced, and the resource overhead is reduced.
A terminal provided in an embodiment of the present invention will be described below with reference to fig. 13, where the terminal may be a first terminal. It should be noted that fig. 13 shows a terminal for executing the method according to the embodiment of the present invention shown in fig. 9-11, for convenience of description, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the embodiment of the present invention shown in fig. 9-11.
Fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 13, the terminal according to the embodiment of the present invention may include:
the receiving unit 400 is configured to receive a comp message pushed by a first terminal, where the comp message includes trajectory data of a sliding trajectory.
And a second display unit 500, configured to display a group of event icons on a display interface according to the trajectory data of the sliding trajectory.
Wherein the track data of the sliding track comprises a plurality of touch point positions on the sliding track;
the second display unit 500 is specifically configured to:
and respectively displaying each event icon in the group of event icons at a plurality of touch point positions on the sliding track.
The trajectory data of the sliding trajectory included in the presentation message includes standard coordinates of the sliding trajectory in a standard coordinate system;
the second display unit 500 includes:
the second conversion subunit is used for converting the standard coordinate of the sliding track in the standard coordinate system according to the plane coordinate system on the current display interface to obtain the coordinate of the sliding track in the plane coordinate system on the current display interface;
and displaying the group of event icons on the coordinates of the sliding track under the plane coordinate system on the current display interface.
Wherein the comp message carries animation effect parameters;
the second display unit 500 is specifically configured to:
and respectively displaying each time icon in the group of event icons in an animation mode at the plurality of touch positions on the sliding track according to the animation effect parameters.
It can be understood that the functions of each functional module of the unit in the terminal in this embodiment may be specifically implemented according to the method in the method embodiment described in fig. 9 to fig. 11, and the specific implementation process may refer to the related description of the above method embodiment, which is not described herein again.
In the embodiment of the invention, the second terminal receives the donation message pushed by the first terminal, wherein the donation message comprises the track data of the sliding track, and a group of event icons are displayed on the display interface according to the track data of the sliding track, so that the second terminal obtains the icons donated by the first terminal according to the track data of the sliding track sent by the first terminal, the resource occupancy rate for obtaining the graphs donated by the first terminal is effectively reduced, and the resource overhead is reduced.
Please refer to fig. 14, which provides a schematic structural diagram of a message interaction system according to an embodiment of the present invention. As shown in fig. 14, the system of the embodiment of the present invention may include:
a first terminal 1 and a second terminal 2.
It can be understood that the functions of the functional modules of the unit in the first terminal 1 in this embodiment can be specifically implemented according to the first terminal in the foregoing embodiment, and the functions of the functional modules of the unit in the second terminal 2 in this embodiment can be specifically implemented according to the second terminal in the foregoing embodiment, which is not described herein again.
It is understood that the specific structure of the first terminal 1 and the second terminal 2 of the present embodiment can also refer to the architecture shown in fig. 1.
In the embodiment of the invention, the first terminal acquires the track data of the sliding track according to the sliding touch operation of the user on the display interface, the first terminal displays a group of event icons on the display interface along the sliding track, the first terminal generates the presenting message, the presenting message comprises the track data of the sliding track, the first terminal pushes the presenting message to the second terminal, the second terminal receives the presenting message pushed by the first terminal, and the group of event icons are displayed on the display interface according to the track data of the sliding track, so that the first terminal can enable the second terminal to acquire the graph presented by the first terminal by sending the track data of the sliding track, the resource occupancy rate of the first terminal in presenting the graph is effectively reduced, the resource overhead is reduced, and the second terminal can acquire the graph presented by the first terminal only by acquiring the track data of the sliding track, the resource occupancy rate when the graphics presented by the first terminal are received is effectively reduced, and the resource overhead is reduced.
Fig. 15 is a schematic structural diagram of another terminal according to an embodiment of the present invention. As shown in fig. 15, the terminal 1000 may specifically be a first terminal, and the terminal 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 15, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a communication connection application program.
In the terminal 1000 shown in fig. 15, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the network interface 1004 is used for connecting with a news server and acquiring data sent by the news server; and the processor 1001 may be configured to invoke the communication connection application stored in the memory 1005 and specifically perform the following operations:
acquiring track data of a sliding track according to sliding touch operation of a user on a display interface;
displaying a group of event icons on the display interface along a sliding track;
generating a comp message including trajectory data of the sliding trajectory;
and pushing the presentation message to a second terminal so that the second terminal acquires the track data of the sliding track according to the presentation message and displays the group of event icons on a display interface of the second terminal according to the track data of the sliding track.
Wherein the track data of the sliding track comprises a plurality of touch point positions on the sliding track;
the processor 1001 displays a set of event icons on the display interface along a sliding track, including:
and respectively displaying each event icon in the group of event icons at a plurality of touch point positions on the sliding track.
The acquiring, by the processor 1001, trajectory data of a sliding trajectory according to a sliding touch operation of a user on a display interface includes:
and when the sliding touch operation is monitored, acquiring a plurality of touch point positions on a sliding track of the sliding touch operation at intervals of a preset sliding distance.
The acquiring, by the processor 1001, trajectory data of a sliding trajectory according to a sliding touch operation of a user on a display interface includes:
when the sliding touch operation is monitored, acquiring the position of a starting point touch point on a sliding track of the sliding touch operation;
acquiring the current touch point position on a sliding track of the current sliding touch operation at preset time intervals;
judging whether the distance interval between the current touch point position and the touch point position which is acquired at the latest time after the current touch point position is acquired is larger than a preset sliding distance or not;
when the distance interval is determined to be larger than the sliding distance, determining a new touch point position according to the touch point position acquired at the latest time from the current touch point position and the sliding distance;
and setting the new touch point position as the current touch point position.
The track data of the sliding track acquired according to the sliding touch operation of the user on the display interface comprises coordinates of the sliding track in a plane coordinate system on the current display interface;
the processor 1001 generating a comp message includes:
converting the coordinates of the sliding track under a plane coordinate system on a display interface of the current terminal according to a preset standard coordinate system to obtain the standard coordinates of the sliding track under the standard coordinate system;
generating a presentation message comprising track data of a sliding track, wherein the track data of the sliding track in the presentation message comprises standard coordinates of the sliding track in a standard coordinate system, so that a second terminal acquires the standard coordinates of the sliding track in the standard coordinate system according to the presentation message and displays an event icon on the standard coordinates.
Wherein, before the processor 1001 sends the comp message to the first terminal, the processor 1001 further performs:
acquiring animation effect parameters;
adding the animation effect parameter to the comp message.
It is to be understood that the functions of each functional module of the unit in the terminal in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, the first terminal acquires the track data of the sliding track according to the sliding touch operation of the user on the display interface, displays a group of event icons on the display interface along the sliding track, generates the presentation message, and the presentation message comprises the track data of the sliding track and is pushed to the second terminal, so that the first terminal presents the graph to the second terminal by sending the track data of the sliding track, the resource occupancy rate of the first terminal in presenting the graph is effectively reduced, and the resource overhead is reduced.
Referring to fig. 16, a schematic structural diagram of another terminal is provided in the embodiment of the present invention. As shown in fig. 16, the terminal 2000 may specifically be a second terminal, and the terminal 2000 may include: at least one processor 2001, e.g., a CPU, at least one network interface 2004, a user interface 2003, a memory 2005, at least one communication bus 2002. The communication bus 2002 is used to implement connection communication between these components. The user interface 2003 may include a Display (Display) and a Keyboard (Keyboard), and the optional user interface 2003 may further include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). Memory 2005 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 2005 may optionally also be at least one memory device located remotely from the aforementioned processor 2001. As shown in fig. 16, the memory 2005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a communication connection application program.
In the terminal 2000 shown in fig. 12, the user interface 2003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the network interface 2004 is used for connecting with a terminal to acquire data sent by the terminal; the processor 2001 may be configured to call the communication connection application stored in the memory 2005, and specifically receive a comp message pushed by the first terminal, where the comp message includes trajectory data of the sliding trajectory;
and displaying a group of event icons on a display interface according to the track data of the sliding track.
Wherein the track data of the sliding track comprises a plurality of touch point positions on the sliding track;
the processor 2001 displays a set of event icons on a display interface according to the trajectory data of the sliding trajectory, including:
and respectively displaying each event icon in the group of event icons at a plurality of touch point positions on the sliding track.
The trajectory data of the sliding trajectory included in the presentation message includes standard coordinates of the sliding trajectory in a standard coordinate system;
the processor 2001 displays a set of event icons on a display interface according to the trajectory data of the sliding trajectory, including:
converting the standard coordinate of the sliding track under the standard coordinate system according to the plane coordinate system on the current display interface to obtain the coordinate of the sliding track under the plane coordinate system on the current display interface;
and displaying the group of event icons on the coordinates of the sliding track under the plane coordinate system on the current display interface.
Wherein the comp message carries animation effect parameters;
the processor 2001 respectively displays each event icon in the set of event icons at a plurality of touch point positions on the sliding track, including:
and respectively displaying each time icon in the group of event icons in an animation mode at the plurality of touch positions on the sliding track according to the animation effect parameters.
It is to be understood that the functions of each functional module of the unit in the terminal in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, the second terminal receives the donation message pushed by the first terminal, wherein the donation message comprises the track data of the sliding track, and a group of event icons are displayed on the display interface according to the track data of the sliding track, so that the second terminal obtains the icons donated by the first terminal according to the track data of the sliding track sent by the first terminal, the resource occupancy rate for obtaining the graphs donated by the first terminal is effectively reduced, and the resource overhead is reduced.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (13)

1. A message pushing method, the method comprising:
when detecting that a user has touch operation on a display interface, judging whether the touch operation is sliding touch operation, when the touch operation is the sliding touch operation, determining a plurality of touch point positions on a sliding track of the sliding touch operation based on a preset sliding distance or time interval according to the sliding touch operation of the user on the display interface, and acquiring track data of the sliding track according to the plurality of touch point positions;
determining event icons according to the account number or purchase price of the user, respectively displaying each event icon in a group of event icons at a plurality of touch point positions on the sliding track of the display interface, and determining whether to give away according to a graph formed by the group of event icons;
if the presenting is determined, generating a presenting message, and deducting the account number of the user according to the number of the displayed event icons included in the group of event icons and the price of each event icon, wherein the presenting message includes the track data of the sliding track;
and pushing the presentation message to a second terminal so that the second terminal acquires the track data of the sliding track according to the presentation message and displays the group of event icons on a display interface of the second terminal according to the track data of the sliding track.
2. The method of claim 1, wherein the determining, according to the sliding touch operation of the user on the display interface, a plurality of touch point positions on a sliding track of the sliding touch operation based on a preset sliding distance or time interval comprises:
and when the sliding touch operation is monitored, acquiring a plurality of touch point positions on a sliding track of the sliding touch operation at intervals of a preset sliding distance.
3. The method of claim 1, wherein the determining, according to the sliding touch operation of the user on the display interface, a plurality of touch point positions on a sliding track of the sliding touch operation based on a preset sliding distance or time interval comprises:
when the sliding touch operation is monitored, acquiring the position of a starting point touch point on a sliding track of the sliding touch operation;
acquiring the current touch point position on a sliding track of the current sliding touch operation at preset time intervals;
judging whether the distance interval between the current touch point position and the touch point position which is acquired at the latest time after the current touch point position is acquired is larger than a preset sliding distance or not;
when the distance interval is determined to be larger than the sliding distance, determining a new touch point position according to the touch point position acquired at the latest time from the current touch point position and the sliding distance;
and setting the new touch point position as the current touch point position.
4. The method according to any one of claims 1 to 3, wherein the trajectory data of the sliding trajectory acquired according to the sliding touch operation of the user on the display interface includes coordinates of the sliding trajectory in a plane coordinate system on a current display interface;
the generating the comp message comprises:
converting the coordinates of the sliding track under a plane coordinate system on a display interface of the current terminal according to a preset standard coordinate system to obtain the standard coordinates of the sliding track under the standard coordinate system;
generating a presentation message comprising track data of a sliding track, wherein the track data of the sliding track in the presentation message comprises standard coordinates of the sliding track in a standard coordinate system, so that a second terminal acquires the standard coordinates of the sliding track in the standard coordinate system according to the presentation message and displays an event icon on the standard coordinates.
5. A method for receiving a message, the method comprising:
receiving a presentation message pushed by a first terminal, wherein the presentation message comprises track data of a sliding track; the track data comprises a plurality of touch point positions, and the touch point positions are determined by the first terminal on a sliding track of the sliding touch operation according to the sliding touch operation of a user on a display interface and based on a preset sliding distance or a preset time interval; the sliding touch operation is triggered when the first terminal detects that a user has touch operation on a display interface and the touch operation is the sliding touch operation; the gifting message is sent by the first terminal when the first terminal determines to gift;
according to the track data of the sliding track, respectively displaying each event icon in a group of event icons at a plurality of touch point positions on the sliding track of a display interface; and a graph formed by the group of event icons is used for the first terminal to determine whether to give away, and the number of the event icons and the price of each event icon included in the group of event icons are used for deducting the account number of the user.
6. The method of claim 5, wherein the comp message includes trajectory data for the slide trajectory including standard coordinates of the slide trajectory in a standard coordinate system;
the displaying each event icon in a group of event icons respectively at a plurality of touch point positions on the sliding track of the display interface according to the track data of the sliding track comprises:
converting the standard coordinate of the sliding track under the standard coordinate system according to the plane coordinate system on the current display interface to obtain the coordinate of the sliding track under the plane coordinate system on the current display interface;
and displaying the group of event icons on the coordinates of the sliding track under the plane coordinate system on the current display interface.
7. A terminal, characterized in that the terminal comprises:
the touch control device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for judging whether a touch operation is a sliding touch operation when the touch operation is detected on a display interface by a user, determining a plurality of touch point positions on a sliding track of the sliding touch operation based on a preset sliding distance or time interval according to the sliding touch operation of the user on the display interface when the touch operation is the sliding touch operation, and acquiring track data of the sliding track according to the plurality of touch point positions;
the first display unit is used for determining event icons according to the account or purchase price of the user, respectively displaying each event icon in a group of event icons at a plurality of touch point positions on the sliding track of the display interface, and determining whether to give a gift according to a graph formed by the group of event icons;
a generating unit, configured to generate a presentation message if presentation is determined, and deduct a fee from the account of the user according to the number of the event icons included in the displayed set of event icons and the price of each event icon, where the presentation message includes trajectory data of the sliding trajectory;
and the pushing unit is used for pushing the presentation message to a second terminal so that the second terminal acquires the track data of the sliding track according to the presentation message and displays the group of event icons on a display interface according to the track data of the sliding track.
8. The terminal of claim 7, wherein the first obtaining unit is specifically configured to:
and when the sliding touch operation is monitored, acquiring a plurality of touch point positions on a sliding track of the sliding touch operation at intervals of a preset sliding distance.
9. The terminal of claim 7, wherein the first obtaining unit comprises:
the first acquisition subunit is used for acquiring the position of a starting point touch point on a sliding track of the sliding touch operation when the sliding touch operation is monitored;
the second acquisition subunit is used for acquiring the current touch point position on the sliding track of the current sliding touch operation at intervals of preset time;
the judging subunit is used for judging whether the distance interval between the current touch point position and the touch point position which is acquired at the latest time from the current touch point position is greater than a preset sliding distance or not;
a determining subunit, configured to determine, when it is determined that the distance interval is greater than the sliding distance, a new touch point position according to the touch point position acquired the latest time from the current touch point position and the sliding distance;
and the setting subunit is used for setting the new touch point position as the current touch point position.
10. The terminal according to any one of claims 7 to 9, wherein the trajectory data of the sliding trajectory acquired according to the sliding touch operation of the user on the display interface includes coordinates of the sliding trajectory in a planar coordinate system on the current display interface;
the generation unit includes:
the first conversion subunit is used for converting the coordinates of the sliding track in a plane coordinate system on the display interface of the current terminal according to a preset standard coordinate system to obtain the standard coordinates of the sliding track in the standard coordinate system;
and the generation subunit is configured to generate a presentation message including trajectory data of the sliding trajectory, where the trajectory data of the sliding trajectory in the presentation message includes standard coordinates of the sliding trajectory in a standard coordinate system, so that the second terminal acquires the standard coordinates of the sliding trajectory in the standard coordinate system according to the presentation message, and displays the event icon on the standard coordinates.
11. A terminal, characterized in that the terminal comprises:
the terminal comprises a receiving unit, a sending unit and a sending unit, wherein the receiving unit is used for receiving a presentation message pushed by a first terminal, and the presentation message comprises track data of a sliding track; the track data comprises a plurality of touch point positions, and the touch point positions are determined by the first terminal on a sliding track of the sliding touch operation according to the sliding touch operation of a user on a display interface and based on a preset sliding distance or a preset time interval; the sliding touch operation is triggered when the first terminal detects that a user has touch operation on a display interface and the touch operation is the sliding touch operation; the gifting message is sent by the first terminal when the first terminal determines to gift;
the second display unit is used for respectively displaying each event icon in a group of event icons at a plurality of touch point positions on the sliding track of a display interface according to the track data of the sliding track; and a graph formed by the group of event icons is used for the first terminal to determine whether to give away, and the number of the event icons and the price of each event icon included in the group of event icons are used for deducting the account number of the user.
12. The terminal of claim 11, wherein the comp message includes trajectory data for a slide trajectory including standard coordinates of the slide trajectory in a standard coordinate system;
the second display unit includes:
the second conversion subunit is used for converting the standard coordinate of the sliding track in the standard coordinate system according to the plane coordinate system on the current display interface to obtain the coordinate of the sliding track in the plane coordinate system on the current display interface;
and displaying the group of event icons on the coordinates of the sliding track under the plane coordinate system on the current display interface.
13. A messaging system, characterized in that the system comprises a first terminal and a second terminal, wherein the first terminal comprises a terminal according to any of claims 7-10 and the second terminal comprises a terminal according to any of claims 11-12.
CN201610676264.8A 2016-08-16 2016-08-16 Message pushing method, terminal and system Active CN107765976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610676264.8A CN107765976B (en) 2016-08-16 2016-08-16 Message pushing method, terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610676264.8A CN107765976B (en) 2016-08-16 2016-08-16 Message pushing method, terminal and system

Publications (2)

Publication Number Publication Date
CN107765976A CN107765976A (en) 2018-03-06
CN107765976B true CN107765976B (en) 2021-12-14

Family

ID=61259628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610676264.8A Active CN107765976B (en) 2016-08-16 2016-08-16 Message pushing method, terminal and system

Country Status (1)

Country Link
CN (1) CN107765976B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664651B (en) * 2018-05-17 2020-08-04 腾讯科技(深圳)有限公司 Pattern recommendation method, device and storage medium
CN109194973A (en) * 2018-09-26 2019-01-11 广州华多网络科技有限公司 A kind of more main broadcaster's direct broadcasting rooms give the methods of exhibiting, device and equipment of virtual present
CN109525885B (en) * 2018-12-13 2021-07-20 广州华多网络科技有限公司 Information processing method, information processing device, electronic equipment and computer readable storage medium
US20220342525A1 (en) * 2019-07-19 2022-10-27 Boe Technology Group Co., Ltd. Pushing device and method of media resource, electronic device and storage medium
CN110662105A (en) * 2019-10-16 2020-01-07 广州华多网络科技有限公司 Animation file generation method and device and storage medium
CN111399729A (en) * 2020-03-10 2020-07-10 北京字节跳动网络技术有限公司 Image drawing method and device, readable medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923434A (en) * 2010-08-23 2010-12-22 宇龙计算机通信科技(深圳)有限公司 Type setting method and system of application icon and mobile terminal
WO2012140883A1 (en) * 2011-04-11 2012-10-18 パナソニック株式会社 Display processing device
CN105373306A (en) * 2015-10-13 2016-03-02 广州酷狗计算机科技有限公司 Virtual goods presenting method and device
CN105446689A (en) * 2015-12-16 2016-03-30 广州视睿电子科技有限公司 Synchronization method and system of remote commenting
CN105653167A (en) * 2015-12-23 2016-06-08 广州华多网络科技有限公司 Online live broadcast-based information display method and client

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8442866B2 (en) * 2008-10-27 2013-05-14 Cashstar, Inc. Systems and methods for implementing and managing virtual gift cards
CN105635745B (en) * 2015-12-23 2019-10-22 广州华多网络科技有限公司 Method and client that signature shines are generated based on online live streaming application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923434A (en) * 2010-08-23 2010-12-22 宇龙计算机通信科技(深圳)有限公司 Type setting method and system of application icon and mobile terminal
WO2012140883A1 (en) * 2011-04-11 2012-10-18 パナソニック株式会社 Display processing device
CN105373306A (en) * 2015-10-13 2016-03-02 广州酷狗计算机科技有限公司 Virtual goods presenting method and device
CN105446689A (en) * 2015-12-16 2016-03-30 广州视睿电子科技有限公司 Synchronization method and system of remote commenting
CN105653167A (en) * 2015-12-23 2016-06-08 广州华多网络科技有限公司 Online live broadcast-based information display method and client

Also Published As

Publication number Publication date
CN107765976A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN107765976B (en) Message pushing method, terminal and system
CN106846040B (en) Virtual gift display method and system in live broadcast room
US11962861B2 (en) Live streaming room red packet processing method and apparatus, and medium and electronic device
CN109905754B (en) Virtual gift receiving method and device and storage equipment
US10341716B2 (en) Live interaction system, information sending method, information receiving method and apparatus
CN105808044B (en) Information pushing method and device
KR20200113276A (en) Resource arrangement method, device, terminal and storage medium
CN111408136A (en) Game interaction control method, device and storage medium
WO2020156199A1 (en) Application login method and device, terminal and storage medium
WO2019233307A1 (en) User interface display method and apparatus, and terminal and storage medium
CN106375860B (en) Video playing method, device, terminal and server
CN114007088B (en) Live broadcast information processing method and device and electronic equipment
CN108495169A (en) Information displaying method and device
CN111459586A (en) Remote assistance method, device, storage medium and terminal
CN114390308B (en) Interface display method, device, equipment, medium and product in live broadcast process
CN111131850A (en) Method and device for displaying special effect of virtual gift and electronic equipment
CN111914149A (en) Request processing method and device, storage medium and electronic equipment
CN114286156A (en) Live broadcast interaction method and device, storage medium and computer equipment
CN113242308B (en) Information pushing method, device, equipment and storage medium
CN106330672B (en) Instant messaging method and system
CN109815407B (en) Information resource pushing method, device, equipment and storage medium
CN106648281B (en) Screenshot method and device
CN110109594A (en) A kind of draw data sharing method, device, storage medium and equipment
CN104636055A (en) Display method and device of dynamic information of contacts
CN112732250A (en) Interface processing method, device and storage medium

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