Rhythm interaction method and device
AssigneeBeijing Bytedance Network Technology Co., Ltd.
InventorsXiaochun Cai, Jiajie Ye, Cong Ye
Life of this patent
Estimating the term…
Abstract
The present application provides a rhythm interaction method and device. The method includes: the first client sending a song identification to a server, the first client playing a song according to the audio data sent by the server, and the first client displaying the rhythm interaction result sent by the server within a preset time period before an end of the playing of the song.
Claims16
A rhythm interaction method, applied to a first client, the method comprising:
- sending, by the first client, a song identification to a server to enable the server to obtain audio data and song rhythm point information according to the song identification, wherein the audio data is sent from the server to the first client and at least one second client, and wherein the song rhythm point information is sent from the server to at least one third client, and used by the at least one third client to obtain a score of the at least one third client, wherein the score of the at least one third client is sent from the at least one third client to the server and used by the server to obtain a rhythm interaction result, and wherein the rhythm interaction result is sent from the server to the first client and the at least one third client;
- wherein the at least one second client is a client that enters a live stream of the first client, and the at least one third client is a second client of the at least one second client that participates in rhythm interaction;
- wherein a score of each third client is obtained by performing addition on a score of each touch operation of a user on an operating area comprised in a user interface of the third client, the operating area comprises a first edge and a second edge, the first edge is an edge passed by a plurality of visualized rhythm objects, and the second edge is an edge opposite to the first edge;
- the score of the touch operation is determined as a first preset score if the user performs a touch operation on the operating area when a visualized rhythm object moves to a position that is outside the operating area and not in contact with the first edge, the score of the touch operation is determined as a second preset score if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and in contact with the first edge, the score of the touch operation is determined as a third preset score if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and in contact with the first edge, the score of the touch operation is determined as the second preset score if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and not in contact with the first edge, the score of the touch operation is determined as the first preset score if the user performs a touch operation when the visualized rhythm object moves to a position intersecting with the second edge, wherein the first preset score is less than the second preset score, and the second preset score is less than the third preset score;
- playing, by the first client, a song according to the audio data sent by the server;
- and
- displaying, by the first client, the rhythm interaction result sent by the server, within a preset time period before an end of the playing of the song.
A rhythm interaction method, applied to a server, the method comprising:
- receiving, by the server, a song identification sent by a first client;
- obtaining, by the server, audio data and song rhythm point information according to the song identification;
- sending, by the server, the audio data to the first client and at least one second client, sending the song rhythm point information to at least one third client so that the at least one third client obtains a score of the at least one third client according to the song rhythm point information and sends the score of the at least one third client to the server;
- wherein the at least one second client is a client that enters a live stream of the first client, and the at least one third client is a second client of the at least one second client that participates in rhythm interaction;
- wherein a score of each third client is obtained by performing addition on a score of each touch operation of a user on an operating area comprised in a user interface of the third client, the operating area comprises a first edge and a second edge, the first edge is an edge passed by a plurality of visualized rhythm objects, and the second edge is an edge opposite to the first edge;
- the score of the touch operation is determined as a first preset score if the user performs a touch operation on the operating area when a visualized rhythm object moves to a position that is outside the operating area and not in contact with the first edge, the score of the touch operation is determined as a second preset score if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and in contact with the first edge, the score of the touch operation is determined as a third preset score if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and in contact with the first edge, the score of the touch operation is determined as the second preset score if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and not in contact with the first edge, the score of the touch operation is determined as the first preset score if the user performs a touch operation when the visualized rhythm object moves to a position intersecting with the second edge, wherein the first preset score is less than the second preset score, and the second preset score is less than the third preset score;
- obtaining, by the server, a rhythm interaction result according to the score of the at least one third client;
- and
- sending, by the server, the rhythm interaction result to the first client and the at least one third client.
A rhythm interaction method, applied to a third client, wherein a user interface of the third client comprises an operating area, and the method comprises:
- receiving, by the third client, audio data and song rhythm point information sent by a server, wherein the third client is a second client of at least one second client that participates in rhythm interaction, and the at least one second client is a client that enters a live stream of a first client;
- playing, by the third client, a song according to the audio data;
- generating, by the third client, a plurality of visualized rhythm objects according to the song rhythm point information, controlling the plurality of visualized rhythm objects to move toward the operating area, and determining a score of the third client according to at least one touch operation of a user on the operating area;
- sending, by the third client, the score of the third client to the server so that the server determines a rhythm interaction result according to the score of the third client;
- receiving, by the third client, the rhythm interaction result sent by the server;
- and
- displaying, by the third client, the rhythm interaction result;
- wherein the determining the score of the third client according to the at least one touch operation of the user on the operating area comprises:
- obtaining, by the third client, a score of each touch operation;
- and
- performing, by the third client, addition on the score of each touch operation to obtain the score of the third client;
- wherein the operating area comprises a first edge and a second edge, the first edge is an edge passed by the plurality of visualized rhythm objects, and the second edge is an edge opposite to the first edge;
- wherein the obtaining the score of each touch operation comprises:
- if the user performs a touch operation on the operating area when a visualized rhythm object moves to a position that is outside the operating area and not in contact with the first edge, determining, by the third client, that the score of the touch operation is a first preset score;
- if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is outside the operating area and in contact with the first edge, determining, by the third client, that the score of the touch operation is a second preset score;
- if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and in contact with the first edge, determining, by the third client, that the score of the touch operation is a third preset score;
- if the user performs a touch operation on the operating area when the visualized rhythm object moves to a position that is within the operating area and not in contact with the first edge, determining, by the third client, that the score of the touch operation is the second preset score;
- or
- if the user performs a touch operation when the visualized rhythm object moves to a position intersecting with the second edge, determining, by the third client. that the score of the touch operation is the first preset score, wherein the first preset score is less than the second preset score, and the second preset score is less than the third preset score.
Dependencies are inferred from the claim text.