CN110191236B - Song playing queue management method and device, terminal equipment and storage medium - Google Patents

Song playing queue management method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN110191236B
CN110191236B CN201910570213.0A CN201910570213A CN110191236B CN 110191236 B CN110191236 B CN 110191236B CN 201910570213 A CN201910570213 A CN 201910570213A CN 110191236 B CN110191236 B CN 110191236B
Authority
CN
China
Prior art keywords
play
play queue
queue
song
source information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910570213.0A
Other languages
Chinese (zh)
Other versions
CN110191236A (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.)
Chengdu kugou business incubator management 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 CN201910570213.0A priority Critical patent/CN110191236B/en
Publication of CN110191236A publication Critical patent/CN110191236A/en
Application granted granted Critical
Publication of CN110191236B publication Critical patent/CN110191236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • G06F16/639Presentation of query results using playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The invention discloses a song playing queue management method and device, terminal equipment and a storage medium, and belongs to the field of terminal equipment. The method comprises the following steps: generating a first play queue in response to a song play instruction based on the song list; obtaining source information of each play queue in a play queue set, wherein the play queue set comprises the first play queue and at least one historical play queue with play time closest to the first play queue, the number of the play queues in the play queue set does not exceed a preset upper limit value, and the source information is used for indicating a song menu to which the play queue belongs; and performing deduplication processing on the play queues in the play queue set based on the source information of the first play queue and the source information of the historical play queue. The invention can simply and efficiently remove the song playing queue with higher repetition degree.

Description

Song playing queue management method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of terminal devices, and in particular, to a method and an apparatus for managing a song play queue, a terminal device, and a storage medium.
Background
In the era of mobile internet, with the continuous development of terminal devices such as smart phones in terms of tone quality, it is one of the daily lives of users to listen to music by using smart phones. When the terminal device plays the song list under the instruction of the user, a song play queue is generally generated, and then songs are selected from the song play queue according to a certain rule (for example, randomly, sequentially, etc.).
Disclosure of Invention
The embodiment of the invention provides a song playing queue management method, a song playing queue management device, terminal equipment and a storage medium, which can simply and efficiently remove a song playing queue with high repetition degree. The technical scheme is as follows:
in one aspect, an embodiment of the present invention provides a method for managing a song play queue, where the method includes:
generating a first play queue in response to a song play instruction based on the song list;
obtaining source information of each play queue in a play queue set, wherein the play queue set comprises the first play queue and at least one historical play queue with play time closest to the first play queue, the number of the play queues in the play queue set does not exceed a preset upper limit value, and the source information is used for indicating a song menu to which the play queue belongs;
and performing deduplication processing on the play queues in the play queue set based on the source information of the first play queue and the source information of the historical play queue.
In an implementation manner of the embodiment of the present invention, the performing, based on the source information of the first play queue and the source information of the historical play queue, a deduplication process on the play queue in the play queue set includes: and if the source information of the first play queue is the same as the source information of a second play queue in the at least one historical play queue, deleting the second play queue from the play queue set.
In an implementation manner of the embodiment of the present invention, if the source information of the first play queue is the same as the source information of a second play queue in the at least one historical play queue, deleting the second play queue from the play queue set includes:
if the source information of the first play queue is the same as the source information of a second play queue in the at least one historical play queue, judging whether the time difference between the time when the first play queue is added into the play queue set and the time when the second play queue is added into the play queue set is smaller than or equal to a preset time length;
and if the time difference between the time when the first play queue is added into the play queue set and the time when the second play queue is added into the play queue set is less than or equal to the preset time length, deleting the second play queue from the play queue set.
In an implementation manner of the embodiment of the present invention, the method further includes: and if the time difference between the time when the first play queue is added into the play queue set and the time when the second play queue is added into the play queue set is greater than the preset time length, performing deduplication processing on the play queues in the play queue set based on the track information of the first play queue and the track information of the at least one historical play queue.
In an implementation manner of the embodiment of the present invention, the method further includes: and if the source information of the first play queue is different from the source information of all the historical play queues, performing deduplication processing on the play queues in the play queue set based on the track information of the first play queue and the track information of the at least one historical play queue.
In an implementation manner of the embodiment of the present invention, the performing, based on the track information of the first play queue and the track information of the at least one historical play queue, a deduplication process on the play queues in the play queue set includes: and if the track information of the first play queue is the same as the track information of a third play queue in the historical play queues, deleting the third play queue from the play queue set, wherein the track information comprises the number of the songs and the mapping relation between the sequence numbers and the songs.
Optionally, the method further comprises: and if the source information of the first play queue is different from the source information of all the historical play queues, the song information of the first play queue is different from the song information of all the historical play queues, and the number of the play queues in the play queue set exceeds a preset upper limit value, deleting the historical play queue generated firstly in the historical play queues.
Optionally, the method further comprises: and displaying the playing queues in the playing queue set and the source information of each playing queue in the playing queue interface.
Optionally, the song list indicated by the source information is selected from the following song lists: local music, i like, my favorite, download management, recent play, guess you like, music station.
On the other hand, an embodiment of the present invention further provides a song playing queue management apparatus, where the apparatus includes:
the generating module is used for responding to a song playing instruction based on the song list and generating a first playing queue;
the acquisition module is used for acquiring source information of each play queue in a play queue set, the play queue set comprises the first play queue and at least one historical play queue with the play time closest to the first play queue, the number of the play queues in the play queue set does not exceed a preset upper limit value, and the source information is used for indicating a song list to which the play queue belongs;
and the duplication removing module is used for carrying out duplication removing processing on the play queues in the play queue set based on the source information of the first play queue and the source information of the historical play queue.
In an implementation manner of the embodiment of the present invention, the duplication elimination module is configured to delete the second play queue from the play queue set if the source information of the first play queue is the same as the source information of the second play queue in the at least one historical play queue.
In an implementation manner of the embodiment of the present invention, the removing the duplicate module is configured to, if the source information of the first play queue is the same as the source information of a second play queue in the at least one historical play queue, delete the second play queue from the play queue set, where the deleting includes:
if the source information of the first play queue is the same as the source information of a second play queue in the at least one historical play queue, judging whether the time difference between the time when the first play queue is added into the play queue set and the time when the second play queue is added into the play queue set is smaller than or equal to a preset time length;
and if the time difference between the time when the first play queue is added into the play queue set and the time when the second play queue is added into the play queue set is less than or equal to the preset time length, deleting the second play queue from the play queue set.
In an implementation manner of the embodiment of the present invention, the duplication elimination module is further configured to perform duplication elimination processing on the play queues in the play queue set based on the track information of the first play queue and the track information of the at least one historical play queue if a time difference between a time when the first play queue joins the play queue set and a time when the second play queue joins the play queue set is greater than the preset time length.
In an implementation manner of the embodiment of the present invention, the duplication elimination module is further configured to, if the source information of the first play queue is different from the source information of all the historical play queues, perform duplication elimination processing on the play queues in the play queue set based on the track information of the first play queue and the track information of the at least one historical play queue.
In an implementation manner of the embodiment of the present invention, the duplication elimination module is configured to delete the third play queue from the play queue set if the track information of the first play queue is the same as the track information of the third play queue in the historical play queue, where the track information includes the number of songs and a mapping relationship between a sequence number and a song.
Optionally, the apparatus further comprises: and the management module is used for deleting the historical play queue generated firstly in the historical play queue if the source information of the first play queue is different from the source information of all the historical play queues, the song information of the first play queue is different from the song information of all the historical play queues, and the number of the play queues in the play queue set exceeds a preset upper limit value.
Optionally, the apparatus further comprises: and the display module is used for displaying the play queues in the play queue set and the source information of each play queue in the play queue interface.
Optionally, the song list indicated by the source information is selected from the following song lists: local music, i like, my favorite, download management, recent play, guess you like, music station.
On the other hand, an embodiment of the present invention further provides a terminal device, where the terminal device includes: a processor; a memory configured to store processor-executable instructions; wherein the processor is configured to perform the song playback queue management method of any of the preceding claims.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, where instructions in the computer-readable storage medium, when executed by a processor of a terminal device, enable the terminal device to perform the song playback queue management method according to any one of the preceding claims.
In the embodiment of the present invention, after the first play queue is generated, the source information of each play queue in the play queue set is obtained, because the play queue in the play queue set includes the first play queue and the source information of at least one historical play queue whose play time is closest to the first play queue, and the number of the play queues in the play queue set has an upper limit, the play queues in the play queue set are usually the play queues that have been played recently. For songs with more frequent updates, the difference between the play queues generated based on the same song (i.e., the play queues with the same source) is usually smaller under the condition of short time intervals, so that the play queues in the play queue set are deduplicated based on the source information of the first play queue and the historical play queue, the play queue with higher repetition degree than the first play queue in the play queue set can be removed, and two or more play queues with higher repetition degree occupy the positions in the play queue set. And by comparing the source information of the first play queue and the historical play queue for duplication, compared with the method for determining the duplication degree of the first play queue and the historical play queue based on the song information in the play queue, the method is simple to implement and high in efficiency.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, 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 flow chart illustrating a song play queue management method provided by an exemplary embodiment of the present invention;
FIG. 2 illustrates a schematic diagram of a song list interface for a song sheet provided by an exemplary embodiment of the present invention;
FIG. 3 is a diagram illustrating a page in a play queue interface in accordance with an illustrative embodiment of the present invention;
FIG. 4 is a diagram illustrating another page in the play queue interface in accordance with an illustrative embodiment of the present invention;
FIG. 5 is a flowchart illustrating a song play queue management method according to an exemplary embodiment of the present invention;
fig. 6 is a block diagram illustrating a song play queue management apparatus according to an exemplary embodiment of the present invention;
fig. 7 shows a block diagram of a terminal device according to an exemplary embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention is suitable for the terminal equipment provided with the music playing program, and the terminal equipment can play various audio files through the music playing program and can adopt the forms of online playing and local playing. Currently, a music playing program may provide a plurality of song lists, each of which includes a plurality of songs, and a user may select to play the songs in units of the song list. When a user selects to play songs in a certain song list, a play queue is generated based on the song list and is displayed in a play queue interface, so that the user can conveniently check which songs are to be played or the songs which are already played.
Fig. 1 is a flowchart illustrating a song play queue management method according to an exemplary embodiment of the present invention. The method can be executed in terminal equipment, and the terminal equipment comprises but is not limited to a smart phone, a tablet computer, a notebook computer or a desktop computer and the like. Referring to fig. 1, the method includes:
step 101: in response to a song play instruction based on the song list, a first play queue is generated.
A song list, i.e. a list of songs. A single song typically includes a plurality of songs, and the song list may be generated in a variety of ways, including but not limited to the following:
the network side provides, for example, official recommended song lists, song lists shared by other users, guess you like, music radio stations and the like;
obtaining a song list based on locally stored audio files, for example, local music, including all the audio files stored in the terminal device that can be scanned, and for example, downloading and managing the song list, including audio files downloaded to the terminal device through music playing software in a certain period;
user-defined generation, for example, a user creates a new song list, names the song list, and adds songs to the song list; for another example, the my collection adds the corresponding song to the song list of the my collection based on the song collection instruction of the user; also for example, i like, based on a user's selection instruction to act on a particular option (e.g., an option with a love identification), the corresponding song is added to the list i like.
The user may select to play all songs in the song list at once through a song play instruction based on the song list. Here, the song playback instruction based on the song list is used to instruct to play the song in the song list, and may also be referred to as a song list playback instruction. The song playing instruction can have a plurality of triggering modes. For example, there is an option of playing all music in the song list interface of the song list, and when the user clicks the option, a song playing instruction is generated; for another example, in the song list interface of the song list, one of the songs is arbitrarily clicked, and a song playing instruction is generated.
Fig. 2 is a diagram illustrating a song list interface of a song sheet provided by an exemplary embodiment of the present invention. As shown in fig. 2, the song list interface of the song list has a song list introduction area 21, an operation option area 22, and a song list area 23.
The song list introduction area 21 is used for displaying the related information of the song list, such as the song list cover, the song list name/subject, the user information (such as the user's head portrait, the user name, etc.) of the user who created the song list, and the like. The operation option area 22 includes a plurality of operation options such as sharing, downloading, commenting, collecting the song list, all playing, and the like. The song list area 23 includes information about songs in the list, such as the title of the song, the name of the singer, and the like.
The song playing instruction can be generated by clicking the operation option of playing the whole song or clicking any song.
After receiving the song playing instruction, the mobile terminal may add all songs in the song list to one playing queue, or add songs (for example, all songs that can be played according to the user's permission) in the song list that meet a preset condition to one playing queue, to obtain a first playing queue, and the first playing queue is usually added to the playing queue interface as a latest playing queue for presentation.
Step 102: and acquiring the source information of each play queue in the play queue set.
The playing queue set comprises a first playing queue and at least one historical playing queue with playing time closest to the first playing queue, and the number of the playing queues in the playing queue set does not exceed a preset upper limit value.
The preset upper limit value can be preset according to actual needs, and for example, the number of the preset upper limit values can be 2-5.
Illustratively, the play queue in the play queue set refers to a play queue that can be exposed in the play queue interface. In general, a plurality of recently played play queues can be shown in the play queue interface. Illustratively, the play queue interface may display the play queues of the set of play queues in pages, one play queue per page.
FIG. 3 is a diagram illustrating a page in a play queue interface according to an exemplary embodiment of the invention. FIG. 4 is a diagram illustrating another page in the play queue interface in accordance with an illustrative embodiment of the present invention. As shown in fig. 3 and 4, the play queue interface 31 may be in the form of a pop-up window or a floating window, and is located at a lower portion of the entire display area of the terminal device. Below the play queue interface 31 is a main interface 32 or other interface of the music playing application.
In the page shown in fig. 3, the play queue interface 31 includes all songs in the first play queue and serial numbers corresponding to the songs. In the page shown in fig. 4, the play queue interface 31 includes all songs in a history play queue (latest play queue) before the first play queue and serial numbers corresponding to the songs.
In fig. 3 and 4, dots 31a are provided in the bottom area of the play queue interface 31, the number of the dots 31a represents the number of pages of the play queue interface, and since each page shows one play queue, the number of the dots 31a is also equal to the number of the play queues in the play queue set.
Illustratively, the respective pages in the play queue interface 31 may be switched based on a slide operation acting on the play queue interface. Namely, when the sliding operation acted on the playing queue interface is received, the playing queue displayed on the playing queue interface is changed. For example, sliding right on the play queue interface shown in fig. 3 may result in the play queue interface shown in fig. 4; conversely, sliding left on the play queue interface shown in fig. 4 can obtain the play queue interface shown in fig. 3.
Here, the source information is used to indicate a song list to which the play queue belongs. For example, if the first play queue is generated based on the favorite song list, the song list to which the first play queue belongs is the favorite song list.
Optionally, the song list indicated by the source information is selected from the following song lists: local music, i like, my favorite, download management, recent play, guess you like, music station. The song lists belong to the song lists with high updating frequency and small updating degree each time, and are particularly suitable for the song playing queue management method provided by the embodiment of the invention. The source information of the embodiments of the present invention is not limited to the above-listed song list.
Illustratively, the source information may be the name of the song list or the identification of the song list, for example, i like the name of the song list and love symbol the identification of the song list.
Step 103: and performing deduplication processing on the play queues in the play queue set based on the source information of the first play queue and the source information of the historical play queue.
In the embodiment of the present invention, after the first play queue is generated, the source information of each play queue in the play queue set is obtained, because the play queue in the play queue set includes the first play queue and the source information of at least one historical play queue whose play time is closest to the first play queue, and the number of the play queues in the play queue set has an upper limit, the play queues in the play queue set are usually the play queues that have been played recently. For songs with more frequent updates, the difference between songs generated based on the same song (i.e. the play queues with the same source) is usually smaller under the condition of short interval time, so that the play queues in the play queue set are deduplicated based on the source information of the first play queue and the historical play queue, the play queues with higher repetition degree with the first play queue in the play queue set can be removed, and two or more play queues with higher repetition degree occupy the positions in the play queue set. And by comparing the source information of the first play queue and the historical play queue for duplication, compared with the method for determining the duplication degree of the first play queue and the historical play queue based on the song information in the play queue, the method is simple to implement and high in efficiency.
Fig. 5 is a flowchart of a song playing queue management method according to an embodiment of the present invention. The method may be executed in a terminal device, including but not limited to a smart phone, a tablet computer, a notebook computer, or a desktop computer, etc., and referring to fig. 5, the method includes:
step 201: in response to a song play instruction based on the song list, a first play queue is generated.
The relevant content of step 201 can be referred to step 101, and the detailed description is omitted here.
Step 202: and acquiring the source information of each play queue in the play queue set.
The relevant content of this step 202 can be referred to as step 102, and a detailed description is omitted here.
Step 203: respectively comparing the source information of the first play queue with the source information of each historical play queue, and if the source information of the first play queue is the same as the source information of the second play queue in the historical play queues, executing step 204; if the source information of the first play queue is different from the source information of all the play queues in the history play queue, step 205 is executed.
Alternatively, step 203 may employ the following steps instead:
respectively comparing the source information of the first play queue with the source information of each historical play queue;
if the source information of the first play queue is the same as the source of the second play queue in the historical play queue, judging whether the time difference between the time of the first play queue joining the play queue set and the time of the second play queue joining the play queue set is less than or equal to the preset time length;
if the time difference between the time when the first play queue joins the play queue set and the time when the second play queue joins the play queue set is less than or equal to the preset time length, executing step 204;
if the source information of the first play queue is different from the source information of all the play queues in the history play queue, or if the time difference between the time when the first play queue joins the play queue set and the time when the second play queue joins the play queue set is greater than the preset time length, step 205 is executed.
When the source information of the first play queue is the same as the source of the second play queue in the history play queue, whether the time difference between the time when the first play queue is added to the play queue set and the time when the second play queue is added to the play queue set is smaller than or equal to the preset time length is further judged, and whether the two play queues with the same source are play queues with higher repetition degree can be accurately judged in advance. If the interval time for two play queues with the same source to join the play queue set is shorter, the probability of the two play queues with the same source to join the play queue set is higher, and if the interval time for the two play queues with the same source to join the play queue set is longer, the probability of the two play queues with the same source to join the play queue set is lower.
Illustratively, the time at which the play queue joins the set of play queues may be the generation time of the play queue.
Step 204: the second play queue is deleted from the set of play queues.
That is, if the first play queue and the second play queue in the history play queue are generated from the same song list, the second play queue is removed from the play queue set.
Through the step 204, the play queues in the play queue set can be deduplicated based on the source information of the first play queue and the source information of the historical play queue.
Illustratively, if the first play queue and the second play queue are both generated from the i like song list, the difference between the songs in the i like song list when the second play queue is generated and the songs in the i like song list when the first play queue is generated is that the latter has one more song than the former, i.e., there is only one song difference between the first play queue and the second play queue. In this case, if the duplicate is removed in the manner in the related art (i.e., only for the identical play queue), both the first play queue and the second play queue will remain in the play queue set. Because the difference between the two play queues is small, the possibility that a user can use the second play queue is small under the condition that the first play queue exists, and the useless play queue occupies the position of the play queue interface under the condition that the number of the play queues in the play queue set has a preset upper limit value. In the embodiment of the present invention, in this step 204, when it is determined that the first play queue and the second play queue are generated by the same song list, the second play queue is deleted from the play queue set. The play queue with higher repetition degree with the first play queue in the history play queue can be effectively removed, namely, the useless play queue is removed.
Step 205: and based on the track information of the first play queue and the track information of the historical play queue, carrying out deduplication processing on the play queues in the play queue set.
This step 205 may include:
if the track information of the first play queue is the same as the track information of the third play queue in the historical play queue, the third play queue is deleted from the play queue set, and the track information may include the number of songs and the mapping relationship between the sequence number and the songs.
The track information of the first play queue is the same as the track information of the third play queue, which means that the number of the songs in the first play queue is the same as the number of the songs in the third play queue, and the songs corresponding to each sequence number are the same according to the arrangement sequence from front to back in the play list.
Illustratively, this step 205 may include the steps of:
the method comprises the following steps of firstly, acquiring the number of songs in a first play queue and the number of songs in each historical play queue;
step two, respectively comparing the number of songs in the first play queue with the number of songs in the historical play queue;
thirdly, judging whether the songs corresponding to the same sequence number in the first playing queue and the historical playing queue are the same or not for the first playing queue and the historical playing queue with the same number of songs; and if the songs corresponding to all the sequence numbers in the first play queue and the historical play queue are the same and the historical play queue is the third play queue, deleting the third play queue from the play queue set.
For example, whether the songs corresponding to the same sequence number in the first play queue and the historical play queue are the same or not may be determined according to the song name and the singer name, for example, if the song name and the singer name are both the same, it indicates that the songs corresponding to the same sequence number are the same, and if any one of the song name and the singer name is different, it indicates that the songs corresponding to the same job number are different.
By comparing the number of songs and then comparing the detailed information of each song in the list, processing algorithms can be saved and efficiency can be improved.
Alternatively, in other embodiments, it may also be directly determined whether the songs corresponding to the same sequence number in the first play queue and the history play queue are the same.
Optionally, after the step 205, the method may further include:
step 206: and if the track information of the first play queue is different from the track information of all the historical play queues and the number of the play queues in the play queue set exceeds a preset upper limit value, deleting the play queue generated firstly in the historical play queues.
Since the longer the interval time is, the lower the possibility that the user may reuse the play queue, when the number of play queues in the play queue set exceeds a preset upper limit value, the play queue generated first in the history play queue may be removed.
Optionally, the method further comprises: and displaying the playing queues in the playing queue set and the source information of each playing queue in the playing queue interface so as to facilitate a user to distinguish each playing queue. Illustratively, referring again to FIG. 4, the historical play queue is on a page having a song name in the top region 31b of the page.
In the embodiment of the present invention, after the first play queue is generated, the source information of each play queue in the play queue set is obtained, because the play queue in the play queue set includes the first play queue and the source information of at least one historical play queue whose play time is closest to the first play queue, and the number of the play queues in the play queue set has an upper limit, the play queues in the play queue set are usually the play queues that have been played recently. For songs with more frequent updates, the difference between songs generated based on the same song (i.e. the play queues with the same source) is usually smaller under the condition of short time intervals, so that the play queues in the play queue set are deduplicated based on the source information of the first play queue and the historical play queue, the play queues with higher repetition degree than the first play queue in the play queue set can be removed, and the play queues with higher repetition degree or more than two play queues occupy the positions in the play queue set. And by comparing the source information of the first play queue and the historical play queue for duplication, compared with the method for determining the duplication degree of the first play queue and the historical play queue based on the song information in the play queue, the method is simple to implement and high in efficiency.
The following are apparatus embodiments of the present application, to the details of which are not described in detail, reference may be made to the above-described method embodiments.
Fig. 6 is a block diagram of a song playback queue management apparatus according to an embodiment of the present invention. The apparatus has functions of implementing the above method examples, and the functions may be implemented by hardware or by hardware executing corresponding software. Referring to fig. 6, the apparatus includes a generation module 301, an acquisition module 302, and a deduplication module 303.
The generating module 301 is configured to generate a first play queue in response to a song playing instruction based on the song list. The obtaining module 302 is configured to obtain source information of each play queue in a play queue set, where the play queue set includes a first play queue and at least one history play queue whose play time is closest to the first play queue, the number of play queues in the play queue set does not exceed a preset upper limit, and the source information is used to indicate a song menu to which the play queue belongs. The deduplication module 303 is configured to perform deduplication processing on the play queues in the play queue set based on the source information of the first play queue and the source information of the historical play queue.
Optionally, the duplication elimination module 303 is configured to delete the second play queue from the play queue set if the source information of the first play queue is the same as the source information of the second play queue in the at least one historical play queue.
Optionally, the deduplication module 303 is further configured to perform deduplication processing on the play queues in the play queue set based on the track information of the first play queue and the track information of the at least one history play queue if the source information of the first play queue is different from the source information of all history play queues.
Optionally, the duplication elimination module 303 is configured to delete the third play queue from the play queue set if the track information of the first play queue is the same as the track information of the third play queue in the history play queue, where the track information includes the number of songs and a mapping relationship between the sequence number and the song.
Optionally, the apparatus further comprises: the management module 304 is configured to delete the historical play queue generated first in the historical play queues if the source information of the first play queue is different from the source information of all the historical play queues, the track information of the first play queue is different from the track information of all the historical play queues, and the number of the play queues in the play queue set exceeds a preset upper limit value.
Optionally, the apparatus further comprises: the presentation module 305 is configured to present, in the play queue interface, the play queues in the play queue set and source information of each play queue.
Optionally, the song list indicated by the source information is selected from the following song lists: local music, i like, my favorite, download management, recent play, guess you like, music station.
Fig. 7 shows a block diagram of a terminal device 400 according to an exemplary embodiment of the present invention. The terminal device 400 may be: a smartphone, a tablet, a laptop, or a desktop computer. The terminal device 400 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
As shown in fig. 7, the terminal device 400 includes: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 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 401 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 called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 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 402 is used to store at least one instruction for execution by processor 401 to implement the song playback queue management method provided by method embodiments herein.
In some embodiments, the terminal device 400 may further include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 404, a display screen 405, a camera assembly 406, an audio circuit 407, a positioning assembly 408, and a power supply 409.
The peripheral interface 403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402 and the peripheral interface 403 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 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 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 404 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 404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 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, the display screen 405 may be one, providing the front panel of the terminal device 400; in other embodiments, the display screen 405 may be at least two, and respectively disposed on different surfaces of the terminal device 400 or in a folding design; in still other embodiments, the display 405 may be a flexible display disposed on a curved surface or on a folded surface of the terminal device 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 405 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 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 406 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 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different positions of the terminal device 400. 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 401 or the radio frequency circuit 404 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, audio circuitry 407 may also include a headphone jack.
The positioning component 408 is used to locate the current geographic Location of the terminal device 400 for navigation or LBS (Location Based Service). The Positioning component 408 may be a Positioning component based on the GPS (Global Positioning System) of the united states, the beidou System of china, the graves System of russia, or the galileo System of the european union.
The power supply 409 is used to supply power to various components in the terminal device 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When power source 409 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal device 400 further includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal device 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the terminal device 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the user on the terminal device 400. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 413 may be disposed on a side bezel of the terminal device 400 and/or on a lower layer of the touch display screen 405. When the pressure sensor 413 is arranged on the side frame of the terminal device 400, the holding signal of the user to the terminal device 400 can be detected, and the processor 401 performs left-right hand identification or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. 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 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 414 may be provided on the front, back or side of the terminal device 400. When a physical key or vendor Logo is provided on the terminal device 400, the fingerprint sensor 414 may be integrated with the physical key or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
The proximity sensor 416, also called a distance sensor, is generally provided on the front panel of the terminal device 400. The proximity sensor 416 is used to collect the distance between the user and the front surface of the terminal device 400. In one embodiment, when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal device 400 gradually decreases, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the dark screen state; when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal device 400 becomes gradually larger, the processor 401 controls the touch display screen 405 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 6 does not constitute a limitation of the terminal device 400, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
An embodiment of the present invention further provides a computer-readable storage medium, where instructions in the computer-readable storage medium, when executed by a processor of a terminal device, enable the terminal device to execute the song playback queue management method described above. The computer readable storage medium may be non-transitory. For example, the computer readable storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A song playback queue management method, the method comprising:
generating a first play queue in response to a song play instruction based on the song list;
obtaining source information of each play queue in a play queue set, wherein the play queue set comprises the first play queue and at least one historical play queue with play time closest to the first play queue, the number of the play queues in the play queue set does not exceed a preset upper limit value, and the source information is used for indicating a song menu to which the play queue belongs;
and if the source information of the first play queue is the same as the source information of a second play queue in the at least one historical play queue, deleting the second play queue from the play queue set.
2. The method of claim 1, wherein the deleting the second play queue from the set of play queues if the source information of the first play queue is the same as the source information of a second play queue in the at least one historical play queue comprises:
if the source information of the first play queue is the same as the source information of a second play queue in the at least one historical play queue, judging whether the time difference between the time when the first play queue is added into the play queue set and the time when the second play queue is added into the play queue set is smaller than or equal to a preset time length;
and if the time difference between the time when the first play queue is added into the play queue set and the time when the second play queue is added into the play queue set is less than or equal to the preset time length, deleting the second play queue from the play queue set.
3. The method of claim 2, further comprising:
and if the time difference between the time when the first play queue is added into the play queue set and the time when the second play queue is added into the play queue set is greater than the preset time length, performing deduplication processing on the play queues in the play queue set based on the track information of the first play queue and the track information of the at least one historical play queue.
4. The method of claim 1, further comprising:
and if the source information of the first play queue is different from the source information of all the historical play queues, performing deduplication processing on the play queues in the play queue set based on the track information of the first play queue and the track information of the at least one historical play queue.
5. The method according to claim 3 or 4, wherein the performing the deduplication processing on the play queues in the play queue set based on the track information of the first play queue and the track information of the at least one historical play queue comprises:
and if the track information of the first play queue is the same as the track information of a third play queue in the historical play queues, deleting the third play queue from the play queue set, wherein the track information comprises the number of the songs and the mapping relation between the sequence numbers and the songs.
6. The method of claim 1, further comprising:
and if the source information of the first play queue is different from the source information of all the historical play queues, the song information of the first play queue is different from the song information of all the historical play queues, and the number of the play queues in the play queue set exceeds a preset upper limit value, deleting the historical play queue generated firstly in the historical play queues.
7. An apparatus for managing a song play queue, the apparatus comprising:
the generating module is used for responding to a song playing instruction based on the song list and generating a first playing queue;
the acquisition module is used for acquiring source information of each play queue in a play queue set, the play queue set comprises the first play queue and at least one historical play queue with the play time closest to the first play queue, the number of the play queues in the play queue set does not exceed a preset upper limit value, and the source information is used for indicating a song list to which the play queue belongs;
and the duplication removing module is used for deleting the second play queue from the play queue set if the source information of the first play queue is the same as the source information of the second play queue in the at least one historical play queue.
8. A terminal device, characterized in that the terminal device comprises: a processor; a memory configured to store processor-executable instructions; wherein the processor is configured to perform the song playback queue management method of any one of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a terminal device, enable the terminal device to perform the song playback queue management method of any one of claims 1 to 6.
CN201910570213.0A 2019-06-27 2019-06-27 Song playing queue management method and device, terminal equipment and storage medium Active CN110191236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910570213.0A CN110191236B (en) 2019-06-27 2019-06-27 Song playing queue management method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910570213.0A CN110191236B (en) 2019-06-27 2019-06-27 Song playing queue management method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110191236A CN110191236A (en) 2019-08-30
CN110191236B true CN110191236B (en) 2020-11-17

Family

ID=67723806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910570213.0A Active CN110191236B (en) 2019-06-27 2019-06-27 Song playing queue management method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110191236B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488483B (en) * 2020-04-16 2023-10-24 北京雷石天地电子技术有限公司 Method, device, terminal and non-transitory computer readable storage medium for updating a library
CN112256233A (en) 2020-10-22 2021-01-22 北京字节跳动网络技术有限公司 Music playing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411971A (en) * 2010-11-02 2012-04-11 泗阳天琴软件科技有限公司 Method for screening out content of music player
CN105392086A (en) * 2015-11-04 2016-03-09 广东欧珀移动通信有限公司 Information processing method and play equipment
CN107562745A (en) * 2016-06-30 2018-01-09 上海博泰悦臻网络技术服务有限公司 A kind of generation method of audio playlist, system and a kind of audio frequency broadcast system
CN107622101A (en) * 2017-09-08 2018-01-23 阿里巴巴集团控股有限公司 Play method and device, the electronic equipment of song

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1967520A (en) * 2005-11-15 2007-05-23 英业达股份有限公司 Random playing system and method
US20140075308A1 (en) * 2012-09-10 2014-03-13 Apple Inc. Intelligent media queue
CN104219581A (en) * 2014-09-01 2014-12-17 无锡天脉聚源传媒科技有限公司 Method and device for updating playing list
CN108268199B (en) * 2018-01-17 2020-06-09 杭州网易云音乐科技有限公司 Information processing method, medium, device and computing equipment
CN109671450B (en) * 2018-12-25 2022-07-22 努比亚技术有限公司 Song playing method and device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411971A (en) * 2010-11-02 2012-04-11 泗阳天琴软件科技有限公司 Method for screening out content of music player
CN105392086A (en) * 2015-11-04 2016-03-09 广东欧珀移动通信有限公司 Information processing method and play equipment
CN107562745A (en) * 2016-06-30 2018-01-09 上海博泰悦臻网络技术服务有限公司 A kind of generation method of audio playlist, system and a kind of audio frequency broadcast system
CN107622101A (en) * 2017-09-08 2018-01-23 阿里巴巴集团控股有限公司 Play method and device, the electronic equipment of song

Also Published As

Publication number Publication date
CN110191236A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN107885533B (en) Method and device for managing component codes
CN108965922B (en) Video cover generation method and device and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN109068008B (en) Ringtone setting method, device, terminal and storage medium
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
CN110109608B (en) Text display method, text display device, text display terminal and storage medium
CN111065001A (en) Video production method, device, equipment and storage medium
CN110868636B (en) Video material intercepting method and device, storage medium and terminal
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN112667835A (en) Work processing method and device, electronic equipment and storage medium
CN109102811B (en) Audio fingerprint generation method and device and storage medium
CN111083039A (en) Message unread mark processing method and device, storage medium and terminal
CN111857793B (en) Training method, device, equipment and storage medium of network model
CN110191236B (en) Song playing queue management method and device, terminal equipment and storage medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN110136752B (en) Audio processing method, device, terminal and computer readable storage medium
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN108806730B (en) Audio processing method, device and computer readable storage medium
CN108495183B (en) Method and device for displaying album information
CN111031394A (en) Video production method, device, equipment and storage medium
CN112732133B (en) Message processing method and device, electronic equipment and storage medium
CN110941458B (en) Method, device, equipment and storage medium for starting application program

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
TR01 Transfer of patent right

Effective date of registration: 20220330

Address after: 4119, 41st floor, building 1, No.500, middle section of Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu kugou business incubator management Co.,Ltd.

Address before: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right