CN111314205A - Instant messaging matching method, device, system, equipment and storage medium - Google Patents

Instant messaging matching method, device, system, equipment and storage medium Download PDF

Info

Publication number
CN111314205A
CN111314205A CN202010046977.2A CN202010046977A CN111314205A CN 111314205 A CN111314205 A CN 111314205A CN 202010046977 A CN202010046977 A CN 202010046977A CN 111314205 A CN111314205 A CN 111314205A
Authority
CN
China
Prior art keywords
account
instant messaging
song
song audio
matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010046977.2A
Other languages
Chinese (zh)
Other versions
CN111314205B (en
Inventor
陈于图
祝绍坤
郑凌宇
郑博开
林伟健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN202010046977.2A priority Critical patent/CN111314205B/en
Publication of CN111314205A publication Critical patent/CN111314205A/en
Application granted granted Critical
Publication of CN111314205B publication Critical patent/CN111314205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Abstract

The application discloses a method, a device, a system, equipment and a storage medium for instant messaging matching, belonging to the technical field of computers. The method comprises the following steps: receiving a matching instruction in a state of displaying an instant messaging window for instant messaging between a first account and a second account and playing a first instant messaging shared song audio; sending a matching request carrying an account identifier of a first account and a song identifier of the first instant messaging shared song audio to a server; receiving account identification of a third account and second instant messaging shared song audio sent by a server; and displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio into the second instant messaging shared song audio for playing. The method and the device can improve the friend making success rate of instant messaging.

Description

Instant messaging matching method, device, system, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, a device, and a storage medium for instant messaging matching.
Background
With the development of social science and technology, more and more functions are integrated on music application programs for users to use.
In the related art, a current user opens a music application program and clicks a matching button on a terminal interface, and the terminal sends a matching request to a server. After the server receives the matching request sent by the terminal, the server screens out users who click the matching button simultaneously with the current user, and one of the users is taken as the user matched with the current user, so that the current user can carry out instant messaging with the matched user.
In the course of implementing the present application, the inventors found that the related art has at least the following problems:
the scheme is only simply matched with the account of the instant messaging, has no difference with the common instant messaging, has poor flexibility and relatively low friend-making success rate of the instant messaging.
Disclosure of Invention
In order to solve the technical problems in the related art, the present embodiment provides a method, an apparatus, a system and a storage medium for instant messaging matching. The technical scheme of the instant messaging matching method, the instant messaging matching device, the instant messaging matching system and the storage medium is as follows:
in a first aspect, a method for instant messaging matching is provided, which is applied to a terminal, and the method includes:
receiving a matching instruction in a state of displaying an instant messaging window for instant messaging between a first account and a second account and playing a first instant messaging shared song audio, wherein the first account is a locally logged-in account;
sending a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to a server;
receiving account identification of a third account and second instant messaging shared song audio sent by the server;
and displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio into the second instant messaging shared song audio for playing.
Optionally, the matching request further carries time information for receiving the current matching instruction.
Optionally, after the displaying the instant messaging window for performing instant messaging between the first account and the third account, and switching the first instant messaging shared song audio to the second instant messaging shared song audio for playing, the method further includes:
and when the instant messaging window for instant messaging between the first account and the third account is switched to the instant messaging window for instant messaging between the first account and the second account, switching the second instant messaging shared song audio to the first instant messaging shared song audio for playing.
Optionally, the receiving the account identifier of the third account and the second instant messaging shared song audio sent by the server includes:
receiving account identification of a third account, second instant messaging time and second instant messaging shared song audio sent by the server;
the displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio to the second instant messaging shared song audio for playing comprises:
when an instant messaging window for instant messaging between the first account and the third account is displayed, timing is started, and the first instant messaging shared song audio is switched to the second instant messaging shared song audio for playing;
and when the timing duration reaches the second instant messaging duration, closing an instant messaging window for instant messaging between the first account and the third account, and ending playing the second instant messaging shared song audio.
In a second aspect, a method for instant messaging matching is provided, where the method is applied to a server, and includes:
receiving matching requests sent by a plurality of terminals, wherein the matching requests carry account identifications of accounts logged in by the terminals and song identifications of song audio currently played by the terminals;
selecting a first account and a third account which do not have a friend relationship from the accounts corresponding to the received multiple matching requests;
determining a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account;
and sending the account identifier of the third account and the second instant messaging shared song audio to the terminal with the first account logged in, and sending the account identifier of the first account and the second instant messaging shared song audio to the terminal with the third account logged in.
Optionally, the matching request further carries time information for receiving the current matching instruction;
the selecting a first account and a third account which do not have a friend relationship from among the accounts corresponding to the received multiple matching requests includes:
and selecting a first account and a third account which do not have friend relationship and of which the difference value between the time information corresponding to the first account and the time information corresponding to the third account is smaller than a preset threshold value from the accounts corresponding to the received matching requests.
Optionally, the selecting the first account and the third account that do not have a friend relationship from the accounts corresponding to the received multiple matching requests includes:
determining other accounts which do not have a friend relationship with the first account in the accounts corresponding to the received multiple matching requests;
if only one third account with the same song identification as the song identification corresponding to the first account exists in other accounts, selecting the third account;
in other accounts, if an account with the same song identification as the first account does not exist, determining the position information corresponding to the first account and the position information corresponding to an account with the same song identification as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if no account with the same position information as the first account exists or a plurality of accounts with the same position information as the first account exists, randomly selecting the third account;
in other accounts, if a plurality of accounts with the same song identification as the first account exist, determining the position information corresponding to the first account and the position information corresponding to a plurality of accounts with the same song identification as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if no account with the same position information as the first account exists or a plurality of accounts with the same position information as the first account exists, randomly selecting the third account.
Optionally, the determining a second instant messaging shared song audio based on the song identifier corresponding to the first account and the song identifier corresponding to the third account includes:
if the song identification corresponding to the first account is the same as the song identification corresponding to the third account, determining that the song audio corresponding to the song identification is the second instant messaging shared song audio;
if the song identification corresponding to the first account is different from the song identification corresponding to the third account, determining gender information corresponding to the first account and gender information corresponding to the third account;
if the gender information corresponding to the first account is different from the gender information corresponding to the third account, determining that the song audio corresponding to the song identifier corresponding to the gender information is the second instant messaging shared song audio;
and if the gender information corresponding to the first account is the same as the gender information corresponding to the third account, randomly selecting one popular song audio from the multiple popular song audios as the second instant messaging shared song audio.
Optionally, after determining the second instant messaging shared song audio based on the song identifier corresponding to the first account and the song identifier corresponding to the third account, the method further includes:
determining the duration of the second instant messaging shared song audio as the duration of the second instant messaging;
the sending the account identifier of the third account and the second instant messaging shared song audio to the terminal where the first account logs in, and the sending the account identifier of the first account and the second instant messaging shared song audio to the terminal where the third account logs in includes:
sending the account identification of the third account, the second instant messaging time length and the second instant messaging shared song audio frequency to the terminal logged in by the first account, and sending the account identification of the first account, the second instant messaging time length and the second instant messaging shared song audio frequency to the terminal logged in by the third account
In a third aspect, an apparatus for instant messaging matching is provided, the apparatus comprising:
the first receiving module is configured to receive a matching instruction in a state that an instant messaging window for instant messaging between a first account and a second account is displayed and a first instant messaging shared song audio is played, wherein the first account is a locally logged account;
the sending module is configured to send a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to a server;
a second receiving module configured to receive the account identification of the third account and the second instant messaging shared song audio sent by the server;
and the display module is configured to display an instant messaging window for instant messaging between the first account and the third account, and switch the first instant messaging shared song audio frequency into the second instant messaging shared song audio frequency for playing.
Optionally, the matching request further carries time information for receiving the current matching instruction.
Optionally, the apparatus further includes a switching module configured to:
and when the instant messaging window for instant messaging between the first account and the third account is switched to the instant messaging window for instant messaging between the first account and the second account, switching the second instant messaging shared song audio to the first instant messaging shared song audio for playing.
Optionally, the second receiving module is configured to:
receiving account identification of a third account, second instant messaging time and second instant messaging shared song audio sent by the server;
the display module configured to:
when an instant messaging window for instant messaging between the first account and the third account is displayed, timing is started, and the second instant messaging shared song audio is played;
and when the timing duration reaches the second instant messaging duration, closing an instant messaging window for instant messaging between the first account and the third account, and ending playing the second instant messaging shared song audio.
In a fourth aspect, an apparatus for instant messaging matching is provided, the apparatus comprising:
the terminal comprises a receiving module, a matching module and a processing module, wherein the receiving module is configured to receive matching requests sent by a plurality of terminals, and the matching requests carry account identifications of accounts logged in by the terminals and song identifications of song audio currently played by the terminals;
the selecting module is configured to select a first account and a third account which do not have a friend relationship from the accounts corresponding to the received multiple matching requests;
a determining module configured to determine a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account;
and the sending module is configured to send the account identifier of the third account and the second instant messaging shared song audio to the terminal logged in by the first account, and send the account identifier of the first account and the second instant messaging shared song audio to the terminal logged in by the third account.
Optionally, the matching request further carries time information for receiving the current matching instruction;
the selecting module is configured to:
and selecting a first account and a third account which do not have a friend relationship and have a difference value smaller than a preset threshold value between time information corresponding to the first account from the accounts corresponding to the received multiple matching requests.
Optionally, the selecting module is configured to:
determining other accounts which do not have a friend relationship with the first account in the accounts corresponding to the received multiple matching requests;
if only one third account with the same song identification as the song identification corresponding to the first account exists in other accounts, selecting the third account;
in other accounts, if an account with the same song identification as the first account does not exist, determining the position information corresponding to the first account and the position information corresponding to an account with the same song identification as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if no account with the same position information as the first account exists or a plurality of accounts with the same position information as the first account exists, randomly selecting the third account;
in other accounts, if a plurality of accounts with the same song identification as the first account exist, determining the position information corresponding to the first account and the position information corresponding to a plurality of accounts with the same song identification as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if no account with the same position information as the first account exists or a plurality of accounts with the same position information as the first account exists, randomly selecting the third account.
Optionally, the determining module is configured to:
if the song identification corresponding to the first account is the same as the song identification corresponding to the third account, determining that the song audio corresponding to the song identification is the second instant messaging shared song audio;
if the song identification corresponding to the first account is different from the song identification corresponding to the third account, determining gender information corresponding to the first account and gender information corresponding to the third account;
if the gender information corresponding to the first account is different from the gender information corresponding to the third account, determining that the song audio corresponding to the song identifier corresponding to the gender information is the second instant messaging shared song audio;
and if the gender information corresponding to the first account is the same as the gender information corresponding to the third account, randomly selecting one popular song audio from the multiple popular song audios as the second instant messaging shared song audio.
Optionally, the apparatus further includes a first determining module configured to:
determining the duration of the second instant messaging shared song audio as the duration of the second instant messaging;
the sending module comprises:
and sending the account identification of the third account, the second instant messaging time length and the second instant messaging shared song audio to the terminal.
In a fifth aspect, a system for instant messaging matching is provided, where the system includes a terminal and a server, where:
the terminal is configured to receive a matching instruction in a state that an instant messaging window for instant messaging between a first account and a second account is displayed and a first instant messaging shared song audio is played, wherein the first account is a locally logged-in account; sending a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to the server; receiving account identification of a third account and second instant messaging shared song audio sent by the server; and displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio into the second instant messaging shared song audio for playing.
The server is configured to receive matching requests sent by a plurality of terminals, wherein the matching requests carry account identifications of accounts logged in by the terminals and song identifications of song audio currently played by the terminals; selecting a first account and a third account which do not have a friend relationship from the accounts corresponding to the received multiple matching requests; determining a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account; and sending the account identifier of the third account and the second instant messaging shared song audio to the terminal with the first account logged in, and sending the account identifier of the first account and the second instant messaging shared song audio to the terminal with the third account logged in.
In a sixth aspect, there is provided a computer device, the terminal comprising a processor and a memory, the memory having stored therein at least one instruction, the at least one instruction being loaded and executed by the processor to implement the method for instant messaging matching according to the first aspect.
In a seventh aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the method for matching instant messaging according to the first aspect.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
and sending a matching request to a server by the terminal logged in by the first account in a state that the terminal displays an instant messaging window for instant messaging between the first account and the second account and plays the audio of the first instant messaging shared song. After the server receives the matching request, the server selects a third account which is not in friend relationship with the first account, determines a second instant messaging shared song audio according to the song identification corresponding to the first account and the song identification corresponding to the selected third account, and sends the second instant messaging shared song audio to the terminal logged in by the first account and the terminal logged in by the third account. According to the method and the device, the songs played together in the instant messaging process are selected for different users based on the songs played currently, so that the instant messaging process is more diversified and flexible, and the success rate of friend making of the instant messaging can be improved to a certain extent.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of instant messaging matching according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for matching instant messaging according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for matching instant messaging according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for matching instant messaging according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of an instant messaging match provided in an embodiment of the present application;
fig. 6 is a schematic diagram of an instant messaging match provided in an embodiment of the present application;
fig. 7 is a schematic diagram of an instant messaging match provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of an instant messaging matching apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an instant messaging matching apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The method for matching instant messaging provided by the embodiment of the application can be realized by computer equipment, and the computer equipment can be a terminal and a server. The terminal can be a mobile terminal such as a mobile phone, a tablet computer and a notebook computer, and can also be a fixed terminal such as a desktop computer. The server may be a single server or a server group, and if the server is a single server, the server may be responsible for all processing in the following scheme, and if the server is a server group, different servers in the server group may be respectively responsible for different processing in the following scheme, and the specific processing allocation condition may be arbitrarily set by a technician according to actual needs, and is not described herein again.
The method provided by the embodiment of the application can be used for a music application program, and the music application program can match a plurality of other users capable of carrying out instant messaging for the user. As shown in fig. 1, when the current user triggers the matching button, the server determines one account from among the accounts corresponding to the received matching requests as an account for performing instant messaging with the current account, so as to match the current account with an account capable of performing instant messaging. When the current user clicks the matching button for the first time, the server matches out the first account which can carry out instant communication for the current account. When the current user clicks the matching button for the second time, the server matches a second account which can carry out instant messaging for the current account again. When the current user clicks the matching button for the third time, the server matches a third account which can carry out instant messaging for the current account.
Fig. 2 is a flowchart of a terminal side in a method for instant messaging matching according to an embodiment of the present application.
Referring to fig. 2, the embodiment includes:
201. receiving a matching instruction in a state of displaying an instant messaging window for instant messaging between a first account and a second account and playing a first instant messaging shared song audio, wherein the first account is a locally logged-in account;
202. sending a matching request carrying an account identifier of a target account and the first instant messaging shared song audio to a server;
203. receiving account identification of a third account and second instant messaging shared song audio sent by a server;
204. and displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio into the second instant messaging shared song audio for playing.
Fig. 3 is a flowchart of a service side in a method for instant messaging matching according to an embodiment of the present application.
Referring to fig. 3, the embodiment includes:
301. receiving matching requests sent by a plurality of terminals, wherein the matching requests carry account identifications of accounts logged in by the terminals and song identifications of song audio currently played by the terminals;
302. selecting a first account and a third account which do not have a friend relationship from the accounts corresponding to the received multiple matching requests;
303. determining a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account;
304. and sending the account identifier of the third account and the second instant messaging shared song audio to the terminal logged in by the first account, and sending the account identifier of the first account and the second instant messaging shared song audio to the terminal logged in by the third account.
Fig. 4 is a flowchart of a method for instant messaging matching according to an embodiment of the present application. Referring to fig. 4, the embodiment includes:
401. and the terminal receives the matching instruction in the state that the terminal displays an instant messaging window for instant messaging between the first account and the second account and plays the audio of the first instant messaging shared song.
Wherein the first account is a locally logged-in account. The first instant messaging shared song audio is the song audio played by the terminal logged in by the first account, and the song audio played by the terminal logged in by the second account, namely, the first instant messaging shared song audio is the same song audio played by the terminal logged in by the first account and the terminal logged in by the second account at the same time.
In an implementation, a user opens a music application and logs into a first account. The user may search for the desired song audio in the music application and select a song to play. When the terminal plays the song audio selected by the user, the user clicks a matching button on the music application. At this time, an instant messaging window for instant messaging between the first account and the second account is displayed on an interface of the terminal, and the song audio is switched to the first instant messaging shared song audio.
It should be noted that, on the instant messaging window where the first account and the second account perform instant messaging, a visual identifier corresponding to the first account and a visual identifier corresponding to the second account are displayed, where the visual identifiers may be avatars corresponding to the first account and the second account, respectively. For example, when the first account and the second account are not friends with each other, a "friend of the user" is displayed below the visual identifier corresponding to the second account, and when the first account and the second account are friends with each other, no text or "friend of each other" is displayed below the visual identifier corresponding to the second account. When one of the first account or the second account sends a friend adding request to the other party and the other party agrees to the friend adding request, the first account and the second account have friend relationship.
And under the state that the terminal displays an instant messaging window for carrying out instant messaging between the first account and the second account and plays the audio frequency of the first instant messaging shared song, the user clicks the matching button for the second time, and the terminal receives the matching instruction.
It should be noted that the matching button clicked for the first time by the user may be set on the main page of the music application program, or may be set on the play page. The matching button clicked by the user for the second time can be set on an instant messaging window for instant messaging between the first account and the second account.
Optionally, in a state where the terminal displays an instant messaging window in which the first account and the second account perform instant messaging, the user may only play the first instant messaging shared song audio, and may not select another song to play.
402. And the terminal sends a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to the server.
The account identifier of the first account is used to instruct the server to determine another account that does not have a friend relationship with the first account, and the account identifier of the first account may be an ID of the first account or an address of the first account, which is not limited herein. The song identifier of the first instant messaging shared song audio may be a song title of the song audio, or the song title and a singer name of the song audio, which is not limited herein.
In implementation, after a terminal logged in by a first account receives a matching instruction, an account identifier of the first account and a song identifier of a first instant messaging shared song audio are obtained, a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio is generated, and the matching request is sent to a server.
It should be noted that, in the first matching process, the account identifier of the first account and the song identifier of the song audio currently played by the terminal are carried in the matching request sent by the terminal to the server, and the song audio currently played by the terminal may be any song audio played by the terminal. In the second matching process, the account identifier of the first account and the song identifier of the first instant messaging shared song audio are carried in the matching request sent by the terminal to the server. In the third matching process, the account identifier of the first account and the song identifier of the song audio currently played by the terminal are carried in the matching request sent by the terminal to the server, and the song audio currently played by the terminal can be the song audio shared by the first instant messaging or the song audio shared by the second instant messaging.
403. The server receives matching requests sent by a plurality of terminals.
The matching request carries an account identifier of an account logged in by the terminal and a song identifier of a song audio currently played by the terminal. When the terminal receives the matching instruction for the first time, the song audio currently played by the terminal can be any one song audio played by the terminal, when the terminal receives the matching instruction for the second time, the song audio currently played by the terminal can be the second instant messaging shared song audio, and when the terminal receives the matching instruction for the third time, the song audio currently played by the terminal can be the first instant messaging shared song audio or the second instant messaging shared song audio.
The server receiving the matching requests transmitted by the plurality of terminals means that the server receives the matching requests transmitted by the plurality of terminals including the terminal registered in the first account.
In this embodiment, the server receives a matching request sent by a terminal registered by a first account as an example.
In implementation, the server receives a matching request which is sent by a terminal logged in by a first account and carries an account identifier of the first account and a song identifier of the first instant messaging song audio, analyzes the matching request, and acquires the account identifier of the first account and the song identifier of the first instant messaging song audio.
It should be noted that the terminal logged in by the first account already displays the instant messaging window for instant messaging between the first account and the second account and plays the first instant messaging shared song audio, that is, the song audio currently played by the terminal is the first instant messaging shared song audio, so that the song identifier carried in the matching request is the song identifier of the first instant messaging song audio.
404. And selecting a first account and a third account which do not have a friend relationship from accounts corresponding to the matching requests received by the server.
And matching a second account for the first account by the server through the third account.
In implementation, the server determines accounts corresponding to the other matching requests, determines other accounts which do not have a friend relationship with the first account from the accounts, and selects a third account from the other accounts.
Note that the first account and the third account are never matched. If the first account and the third account are matched once, but the first account and the third account are not friends, it indicates that the two users do not feel good to the opposite party in the process of performing instant messaging, and even if the first account and the third account are matched again, the two users may not be friends, thereby wasting the time of the users.
Optionally, the matching request further carries time information for receiving the current matching instruction. And the server determines a third account which does not have a friend relationship with the first account and has a difference value smaller than a preset threshold value between the time information corresponding to the first account from the accounts corresponding to the other matching requests.
It should be noted that, when the server does not find a third account which does not have a friend relationship with the first account and for which the difference between the time information corresponding to the first account is smaller than the preset threshold, the server sends a failure message to the terminal logged in by the first account, and pops up a window of which matching fails on the terminal. The user may click the match button again to make a match again.
Optionally, in the accounts corresponding to the received multiple matching requests, determining other accounts which do not have a friend relationship with the first account; if only one third account with the same song identification as the song identification corresponding to the first account exists in other accounts, selecting the third account; in other accounts, if an account with the same song identification as the first account does not exist, determining the position information corresponding to the first account and the position information corresponding to an account with different song identifications as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if an account with the same position information as the first account does not exist or a plurality of accounts with the same position information as the first account exist, randomly selecting the third account; in other accounts, if a plurality of accounts with the same song identification corresponding to the first account exist, the position information corresponding to the first account and the position information corresponding to the plurality of accounts with the same song identification corresponding to the first account are determined, if only one third account with the same position information corresponding to the first account exists, the third account is selected, and if no account with the same position information corresponding to the first account exists or a plurality of accounts with the same position information corresponding to the first account exists, the third account is selected randomly.
The third account with the same song identification as the first account is selected, and the song audio played by the terminal logging in the third account is the same as the song audio played by the terminal logging in the first account, so that the hobbies of the two users are more similar, the probability of mutual friend of the two users is higher, and the friend making success rate of the users is further increased. Similarly, a third account with the same position information as the first account is selected, so that the friend-making success rate of the user is increased.
Of course, the third account may also be selected according to the first account and other information of other accounts that do not have a friend relationship with the first account. For example, a historical audio playlist corresponding to the first account and historical audio playlists corresponding to other accounts which do not have a friend relationship with the first account are determined, the contact ratio of the historical audio playlist corresponding to the first account and the historical audio playlist corresponding to each account which does not have a friend relationship with the first account is calculated, and the account with the highest contact ratio is used as a third account, wherein the contact ratio is the number of song audio overlapping the two historical audio playlists.
405. And determining the second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account.
And the second instant messaging shared song audio is the song audio played in the instant messaging window of the first account and the third account displayed on the terminal logged in by the first account and the terminal logged in by the second account during instant messaging.
Optionally, if the song identifier corresponding to the first account is the same as the song identifier corresponding to the third account, determining that the song audio corresponding to the song identifier is the second instant messaging shared song audio; if the song identification corresponding to the first account is different from the song identification corresponding to the third account, determining gender information corresponding to the first account and gender information corresponding to the third account; if the gender information corresponding to the first account is different from the gender information corresponding to the third account, determining that the song audio corresponding to the song identifier corresponding to the gender information is the second instant messaging shared song audio; and if the gender information corresponding to the first account is the same as the gender information corresponding to the third account, randomly selecting one popular song audio from the multiple popular song audios as a second instant messaging shared song audio.
It should be noted that if the song audio played by the terminal logged in the first account and the song audio played by the terminal logged in the third account are the same, the song audio is the second instant messaging shared song audio, resonance between the first account and the third account can be caused, and the probability that the first account and the third account become friends is increased.
Further, if the gender information corresponding to the first account is the same as the gender information corresponding to the third account, a historical audio playlist corresponding to the first account and a historical audio playlist corresponding to the third account may be respectively determined, and each song audio that has been played by both the first account and the third account is determined. And adding the playing times of the same song audio by the two accounts, and taking the song audio with the largest playing time as the second instant messaging shared song audio.
In one embodiment, in the case that the song identification corresponding to the first account is different from the song identification corresponding to the third account, the music style of the song audio of the song identification corresponding to the first account and the music style of the song audio of the song identification corresponding to the third account are determined. And when the music styles of the two song audios are the same, taking the song audio which is the same as the music style as the second instant messaging shared song audio, and when the music styles of the two song audios are different, taking the song audio which is close to the music styles of the two song audios as the second instant messaging shared song audio. The music note may also be a label corresponding to the song audio.
Wherein the music style refers to the style of the song audio, such as jazz, rock, etc.
406. And the server sends the account identification of the third account and the second instant messaging shared song audio to the terminal logged in by the first account, and sends the account identification of the first account and the second instant messaging shared song audio to the terminal logged in by the third account.
Optionally, according to the second instant messaging shared song audio, determining a duration of the second instant messaging shared song audio, and taking the duration as the second instant messaging duration. And the server sends the account identification of the third account, the second instant messaging time length and the second instant messaging shared song audio to the terminal.
And the second instant messaging time length is the instant messaging time length of the first account and the third account.
407. And the terminal receives the account identification of the third account and the second instant messaging shared song audio sent by the server.
Optionally, the terminal receives the account identifier of the third account, the second instant messaging time length and the second instant messaging shared song audio sent by the server.
408. And the terminal displays an instant messaging window for instant messaging between the first account and the third account, and switches the first instant messaging shared song audio into the second instant messaging shared song audio for playing.
In implementation, the terminal receives the account identifier of the third account and the second instant messaging shared song audio sent by the server, acquires the account identifier of the third account, displays an instant messaging window for instant messaging with the third account, and switches the first instant messaging shared song audio into the second instant messaging shared song audio for playing.
Optionally, when the instant messaging window for performing instant messaging between the first account and the third account is switched to the instant messaging window for performing instant messaging between the first account and the second account, the second instant messaging shared song audio is switched to the first instant messaging shared song audio.
It should be noted that, when different instant messaging windows are switched, the terminal logged in the first account plays different song audios, and at this time, the user may determine the currently displayed instant messaging window through the song audio played by the terminal.
Optionally, when an instant messaging window for performing instant messaging between the first account and the third account is displayed, timing is started, and the first instant messaging shared song audio is switched to the second instant messaging shared song audio for playing; and when the timing duration reaches the second instant messaging duration, closing the instant messaging windows for instant messaging between the first account and the third account, and ending playing the second instant messaging shared song audio.
In implementation, when the first account is in instant communication with the third account, the terminal periodically detects the relationship between the first account and the third account. After the instant messaging window for instant messaging between the first account and the third account is closed, if the first account and the third account have a friend relationship, the first account or the third account can be searched in the friend list.
It should be noted that, when the timing duration of the instant messaging between the first account and the third account reaches the second instant messaging duration, the instant messaging window of the instant messaging between the first account and the third account is closed, and the playing of the second instant messaging shared song audio is finished. And if the timing time length of the instant messaging between the first account and the second account does not reach the first instant messaging time length, the terminal displays an instant messaging window for the instant messaging between the first account and the second account and plays the first instant messaging shared song audio. If the timing duration of the instant messaging between the first account and the plurality of accounts does not reach the instant messaging duration, an instant messaging window for the instant messaging between the first account and one account can be displayed by default while the instant messaging windows for the instant messaging between the first account and the third account are closed, and the instant messaging shared song audio corresponding to the instant messaging window is played. For example, when the instant messaging window for instant messaging between the first account and the fourth account is closed, if the timing duration for instant messaging between the first account and the second account does not reach the first instant messaging duration and the timing duration for instant messaging between the first account and the third account does not reach the second instant messaging duration, the terminal defaults to display the instant messaging window for instant messaging between the first account and the second account and plays the first instant messaging shared song audio.
Fig. 5 is an instant messaging window for instant messaging between the first account and the third account. On the instant messaging window, the dialogue countdown and the playing song audio "sweet-yourself" are displayed. And a dialog countdown corresponding to the second account is displayed below the visual identifier corresponding to the second account, and a text identifier 'plus his friend' is displayed below the visual identifier corresponding to the third account. And determining whether the character identifier is 'friend of him' or 'friend of her' according to the gender information corresponding to the third account. When a user clicks a friend adding button on an instant messaging window, a terminal request server logging in a first account sends a friend request to a terminal logging in a third account. And after the second account agrees to the friend request, displaying no text mark or displaying a text mark 'mutual friend' below the visual mark corresponding to the third account.
After the user clicks the visual identifier corresponding to the second account, an instant messaging window for instant messaging between the first account and the second account is displayed, as shown in fig. 6. At this time, the text identifier 'plus his friend' is displayed below the visual identifier corresponding to the second account, and the conversation countdown is displayed below the visual identifier corresponding to the third account.
In the process, the instant messaging window for instant messaging can be switched by clicking the visual identification corresponding to the different accounts for instant messaging by the user.
Further, as shown in fig. 7, in a state where the instant messaging window for instant messaging between the first account and the second account plays the first instant messaging shared song audio, or in a state where the instant messaging window for instant messaging between the first account and the third account plays the second instant messaging shared song audio, the user clicks the matching button for the third time, the terminal receives the matching instruction, and sends a matching request carrying the account identifier of the first account and the song identifier of the currently played song audio to the server, where the currently played song audio may be the second instant messaging shared song audio or the second instant messaging shared song audio, and at this time, the user is allowed to play the second instant messaging shared song audio according to the current song audio currently played by the terminal. And the terminal receives the identifier of the fourth account, the third instant messaging shared song audio and the third instant messaging time length, displays an instant messaging window for instant messaging between the first account and the fourth account, and switches the currently played song audio into the third instant messaging shared song audio.
Of course, the user may set the maximum number of users performing instant messaging, or a technician may set the maximum number of users performing instant messaging with a certain user, which is not limited herein.
According to the method and the device, the terminal logged in by the first account sends a matching request to the server in the state that the instant messaging window for instant messaging between the first account and the second account is displayed and the song audio shared by the first instant messaging is played. After the server receives the matching request, the server selects a third account which is not in friend relationship with the first account, determines a second instant messaging shared song audio according to the song identification corresponding to the first account and the song identification corresponding to the selected third account, and sends the second instant messaging shared song audio to the terminal logged in by the first account and the terminal logged in by the third account. According to the method and the device, the songs played together in the instant messaging process are selected for different users based on the songs played currently, so that the instant messaging process is more diversified and flexible, and the success rate of friend making of the instant messaging can be improved to a certain extent.
Based on the same technical concept, an embodiment of the present application further provides an apparatus, which is used for a terminal, and as shown in fig. 8, the apparatus includes:
a first receiving module 810 configured to receive a matching instruction in a state where an instant messaging window for instant messaging between a first account and a second account is displayed and a first instant messaging shared song audio is played, wherein the first account is a locally logged-in account;
a sending module 820 configured to send a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to a server;
a second receiving module 830, configured to receive the account identifier of the third account and the second instant messaging shared song audio sent by the server;
a display module 840 configured to display an instant messaging window for instant messaging between the first account and the third account, and switch the first instant messaging shared song audio to the second instant messaging shared song audio for playing.
Optionally, the matching request further carries time information for receiving the current matching instruction.
Optionally, the apparatus further includes a switching module configured to:
and when the instant messaging window for instant messaging between the first account and the third account is switched to the instant messaging window for instant messaging between the first account and the second account, switching the second instant messaging shared song audio to the first instant messaging shared song audio for playing.
Optionally, the second receiving module 830 is configured to:
receiving account identification of a third account, second instant messaging time and second instant messaging shared song audio sent by the server;
the display module 840 configured to:
when an instant messaging window for instant messaging between the first account and the third account is displayed, timing is started, and the second instant messaging shared song audio is played;
and when the timing duration reaches the second instant messaging duration, closing an instant messaging window for instant messaging between the first account and the third account, and ending playing the second instant messaging shared song audio.
Based on the same technical concept, an embodiment of the present application further provides an apparatus, which is used for a server, and as shown in fig. 9, the apparatus includes:
a receiving module 910, configured to receive matching requests sent by multiple terminals, where the matching requests carry account identifiers of accounts logged in by the terminals and song identifiers of song audio currently played by the terminals;
a selecting module 920, configured to select a first account and a third account that do not have a friend relationship from the accounts corresponding to the received multiple matching requests;
a determining module 930 configured to determine a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account;
a sending module 940, configured to send the account identifier of the third account and the second instant messaging shared song audio to the terminal where the first account is logged in, and send the account identifier of the first account and the second instant messaging shared song audio to the terminal where the third account is logged in.
Optionally, the matching request further carries time information for receiving the current matching instruction;
the selecting module 920 is configured to:
and selecting a first account and a third account which do not have a friend relationship and have a difference value smaller than a preset threshold value between time information corresponding to the first account from the accounts corresponding to the received multiple matching requests.
Optionally, the selecting module 920 is configured to:
determining other accounts which do not have a friend relationship with the first account in the accounts corresponding to the received multiple matching requests;
if only one third account with the same song identification as the song identification corresponding to the first account exists in other accounts, selecting the third account;
in other accounts, if an account with the same song identification as the first account does not exist, determining the position information corresponding to the first account and the position information corresponding to an account with the same song identification as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if no account with the same position information as the first account exists or a plurality of accounts with the same position information as the first account exists, randomly selecting the third account;
in other accounts, if a plurality of accounts with the same song identification as the first account exist, determining the position information corresponding to the first account and the position information corresponding to a plurality of accounts with the same song identification as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if no account with the same position information as the first account exists or a plurality of accounts with the same position information as the first account exists, randomly selecting the third account.
Optionally, the determining module 930 is configured to:
if the song identification corresponding to the first account is the same as the song identification corresponding to the third account, determining that the song audio corresponding to the song identification is the second instant messaging shared song audio;
if the song identification corresponding to the first account is different from the song identification corresponding to the third account, determining gender information corresponding to the first account and gender information corresponding to the third account;
if the gender information corresponding to the first account is different from the gender information corresponding to the third account, determining that the song audio corresponding to the song identifier corresponding to the gender information is the second instant messaging shared song audio;
and if the gender information corresponding to the first account is the same as the gender information corresponding to the third account, randomly selecting one popular song audio from the multiple popular song audios as the second instant messaging shared song audio.
Optionally, the apparatus further includes a first determining module configured to:
determining the duration of the second instant messaging shared song audio as the duration of the second instant messaging;
the determining module 930 includes:
and sending the account identification of the third account, the second instant messaging time length and the second instant messaging shared song audio to the terminal.
The embodiment of the present application further provides an instant messaging matching system, which is characterized in that the system includes a terminal and a server, wherein:
the terminal is configured to receive a matching instruction in a state that an instant messaging window for instant messaging between a first account and a second account is displayed and a first instant messaging shared song audio is played, wherein the first account is a locally logged-in account; sending a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to a server; receiving account identification of a third account and second instant messaging shared song audio sent by the server; displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio frequency into the second instant messaging shared song audio frequency for playing;
the server is configured to receive matching requests sent by a plurality of terminals, wherein the matching requests carry account identifications of accounts logged in by the terminals and song identifications of song audio currently played by the terminals; selecting a first account and a third account which do not have a friend relationship from the accounts corresponding to the received multiple matching requests; determining a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account; and sending the account identifier of the third account and the second instant messaging shared song audio to the terminal with the first account logged in, and sending the account identifier of the first account and the second instant messaging shared song audio to the terminal with the third account logged in.
It should be noted that: when the instant messaging matching device provided by the above embodiment matches a plurality of accounts, only the division of the above function modules is taken as an example, and in practical application, the function distribution may be completed by different function modules according to needs, that is, the internal structure of the device is divided into different function modules so as to complete all or part of the functions described above. In addition, the embodiments of the method for matching instant messaging provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the embodiments of the method for matching instant messaging, which are not described herein again.
Fig. 10 shows a block diagram of a terminal 1000 according to an exemplary embodiment of the present application. The terminal 1000 can be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio layer iii, motion video Experts compression standard Audio layer 3), an MP4 player (Moving Picture Experts Group Audio layer IV, motion video Experts compression standard Audio layer 4), a notebook computer, or a desktop computer. Terminal 1000 can also be referred to as an account device, portable terminal, laptop terminal, desktop terminal, or other name.
In general, terminal 1000 can include: a processor 1001 and a memory 1002.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 1001 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1002 is used to store at least one instruction for execution by processor 1001 to implement the method of instant messaging matching provided by the method embodiments herein.
In some embodiments, terminal 1000 can also optionally include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002 and peripheral interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, touch screen display 1005, camera 1006, audio circuitry 1007, positioning components 1008, and power supply 1009.
The peripheral interface 1003 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1001 and the memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, an account identity module card, and so forth. The radio frequency circuit 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to capture touch signals on or over the surface of the display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this point, the display screen 1005 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display screen 1005 can be one, providing a front panel of terminal 1000; in other embodiments, display 1005 can be at least two, respectively disposed on different surfaces of terminal 1000 or in a folded design; in still other embodiments, display 1005 can be a flexible display disposed on a curved surface or on a folded surface of terminal 1000. Even more, the display screen 1005 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1005 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of the account and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1001 for processing, or inputting the electric signals into the radio frequency circuit 1004 for realizing voice communication. For stereo sound collection or noise reduction purposes, multiple microphones can be provided, each at a different location of terminal 1000. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1007 may also include a headphone jack.
A location component 1008 is employed to locate a current geographic location of terminal 1000 for navigation or LBS (location based Service). The positioning component 1008 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 1009 is used to supply power to various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may support wired charging or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can also include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
Acceleration sensor 1011 can detect acceleration magnitudes on three coordinate axes of a coordinate system established with terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1001 may control the touch display screen 1005 to display the account interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or an account.
The gyroscope sensor 1012 can detect the body direction and the rotation angle of the terminal 1000, and the gyroscope sensor 1012 and the acceleration sensor 1011 can cooperate to acquire the 3D motion of the account on the terminal 1000. From the data collected by the gyro sensor 1012, the processor 1001 may implement the following functions: motion sensing (such as changing the UI according to a tilt operation of the account), image stabilization while shooting, game control, and inertial navigation.
Pressure sensor 1013 may be disposed on a side frame of terminal 1000 and/or on a lower layer of touch display 1005. When the pressure sensor 1013 is disposed on a side frame of the terminal 1000, a holding signal of the terminal 1000 by an account can be detected, and the processor 1001 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is disposed at a lower layer of the touch display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the account on the touch display screen 1005. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1014 is used to collect a fingerprint of the account, and the processor 1001 identifies the identity of the account according to the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the identity of the account according to the collected fingerprint. Upon recognizing that the account is a trusted identity, processor 1001 authorizes the account to perform sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, and changing settings. Fingerprint sensor 1014 can be disposed on the front, back, or side of terminal 1000. When a physical key or vendor Logo is provided on terminal 1000, fingerprint sensor 1014 can be integrated with the physical key or vendor Logo.
The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the touch display screen 1005 according to the intensity of the ambient light collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is turned down. In another embodiment, the processor 1001 may also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
Proximity sensor 1016, also known as a distance sensor, is typically disposed on a front panel of terminal 1000. Proximity sensor 1016 is used to capture the distance between an account and the front face of terminal 1000. In one embodiment, when proximity sensor 1016 detects that the distance between the account and the front face of terminal 1000 is gradually reduced, touch display screen 1005 is controlled by processor 1001 to switch from a bright screen state to a dark screen state; when proximity sensor 1016 detects that the distance between the account and the front face of terminal 1000 is gradually increased, touch display screen 1005 is controlled by processor 1001 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 10 is not intended to be limiting and that terminal 1000 can include more or fewer components than shown, or some components can be combined, or a different arrangement of components can be employed.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 1100 may generate a relatively large difference due to a difference in configuration or performance, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where the memory 1102 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 1101 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the method for instant messaging matching in the above embodiments is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (14)

1. A method for instant messaging matching is characterized in that the method is applied to a terminal and comprises the following steps:
receiving a matching instruction in a state of displaying an instant messaging window for instant messaging between a first account and a second account and playing a first instant messaging shared song audio, wherein the first account is a locally logged-in account;
sending a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to a server;
receiving account identification of a third account and second instant messaging shared song audio sent by the server;
and displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio into the second instant messaging shared song audio for playing.
2. The method of claim 1, wherein the matching request further carries time information for receiving a current matching instruction.
3. The method of claim 1, wherein after displaying the instant messaging window for instant messaging between the first account and the third account and switching the first instant messaging shared song audio to the second instant messaging shared song audio for playing, further comprising:
and when the instant messaging window for instant messaging between the first account and the third account is switched to the instant messaging window for instant messaging between the first account and the second account, switching the second instant messaging shared song audio to the first instant messaging shared song audio for playing.
4. The method of claim 1, wherein the receiving the account identification of the third account and the second instant messaging shared song audio sent by the server comprises:
receiving account identification of a third account, second instant messaging time and second instant messaging shared song audio sent by the server;
the displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio to the second instant messaging shared song audio for playing comprises:
when an instant messaging window for instant messaging between the first account and the third account is displayed, timing is started, and the first instant messaging shared song audio is switched to the second instant messaging shared song audio for playing;
and when the timing duration reaches the second instant messaging duration, closing an instant messaging window for instant messaging between the first account and the third account, and ending playing the second instant messaging shared song audio.
5. A method for instant messaging matching is applied to a server and comprises the following steps:
receiving matching requests sent by a plurality of terminals, wherein the matching requests carry account identifications of accounts logged in by the terminals and song identifications of song audio currently played by the terminals;
selecting a first account and a third account which do not have a friend relationship from the accounts corresponding to the received multiple matching requests;
determining a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account;
and sending the account identifier of the third account and the second instant messaging shared song audio to the terminal with the first account logged in, and sending the account identifier of the first account and the second instant messaging shared song audio to the terminal with the third account logged in.
6. The method of claim 5, wherein the matching request further carries time information for receiving a current matching instruction;
the selecting a first account and a third account which do not have a friend relationship from among the accounts corresponding to the received multiple matching requests includes:
and selecting a first account and a third account which do not have friend relationship and of which the difference value between the time information corresponding to the first account and the time information corresponding to the third account is smaller than a preset threshold value from the accounts corresponding to the received matching requests.
7. The method of claim 5, wherein selecting the first account and the third account without friend relationship from the accounts corresponding to the received multiple matching requests comprises:
determining other accounts which do not have a friend relationship with the first account in the accounts corresponding to the received multiple matching requests;
if only one third account with the same song identification as the song identification corresponding to the first account exists in other accounts, selecting the third account;
in other accounts, if an account with the same song identification as the first account does not exist, determining the position information corresponding to the first account and the position information corresponding to an account with the same song identification as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if no account with the same position information as the first account exists or a plurality of accounts with the same position information as the first account exists, randomly selecting the third account;
in other accounts, if a plurality of accounts with the same song identification as the first account exist, determining the position information corresponding to the first account and the position information corresponding to a plurality of accounts with the same song identification as the first account, if only one third account with the same position information as the first account exists, selecting the third account, and if no account with the same position information as the first account exists or a plurality of accounts with the same position information as the first account exists, randomly selecting the third account.
8. The method of claim 5, wherein determining a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account comprises:
if the song identification corresponding to the first account is the same as the song identification corresponding to the third account, determining that the song audio corresponding to the song identification is the second instant messaging shared song audio;
if the song identification corresponding to the first account is different from the song identification corresponding to the third account, determining gender information corresponding to the first account and gender information corresponding to the third account;
if the gender information corresponding to the first account is different from the gender information corresponding to the third account, determining that the song audio corresponding to the song identifier with the gender information corresponding to the female account is the second instant messaging shared song audio;
and if the gender information corresponding to the first account is the same as the gender information corresponding to the third account, randomly selecting one popular song audio from the multiple popular song audios as the second instant messaging shared song audio.
9. The method of claim 5, wherein after determining the second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account, further comprising:
determining the duration of the second instant messaging shared song audio as the duration of the second instant messaging;
the sending the account identifier of the third account and the second instant messaging shared song audio to the terminal where the first account logs in, and the sending the account identifier of the first account and the second instant messaging shared song audio to the terminal where the third account logs in includes:
and sending the account identifier of the third account, the second instant messaging time length and the second instant messaging shared song audio to the terminal with the first account logged in, and sending the account identifier of the first account, the second instant messaging time length and the second instant messaging shared song audio to the terminal with the third account logged in.
10. An apparatus for instant messaging matching, the apparatus comprising:
the first receiving module is configured to receive a matching instruction in a state that an instant messaging window for instant messaging between a first account and a second account is displayed and a first instant messaging shared song audio is played, wherein the first account is a locally logged account;
the sending module is configured to send a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to a server;
a second receiving module configured to receive the account identification of the third account and the second instant messaging shared song audio sent by the server;
and the display module is configured to display an instant messaging window for instant messaging between the first account and the third account, and switch the first instant messaging shared song audio frequency into the second instant messaging shared song audio frequency for playing.
11. An apparatus for instant messaging matching, the apparatus comprising:
the terminal comprises a receiving module, a matching module and a processing module, wherein the receiving module is configured to receive matching requests sent by a plurality of terminals, and the matching requests carry account identifications of accounts logged in by the terminals and song identifications of song audio currently played by the terminals;
the selecting module is configured to select a first account and a third account which do not have a friend relationship from the accounts corresponding to the received multiple matching requests;
a determining module configured to determine a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account;
and the sending module is configured to send the account identifier of the third account and the second instant messaging shared song audio to the terminal logged in by the first account, and send the account identifier of the first account and the second instant messaging shared song audio to the terminal logged in by the third account.
12. A system for instant messaging matching, the system comprising a terminal and a server, wherein:
the terminal is configured to receive a matching instruction in a state that an instant messaging window for instant messaging between a first account and a second account is displayed and a first instant messaging shared song audio is played, wherein the first account is a locally logged-in account; sending a matching request carrying the account identifier of the first account and the song identifier of the first instant messaging shared song audio to the server; receiving account identification of a third account and second instant messaging shared song audio sent by the server; displaying an instant messaging window for instant messaging between the first account and the third account, and switching the first instant messaging shared song audio frequency into the second instant messaging shared song audio frequency for playing;
the server is configured to receive matching requests sent by a plurality of terminals, wherein the matching requests carry account identifications of accounts logged in by the terminals and song identifications of song audio currently played by the terminals; selecting a first account and a third account which do not have a friend relationship from the accounts corresponding to the received multiple matching requests; determining a second instant messaging shared song audio based on the song identification corresponding to the first account and the song identification corresponding to the third account; and sending the account identifier of the third account and the second instant messaging shared song audio to the terminal with the first account logged in, and sending the account identifier of the first account and the second instant messaging shared song audio to the terminal with the third account logged in.
13. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction that is loaded and executed by the processor to perform operations performed by the method of instant messaging matching according to any of claims 1 to 9.
14. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by the method of instant messaging matching according to any one of claims 1 to 9.
CN202010046977.2A 2020-01-16 2020-01-16 Instant messaging matching method, device, system, equipment and storage medium Active CN111314205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010046977.2A CN111314205B (en) 2020-01-16 2020-01-16 Instant messaging matching method, device, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010046977.2A CN111314205B (en) 2020-01-16 2020-01-16 Instant messaging matching method, device, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111314205A true CN111314205A (en) 2020-06-19
CN111314205B CN111314205B (en) 2023-06-27

Family

ID=71161379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010046977.2A Active CN111314205B (en) 2020-01-16 2020-01-16 Instant messaging matching method, device, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111314205B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852778A (en) * 2021-11-29 2021-12-28 见面(天津)网络科技有限公司 Multi-user video call method, device, equipment and storage medium

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090083117A1 (en) * 2006-12-13 2009-03-26 Concert Technology Corporation Matching participants in a p2p recommendation network loosely coupled to a subscription service
US20090177981A1 (en) * 2008-01-06 2009-07-09 Greg Christie Portable Electronic Device for Instant Messaging Multiple Recipients
CN102143234A (en) * 2011-04-11 2011-08-03 成都天语星空科技有限公司 Network-based method for synchronous interaction
US20110288912A1 (en) * 2010-05-21 2011-11-24 Comcast Cable Communications, Llc Content Recommendation System
CN102857471A (en) * 2011-06-27 2013-01-02 深圳深讯和科技有限公司 Multimedia interacting method and system
WO2014003341A1 (en) * 2012-06-29 2014-01-03 Lee Sun Woong Friend recommendation method and dynamic community generating method using interest graph of music in social network
CN103748610A (en) * 2011-03-29 2014-04-23 Ti广场技术株式会社 Method and system for providing multimedia content sharing service while conducting communication service
CN103763178A (en) * 2014-01-03 2014-04-30 腾讯科技(深圳)有限公司 Information pushing method, server, user terminal and system
WO2014110989A1 (en) * 2013-01-16 2014-07-24 Tencent Technology (Shenzhen) Company Limited Method, apparatus, system and computer readable storage medium of adding instant message contact
CN103970802A (en) * 2013-02-05 2014-08-06 百度在线网络技术(北京)有限公司 Song recommending method and device
CN104008138A (en) * 2014-05-08 2014-08-27 南京邮电大学 Music recommendation method based on social network
WO2014169639A1 (en) * 2013-04-15 2014-10-23 Tencent Technology (Shenzhen) Company Limited Systems and methods for data exchange in voice communication
CN104243528A (en) * 2013-06-20 2014-12-24 腾讯科技(深圳)有限公司 Method and system for synchronously copying contents among multiple terminal devices
CN104685854A (en) * 2015-01-07 2015-06-03 加一联创电子科技有限公司 Method and system for providing social contact service based on music information
US20160142346A1 (en) * 2014-11-19 2016-05-19 Novastone Media Ltd. Avoiding Message Conflict
CN105872443A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Same video based chatting method and system, and server
CN106559469A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of method and apparatus that music information is pushed based on instant messaging
US20170337269A1 (en) * 2016-05-17 2017-11-23 Charles Eugene Gafford, III System for sharing musical preferences
CN107465598A (en) * 2017-08-11 2017-12-12 北京安云世纪科技有限公司 Audio and video playing method, apparatus and terminal
WO2018006840A1 (en) * 2016-07-07 2018-01-11 腾讯科技(深圳)有限公司 Account login method and apparatus, and storage medium
CN107967357A (en) * 2017-12-21 2018-04-27 广东小天才科技有限公司 A kind of method for pushing of good friend, system and terminal device
CN109327608A (en) * 2018-09-12 2019-02-12 广州酷狗计算机科技有限公司 Method, terminal, server and the system that song is shared
CN110011902A (en) * 2019-03-29 2019-07-12 上海掌门科技有限公司 Social contact method and equipment
US20200004495A1 (en) * 2018-06-27 2020-01-02 Apple Inc. Generating a Customized Social-Driven Playlist

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090083117A1 (en) * 2006-12-13 2009-03-26 Concert Technology Corporation Matching participants in a p2p recommendation network loosely coupled to a subscription service
US20090177981A1 (en) * 2008-01-06 2009-07-09 Greg Christie Portable Electronic Device for Instant Messaging Multiple Recipients
US20110288912A1 (en) * 2010-05-21 2011-11-24 Comcast Cable Communications, Llc Content Recommendation System
CN103748610A (en) * 2011-03-29 2014-04-23 Ti广场技术株式会社 Method and system for providing multimedia content sharing service while conducting communication service
CN102143234A (en) * 2011-04-11 2011-08-03 成都天语星空科技有限公司 Network-based method for synchronous interaction
CN102857471A (en) * 2011-06-27 2013-01-02 深圳深讯和科技有限公司 Multimedia interacting method and system
WO2014003341A1 (en) * 2012-06-29 2014-01-03 Lee Sun Woong Friend recommendation method and dynamic community generating method using interest graph of music in social network
WO2014110989A1 (en) * 2013-01-16 2014-07-24 Tencent Technology (Shenzhen) Company Limited Method, apparatus, system and computer readable storage medium of adding instant message contact
CN103970802A (en) * 2013-02-05 2014-08-06 百度在线网络技术(北京)有限公司 Song recommending method and device
WO2014169639A1 (en) * 2013-04-15 2014-10-23 Tencent Technology (Shenzhen) Company Limited Systems and methods for data exchange in voice communication
CN104243528A (en) * 2013-06-20 2014-12-24 腾讯科技(深圳)有限公司 Method and system for synchronously copying contents among multiple terminal devices
CN103763178A (en) * 2014-01-03 2014-04-30 腾讯科技(深圳)有限公司 Information pushing method, server, user terminal and system
CN104008138A (en) * 2014-05-08 2014-08-27 南京邮电大学 Music recommendation method based on social network
US20160142346A1 (en) * 2014-11-19 2016-05-19 Novastone Media Ltd. Avoiding Message Conflict
CN104685854A (en) * 2015-01-07 2015-06-03 加一联创电子科技有限公司 Method and system for providing social contact service based on music information
CN106559469A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of method and apparatus that music information is pushed based on instant messaging
CN105872443A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Same video based chatting method and system, and server
US20170337269A1 (en) * 2016-05-17 2017-11-23 Charles Eugene Gafford, III System for sharing musical preferences
WO2018006840A1 (en) * 2016-07-07 2018-01-11 腾讯科技(深圳)有限公司 Account login method and apparatus, and storage medium
CN107465598A (en) * 2017-08-11 2017-12-12 北京安云世纪科技有限公司 Audio and video playing method, apparatus and terminal
CN107967357A (en) * 2017-12-21 2018-04-27 广东小天才科技有限公司 A kind of method for pushing of good friend, system and terminal device
US20200004495A1 (en) * 2018-06-27 2020-01-02 Apple Inc. Generating a Customized Social-Driven Playlist
CN109327608A (en) * 2018-09-12 2019-02-12 广州酷狗计算机科技有限公司 Method, terminal, server and the system that song is shared
CN110011902A (en) * 2019-03-29 2019-07-12 上海掌门科技有限公司 Social contact method and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852778A (en) * 2021-11-29 2021-12-28 见面(天津)网络科技有限公司 Multi-user video call method, device, equipment and storage medium
CN113852778B (en) * 2021-11-29 2022-06-17 见面(天津)网络科技有限公司 Multi-user video call method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111314205B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN109874312B (en) Method and device for playing audio data
CN110278464B (en) Method and device for displaying list
CN109327608B (en) Song sharing method, terminal, server and system
CN108737897B (en) Video playing method, device, equipment and storage medium
CN108093307B (en) Method and system for acquiring playing file
CN108881286B (en) Multimedia playing control method, terminal, sound box equipment and system
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN110740340B (en) Video live broadcast method and device and storage medium
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN112583806B (en) Resource sharing method, device, terminal, server and storage medium
CN111711838B (en) Video switching method, device, terminal, server and storage medium
CN111327928A (en) Song playing method, device and system and computer storage medium
CN115378900A (en) Song list sharing method, device, terminal and storage medium
CN111402844B (en) Song chorus method, device and system
CN114116053A (en) Resource display method and device, computer equipment and medium
WO2020244516A1 (en) Online interaction method and device
CN113204671A (en) Resource display method, device, terminal, server, medium and product
CN110234036B (en) Method, device and system for playing multimedia file
WO2022227581A1 (en) Resource display method and computer device
CN111314205B (en) Instant messaging matching method, device, system, equipment and storage medium
CN111399797B (en) Voice message playing method and device, electronic equipment and storage medium
CN111641853B (en) Multimedia resource loading method and device, computer equipment and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN110944214B (en) Method, device, equipment, system and storage medium for intercepting high-tide video segments of songs

Legal Events

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