Interactive methods, devices, electronic equipment, computer-readable media
The interactive method in voice communication live streaming platforms enriches the gift exchange experience by visually tracking the gift's trajectory from a dynamic effect object to the target user's interface, addressing the monotony of existing gift interaction methods.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2026-03-16
AI Technical Summary
Existing multi-person voice communication live streaming platforms lack engaging gift interaction methods, leading to a monotonous user experience.
An interactive method that displays a voice communication page with a user interface, receives a gift sending request, and shows a target gift along with a dynamic effect object and trajectory object, where the trajectory object illustrates the gift's movement trajectory from a starting point within the dynamic effect object to the target user's interface.
Enhances user experience by clearly displaying the gift's movement path, allowing users to anticipate its destination, thereby enriching the gift exchange process.
Smart Images

Figure 2026509015000001_ABST
Abstract
Description
Technical Field
[0001] This application claims the priority of Chinese Patent Application No. 202310274165.7 filed on March 17, 2023, and the entire content of the Chinese Patent Application is incorporated herein by reference as part of this application.
[0002] This disclosure relates to an interactive method, apparatus, electronic device, and computer-readable medium.
Background Art
[0003] In related technologies, when displaying a multi-person voice communication live streaming page, viewers of the multi-person voice communication live streaming page can send gifts to one or more voice communicators in the voice communication live streaming page. <好
[0004] ]好 However, there are still some drawbacks in the known gift interaction solution means, which affect the user experience.
Summary of the Invention
Means for Solving the Problems
[0005] To solve the above technical problems, this disclosure provides an interactive method, apparatus, electronic device, and computer-readable medium, which can improve the user experience.
[0006] To achieve the above object, the technical solution provided by this disclosure is as follows.
[0007] This disclosure provides an interactive method, the method comprising: displaying a voice communication page including a user display interface of at least one voice communication user; A step of receiving a gift sending request triggered for a target user among the at least one voice communication user, wherein the gift sending request is used to request the target user to send a target gift. The steps include displaying the target gift, a dynamic effect object corresponding to the target gift, and a trajectory object corresponding to the target gift, wherein the trajectory object is used to display a gift movement trajectory corresponding to the target gift, the starting point of the gift movement trajectory is located within the display area of the dynamic effect object, and the ending point of the gift movement trajectory is determined based on the position of the target user's user display interface.
[0008] In one possible embodiment, the positional representation data of the trajectory starting point is determined based on the display scaling rate of the dynamic effect object, the actual display position coordinates of the dynamic effect object in the page coordinate system corresponding to the audio interaction page, and the preset position coordinates of the trajectory starting point in the object coordinate system corresponding to the dynamic effect object.
[0009] In one possible embodiment, the process for determining the display scaling rate is as follows: The display scaling ratio of the dynamic effect object is determined based on the actual display size of the dynamic effect object on the audio interaction page and the preset size of the dynamic effect object.
[0010] In one possible embodiment, the process for determining the positional representation data of the trajectory starting point is as follows: A step of scaling the preset position coordinates of the trajectory starting point in the object coordinate system according to the display scaling ratio to obtain the scaled position coordinates, wherein the object coordinate system is constructed based on the preset size dynamic effect object. The process includes the step of using the actual display position coordinates of the dynamic effect object in the page coordinate system, performing a coordinate system transformation on the scaled position coordinates, and obtaining position representation data of the trajectory starting point.
[0011] In one possible embodiment, the process of constructing the trajectory object is as follows: The steps include determining the position representation data of the trajectory center point, the trajectory length, and the trajectory inclination angle based on the position representation data of the trajectory starting point and the position representation data of the trajectory ending point, The steps include constructing an initial trajectory representation object based on the position representation data of the trajectory center point and the trajectory length, The steps include: determining the rotation angle corresponding to the initial trajectory representation object using the aforementioned trajectory inclination angle; The steps include: rotating the initial trajectory representation object by the rotation angle to obtain a target trajectory representation object; The process includes the step of generating a trajectory object based on the target trajectory representation object.
[0012] In one possible embodiment, the trajectory inclination angle is determined based on the slope of the line connecting the trajectory start point and the trajectory end point. and / or, The trajectory length is determined based on the distance between the trajectory start point and the trajectory end point.
[0013] In one possible embodiment, the number of target users is N, where N is a positive integer. The step of displaying the target gift, the dynamic effect object corresponding to the target gift, and the trajectory object corresponding to the target gift is: A step of displaying N target gifts, one dynamic effect object, and N trajectory objects, wherein the trajectory start point corresponding to each trajectory object is located at the same position, and the trajectory end point corresponding to each trajectory object is determined based on the position of each target user's user display interface.
[0014] In one possible embodiment, the interactive method is applied to a terminal device, At least one of the dynamic effect object, the trajectory object, or the target gift belongs to animation data, When at least one animation image corresponding to each animation data is stored in a pre-configured memory area of the terminal device, the display process for each animation data is as follows: The process includes reading at least one animation image corresponding to each animation data from the pre-configured storage area and displaying it.
[0015] In one possible embodiment, prior to the step of reading and displaying at least one frame of animation image corresponding to each animation data from the pre-configured storage area, the method: A step of obtaining an animation example corresponding to each of the aforementioned animation data, The steps include performing frame animation decoding on each animation example to obtain at least one animation image corresponding to each animation data, The further step includes storing at least one animation image corresponding to each animation data in the pre-configured storage area.
[0016] In one possible embodiment, the trajectory object is a trajectory animation tiled from the trajectory start point to the trajectory end point, and / or, The display area of the aforementioned dynamic effect object is the central area at the bottom of the audio interaction page.
[0017] This disclosure provides an interactive device, A first display unit for displaying a voice interaction page that includes a user display interface for at least one voice interaction user, A request receiving unit that receives a gift sending request triggered for a target user among the at least one voice communication user, wherein the gift sending request is used to request the target user to send a target gift, A second display unit for displaying the target gift, a dynamic effect object corresponding to the target gift, and a trajectory object corresponding to the target gift, wherein the trajectory object is used to display a gift movement trajectory corresponding to the target gift, the starting point of the gift movement trajectory is located within the display area of the dynamic effect object, and the ending point of the gift movement trajectory is determined based on the position of the target user's user display interface.
[0018] This disclosure provides an electronic device comprising a processor and memory, The memory is used to store instructions or computer programs. The processor is used to execute the instructions or computer programs in the memory and to cause the electronic device to perform the interactive methods provided by this disclosure.
[0019] This disclosure provides a computer-readable medium on which instructions or computer programs are stored, and which causes a device to perform an interactive method provided by this disclosure when the instructions or computer programs are executed on the device.
[0020] This disclosure provides a computer program product which includes a computer program carried on a non-temporary computer-readable medium, and which includes program code for performing the interactive methods provided by this disclosure.
[0021] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the following is a brief introduction to the drawings that will be used to describe the embodiments. However, obviously, the drawings described below are only a few of the embodiments described in this disclosure, and those skilled in the art can obtain other drawings based on these without requiring any creative effort. [Brief explanation of the drawing]
[0022] [Figure 1] This is a flowchart of an interactive method according to an embodiment of the present disclosure. [Figure 2] This is a schematic diagram of the voice communication page according to an embodiment of the present disclosure. [Figure 3] This is a schematic diagram of another voice communication page relating to an embodiment of the present disclosure. [Figure 4] This is a schematic diagram of the page coordinate system according to an embodiment of the present disclosure. [Figure 5] This is a schematic diagram of the object coordinate system according to an embodiment of the present disclosure. [Figure 6] This is a schematic diagram of another voice communication page relating to an embodiment of the present disclosure. [Figure 7] This is a schematic diagram of the structure of an interactive device according to an embodiment of the present disclosure. [Figure 8] This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. [Modes for carrying out the invention]
[0023] Research has shown that, for audio interaction live streaming pages, viewers of the page can send gifts to one or more audio interactors displayed on the page. However, in some related technical solutions, the related gift sending display method is usually displayed using a few characters (for example, the string "User A sends one rose to User B"), and the display method is monotonous, affecting the user experience.
[0024] Based on the above findings, in order to solve the technical problems described in the background section, an embodiment of the present disclosure provides an interactive method, which, in the case of a client having voice interaction display functionality, displays a voice interaction page on the client and the voice interaction page includes the user display interface of at least one voice interaction user, and after receiving a gift send request triggered on a target user among these voice interaction users to request that the target user send a target gift, displays the target gift, a dynamic effect object corresponding to the target gift (e.g., an MP4 animation), and a trajectory object corresponding to the target gift. The trajectory object is used to display the gift movement trajectory corresponding to the target gift, so that the voice interaction page can display the target gift gradually moving along the trajectory object to the target user's user display interface, thereby enriching the gift exchange and improving the user experience.
[0025] Therefore, since the above-mentioned trajectory object is used to describe the gift movement trajectory corresponding to the target gift, the trajectory object can not only clearly display the start and end points of the trajectory related to the gift movement trajectory, but can also clearly display the actual movement path of the target gift on the audio interaction page.
[0026] Furthermore, since the display time of the trajectory object is the same as or earlier than the start time of the target gift's movement, the trajectory object can display the actual movement path of the target gift to the user in advance. This allows the user to know in advance which trajectory the target gift will follow to reach its final destination, which is advantageous for improving the user experience.
[0027] Furthermore, the embodiments of this disclosure do not limit the entity that performs the interactive method described above. For example, the interactive method according to the embodiments of this disclosure may be performed by an electronic device. Such electronic device includes, but is not limited to, smartphones, tablet computers, laptop computers, personal digital assistants (PDAs), etc.
[0028] Furthermore, the embodiments of this disclosure do not limit the application scenarios of the interactive method described above. For example, the interactive method according to the embodiments of this disclosure can be applied to any multi-person voice interaction live streaming scenario.
[0029] To enable those skilled in the art to better understand the solutions of the disclosure, the technical solutions in the embodiments of the disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the disclosure, but as will be apparent, the embodiments described are only a selection of the embodiments of the disclosure, not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the disclosure, without requiring any creative effort, will also fall within the scope of the disclosure.
[0030] To better understand the technical solutions provided by this disclosure, the interactive methods provided by this disclosure will be described below with reference to several drawings. As shown in Figure 1, the interactive method according to an embodiment of this disclosure includes the following steps S1 to S3. Figure 1 is a flowchart of the interactive method according to an embodiment of this disclosure.
[0031] S1: Display a voice interaction page that includes the user display interface for at least one voice interaction user.
[0032] The audio interaction page is used to display an interactive process involving at least two people, and the embodiments of this disclosure are not limited to the audio interaction page, but may also be, for example, an audio interaction live streaming page in any multi-person audio interaction live streaming scene (e.g., a multi-person audio interaction audio scene, a multi-person audio interaction video scene, etc.).
[0033] Furthermore, the above voice communication page displays the user display interface of at least one voice communication user. The user display interface of the m-th voice communication user is used to display the voice communication status of that m-th voice communication user. m is a positive integer, m ≤ M, and M is a positive integer, where M represents the number of "at least one voice communication user".
[0034] As needs to be explained, embodiments of the present disclosure do not limit the "at least one audio interaction user" described above. For example, if the audio interaction page is an audio interaction live streaming page in a live streaming room (e.g., the audio interaction page shown in Figure 2), then the "at least one audio interaction user" may include the live streamer in the live streaming room and all online guests in the live streaming room (e.g., guests 1 to 8 shown in Figure 2). The online guests refer to viewers who successfully engage in audio interaction with the live streamer.
[0035] Furthermore, as needs to be explained, the above voice communication state includes, but is not limited to, at least one of the voice communication voice state and the voice communication display state. The voice communication voice state of the m-th voice communication user includes the voice state of the m-th voice communication user during the voice communication (e.g., whether or not the voice is turned on). The voice communication display state of the m-th voice communication user includes the video state of the m-th voice communication user during the voice communication (e.g., whether or not a video screen is displayed, the display effects of the video screen, the content displayed on the video screen, etc.).
[0036] Furthermore, the embodiments of this disclosure are not limited to the "user display interface of the m-th voice interaction user" described above, and for the sake of ease of understanding, two examples will be used below for explanation.
[0037] Example 1. In some application scenarios (for example, multi-person voice communication scenarios), the "user display interface for the m-th voice communication user" may display a user identification image of the m-th voice communication user. This user identification image is used to identify the m-th voice communication user.
[0038] Example 2. In some application scenarios (for example, multi-person voice communication video scenes), the "user display interface for the mth voice communication user" may display at least the video screen of the mth voice communication user.
[0039] As is clear from the related content of S1 above, in the case of an electronic device with a live streaming display function, in several multi-person audio interaction live streaming scenes (e.g., multi-person audio interaction scenes, multi-person video interaction scenes, etc.), the electronic device is used to display an audio interaction page, and the user display interfaces of multiple audio interaction users may be displayed on the audio interaction page, thereby allowing the user of the electronic device to view the audio interaction status of each audio interaction user from the audio interaction page.
[0040] S2: Receives a gift sending request triggered for a target user among at least one voice interaction user, and the gift sending request is used to request that the target user send the target gift.
[0041] A target user refers to a voice interaction user selected by the sender of a target gift from the "at least one voice interaction user" to receive the target gift. For example, if the "at least one voice interaction user" includes the live streamer and guests 1 to 8 shown in Figure 2, the target user may be the live streamer.
[0042] Furthermore, the embodiments of this disclosure do not limit the number of target users; for example, it may be N, where N is a positive integer.
[0043] Furthermore, the embodiments of this disclosure do not limit the "sender of the target gift" to any other viewer of the audio interaction page, for example, any viewer other than the target user. Therefore, if the "at least one audio interaction user" includes the live streamer and guests 1 to 8 shown in Figure 2, and the target user is the live streamer shown in Figure 2, the "sender of the target gift" may be any of the guests 1 to 8 shown in Figure 2, or any general viewer who is viewing the audio interaction page shown in Figure 2. A general viewer refers to a viewer who is viewing the audio interaction page but does not have an audio interaction relationship with the live streamer.
[0044] Furthermore, the embodiments of this disclosure are not limited to the "target gift" described above, and may include, for example, gifts that can be transmitted and displayed by dynamic effect objects (e.g., the MP4 animation shown in Figure 3) and trajectory objects (e.g., the tile trajectory shown in Figure 3) as shown below (e.g., the gift shown in Figure 3). As needs to be explained, please refer to the relevant content of S3 below for details regarding the "dynamic effect objects" and "trajectory objects".
[0045] The “gift sending request” described above is used to request one or more target users to send a target gift, and the embodiments of the present disclosure do not limit the triggering method of the “gift sending request,” and may be implemented, for example, by any known or future method that can trigger a gift sending request.
[0046] S3: A target gift, a dynamic effect object corresponding to the target gift, and a trajectory object corresponding to the target gift are displayed, the trajectory object is used to display the gift movement trajectory corresponding to the target gift, the starting point of the gift movement trajectory is located within the display area of the dynamic effect object, and the ending point of the gift movement trajectory is determined based on the position of the target user's user display interface.
[0047] A dynamic effect object refers to an object that has a transmission function and needs to be displayed dynamically, thereby enabling the dynamic effect object to dynamically display a transmission base related to a target gift (for example, a gun barrel with a radiation emission function).
[0048] Furthermore, this disclosure is not limited to the above-mentioned dynamic effect objects, and may also include, for example, the Moving Picture Experts Group 4 (MP4) animation shown in Figure 3.
[0049] Furthermore, the dynamic effect object may be displayed within a target area of the audio interaction page, and this disclosure does not limit the target area to, for example, the central area at the bottom of the audio interaction page (e.g., the area where the MP4 animation shown in Figure 2 is located). Thus, in one possible embodiment, the display area of the dynamic effect object is the central area at the bottom of the audio interaction page. The “display area of the dynamic effect object” refers to the area occupied when the dynamic effect object is displayed on the audio interaction page.
[0050] The trajectory object is used to describe the gift movement trajectory corresponding to the target gift, thereby clearly indicating which trajectory the object (e.g., cake, radiation, etc.) transmitted from the dynamic effect object will travel along to the target user.
[0051] Furthermore, this disclosure does not limit the trajectory objects described above. For example, it may specifically be a trajectory animation tiled from the starting point of the gift movement trajectory to the ending point of the gift movement trajectory (for example, an animation that performs tile dynamic display on the tiled trajectory shown in Figure 3). As needs to be explained, this disclosure does not limit the embodiments of the trajectory animation. For example, it may be implemented in a memo trace manner, thereby allowing the trajectory animation to dynamically display the gradual process of the gift movement trajectory on the audio interaction page. As another example, it may be implemented in a color change manner, thereby allowing the trajectory animation to dynamically display the color change process of all gift movement trajectories directly displayed on the audio interaction page.
[0052] Furthermore, the trajectory object is determined based on the trajectory start point (e.g., the trajectory start point shown in Figure 3) and trajectory end point (e.g., the trajectory end point shown in Figure 3) of the gift movement trajectory, and the trajectory start point is located within the "display area of the dynamic effect object" and the trajectory end point is determined based on the position of the target user's user display interface. Therefore, the trajectory object can accurately represent the tile trajectory between the "display area of the dynamic effect object" and the target user's user display interface.
[0053] As needs to be explained, this disclosure does not limit the embodiments of the trajectory endpoints. For example, in one possible embodiment, the trajectory endpoint may be located within the user display interface of the target user in order to better improve the display effect of the trajectory object, thereby effectively avoiding interference between the dynamic effects of the trajectory, which is advantageous for improving the display effect of the trajectory object.
[0054] Furthermore, this disclosure does not limit the process for determining the above-mentioned trajectory object, and may include, for example, the following steps 11 to 15.
[0055] Step 11: Based on the position representation data of the trajectory start point and the trajectory end point, determine the position representation data of the trajectory center point, the trajectory length, and the trajectory inclination angle.
[0056] The above-mentioned "location representation data for the starting point of the trajectory" is used to represent the location of the starting point of the trajectory on the audio communication page.
[0057] Furthermore, this disclosure does not limit the process for determining the "location representation data of the trajectory starting point" described above; for example, it can be set in advance.
[0058] In reality, since different terminal devices have different screen sizes, the size of the audio interaction page displayed on different terminal devices will also differ. Therefore, in order to better improve the gift display effect, the actual display size of the dynamic effect object on the audio interaction page is adaptively adjusted according to the size of the audio interaction page. As a result, the size of the area occupied by the dynamic effect object on the audio interaction page is also adaptively adjusted according to the size of the audio interaction page, and consequently, the actual position of the trajectory starting point located within that area on the audio interaction page may change.
[0059] As is clear from the above paragraph, in order to further improve the user experience, this disclosure further provides a process for determining the "location representation data of the trajectory starting point," specifically determining the location representation data of the trajectory starting point based on the display scaling rate of the dynamic effect object, the actual display position coordinates of the dynamic effect object in the page coordinate system corresponding to the audio interaction page, and the preset position coordinates of the trajectory starting point in the object coordinate system corresponding to the dynamic effect object. For ease of understanding, this will be explained in detail below by steps 21 to 24.
[0060] As an example, the process for determining the "location representation data of the starting point of the trajectory" may include the following steps 21 to 24.
[0061] Step 21: Obtain the preset size of the dynamic effect object, the actual display size of the dynamic effect object on the audio interaction page, and the actual display position coordinates of the dynamic effect object in the page coordinate system, the page coordinate system being constructed based on the first preset position within the audio interaction page.
[0062] The preset size of a dynamic effect object refers to the size that is pre-set for that dynamic effect object. For example, the "preset size of the dynamic effect object" is W d and H d It may include the W. d This represents the width pre-set for the dynamic effect object, and the H d This represents the height that is pre-set for the dynamic effect object.
[0063] The above-mentioned "actual display size of the dynamic effect object on the audio interaction page" refers to the size of the dynamic effect object when it is displayed on the audio interaction page. For example, the "actual display size of the dynamic effect object on the audio interaction page" is W a and H amay also include the W a represents the width of the dynamic effect object when displaying the dynamic effect object on the voice communication page, and the H a represents the height of the dynamic effect object when displaying the dynamic effect object on the voice communication page.
[0064] The above "page coordinate system" refers to a coordinate system constructed for the voice communication page (for example, the coordinate system shown in FIG. 4). Accordingly, the page coordinate system can represent the coordinates of any point within the voice communication page, and since the page coordinate system is constructed based on a first preset position (for example, point 1 shown in FIG. 4) within the voice communication page, each coordinate of the page coordinate system is determined with the first preset position as the origin. The first preset position can be set in advance. For example, specifically, it can be the upper left corner of the voice communication page.
[0065] The above "actual display position coordinates of the dynamic effect object in the page coordinate system" are used to represent the relative position between the dynamic effect object and the voice communication page, and the present disclosure does not limit the embodiments of the "actual display position coordinates of the dynamic effect object in the page coordinate system". For example, it may be implemented with the actual display position coordinates of the upper left corner (for example, point 2 shown in FIG. 4) of the dynamic effect object in the page coordinate system. Thus, in one possible embodiment, the "actual display position coordinates of the dynamic effect object in the page coordinate system" are M x and M y may also include. The M x represents the X-axis value of the upper left corner of the dynamic effect object in the page coordinate system, and the M y represents the Y-axis value of the upper left corner of the dynamic effect object in the page coordinate system.
[0066] Step 22: Determine the display scaling ratio of the dynamic effect object based on the actual display size of the dynamic effect object on the audio interaction page and the preset size of the dynamic effect object.
[0067] The display scaling ratio refers to the scaling ratio used when displaying dynamic effect objects on an audio interaction page, thereby representing the relative size between the dynamic effect objects displayed on the audio interaction page and the preset dynamic effect objects.
[0068] Furthermore, this disclosure does not limit the embodiments of the display scaling ratio described above, and may include, for example, width scaling ratios and height scaling ratios. For example, the “preset size of the dynamic effect object” may be W d and H d This includes and the "actual display size of the dynamic effect object on the audio interaction page" is W a and H a If it includes, the width scaling factor = W a / W d Therefore, the height scaling ratio = H a / H d This is the result.
[0069] Furthermore, this disclosure does not limit the process for determining the display scaling rate, and may determine the display scaling rate based, for example, on the ratio between the actual display size of a dynamic effect object on an audio interaction page and the preset size of the dynamic effect object.
[0070] Step 23: According to the above display scaling rate, the preset position coordinates of the trajectory starting point in the object coordinate system are scaled to obtain the scaled position coordinates, and the object coordinate system is constructed based on a second preset position within a dynamic effect object of a preset size.
[0071] An object coordinate system refers to a coordinate system constructed based on a preset dynamic effect object (for example, the coordinate system shown in Figure 5), which can represent the coordinates of any point within the area where the dynamic effect object is located, and which is constructed based on a second preset position within a preset-sized dynamic effect object (i.e., the object coordinate system is constructed based on a second preset position within a preset dynamic effect object), so that each coordinate in the object coordinate system is determined with the second preset position as the origin. The second preset position can be set in advance and may, for example, specifically, be the upper-left corner of the preset dynamic effect object (for example, point 3 shown in Figure 5).
[0072] The above "preset position coordinates of the trajectory start point in the object coordinate system" is used to represent the relative position between the preset trajectory start point and the preset dynamic effect object (for example, the relative position between the trajectory start point and the upper left corner of the preset dynamic effect object). For example, the "preset position coordinates of the trajectory start point in the object coordinate system" is G x and G y It may include the G x This represents the X-axis of the starting point of the trajectory in the object coordinate system, and the G y This represents the Y-axis value of the starting point of the trajectory in the object coordinate system.
[0073] The above-mentioned "scaled position coordinates" refers to the scaling result of the above-mentioned "preset position coordinates of the trajectory starting point in the object coordinate system," and thereby the scaled position coordinates can represent the relative position between the trajectory starting point and the dynamic effect object displayed on the audio interaction page (for example, the relative position between the trajectory starting point and the upper left corner of the dynamic effect object displayed on the audio interaction page). For example, the "scaled position coordinates" is F x and Fy Includes the F x =G x × (W a / W d ) and therefore, the F x This represents the horizontal relative position between the starting point of the trajectory and the upper left corner of the dynamic effect object displayed on the audio interaction page, and the F y =G y ×(H a / H d ) and therefore, the F y This represents the vertical relative position between the starting point of the trajectory and the upper left corner of the dynamic effect object displayed on the audio interaction page.
[0074] Step 24: Using the actual display position coordinates mentioned above, a coordinate system transformation process is performed on the scaled position coordinates (see equations (1) and (2) below) to obtain position representation data for the trajectory starting point. This position representation data is then used to represent the position coordinates of the trajectory starting point in the page coordinate system.
number
[0075] In the formula, (S x ,S y ) represents the positional data of the trajectory starting point, S x This represents the X-axis value of the starting point of the trajectory in the page coordinate system, and S y This represents the Y-axis value of the starting point of the trajectory in the page coordinate system, and (M x M y ) represents the "actual display position coordinates of the dynamic effect object in the page coordinate system" (for example, the actual display position coordinates of the upper left corner of the dynamic effect object in the page coordinate system), M x This represents the X-axis value of the upper left corner of the dynamic effect object in the page coordinate system, and M y This represents the Y-axis value of the upper left corner of the dynamic effect object in the page coordinate system, and G x This represents the X-axis of the starting point of the trajectory in the object coordinate system described above, and G yThis represents the Y-axis value of the starting point of the trajectory in the object coordinate system, and W d This represents the width pre-set for the dynamic effect object, H d This represents the height pre-set for the dynamic effect object, and W a H represents the width of the dynamic effect object when it is displayed on the audio interaction page. a This represents the height of the dynamic effect object when it is displayed on the audio interaction page.
[0076] As is clear from the related content of steps 21 to 24 above, in some application scenarios, a coordinate system transformation process is performed on the preset position coordinates of the trajectory starting point in the object coordinate system based on the preset size of the dynamic effect object, the actual display size that the dynamic effect object presents on the audio interaction page, the actual display position coordinates of the upper left corner of the dynamic effect object in the page coordinate system, and equations (1) and (2) above, to obtain position representation data of the trajectory starting point. This position representation data can represent the position coordinates of the trajectory starting point in the page coordinate system. This makes it possible to convert the position coordinates of the trajectory starting point presented by the preset dynamic effect object to the position coordinates of the trajectory starting point displayed on the audio interaction page. This makes it possible to achieve the objective of determining the actual position coordinates of the trajectory starting point in the page coordinate system based on the actual size information of the audio interaction page. This effectively overcomes the effects of mismatches in screen size of the display device on the audio interaction page, which is advantageous for improving the trajectory display effect.
[0077] The above-mentioned "location representation data for the endpoint of the trajectory" is used to represent the location of the endpoint of the trajectory on the voice interaction page, and this disclosure does not limit the "location representation data for the endpoint of the trajectory" to any location within the target user's user display interface (e.g., the center position).
[0078] The above-mentioned "location representation data of the trajectory center point" is used to represent the location of the center point of the gift movement trajectory corresponding to the target gift on the voice interaction page, and the "location representation data of the trajectory center point" may be determined based on the above-mentioned location representation data of the trajectory start point and the above-mentioned location representation data of the trajectory end point (see equations (3) and (4) below).
number
[0079] In the formula, (C x ,C y ) represents the "location representation data of the trajectory center point" mentioned above, and (S x ,S y ) represents the positional data of the trajectory starting point, S x This represents the X-axis value of the starting point of the trajectory in the page coordinate system, and S y This represents the Y-axis value of the starting point of the trajectory in the page coordinate system, and (E x ,E y ) represents the positional data of the trajectory endpoint, E x This represents the X-axis value of the endpoint of the trajectory in the page coordinate system, and E y This represents the Y-axis value of the endpoint of the trajectory in the page coordinate system.
[0080] The above-mentioned “trajectory length” is used to represent the length of the gift movement trajectory corresponding to the target gift, and the trajectory length may be determined based on the distance between the trajectory start point and the trajectory end point. As should be noted, this disclosure does not limit the method of calculating the distance and can be carried out by any known or future method capable of calculating, for example, the distance between two coordinate points.
[0081] The above-mentioned “trajectory inclination angle” is used to represent the inclination angle of the gift movement trajectory corresponding to the target gift with respect to the X-axis in the above-mentioned page coordinate system, and the trajectory inclination angle may be determined based on the slope of the line connecting the trajectory start point and the trajectory end point. As it needs to be explained, this disclosure does not limit the method of calculating the slope and can be carried out by any known or future method that can calculate the inclination angle of a straight line, for example.
[0082] Step 12: Construct an initial trajectory representation object based on the position representation data of the trajectory center point and the trajectory length.
[0083] The initial trajectory representation object refers to the trajectory perpendicular to the X-axis in the page coordinate system described above (i.e., the vertical trajectory shown in Figure 6).
[0084] Furthermore, this disclosure does not limit the process of constructing the initial trajectory representation object described above, and may include, for example, the following steps 121 to 122.
[0085] Step 121: Based on the position representation data of the trajectory center point, the trajectory length, and the preset trajectory width, the position representation data of the trajectory construction reference point is determined (see equations (5) and (6) below), so that the position representation data of the trajectory construction reference point can represent the position of the upper left corner of the initial trajectory representation object on the voice interaction page.
number
[0086] In the formula, (L x ,L y ) represents the positional representation data of the trajectory construction reference point (for example, the position of the upper left corner of the vertical trajectory shown in Figure 6 on the audio exchange page), and (C x ,C y ) represents the "location representation data of the trajectory center point" mentioned above, and (S x ,S y ) represents the positional data of the trajectory starting point, S xThis represents the X-axis value of the starting point of the trajectory in the page coordinate system, and S y This represents the Y-axis value of the starting point of the trajectory in the page coordinate system, and (E x ,E y ) represents the positional data of the trajectory endpoint, E x This represents the X-axis value of the endpoint of the trajectory in the page coordinate system, and E y This represents the Y-axis value of the endpoint of the trajectory in the page coordinate system, and W t This represents the preset trajectory width, H t This represents the trajectory length. As needs to be explained, the preset trajectory width can be set in advance depending on the application scenario.
[0087] Step 122: Based on the positional representation data of the trajectory construction reference point, the trajectory length, and the preset trajectory width, an initial trajectory representation object is constructed so that the upper left corner of the initial trajectory representation object is located at the trajectory construction reference point (i.e., the positional representation data of the upper left corner of the initial trajectory representation object corresponds to the positional representation data of the trajectory construction reference point), the height of the initial trajectory representation object is equal to the trajectory length, and the width of the initial trajectory representation object is equal to the preset trajectory width, thereby obtaining a rectangular initial trajectory representation object, which can represent some features (e.g., size, center position, etc.) of the gift movement trajectory corresponding to the target gift.
[0088] Step 13: Using the angle transformation formula corresponding to the trajectory inclination angle and preset rotation direction, determine the rotation angle corresponding to the initial trajectory representation object.
[0089] The preset rotation direction refers to the direction in which the initial trajectory representation object is rotated, and this disclosure does not limit the preset rotation direction, which may be, for example, the clockwise direction shown in Figure 6.
[0090] The above-mentioned “angle conversion formula corresponding to a preset rotation direction” is used to convert one tilt angle in the page coordinate system to one rotation angle, and this “angle conversion formula corresponding to a preset rotation direction” can be set in advance, and may be, for example, a formula that can convert one tilt angle to one rotation angle, as shown in equation (7) below.
[0091] The "rotation angle corresponding to the initial trajectory representation object" refers to the rotation angle that depends on when the initial trajectory representation object is rotated, and this "rotation angle corresponding to the initial trajectory representation object" can be determined by the following equation (7).
number
[0092] In the formula, rotation represents the rotation angle corresponding to the initial trajectory representation object, (S x ,S y ) represents the positional data of the trajectory starting point, S x This represents the X-axis value of the starting point of the trajectory in the page coordinate system, and S y This represents the Y-axis value of the starting point of the trajectory in the page coordinate system, and (E x ,E y ) represents the positional data of the trajectory endpoint, E x This represents the X-axis value of the endpoint of the trajectory in the page coordinate system, and E y represents the Y-axis value of the endpoint of the trajectory in the page coordinate system, and mod represents the modulo operation.
[0093] As needs to be explained, this disclosure does not limit the execution time of step 13, and for example, the execution time of step 13 may be later than the time of acquiring the "trajectory inclination angle".
[0094] Step 14: Rotate the initial trajectory representation object by the specified rotation angle according to the preset rotation direction to obtain the target trajectory representation object.
[0095] In this disclosure, after obtaining the initial trajectory representation object (e.g., the vertical trajectory shown in Figure 6) and the rotation angle corresponding to the initial trajectory representation object in a preset rotation direction (e.g., the clockwise direction shown in Figure 6), the initial trajectory representation object is rotated along the preset rotation direction by the rotation angle (e.g., the rotation angle shown in Figure 6) to obtain a target trajectory representation object (e.g., the tiled trajectory shown in Figure 6), thereby enabling the target trajectory representation object to represent a trajectory tiled from the trajectory start point to the trajectory end point.
[0096] Step 15: Generate a trajectory object based on the target trajectory representation object described above.
[0097] As needs to be explained, this disclosure does not limit the embodiments of step 15, and for example, the target trajectory representation object may be directly determined as a trajectory object. In another example, in some application scenes, in order to better improve the trajectory display effect, step 15 may, specifically, after obtaining the target trajectory representation object, perform an animation compositing process on the target trajectory representation object according to a preset animation effect to obtain a trajectory object corresponding to the target trajectory representation object, thereby the trajectory object can represent the dynamic display effect that the target trajectory representation object exhibits when displayed according to the preset animation effect. The preset animation effect can be set in advance depending on the application scene.
[0098] As is clear from the related content of steps 11 to 15 above, for a target gift, after determining the trajectory start point and trajectory end point corresponding to the target gift (for example, the trajectory start point and trajectory end point shown in Figure 6), a trajectory object can be constructed based on the positional representation data of the trajectory start point and the positional representation data of the trajectory end point. This trajectory object can represent a trajectory animation tiled from the trajectory start point to the trajectory end point, thereby allowing the trajectory object to more clearly and vividly represent the movement trajectory of the target gift on the audio interaction page.
[0099] As needs to be explained, this disclosure does not limit the display order between the “Target Gift,” “Dynamic Effect Object,” and “Trajectory Object” in S3 above. For example, the display time of the Trajectory Object may be the same as or earlier than the start time of the Target Gift’s movement, and the display time of the Dynamic Effect Object may be the same as or earlier than the time of the Target Gift’s occurrence.
[0100] As is clear from the related content of S1 to S3 above, the interactive method according to the embodiment of the present disclosure, when the client displays a voice interaction page and the voice interaction page includes the user display interface of at least one voice interaction user, receives a gift sending request triggered on a target user among these voice interaction users to request that the target user send a target gift, and then displays the target gift, a dynamic effect object corresponding to the target gift (e.g., an MP4 animation), and a trajectory object corresponding to the target gift. The trajectory object is used to display the gift movement trajectory corresponding to the target gift, so that the voice interaction page can display the target gift gradually moving along the trajectory object to the target user's user display interface, thereby enriching the gift exchange and improving the user experience.
[0101] Therefore, since the trajectory object is used to describe the gift movement trajectory corresponding to the target gift, the trajectory object can not only clearly display the start and end points of the trajectory, but also clearly display the actual movement path of the target gift on the audio interaction page. Furthermore, since the display time of the trajectory object is the same as or earlier than the start time of the target gift's movement, the trajectory object can display the actual movement path of the target gift to the user in advance, thereby allowing the user to know in advance which trajectory the target gift will follow to reach its destination, which is advantageous for improving the user experience.
[0102] In fact, in some application scenarios, it may be necessary to send the same gift to multiple voice interaction users simultaneously, and in order to better improve the effectiveness of gift sending (in particular, to improve the efficiency of gift sending display), this disclosure further provides one possible embodiment of the above interactive method, which may specifically include steps 31 to 33 below.
[0103] Step 31: Display the voice interaction page, which includes the user display interface for at least one voice interaction user.
[0104] As needs to be explained, please refer to the relevant content of S1 above for details regarding Step 31.
[0105] Step 32: Receive triggered gift sending requests for N target users among at least one voice interaction user, where N is a positive integer.
[0106] As the relevant content of Step 32 is similar to that of Step S2 above, for the sake of brevity, a detailed explanation will be omitted here.
[0107] Step 33: Display N target gifts, one dynamic effect object displayed in relation to each target gift, and N trajectory objects corresponding to each target gift, with the trajectory start point for each trajectory object being located at the same position, and the trajectory end point for each trajectory object being determined based on the position of each target user's user display interface.
[0108] The nth target gift refers to the gift sent to the nth target user.
[0109] The nth trajectory object is used to describe the gift movement trajectory corresponding to the nth target gift, and the trajectory start point for the nth trajectory object is located within the "display area of the dynamic effect object", and the trajectory end point for the nth trajectory object is determined based on the position of the user display interface of the nth target user (for example, the trajectory end point for the nth trajectory object is located within the user display interface of the nth target user), thereby allowing the nth target gift to be displayed within the user display interface of the nth target user after the display process for the nth trajectory object is completed, thereby dynamically representing that the recipient of the nth target gift is the nth target user. n is a positive integer, n ≤ N, and N is a positive integer.
[0110] In fact, after receiving gift sending requests triggered for N target users, it can be determined that one target gift needs to be sent to each target user. Since each target gift corresponds to the same dynamic effect object, in order to save page display resources, only one dynamic effect object (e.g., the MP4 animation shown in Figure 2) can be displayed on the audio interaction page, and then this dynamic effect object can send the target gifts that each target user needs to receive. In this way, the objective of having multiple gift sending processes share the same dynamic effect object can be achieved, thereby effectively avoiding wasted resources due to repeatedly loading the dynamic effect object, and furthermore, advantageously, the gift sending display effect can be improved.
[0111] Furthermore, to effectively reduce gift sending time, after displaying one dynamic effect object on the voice interaction page, trajectory objects corresponding to all target gifts (e.g., all tile trajectory animations shown in Figure 2) can be displayed simultaneously on the same voice interaction page. This ensures that the trajectory starting points for all of these trajectory objects are located at the same position within the dynamic effect object (e.g., the gift sending point shown in Figure 2), thus representing that all of these target gifts begin moving from the same position.
[0112] Furthermore, in order to effectively reduce the gift sending time, all target gifts can be displayed simultaneously on the voice interaction page, so that these target gifts can start moving simultaneously along their corresponding trajectory objects, thereby improving gift sending efficiency and display effectiveness.
[0113] As is clear from the related content of steps 31 to 33 above, when choosing to send target gifts to multiple target users, the display process for sending these target gifts can be displayed simultaneously on the voice interaction page, thus improving gift sending efficiency and display effect. Furthermore, these target gifts share the same dynamic effect object on the voice interaction page, thus effectively avoiding wasted resources due to repeatedly loading the dynamic effect object, and even more advantageously, improving the gift sending display effect.
[0114] In fact, to further improve the user experience, the dynamic effect object, the nth trajectory object, and the nth target gift may all be implemented using animation data, which is advantageous for improving the user's visual experience.
[0115] However, since the simultaneous playback of numerous animations can cause delays and affect the user experience, in order to further improve the user experience, this disclosure further provides one possible embodiment of the display process for the arbitrary animation data (e.g., the dynamic effect object, the nth trajectory object, or the nth target gift) in which, if the interactive method is applied to any terminal device, and if at least one frame of animation corresponding to the animation data is stored in a pre-configured memory area of the terminal device, the display process for the animation data specifically involves reading at least one frame of animation corresponding to the animation data from the pre-configured memory area and displaying it, thereby effectively avoiding resource strain caused by the step of converting an animation example corresponding to the animation data into at least one frame of animation corresponding to the animation data, thereby effectively reducing resource strain on the terminal device, and further effectively avoiding the occurrence of delays, which is advantageous for improving the gift transmission display effect.
[0116] A pre-configured memory area refers to a unit present in a terminal device that has a data storage function, and this disclosure does not limit the pre-configured memory area, which can be implemented, for example, by a cache.
[0117] Furthermore, this disclosure does not limit the storage process of the above-mentioned "animated image of at least one frame corresponding to the animation data," and may include, for example, the following steps 41 to 43.
[0118] Step 41: Obtain an animation example corresponding to the target animation data.
[0119] The target animation data refers to the animation data that needs to be processed, and the target animation data can be used to represent any of the above animation data. For example, the target animation data may be the above dynamic effect object, the nth trajectory object, or the nth gift expression object, etc.
[0120] The animation examples corresponding to the target animation data are used to explain the specific content of the target animation data, and this disclosure does not limit the animation examples.
[0121] Step 42: Perform frame animation decoding on the animation example corresponding to the target animation data to obtain at least one animation image corresponding to the target animation data.
[0122] The frame animation decoding process is used to decode a single animation example into a multi-frame bitmap, and this disclosure is not limited to such frame animation decoding process.
[0123] The above-mentioned "at least one animated image frame corresponding to the target animation data" is used to describe the image data included in the target animation data.
[0124] Step 43: Store at least one animation image corresponding to the target animation data in a pre-configured memory area.
[0125] In this disclosure, after acquiring at least one animation image corresponding to the target animation data, the animation image can be directly stored in a pre-configured memory area, and these animation images can then be directly read from the pre-configured memory area. This effectively avoids resource strain caused by repeatedly loading and decoding the same animation data in a short period of time, which is advantageous in improving the transmission display effect that can be achieved by sending multiple gifts simultaneously.
[0126] As is clear from the related content of steps 41 to 43 above, in some application scenarios (for example, when sending the same gift to multiple voice exchange participants simultaneously), the gift sending display process for simultaneously sending the same gift to multiple voice exchange participants is completed by first storing some animation data in the memory area of the terminal device, and then reusing the already stored animation data multiple times. This effectively avoids the occurrence of delay phenomena and thereby effectively improves the gift sending display effect.
[0127] Furthermore, to better understand the related content of steps 41 to 43 above, we will explain it with an example scene below.
[0128] As an example, when the interaction method provided in this disclosure is applied to a terminal device, the process by which the terminal device enables simultaneous playback of multiple animation data using a known framework includes the technical details shown in (1) to (6) below.
[0129] (1) Create a private cache object on the terminal device, specify the cache size and cache strategy, and establish a mapping relationship between various animation data and the private cache object.
[0130] (2) When the same animation data is played back multiple times, the cache keyword is kept constant in order to ensure that the cache keyword corresponding to the animation image of the same frame is the same.
[0131] (3) The cache object is inserted into the animation example, and the frame bitmap is stored in the custom cache during the frame animation decoding process for the animation example.
[0132] (4) When the above animation data is played back again, the frame bitmap cache is reused without decryption, thereby effectively reducing resource consumption.
[0133] (5) Pre-decryption of animation data is performed before the first playback to reduce the delay during the first playback of the animation.
[0134] (6) After the gift has been fully displayed, the cache is cleared to release the memory occupied by the cache and reduce the strain on the terminal device's resources.
[0135] As is clear from the related content of (1) to (6) above, in one possible embodiment, when sending the same gift to multiple voice exchangers simultaneously, all animation data related to the gift sending display can be played back using a known framework, thereby achieving the objective of reducing resource consumption.
[0136] Based on the interactive method according to the embodiments of this disclosure, the embodiments of this disclosure further provide an interactive device, which will be interpreted and described below with reference to Figure 7. Figure 7 is a schematic diagram of the structure of the interactive device according to the embodiments of this disclosure. For technical details of the interactive device according to the embodiments of this disclosure, as needs to be explained, please refer to the relevant content of the interactive method described above.
[0137] As shown in Figure 7, the interactive device 700 according to the embodiment of this disclosure is A first display unit 701 for displaying a voice interaction page that includes a user display interface for at least one voice interaction user, A request receiving unit 702 for receiving a gift sending request triggered to a target user among the at least one voice communication user, wherein the gift sending request is used to request the target user to send a target gift, The second display unit 703 for displaying the target gift, a dynamic effect object corresponding to the target gift, and a trajectory object corresponding to the target gift, wherein the trajectory object is used to display a gift movement trajectory corresponding to the target gift, the starting point of the gift movement trajectory is located within the display area of the dynamic effect object, and the ending point of the gift movement trajectory is determined based on the position of the target user's user display interface.
[0138] In one possible embodiment, the positional representation data of the trajectory starting point is determined based on the display scaling rate of the dynamic effect object, the actual display position coordinates of the dynamic effect object in the page coordinate system corresponding to the audio interaction page, and the preset position coordinates of the trajectory starting point in the object coordinate system corresponding to the dynamic effect object.
[0139] In one possible embodiment, the display scaling ratio is determined based on the actual display size of the dynamic effect object on the audio interaction page and the preset size of the dynamic effect object.
[0140] In one possible embodiment, the interactive device 700 is The system further includes a position determination unit for obtaining position representation data of the trajectory starting point by performing a scaling process on the preset position coordinates of the trajectory starting point in the object coordinate system according to the display scaling rate, obtaining the scaled position coordinates, constructing the object coordinate system based on the preset size dynamic effect object, using the actual display position coordinates of the dynamic effect object in the page coordinate system, and performing a coordinate system transformation process on the scaled position coordinates.
[0141] In one possible embodiment, the interactive device 700 is The system further includes a trajectory determination unit for determining the position representation data of the trajectory center point, the trajectory length, and the trajectory inclination angle based on the position representation data of the trajectory start point and the position representation data of the trajectory end point; constructing an initial trajectory representation object based on the position representation data of the trajectory center point and the trajectory length; determining a rotation angle corresponding to the initial trajectory representation object using the trajectory inclination angle; rotating the initial trajectory representation object by the rotation angle to obtain a target trajectory representation object; and generating the trajectory object based on the target trajectory representation object.
[0142] In one possible embodiment, the trajectory inclination angle is determined based on the slope of the line connecting the trajectory start point and the trajectory end point. and / or, The trajectory length is determined based on the distance between the trajectory start point and the trajectory end point.
[0143] In one possible embodiment, the number of target users is N, where N is a positive integer. The second display unit 703 is specifically used to display N target gifts, one dynamic effect object, and N trajectory objects, wherein the trajectory start point corresponding to each trajectory object is located at the same position, and the trajectory end point corresponding to each trajectory object is determined based on the position of each target user's user display interface.
[0144] In one possible embodiment, the interactive method is applied to a terminal device, and at least one of the dynamic effect object, the trajectory object, or the target gift belongs to animation data. If at least one animation image corresponding to each animation data is stored in a pre-configured storage area of the terminal device, the second display unit 703 is specifically used to read at least one animation image corresponding to each animation data from the pre-configured storage area and display it.
[0145] In one possible embodiment, the interactive device 700 is The system further includes a data storage unit for acquiring animation examples corresponding to each animation data, performing frame animation decoding on each animation example, obtaining at least one animation image corresponding to each animation data, and storing at least one animation image corresponding to each animation data in the pre-configured storage area.
[0146] In one possible embodiment, the trajectory object is a trajectory animation tiled from the trajectory start point to the trajectory end point, and / or, The display area of the aforementioned dynamic effect object is the central area at the bottom of the audio interaction page.
[0147] As is evident from the relevant details of the interactive device 700 described above, in the case of the interactive device 700 according to the embodiment of the present disclosure, if the interactive device 700 displays a voice interaction page and the voice interaction page includes the user display interface of at least one voice interaction user, after receiving a gift sending request triggered on a target user among these voice interaction users to request that a target gift be sent to the target user, the interactive device 700 displays the target gift, a dynamic effect object corresponding to the target gift (e.g., an MP4 animation), and a trajectory object corresponding to the target gift. The trajectory object is used to display the gift movement trajectory corresponding to the target gift, thereby allowing the voice interaction page to display the gradual movement of the target gift along the trajectory object to the target user's user display interface, thereby clearly representing the process of sending the target gift to the target user.
[0148] Therefore, since the above-mentioned trajectory object is used to describe the gift movement trajectory corresponding to the target gift, the trajectory object can not only clearly display the start and end points of the trajectory related to the gift movement trajectory, but also clearly display the actual movement path of the target gift on the audio interaction page.
[0149] Furthermore, since the display time of the trajectory object is the same as or earlier than the start time of the target gift's movement, the trajectory object can display the actual movement path of the target gift to the user in advance. This allows the user to know in advance which trajectory the target gift will follow to reach its destination, which is advantageous for improving the user experience.
[0150] Furthermore, embodiments of the present disclosure further provide an electronic device comprising a processor and memory, wherein the memory is used to store instructions or computer programs, and the processor is used to execute the instructions or computer programs in the memory and cause the electronic device to execute any embodiment of the interactive method according to embodiments of the present disclosure.
[0151] Figure 8 shows a schematic diagram of the structure of an electronic device 800 for realizing an embodiment of the present disclosure. The terminal devices in the embodiment of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 8 is merely an example and does not in any way limit the functions and scope of use of the embodiment of the present disclosure.
[0152] As shown in Figure 8, the electronic device 800 may include a processing unit (e.g., a central processor, graphics processor, etc.) 801, which can perform various appropriate operations and processes based on programs stored in read-only memory (ROM) 802 or programs loaded from storage device 808 into random access memory (RAM) 803. RAM 803 further stores various programs and data necessary for the operation of the electronic device 800. The processing unit 801, ROM 802, and RAM 803 are connected to each other via bus 804. An input / output (I / O) interface 805 is also connected to bus 804.
[0153] Typically, input devices 806, including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, and gyroscopes; output devices 807, including, for example, liquid crystal displays (LCDs), speakers, and oscillators; storage devices 808, including, for example, tapes and hard disks; and communication devices 809 can be connected to the I / O interface 805. The communication device 809 can enable the electronic device 800 to exchange data with other devices via wireless or wired communication. Figure 8 illustrates the electronic device 800 with various devices, but as can be understood, it is not necessary to implement or include all the devices shown. Instead, more or fewer devices may be implemented or included.
[0154] In particular, the process described above with reference to a flowchart based on the embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product which includes a computer program carried on a non-temporary computer-readable medium which includes program code for performing the method shown in the flowchart. In such embodiments, the computer program may be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing unit 801, it performs the functions limited to the methods of embodiments of the present disclosure.
[0155] Since the electronic devices according to the embodiments of this disclosure belong to the same inventive concept as the methods provided in the above embodiments, technical details not described in detail in these embodiments can be found in the above embodiments, and these embodiments have the same beneficial effects as the above embodiments.
[0156] Embodiments of the present disclosure further provide a computer-readable medium on which instructions or computer programs are stored, and which causes a device to execute any embodiment of the interactive method according to embodiments of the present disclosure when the instructions or computer programs are executed on the device.
[0157] As needs to be explained, the computer-readable medium in this disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of both. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage mediums may include, but are not limited to, electrical connections having one or more wires, portable computer magnetic disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact magnetic disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, the program may be used by or in combination with an instruction execution system, apparatus, or device. In this disclosure, the computer-readable signal medium may contain data signals propagated in the baseband or as part of a carrier wave, carrying computer-readable program code. The data signals propagated in this manner may take multiple forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium may transmit, propagate, or transmit programs used by or in combination with instruction execution systems, apparatus, or devices. The program code contained in the computer-readable medium may be transmitted by any suitable medium, including but not limited to wires, cables, RF (radio frequency), or any suitable combination thereof.
[0158] In some embodiments, the client and server may communicate using any currently known or future-developed network protocol, such as HTTP (Hypertext Transfer Protocol), and may interconnect with digital data communications (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the World Wide Web (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0159] The computer-readable medium described above may be included in the electronic device described above, or it may exist independently without being incorporated into the electronic device.
[0160] The computer-readable medium described above can contain one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can be made to execute the method described above.
[0161] Computer program code for performing the operations disclosed can be written in one or more programming languages, or a combination thereof, and such programming languages include not only object-oriented programming languages such as Java®, Smalltalk®, and C++, but also conventional procedural programming languages such as the C language or similar programming languages. The program code may run entirely on a user computer, partially on a user computer, run as a single standalone software package, run partially on a user computer and partially on a remote computer, or run entirely on a remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it may be connected to an external computer (for example, connected via the Internet using an Internet service provider).
[0162] The flowcharts and block diagrams in the drawings illustrate the implementable system architectures, functions, and operations of systems, methods, and computer program products relating to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code, which includes one or more executable instructions for implementing a given logic function. It should be noted that in some alternative implementations, the functions marked within a block may be generated in an order different from the order in which they are marked in the drawings. For example, two consecutively shown blocks may actually be executed almost in parallel, or in some cases in the opposite order, depending on the functions involved. It should be noted that each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, may be implemented using a dedicated system based on hardware that performs a given function or operation, or using a combination of dedicated hardware and computer instructions.
[0163] The units described and referred to in the embodiments of this disclosure may be implemented in software form or in hardware form. In some cases, the name of a unit / module is not limiting to the unit itself.
[0164] In this specification, the functions described above may be performed by at least partially one or more hardware logic components. For example, non-limiting, exemplary hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standards (ASSPs), on-chip systems (SOCs), and composite programmable logic devices (CPLDs).
[0165] In the context of this disclosure, a machine-readable medium may be a tangible medium that contains or can store a program used by or in combination with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any appropriate combination of the above. More specific examples of machine-readable storage media include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any appropriate combination of the above.
[0166] As needs to be explained, each example in this specification is described progressively, and each example focuses on the differences from other examples, with identical and similar parts between examples referring to one another. For systems or apparatus disclosed in the examples, the description is relatively simple, as it corresponds to the method disclosed in the examples, and relevant parts should be referred to in the method section.
[0167] To be understood, in this disclosure, “at least one item” may be one or more, and “multiple” may be two or more. “And / or” is used to describe the relationship between related objects and indicates that there are three types of relationships, for example, in “A and / or B,” there are three situations: A exists alone, B exists alone, and A and B exist simultaneously, and A and B may be singular or plural. The letter “ / ” usually indicates that the preceding and succeeding related objects are in an “or” relationship. “At least one of the following items” or similar expressions refers to any combination of these items, including any combination of a single item or multiple items. For example, at least one of a, b or c means a, b, c, “a and b,” “a and c,” “b and c,” or “a and b and c,” and a, b, c may be singular or plural.
[0168] In this specification, relational terms such as "1st," "2nd," etc., are used solely to distinguish one entity or operation from another, and do not necessarily require or imply any actual relationship or order between these entities or operations. Furthermore, the terms "includes," "equips," and any variations thereof are intended to cover non-exclusive inclusion, thereby meaning that a process, method, article, or apparatus containing a set of elements not only includes those elements but also includes other elements not explicitly listed, or elements specific to such a process, method, article, or apparatus. Without further limitation, an element limited by the statement "includes one..." does not preclude the presence of other identical elements in a process, method, article, or apparatus containing such element.
[0169] The steps of the methods or algorithms described with reference to the embodiments disclosed herein may be carried out directly by hardware, a software module executed by a processor, or a combination of both. The software module may be located in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the art.
[0170] Based on the above description of the disclosed embodiments, those skilled in the art can implement or use the present disclosure. Several modifications of these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Accordingly, the present disclosure is not limited to these embodiments shown herein and should correspond to the broadest extent that the principles and novel features disclosed herein are consistent.
Claims
1. An interactive method, The steps include displaying a voice interaction page that includes a user display interface for at least one voice interaction user, A step of receiving a gift sending request triggered for a target user among the at least one voice communication user, wherein the gift sending request is used to request the target user to send a target gift. An interactive method comprising the steps of displaying a target gift, a dynamic effect object corresponding to the target gift, and a trajectory object corresponding to the target gift, wherein the trajectory object is used to display a gift movement trajectory corresponding to the target gift, the starting point of the gift movement trajectory is located within the display area of the dynamic effect object, and the ending point of the gift movement trajectory is determined based on the position of the target user's user display interface.
2. The position representation data of the trajectory starting point is determined based on the display scaling rate of the dynamic effect object, the actual display position coordinates of the dynamic effect object in the page coordinate system corresponding to the audio interaction page, and the preset position coordinates of the trajectory starting point in the object coordinate system corresponding to the dynamic effect object. The method according to claim 1.
3. The process for determining the display scaling rate is as follows: Based on the actual display size of the dynamic effect object on the audio interaction page and the preset size of the dynamic effect object, the display scaling ratio of the dynamic effect object is determined. The method according to claim 2.
4. Regarding the process for determining the positional representation data of the trajectory starting point, A step of scaling the preset position coordinates of the trajectory starting point in the object coordinate system according to the display scaling ratio to obtain the scaled position coordinates, wherein the object coordinate system is constructed based on the preset size dynamic effect object. A step of obtaining positional representation data of the trajectory starting point by using the actual display position coordinates of the dynamic effect object in the page coordinate system and performing a coordinate system transformation process on the scaled position coordinates, wherein the page coordinate system is constructed for the audio interaction page. The method according to claim 2.
5. Regarding the process of constructing the aforementioned trajectory object, The steps include determining the position representation data of the trajectory center point, the trajectory length, and the trajectory inclination angle based on the position representation data of the trajectory starting point and the position representation data of the trajectory ending point, The steps include constructing an initial trajectory representation object based on the position representation data of the trajectory center point and the trajectory length, The steps include: determining the rotation angle corresponding to the initial trajectory representation object using the aforementioned trajectory inclination angle; The steps include: rotating the initial trajectory representation object by the rotation angle to obtain a target trajectory representation object; The steps include generating a trajectory object based on the target trajectory representation object, The method according to any one of claims 1 to 4.
6. The trajectory inclination angle is determined based on the slope of the line connecting the trajectory start point and the trajectory end point. and / or, The length of the trajectory is determined based on the distance between the starting point and the ending point of the trajectory. The method according to claim 5.
7. The number of target users is N, where N is a positive integer. The step of displaying the target gift, the dynamic effect object corresponding to the target gift, and the trajectory object corresponding to the target gift is: A step of displaying N target gifts, one dynamic effect object, and N trajectory objects, wherein the trajectory start point corresponding to each trajectory object is located at the same position, and the trajectory end point corresponding to each trajectory object is determined based on the position of each target user's user display interface, The method according to claim 1.
8. The aforementioned interactive method is applied to terminal equipment. At least one of the dynamic effect object, the trajectory object, or the target gift belongs to animation data. If at least one animation image corresponding to each animation data is stored in a pre-configured memory area of the terminal device, the display process for each animation data is as follows: The step includes reading at least one animation image corresponding to each animation data from the pre-configured storage area and displaying it. The method according to any one of claims 1 to 7.
9. Before the step of reading and displaying at least one animation image corresponding to each animation data from the pre-configured storage area, the method: A step of obtaining an animation example corresponding to each of the aforementioned animation data, The steps include performing frame animation decoding on each animation example to obtain at least one animation image corresponding to each animation data, The further step includes storing at least one animation image corresponding to each animation data in the pre-configured storage area. The method according to claim 8.
10. The aforementioned trajectory object is a trajectory animation tiled from the trajectory start point to the trajectory end point, and / or, The display area of the aforementioned dynamic effect object is the central area at the bottom of the audio interaction page. The method according to claim 1.
11. An interactive device, A first display unit for displaying a voice interaction page including a user display interface for at least one voice interaction user, A request receiving unit for receiving a gift sending request triggered for a target user among the at least one voice communication user, wherein the gift sending request is used to request the target user to send a target gift, An interactive device comprising: a second display unit for displaying the target gift, a dynamic effect object corresponding to the target gift, and a trajectory object corresponding to the target gift, wherein the trajectory object is used to display a gift movement trajectory corresponding to the target gift, the starting point of the gift movement trajectory is located within the display area of the dynamic effect object, and the ending point of the gift movement trajectory is determined based on the position of the target user's user display interface.
12. An electronic device comprising a processor and memory, The memory is used to store instructions or computer programs. The processor is an electronic device used to execute the instructions or computer program in the memory and cause the electronic device to perform the method according to any one of claims 1 to 10.
13. A computer-readable medium having instructions or computer programs stored therein, which causes the device to execute the method according to any one of claims 1 to 10 when the instructions or computer programs are executed on the device.