CN107273453B - Music playing method, terminal and storage medium - Google Patents

Music playing method, terminal and storage medium Download PDF

Info

Publication number
CN107273453B
CN107273453B CN201710401678.4A CN201710401678A CN107273453B CN 107273453 B CN107273453 B CN 107273453B CN 201710401678 A CN201710401678 A CN 201710401678A CN 107273453 B CN107273453 B CN 107273453B
Authority
CN
China
Prior art keywords
songs
song
determining
cache
playing
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
CN201710401678.4A
Other languages
Chinese (zh)
Other versions
CN107273453A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710401678.4A priority Critical patent/CN107273453B/en
Publication of CN107273453A publication Critical patent/CN107273453A/en
Priority to PCT/CN2018/087580 priority patent/WO2018219165A1/en
Application granted granted Critical
Publication of CN107273453B publication Critical patent/CN107273453B/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/635Filtering based on additional data, e.g. user or group profiles
    • G06F16/637Administration of user profiles, e.g. generation, initialization, adaptation or distribution
    • 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
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing
    • G11B19/022Control panels
    • G11B19/025'Virtual' control panels, e.g. Graphical User Interface [GUI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to the field of terminals and discloses a music playing method, a terminal and a storage medium. The method comprises the following steps: acquiring the identification of each song stored in the cache; determining the playing frequency of each song according to the identification of each song; determining a target song with the playing frequency less than the preset frequency; prompting a user whether to delete the target song; and when an instruction for confirming deletion is received, deleting the target song from the cache. By the technical scheme, the music disliked by the user in the cache can be identified in time, and the user is reminded to delete the music disliked by the user in the cache, so that the cache is released in time, and the running speed of the terminal is guaranteed.

Description

Music playing method, terminal and storage medium
Technical Field
The present invention relates to the field of terminals, and in particular, to a method, a terminal, and a storage medium for playing music.
Background
At present, with the development of science and technology, human material life is also greatly enriched, and intelligent terminals also become popular.
People can work, entertain and play games through the intelligent terminal. Specifically, there is a scene at present, and a user often plays music randomly through a music player installed on an intelligent terminal, so that randomly played songs may not be liked by the user, but may occupy a certain cache in the intelligent terminal, and as the cache is continuously occupied, the operating speed of the intelligent terminal may be slowed down, thereby affecting the normal use of the user.
Disclosure of Invention
The embodiment of the invention discloses a music playing method and a terminal, which can identify the music disliked by a user in a cache in time and remind the user to delete the disliked music in the cache, thereby releasing the cache in time and ensuring the running speed of the terminal.
The first aspect of the embodiments of the present invention discloses a method for playing music, where the method includes:
acquiring the identification of each song stored in the cache;
determining the playing frequency of each song according to the identification of each song;
determining a target song with the playing frequency less than the preset frequency;
prompting a user whether to delete the target song;
and when an instruction for confirming deletion is received, deleting the target song from the cache.
A second aspect of the present invention discloses a terminal, including:
the acquisition unit is used for acquiring the identification of each song stored in the cache;
the first determining unit is used for determining the playing frequency of each song according to the identification of each song;
the first determining unit is further configured to determine a target song with a playing frequency less than a preset frequency;
the prompting unit is used for prompting the user whether to delete the target song;
and the deleting unit is used for deleting the target song from the cache when receiving an instruction for confirming deletion.
A third aspect of the present invention discloses a terminal, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method of any of the first aspects of the invention.
A fourth aspect of the invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a terminal to perform the method according to any one of the first aspect of the invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the identification of each song stored in the cache is obtained; determining the playing frequency of each song according to the identification of each song; determining a target song with the playing frequency less than the preset frequency; prompting a user whether to delete the target song; and when an instruction for confirming deletion is received, deleting the target song from the cache. By the technical scheme, the music disliked by the user in the cache can be identified in time, and the user is reminded to delete the music disliked by the user in the cache, so that the cache is released in time, and the running speed of the terminal is guaranteed.
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 embodiments will be briefly described 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 that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for playing music according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another method for playing music according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating another method for playing music according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another method for playing music according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a user terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention;
fig. 9 is a schematic physical structure diagram of a user equipment according to an embodiment of the present invention;
fig. 10 is a schematic physical structure diagram of a mobile phone disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a music playing method and a terminal, which can identify the music disliked by a user in a cache in time and remind the user to delete the disliked music in the cache, thereby releasing the cache in time and ensuring the running speed of the terminal. The following are detailed below.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a music playing method according to an embodiment of the present invention. The method of music playing may include the following steps.
S101, obtaining the identification of each song stored in the cache.
In the embodiment of the present invention, the terminal may include various terminals such as a Mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like, and the embodiment of the present invention is not limited thereto.
It will be understood that when the user clicks to open a certain music playing application, the user will search for the song he wants to listen to, of course, click to randomly play, click to hit a popular song list, and then play the songs in the whole list, but it should be noted that each played song will be stored in the cache of the terminal.
Where the identification of the song may be the name of the song.
Alternatively, the identification of the song may also be the name of the song + the name of the artist.
Alternatively, the identification of the song may also be the name of the song + the name of the album.
And S102, determining the playing frequency of each song according to the identification of each song.
It will be appreciated that each time a song is played by the terminal, the name of the song being played, the time of play, and the number of plays will be recorded. Therefore, the terminal can determine the playing times of each song according to the identification of each song and then calculate the playing frequency according to the playing times.
Of course, the terminal may also calculate the playing frequency according to the playing times of each song and the time of each playing.
For example, the playing frequency may be how many times the player plays in a month, how many times the player plays in a week, or how many times the player plays in three days. The invention does not limit the playing frequency.
S103, determining the target song with the playing frequency less than the preset frequency.
It should be noted that the preset frequency may be set by a user or may be set by a default of the terminal.
In addition, the terminal may determine the preset frequency according to the number of music stored in the buffer memory. Specifically, the terminal determines the number of songs in the cache; determining the number of songs to be cleaned according to the number of the songs and the number of the suggested songs; and determining the preset frequency according to the number of the songs to be cleaned.
Specifically, if the number of stored songs is greater than the number of suggested songs, subtracting the number of suggested songs from the number of stored songs to obtain the number of songs to be cleaned; sorting the playing frequency of the stored songs in order from high to low; selecting a playing frequency corresponding to the number of the songs to be cleaned from the arranged sequence; and determining the corresponding playing frequency as a preset frequency.
For example, if there are 100 songs currently in the cache, but the number of suggested songs in the terminal is 50 songs, then the number of songs to be cleaned is 50 songs. The terminal will count the playing frequency of the 100 songs, sort the playing frequencies in the order from high to low, determine the frequency corresponding to the 50 th song, and determine the frequency corresponding to the 50 th song as the preset frequency.
And S104, prompting the user whether to delete the target song.
It should be noted that the prompt may be in the form of a voice prompt, a vibration prompt, or a dialog box. Of course, a combination of the above forms is also possible, such as a pop-up dialog box with simultaneous voice prompt.
And S105, deleting the target song from the cache when receiving the instruction for confirming the deletion.
It is understood that the user may manually click the confirmation, or may perform the confirmation in voice, or may perform the confirmation in a shaking manner using a terminal, etc.
Optionally, the method further includes: the user is prompted whether to delete songs skipped by the user. Specifically, the terminal acquires the operation record of the user; determining songs skipped by the user according to the operation record of the user; prompting a user whether to delete the skipped song; deleting the skipped song from the cache upon receiving an instruction confirming the deletion.
It should be noted that the terminal records the user's actions on each song, and common actions include skipping the song, replaying the song, etc.
Optionally, the method further includes: and prompting the user to download the songs with the playing frequency greater than the preset frequency. Specifically, the terminal determines songs with playing frequency greater than or equal to the preset frequency; prompting a user whether to download the songs with the playing frequency greater than or equal to the preset frequency; and when an instruction for confirming storage is received, downloading the songs with the playing frequency greater than or equal to the preset frequency in the cache.
Optionally, the method further includes: the songs downloaded by the user may also be analyzed to determine the type of user's liking and to push the user's favorite type of music. Specifically, the terminal analyzes the downloaded song to determine the type of the downloaded song; traversing a song library to determine songs belonging to the genre; and pushing the songs belonging to the type to the user.
Optionally, the method further includes: analyzing songs of a single song cycle of a user to determine a target type; and acquiring the songs belonging to the target type, and pushing the songs belonging to the target type to a user.
It should be noted, among others, that common genres include rock songs, classical songs, pop songs, and so on.
From the above, by implementing the technical scheme provided by the embodiment of the invention, the identifier of each song stored in the cache is obtained; determining the playing frequency of each song according to the identification of each song; determining a target song with the playing frequency less than the preset frequency; prompting a user whether to delete the target song; and when an instruction for confirming deletion is received, deleting the target song from the cache. By the technical scheme, the music disliked by the user in the cache can be identified in time, and the user is reminded to delete the music disliked by the user in the cache, so that the cache is released in time, and the running speed of the terminal is guaranteed.
Referring to fig. 2, fig. 2 is a flowchart illustrating a music playing method according to an embodiment of the present invention. As shown in fig. 2, the method of music playing may include the following steps.
S201, obtaining the identification of each song stored in the cache.
In the embodiment of the present invention, the terminal may include various terminals such as a Mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like, which is not limited in the embodiment of the present invention.
It will be understood that when the user clicks to open a certain music playing application, the user will search for the song he wants to listen to, of course, click to randomly play, click to hit a popular song list, and then play the songs in the whole list, but it should be noted that each played song will be stored in the cache of the terminal.
Where the identification of the song may be the name of the song.
Alternatively, the identification of the song may also be the name of the song + the name of the artist.
Alternatively, the identification of the song may also be the name of the song + the name of the album.
S202, determining the playing frequency of each song according to the identification of each song.
It will be appreciated that each time a song is played by the terminal, the name of the song being played, the time of play, and the number of plays will be recorded. Therefore, the terminal can determine the playing times of each song according to the identification of each song and then calculate the playing frequency according to the playing times.
Of course, the terminal may also calculate the playing frequency according to the playing times of each song and the time of each playing.
For example, the playing frequency may be how many times the player plays in a month, how many times the player plays in a week, or how many times the player plays in three days. The invention does not limit the playing frequency.
S203, determining the number of songs in the cache.
And S204, determining the number of the songs to be cleaned according to the number of the songs and the number of the suggested songs.
S205, determining the preset frequency according to the number of the songs to be cleaned.
S206, determining the target song with the playing frequency less than the preset frequency.
It should be noted that the preset frequency may be set by a user or may be set by a default of the terminal.
In addition, the terminal may determine the preset frequency according to the number of music stored in the buffer memory. Specifically, the terminal determines the number of songs in the cache; determining the number of songs to be cleaned according to the number of the songs and the number of the suggested songs; and determining the preset frequency according to the number of the songs to be cleaned.
Specifically, if the number of stored songs is greater than the number of suggested songs, subtracting the number of suggested songs from the number of stored songs to obtain the number of songs to be cleaned; sorting the playing frequency of the stored songs in order from high to low; selecting a playing frequency corresponding to the number of the songs to be cleaned from the arranged sequence; and determining the corresponding playing frequency as a preset frequency.
For example, if there are 100 songs currently in the cache, but the number of suggested songs in the terminal is 50 songs, then the number of songs to be cleaned is 50 songs. The terminal will count the playing frequency of the 100 songs, sort the playing frequencies in the order from high to low, determine the frequency corresponding to the 50 th song, and determine the frequency corresponding to the 50 th song as the preset frequency.
And S207, prompting the user whether to delete the target song.
It should be noted that the prompt may be in the form of a voice prompt, a vibration prompt, or a dialog box. Of course, a combination of the above forms is also possible, such as a pop-up dialog box with simultaneous voice prompt.
And S208, when the instruction for confirming the deletion is received, deleting the target song from the cache.
It is understood that the user may manually click the confirmation, or may perform the confirmation in voice, or may perform the confirmation in a shaking manner using a terminal, etc.
In the method depicted in FIG. 2, the number of songs in the cache can be determined based on; determining the number of songs to be cleaned according to the number of the songs and the number of the suggested songs; and determining the preset frequency according to the number of the songs to be cleaned. By implementing the embodiment of the invention, the preset frequency can be determined according to the number of the songs stored in the cache and the number of the songs suggested to be stored, so that the preset frequency can be dynamically adjusted.
Referring to fig. 3, fig. 3 is a flowchart illustrating a music playing method according to an embodiment of the present invention. As shown in fig. 3, the method of music playing may include the following steps.
S301, obtaining the operation record of the user.
In the embodiment of the present invention, the terminal may include various terminals such as a Mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like, which is not limited in the embodiment of the present invention.
The shop name user can manually input the shop name, and the shop name user can select the shop name from a page of a shopping mall.
S302, determining the songs skipped by the user according to the operation record of the user.
S303, prompting the user whether to delete the skipped song.
And S304, deleting the skipped song from the cache when receiving the instruction for confirming the deletion.
In the method described in fig. 3, the skipped songs by the user can be determined according to the user operation, so that the skipped songs are determined to be the songs that the user does not prefer, the user can be reminded whether to delete the skipped songs, and if a deletion instruction is received, the skipped songs are deleted to make room for the buffer.
Referring to fig. 4, fig. 4 is a flowchart illustrating a music playing method according to an embodiment of the present invention. The method of music playing may include the following steps.
S401, obtaining the identification of each song stored in the cache.
In the embodiment of the present invention, the terminal may include various terminals such as a Mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like, which is not limited in the embodiment of the present invention.
It will be understood that when the user clicks to open a certain music playing application, the user will search for the song he wants to listen to, of course, click to randomly play, click to hit a popular song list, and then play the songs in the whole list, but it should be noted that each played song will be stored in the cache of the terminal.
Where the identification of the song may be the name of the song.
Alternatively, the identification of the song may also be the name of the song + the name of the artist.
Alternatively, the identification of the song may also be the name of the song + the name of the album.
S402, determining the playing frequency of each song according to the identification of each song.
It will be appreciated that each time a song is played by the terminal, the name of the song being played, the time of play, and the number of plays will be recorded. Therefore, the terminal can determine the playing times of each song according to the identification of each song and then calculate the playing frequency according to the playing times.
Of course, the terminal may also calculate the playing frequency according to the playing times of each song and the time of each playing.
For example, the playing frequency may be how many times the player plays in a month, how many times the player plays in a week, or how many times the player plays in three days. The invention does not limit the playing frequency.
And S403, determining the songs with the playing frequency greater than or equal to the preset frequency.
It should be noted that the preset frequency may be set by a user or may be set by a default of the terminal.
S404, prompting the user whether to download the song with the playing frequency being greater than or equal to the preset frequency.
S405, when receiving the instruction for confirming the storage, downloading the songs with the playing frequency greater than or equal to the preset frequency in the cache.
S406, analyzing the downloaded song to determine the type of the downloaded song.
And S407, traversing the song library to determine the songs belonging to the type.
S408, pushing the songs belonging to the type to the user.
In the method described in fig. 4, the user can be prompted to download the songs with the playing frequency greater than or equal to the preset frequency, and the songs with the playing frequency greater than or equal to the preset frequency can be regarded as songs preferred by the user, that is, songs listened to frequently, so that the songs listened to frequently can be downloaded, and thus, the flow is not consumed when the user listens to the songs again later, and a buffer space can be made up.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. In the terminal depicted in fig. 5, the method may include:
an obtaining unit 501, configured to obtain an identifier of each song stored in the cache;
a first determining unit 502, configured to determine a playing frequency of each song according to the identifier of each song;
the first determining unit 502 is further configured to determine a target song with a playing frequency less than a preset frequency;
a prompting unit 503, configured to prompt a user whether to delete the target song;
a deleting unit 504, configured to delete the target song from the cache when receiving an instruction to confirm deletion.
It is noted that the structure shown in fig. 5 may be used to perform the method described in S101-S105.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another terminal according to the embodiment of the present invention. The user terminal shown in fig. 6 is optimized by the terminal shown in fig. 5. The terminal shown in fig. 6 may further include:
an obtaining unit 601, configured to obtain an identifier of each song stored in the cache;
a first determining unit 602, configured to determine a playing frequency of each song according to the identifier of each song;
a second determining unit 603, configured to determine the number of songs in the cache; determining the number of songs to be cleaned according to the number of the songs and the number of the suggested songs; determining the preset frequency according to the number of the songs to be cleaned; (ii) a
A first determining unit 602, configured to determine a target song whose playing frequency is less than a preset frequency;
a prompting unit 604, configured to prompt a user whether to delete the target song;
a deleting unit 605, configured to delete the target song from the cache when receiving an instruction to confirm deletion.
It is to be understood that the terminal described in fig. 6 may be used to perform the methods shown in S201-S208.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another ue according to an embodiment of the present invention. The terminal shown in fig. 7 includes:
an obtaining unit 701, configured to obtain an operation record of the user;
a third determining unit 702, configured to determine songs skipped by the user according to the operation record of the user;
a prompting unit 703, configured to prompt a user whether to delete the skipped song;
a deleting unit 704 configured to delete the skipped song from the cache when an instruction to confirm deletion is received.
It is understood that the terminal described in fig. 7 is capable of performing the methods described in S301-S304.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another ue according to an embodiment of the present invention. The terminal shown in fig. 8 includes:
an obtaining unit 801, configured to obtain an identifier of each song stored in the cache;
the first determining unit 802 is further configured to determine a playing frequency of each song according to the identifier of each song, and determine songs whose playing frequency is greater than or equal to the preset frequency;
a prompting unit 803, configured to prompt a user whether to download a song whose playing frequency is greater than or equal to the preset frequency;
and the downloading unit 804 is configured to download the songs with the playing frequency greater than or equal to the preset frequency in the cache when receiving the instruction for confirming the storage.
An analyzing unit 805 configured to analyze the downloaded song to determine a type of the downloaded song;
a traversal unit 806 for traversing a song library to determine songs belonging to the type;
a pushing unit 807 for pushing the song belonging to the type to the user.
It is understood that the terminal described in fig. 8 is capable of performing the method described in S401-S408.
It can be seen that, implementing the terminal described in fig. 5-8, the identifier of each song stored in the cache is obtained; determining the playing frequency of each song according to the identification of each song; determining a target song with the playing frequency less than the preset frequency; prompting a user whether to delete the target song; and when an instruction for confirming deletion is received, deleting the target song from the cache. By the technical scheme, the music disliked by the user in the cache can be identified in time, and the user is reminded to delete the music disliked by the user in the cache, so that the cache is released in time, and the running speed of the terminal is guaranteed.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another terminal disclosed in the embodiment of the present invention, and as shown in fig. 9, the terminal may include: at least one processor 910, such as a CPU, a memory 920, at least one communication bus 930, an input device 940, and an output device 950. Wherein a communication bus 930 is used to enable communication connections between these components. The memory 920 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 920 may optionally be at least one storage device located remotely from the processor 910 as previously described. Wherein, the processor 910 may be combined with the terminal described in fig. 5 to 8, a set of program codes is stored in the memory 920, and the processor 910 calls the program codes stored in the memory 920 to perform the following operations:
acquiring the identification of each song stored in the cache;
determining the playing frequency of each song according to the identification of each song;
determining a target song with the playing frequency less than the preset frequency;
prompting a user whether to delete the target song;
and when an instruction for confirming deletion is received, deleting the target song from the cache.
Optionally, before determining that the target song with the playing frequency less than the preset frequency is played, the operations further include:
determining the number of songs in the cache;
determining the number of songs to be cleaned according to the number of the songs and the number of the suggested songs;
and determining the preset frequency according to the number of the songs to be cleaned.
Optionally, the operations further include:
acquiring an operation record of the user;
determining songs skipped by the user according to the operation record of the user;
prompting a user whether to delete the skipped song;
deleting the skipped song from the cache upon receiving an instruction confirming the deletion.
Optionally, the operations further include:
determining songs with the playing frequency greater than or equal to the preset frequency;
prompting a user whether to download the songs with the playing frequency greater than or equal to the preset frequency;
and when an instruction for confirming storage is received, downloading the songs with the playing frequency greater than or equal to the preset frequency in the cache.
Optionally, the operations further include:
analyzing the downloaded song to determine a type of the downloaded song;
traversing a song library to determine songs belonging to the genre;
and pushing the songs belonging to the type to the user.
In the embodiment of the invention, the identification of each song stored in the cache is obtained; determining the playing frequency of each song according to the identification of each song; determining a target song with the playing frequency less than the preset frequency; prompting a user whether to delete the target song; and when an instruction for confirming deletion is received, deleting the target song from the cache. By the technical scheme, the music disliked by the user in the cache can be identified in time, and the user is reminded to delete the music disliked by the user in the cache, so that the cache is released in time, and the running speed of the terminal is guaranteed.
Referring to fig. 10, fig. 10 is a block diagram of a part of a structure of a mobile phone related to a terminal according to an embodiment of the present invention. Referring to fig. 10, the cellular phone includes: radio Frequency (RF) circuitry 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuitry 1060, Wireless Fidelity (Wi-Fi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the handset configuration shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 10:
the RF circuitry 1010 may be used for the reception and transmission of information. In general, RF circuit 1010 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1020 can be used for storing software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a music playing function) required for at least one function, and the like; the storage data area may store data created according to the use of the cellular phone (such as a music identification, a music playing frequency, etc.), and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1030 may include a fingerprint recognition module 1031 and other input devices 1032. Fingerprint identification module 1031, the fingerprint data that can gather the user on it. Optionally, the fingerprint recognition module 1031 may include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module. Taking the fingerprint identification module 1031 as an example of a capacitive fingerprint identification module, the fingerprint identification module specifically includes sensing electrodes (n1 abnormal sensing electrodes and n2 normal sensing electrodes) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, an analog-to-digital conversion circuit, etc.) connected to the sensing electrodes. In addition to fingerprint identification module 1031, input unit 1030 may include other input devices 1032. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, or the like.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the cellular phone. The display unit 1040 may include a display screen 1041, and optionally, the display screen 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 10, the fingerprint identification module 831 and the display 1041 are implemented as two independent components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint identification module 1031 and the display 1041 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 1041 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1060, speaker 1061, microphone 1062 may provide an audio interface between the user and the handset. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the electrical signal is converted into a sound signal by the speaker 1061 and output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, which is then processed by the audio data output processor 1080 and then sent to, for example, another cellular phone via the RF circuit 1010, or output to the memory 1020 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 1070, which provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 1070, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1080 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby integrally monitoring the mobile phone. Optionally, processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset also includes a power source 1090 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1080 via a power management system to manage charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiments shown in fig. 1, fig. 2, fig. 3, and fig. 4, the method flows of the steps may be implemented based on the structure of the mobile phone.
In the embodiments shown in fig. 5, 6, 7 and 8, the functions of the units can be implemented based on the structure of the mobile phone.
Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program instructing associated hardware, the program may be stored in a computer-readable storage medium including Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable rewritable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other medium capable of being used to carry or store data.
The image-based screen unlocking method and the user terminal disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of music playing, the method comprising:
acquiring the identification of each song stored in the cache;
determining the playing frequency of each song according to the identification of each song;
determining a target song with the playing frequency less than the preset frequency;
prompting a user whether to delete the target song;
deleting the target song from the cache when an instruction for confirming deletion is received;
before determining that the target song with the playing frequency less than the preset frequency is played, the method further includes:
determining the number of songs in the cache; determining the number of songs to be cleaned according to the number of the songs and the number of the suggested songs; determining the preset frequency according to the number of the songs to be cleaned;
wherein the determining the number of songs to be cleaned according to the number of songs and the number of suggested songs comprises: subtracting the suggested song quantity from the quantity of the songs in the cache to obtain the quantity of the songs to be cleaned;
the determining the preset frequency according to the number of the songs to be cleaned comprises:
when the number of the stored songs is larger than the number of the suggested songs, sorting the playing frequencies of the stored songs in a descending order, and taking the playing frequency corresponding to the songs with the ranking values same as the number of the suggested songs as the preset frequency.
2. The method of claim 1, further comprising:
acquiring an operation record of the user;
determining songs skipped by the user according to the operation record of the user;
prompting a user whether to delete the skipped song;
deleting the skipped song from the cache upon receiving an instruction confirming the deletion.
3. The method of claim 1, further comprising:
determining songs with the playing frequency greater than or equal to the preset frequency;
prompting a user whether to download the songs with the playing frequency greater than or equal to the preset frequency;
and when an instruction for confirming storage is received, downloading the songs with the playing frequency greater than or equal to the preset frequency in the cache.
4. The method of claim 3, further comprising:
analyzing the downloaded song to determine a type of the downloaded song;
traversing a song library to determine songs belonging to the genre;
and pushing the songs belonging to the type to the user.
5. A terminal, characterized in that the terminal comprises:
the acquisition unit is used for acquiring the identification of each song stored in the cache;
the first determining unit is used for determining the playing frequency of each song according to the identification of each song;
the first determining unit is further configured to determine a target song with a playing frequency less than a preset frequency;
the prompting unit is used for prompting the user whether to delete the target song;
a deleting unit, configured to delete the target song from the cache when receiving an instruction to confirm deletion;
the terminal further comprises a second determining unit;
the second determining unit is used for determining the number of songs in the cache; determining the number of songs to be cleaned according to the number of the songs and the number of the suggested songs; determining the preset frequency according to the number of the songs to be cleaned; wherein the determining the number of songs to be cleaned according to the number of songs and the number of suggested songs comprises: subtracting the suggested song quantity from the quantity of the songs in the cache to obtain the quantity of the songs to be cleaned;
in the aspect of determining the preset frequency according to the number of songs to be cleaned, the second determining unit is specifically configured to:
when the number of the stored songs is larger than the number of the suggested songs, sorting the playing frequencies of the stored songs in a descending order, and taking the playing frequency corresponding to the songs with the ranking values same as the number of the suggested songs as the preset frequency.
6. The terminal according to claim 5, characterized in that the terminal further comprises a third determining unit;
the acquisition unit is further used for acquiring the operation record of the user;
the third determining unit is used for determining the songs skipped by the user according to the operation record of the user;
the prompting unit is also used for prompting the user whether to delete the skipped song;
and the deleting unit is used for deleting the skipped songs from the cache when receiving an instruction for confirming deletion.
7. The terminal according to claim 5, characterized in that the terminal further comprises a downloading unit;
the first determining unit is further configured to determine songs with playing frequencies greater than or equal to the preset frequency;
the prompting unit is also used for prompting the user whether to download the songs of which the playing frequency is greater than or equal to the preset frequency;
and the downloading unit is used for downloading the songs with the playing frequency greater than or equal to the preset frequency in the cache when receiving the instruction for confirming the storage.
8. The terminal of claim 7, further comprising an analysis unit, a traversal unit, and a push unit;
the analysis unit is used for analyzing the downloaded song to determine the type of the downloaded song;
the traversing unit is used for traversing a song library to determine the songs belonging to the type;
and the pushing unit is used for pushing the songs belonging to the type to the user.
9. A terminal, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method of any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a terminal to perform the method according to any one of claims 1 to 4.
CN201710401678.4A 2017-05-31 2017-05-31 Music playing method, terminal and storage medium Active CN107273453B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710401678.4A CN107273453B (en) 2017-05-31 2017-05-31 Music playing method, terminal and storage medium
PCT/CN2018/087580 WO2018219165A1 (en) 2017-05-31 2018-05-18 Music playback method, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710401678.4A CN107273453B (en) 2017-05-31 2017-05-31 Music playing method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107273453A CN107273453A (en) 2017-10-20
CN107273453B true CN107273453B (en) 2020-05-12

Family

ID=60064963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710401678.4A Active CN107273453B (en) 2017-05-31 2017-05-31 Music playing method, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN107273453B (en)
WO (1) WO2018219165A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273453B (en) * 2017-05-31 2020-05-12 Oppo广东移动通信有限公司 Music playing method, terminal and storage medium
CN108536417A (en) * 2018-03-16 2018-09-14 珠海市魅族科技有限公司 Music processing method and device, computer installation and readable storage medium storing program for executing
CN108768936B (en) * 2018-04-12 2022-11-25 上海博泰悦臻网络技术服务有限公司 Music collection method based on vehicle-mounted radio and cloud server
CN109522446B (en) * 2018-11-28 2022-09-09 湖南商学院 Multifunctional music playing system
CN111222004B (en) * 2020-01-08 2023-03-31 广州小鹏汽车科技有限公司 Audio playing method, terminal equipment and vehicle
CN113921045B (en) * 2021-10-22 2023-04-21 北京雷石天地电子技术有限公司 Vehicle-mounted music playing method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390167A (en) * 2005-07-26 2009-03-18 创新科技有限公司 System and method for modifying media content playback based on an intelligent random selection
CN103680541A (en) * 2012-09-19 2014-03-26 上海博泰悦臻电子设备制造有限公司 Music storage device for vehicle-mounted equipment
CN106528442A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Cache cleaning method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7826708B2 (en) * 2004-11-02 2010-11-02 Microsoft Corporation System and method for automatically customizing a buffered media stream
CN103281397A (en) * 2013-06-13 2013-09-04 苏州联讯达软件有限公司 Data-caching method and system based on timestamps and access density
CN107273453B (en) * 2017-05-31 2020-05-12 Oppo广东移动通信有限公司 Music playing method, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390167A (en) * 2005-07-26 2009-03-18 创新科技有限公司 System and method for modifying media content playback based on an intelligent random selection
CN103680541A (en) * 2012-09-19 2014-03-26 上海博泰悦臻电子设备制造有限公司 Music storage device for vehicle-mounted equipment
CN106528442A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Cache cleaning method and device

Also Published As

Publication number Publication date
WO2018219165A1 (en) 2018-12-06
CN107273453A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN107273453B (en) Music playing method, terminal and storage medium
US11355157B2 (en) Special effect synchronization method and apparatus, and mobile terminal
US10649720B2 (en) Sound effect configuration method and system and related device
CN110633067B (en) Sound effect parameter adjusting method and mobile terminal
CN108319657B (en) Method for detecting strong rhythm point, storage medium and terminal
CN106126172B (en) A kind of sound effect treatment method and mobile terminal
CN106126174B (en) A kind of control method and electronic equipment of scene audio
CN107277230B (en) Voice broadcasting method of message and related product
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN108377290B (en) Audio stream processing method, mobile terminal and medium product
CN110771121A (en) Application resource recommendation method and related equipment
WO2018223837A1 (en) Music playing method and related product
CN106126160B (en) A kind of effect adjusting method and user terminal
WO2018228167A1 (en) Navigation method and related product
CN107566909B (en) Barrage-based video content searching method and user terminal
CN105959482B (en) A kind of control method and electronic equipment of scene audio
CN106170034A (en) A kind of sound effect treatment method and mobile terminal
RU2676413C2 (en) Terminal and media file processing method
CN110799974B (en) Recommendation method of search terms and related equipment
CN107371064B (en) Mobile terminal and audio and video playing method and device thereof
CN104408051B (en) Song recommendations method and device
CN105550316A (en) Pushing method and device of audio list
CN110915187B (en) Information recommendation method and related equipment
CN110100424B (en) Streaming media data processing method and mobile terminal
CN106339477B (en) Picture playing method and terminal equipment

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant