CN110310673B - Music player and music playing method - Google Patents

Music player and music playing method Download PDF

Info

Publication number
CN110310673B
CN110310673B CN201810258586.XA CN201810258586A CN110310673B CN 110310673 B CN110310673 B CN 110310673B CN 201810258586 A CN201810258586 A CN 201810258586A CN 110310673 B CN110310673 B CN 110310673B
Authority
CN
China
Prior art keywords
music
music file
playing
played
file
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
CN201810258586.XA
Other languages
Chinese (zh)
Other versions
CN110310673A (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.)
Xiamen Clarion Electronics Enterprise Co Ltd
Original Assignee
Xiamen Clarion Electronics Enterprise 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 Xiamen Clarion Electronics Enterprise Co Ltd filed Critical Xiamen Clarion Electronics Enterprise Co Ltd
Priority to CN201810258586.XA priority Critical patent/CN110310673B/en
Publication of CN110310673A publication Critical patent/CN110310673A/en
Application granted granted Critical
Publication of CN110310673B publication Critical patent/CN110310673B/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
    • 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/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings
    • 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]
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

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)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a music player and a music playing method, and relates to the field of information processing. According to the embodiment of the invention, when a plurality of music files with the same music information and different audio quality are stored in the storage medium, the music file with higher audio quality is selected for playing, so that the user experience is improved. The music player includes: the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring a playing instruction which is used for indicating a music player to determine a music file to be played; and the playing unit is used for playing the music file with the highest audio quality in the at least one first music file if the playing instruction is obtained by the obtaining unit and the played music file is determined to have at least one first music file, wherein the first music file and the music file to be played have the same music information, and the audio quality of the first music file is higher than that of the music file to be played. The invention is applied to playing music.

Description

Music player and music playing method
Technical Field
The present invention relates to the field of information processing, and in particular, to a music player and a music playing method.
Background
Currently, a music player can play audio files in a storage medium such as a built-in memory card or an external storage device. If a plurality of versions of the same song are stored in the storage medium, and the tone quality of each version of the song is different, the music player may play the song with good tone quality or the song with poor tone quality when playing the music according to a certain sequence, thereby affecting the use experience of the user.
Disclosure of Invention
When a plurality of music files with the same music information (for example, one or more of song title, singer, genre and album) and different audio qualities (for example, different bit rates or different compression formats) are stored in a storage medium, the music player and the music playing method provided by the embodiment of the invention can select the music files with higher audio quality to play, so that the user experience is improved.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a music player, including: the acquisition unit is used for acquiring a playing instruction, and the playing instruction is used for indicating the music player to determine a music file to be played; and the playing unit is used for playing the first music file if the first music file is determined to exist in the played music files after the obtaining unit obtains the playing instruction, wherein the first music file and the music file to be played have the same music information, the audio quality of the first music file is higher than that of the music file to be played, and the music information at least comprises a song name.
In a second aspect, a music playing method includes: acquiring a playing instruction, wherein the playing instruction is used for indicating the music player to determine a music file to be played; if the fact that a first music file exists in the played music files is determined, playing the first music file, wherein the first music file and the music file to be played have the same music information, the audio quality of the first music file is higher than that of the music file to be played, and the music information at least comprises a song name.
According to the embodiment of the invention, when a plurality of music files with the same music information and different audio quality are stored in the storage medium, the music file with higher audio quality can be selected for playing without reading the information of all the music files stored in the storage medium in advance, so that the use experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings 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 that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a music player according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a music player according to an embodiment of the present invention;
FIG. 3 is a schematic view of a working process of a music player according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a music playing method according to an 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 term "unit", as used herein, is intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a unit may be, but is not limited to being: a processing object running on a processor, an executable, a thread of execution, a program, and/or a computer.
According to the music player and the music playing method provided by the embodiment of the invention, the music file with higher audio quality can be selected from multiple versions of the same song to be played without reading the information of all music files stored in the storage medium in advance, so that the use experience of a user is improved.
The music player provided by the embodiment of the invention can be internally provided with a storage space for storing music files; the storage space of the external storage device may also be used for storing music files, for example, the music files are stored in the external storage device such as a U-disk or an SD card, and the music player obtains the music files by reading data in the external storage device when playing music.
As shown in fig. 1, an embodiment of the invention provides a structural schematic diagram of a music player. Wherein: the music player 10 includes: an acquisition unit 101, a playing unit 102, and an updating unit 103. Wherein:
an obtaining unit 101 is used for obtaining a playing instruction. The playing instruction is used for instructing the music player to determine the music file to be played.
Specifically, the playing instruction may be generated according to an operation of a user selecting a certain music file, or may be selected according to a preset playing sequence when the music player finishes playing a song or will finish playing a song.
For example, assume that the music files stored in the storage space are as shown in table 1 below:
Figure BDA0001609629620000031
TABLE 1
It can be seen that five music files are stored in the storage space, and the music information of music file No. 01 includes: the song name "aaa", the album name "ee", the singer "abc", the music genre "f", the audio quality represented by the bit rate of the audio and the bit rate "192 kbps", and the other four music files are the same.
If the user triggers a corresponding playing instruction when clicking the icon corresponding to the music file No. 03 in table 1, the music player determines that the music file to be played is the music file No. 03 in table 1 according to the playing instruction. Or, when the music player plays music according to the predetermined playing sequence, if it is determined that the next music file to be played is the music file No. 03, generating an indication according to the predetermined playing sequence, so that the music player determines that the music file to be played is the music file No. 03 in table 1.
The playing unit 102 is configured to, after the obtaining unit obtains the playing instruction, if it is determined that at least one first music file exists in the played music files, play a music file with the highest audio quality in the at least one first music file.
The first music file and the music file to be played have the same music information, the audio quality of the first music file is higher than that of the music file to be played, and the music information at least comprises a song name.
Illustratively, continuing with the above example, if the music files stored in the storage space are as shown in table 1 above, when the music player determines that the music file to be played is the music file No. 03 according to the playing instruction, and the music player has previously played the music file No. 01 having the same music information as the music file No. 03. The playing unit 102 directly plays the music file No. 01 having higher audio quality after determining that the bit rate of the music file No. 01 is larger than that of the music file No. 03.
For another example, when the music player determines that the music file to be played is the music file No. 03 according to the playing instruction, and the music player has played the music file No. 01 and the music file No. 05 having the same music information as the music file No. 03 before, the music file No. 05 having the highest audio quality is directly played.
In the embodiment of the invention, when the same song with a plurality of versions with different audio quality is stored in the storage space, in order to achieve the effect that the music player can select the song with the version with the better tone quality to play each time, after the music file to be played is determined each time, the audio quality of the music file to be played is compared with the audio quality of the music file with the same music information played before, and if one or more music files with higher audio quality exist in the music files played before, the music file with the highest audio quality in the one or more music files with higher audio quality is directly played. The use experience of the user is improved.
In addition, the playing unit 102 is further configured to play the music file to be played if it is determined that the first music file does not exist in the played music files.
In the embodiment of the invention, when one or more music files with the same music information and better tone quality than the music file to be played exist in the played music files, the music file with the best tone quality is played; when the played music file does not have the music file with the same music information and the tone quality of the music file is better than that of the music file to be played, the music file to be played is played, and therefore when a user listens to music, the music file heard each time is the music file with the best tone quality in the played music files with the same music information. After all music in the storage space is read in a traversal mode, namely the played music files comprise the music files with the highest audio quality in the plurality of music files with the same music information in all the music files in the storage space, so that the played music files are the music files with the highest audio quality in the music files with the same music information in the storage space in each playing process, and user experience is improved.
It should be noted that, in the embodiment of the present invention, the music information may include one or more items of information such as an album title, a singer, and a music genre, in addition to the song title. For convenience of description, the music information in the following examples of the present invention includes four kinds of information, i.e., title, album, singer, and song type. In the specific implementation, those skilled in the art can select appropriate music information according to actual needs to make a judgment. The more information is included in the music information, the more accurately the music file belonging to the same song as the music file to be played can be found out. The invention is not limited thereto.
In addition, it should be noted that in the implementation of the present invention, different audio quality parameters may be selected to determine the audio quality of the music file. As shown in table 1, the audio quality is determined by using the bit rates of the music files, for example, the bit rates of the music file No. 01 and the music file No. 03 are 192Kbps and 128Kbps, respectively, which indicates that the audio quality of the music file No. 01 is higher than that of the music file No. 03. In addition, the compression format of the music file may also be used to determine the audio quality of the music file, for example, if the compression format of the a music file is WMA format and the compression format of the B music file is APE format, it may be determined that the audio quality of the B music file is higher. Those skilled in the art can select an appropriate audio quality parameter to determine the audio quality of the music file according to the requirement, and the invention is not limited thereto.
Specifically, in an embodiment, in order to enable the playing unit to determine whether at least one first music file exists in the played music files and play the music file with the highest audio quality in the at least one first music file after determining that at least one first music file exists, as shown in fig. 2, the playing unit 102 in the embodiment of the present invention specifically includes an inquiring subunit 1021, a comparing subunit 1022, and a playing subunit 1023, where:
the query subunit 1021 is configured to query, after the obtaining unit 101 obtains the playing instruction, a music file having the same music information as the music file to be played in the playing database, where the music file with the highest audio quality in at least one music file having the same music information in the played music files is recorded in the playing database.
For example, continuing to take the music files in the storage space shown in table 1 above as an example, assuming that the music files already played by the music player include music files No. 01, 02, 03, the music file to be played is determined to be music file No. 04 according to the playing instruction. It can be seen that the music information of the music file No. 01 is the same as that of the music file No. 03, and the bit rate of the music file No. 01 is higher than that of the music file No. 03. Therefore, at this time, the music file No. 01 and the music file No. 02, which are the music files having the highest audio quality among the music information, are recorded in the playing database, and the data recorded in the playing database are as shown in the following table 2:
Figure BDA0001609629620000061
TABLE 2
In the playback database, information relating to music file No. 01 is recorded in data No. 001, and information relating to music file No. 02 is recorded in data No. 002.
Further, the query subunit 1021 queries the No. 02 music file recorded in the No. 002 data by querying the playback database for a music file having the same music information as the No. 04 music file.
In addition, in one embodiment, music files having the same music information as the music file to be played and the highest audio quality are obtained for convenience. The embodiment of the invention also comprises the following steps:
the playing database is used for recording the music file with the highest audio quality in at least one music file which corresponds to each played music file and has the same music information with each played music file.
Illustratively, continuing with the example of music files in the storage space shown in table 1 above, assume that music files already played by the music player include music files No. 01 to No. 03. As can be seen from table 1, among the music files No. 01 to 03, the music files having the music information "aaa, ee, abc, f" include the music file No. 01 and the music file No. 03, and the audio quality of the music file No. 01 is higher; the music files having music information "bbb, gg, bcd, J" include music file No. 02. Then, at this time, the data recorded in the play database is as shown in table 3 below:
Figure BDA0001609629620000062
TABLE 3
The data 001 in the playing database records the music file with the highest audio quality in the music files with the same music information as the music file in the played music files corresponding to the music file 01, namely the data 001 records the music file 01; the data No. 002 records the music file with the highest audio quality among the music files with the same music information as the played music files corresponding to the music file No. 02, that is, the data No. 002 records the music file No. 02; data No. 003 has recorded the music file with the highest audio quality among the music files having the same music information among the music files played corresponding to music file No. 03, that is, data No. 003 has recorded music file No. 01. When the music file to be played is determined to be the music file No. 01 next time, the music file No. 01 can be determined to be played at the moment by inquiring any one of the data No. 001 or the data No. 003 in the playing database; when the music file to be played is determined to be the music file No. 03, the music file No. 01 to be played at the moment can be determined by inquiring the playing database.
In this way, the playing database records both the music file with the highest audio quality among at least one of the played music files having the same music information (for example, data No. 001 and data No. 003 in table 3 above all store the same music file with the highest audio quality among the music files having the music information "aaa, ee, abc, f", so if the music file with the highest audio quality among the music files having the music information "aaa, ee, abc, f" needs to be inquired, data No. 001 or data No. 003 needs to be acquired arbitrarily), and simultaneously records the music file with the highest audio quality corresponding to each music file in turn in the playing database, so that when a certain music file is taken as the music file to be played again later, the music file with the highest audio quality corresponding to the music file recorded in the playing database is directly played, a music file to be played is determined.
In addition, in an embodiment, the embodiment of the present invention further includes: and numbering each recorded music file in a playing database, wherein the numbering is used for determining the storage position of the music file corresponding to the numbering in the storage space.
In the embodiment of the invention, by numbering each music file in the playing database, the position of the music file recorded in the playing database in the storage space can be determined according to the number, and the process of searching the music file in the storage space is simplified.
A comparing subunit 1022, configured to compare the audio quality of the music file queried in the playing database by the querying subunit 1021 with the music file to be played.
Continuing with the above example, after the number 02 music information having the same music information as the number 04 music file is searched in the playback database, the bit rates of the number 04 music file and the number 02 music file are compared. Specifically, it can be seen that the bit rate of the No. 02 music file is 320Kbps, and the bit rate of the No. 04 music file is 128Kbps, thereby determining that the bit rate of the No. 02 music file is greater, i.e., determining that the audio quality of the No. 02 music file is higher.
The playing sub-unit 1023 is used for playing the music files inquired in the playing database after the comparing sub-unit 1022 determines that the audio quality of the music files inquired in the playing database is higher than the audio quality of the music files to be played.
Continuing with the above example, after determining that the audio quality of the No. 02 music file is higher than that of the No. 04 music file, it may be determined that the No. 02 music file and the No. 04 music file have the same music information and that the audio quality of the No. 02 music file is higher than that of the No. 04 music file, that is, the No. 02 music file is the first music file, and then the No. 02 music file is played.
In the embodiment of the invention, a playing database is established, and the music file with the highest audio quality in at least one music file with the same music information in the played music files is recorded in the playing database. And then, through the corresponding functions of the inquiry subunit, the comparison subunit and the playing subunit, the playing unit can play the music file with the highest audio quality in the at least one first music file when determining that the played music file has at least one first music file.
In another embodiment, it is considered that when music is played, it may occur that none of the played music files has the same music information as the music file to be played, or that none of the played music files has the same music information as the music file to be played. For example, it is assumed in this example that the music information includes a song name and a singer, and if the current music file to be played is a song named "sweet honey", the singer is a song named "dunlijun", and the bit rate is "320 Kbps", the song named "sweet honey" does not appear in the played music file, and the singer is a song named "dunlijun", or the played music file is a song named "sweet honey", and the singer is a song of "dunlijun", but the bit rate of the music file is "128 Kbps". Furthermore, the embodiment of the present invention further includes:
in one embodiment, when the playing unit 102 determines whether at least one of the played music files is at least one first music file through the querying sub-unit 1021, the comparing sub-unit 1022 and the playing sub-unit 1023, and if it is determined that at least one of the played music files exists, the music file with the highest audio quality in the at least one first music file is played, the playing unit 102 plays the music file to be played when determining that the first music file does not exist in the played music files. In the embodiment of the invention:
the playing sub-unit 1023 is further configured to play the music file to be played after the querying sub-unit 1021 determines that there is no music file in the playing database having the same music information as the music file to be played, or after the comparing sub-unit 1022 determines that the audio quality of the music file queried in the playing database is lower than or the same as the audio quality of the music file to be played.
Specifically, after the playing sub-unit 1023 plays the music files to be played, the music file with the highest audio quality in the same music information as the music files to be played recorded in the playing database is updated to the music file to be played, so that the music file with the highest audio quality in at least one music file with the same music information in the played music files is always recorded in the playing database.
In one embodiment, as shown in fig. 1, the music player further includes: a data update unit 103, wherein:
and a data updating unit 103, configured to update the playing database according to the music file played by the playing subunit.
The following describes the music player and the overall working process of each unit module of the music player provided in the embodiment of the present invention with reference to practical applications, and fig. 3 is a schematic flow chart of the audio player during working:
suppose that a music player plays music in list order and music files stored in the storage space of the music player are as shown in table 4:
Figure BDA0001609629620000091
TABLE 4
Five music files are stored in the storage space, and the music information of the music file No. 01 comprises: the song name is "aaa", the album name is "ee", the singer is "abc", the music genre is "f", the bit rate is "192 kbps", and the other four music files are the same.
At this time, the operation process of the music player is as shown in fig. 3:
s201, starting a music player, and connecting a built-in storage space of the music player or connecting an external storage device.
S202, the obtaining unit 101 obtains a play instruction.
Specifically, the music player first determines the music file No. 01 as the music file to be played according to the playing instruction.
S203, the query subunit 1021 queries the music file in the playing database, where the music file has the same music information as the music file to be played.
Since the music is played for the first time by the music player at this time, the playing database is not recorded yet. The query subunit 1021 determines that there is no music file in the play database that has the same music information as the music file No. 01.
S204, the playing sub-unit 1023 plays the music file to be played after the query sub-unit determines that there is no music file in the playing database that has the same music information as the music file to be played.
I.e. playing music file number 01. Then, the data updating unit 103 updates the playing database, and the data in the updated playing database is shown in table 5 below:
Figure BDA0001609629620000101
TABLE 5
After that, the obtaining unit 101 obtains the playing instruction, determines the music file No. 02 as the music file to be played, and repeats the steps of S202 and S204 because there is no music file having the same music information as the music file No. 02 in the playing database at this time, and the playing sub-unit 1023 plays the music file No. 02. Then, the data updating unit 103 updates the playing database, and the data in the updated playing database is shown in table 6 below:
Figure BDA0001609629620000102
TABLE 6
After that, the acquisition unit 101 acquires a play instruction, determines the music file No. 03 as a music file to be played, and repeats the steps of S202 and S203. At this time, the query subunit 1021 queries the playback database (as shown in table 6) that the music file No. 01 and the music file No. 03 recorded in the data No. 001 have the same music information, and further:
s205, the comparing subunit 1022 compares the audio quality of the music file queried by the querying subunit in the playing database with the music file to be played.
Specifically, the audio quality of music file No. 01 is compared with that of music file No. 03. Since the bit rate of the music file No. 01 is 192Kbps and the bit rate of the music file No. 03 is 128Kbps, it is determined that the audio quality of the music file No. 01 is high.
S206, the playing sub-unit 1023 plays the music file queried in the playing database after the comparing sub-unit 1022 determines that the audio quality of the music file queried in the playing database is higher than the audio quality of the music file to be played.
Specifically, the play sub-unit 1023 plays the music file No. 01. Then, the data updating unit 103 updates the playing database, and the data in the updated playing database is shown in table 7 below:
Figure BDA0001609629620000111
TABLE 7
After that, the obtaining unit 101 obtains a play instruction, and determines the music file No. 04 as a music file to be played. Since the No. 02 music file and the No. 04 music file recorded with the No. 002 data in the playing database (as shown in table 7) have the same music information, and the bit rate of the No. 02 music file is higher than that of the No. 04 music file (the bit rate of the No. 02 music file is 320Kbps and the bit rate of the No. 04 music file is 128Kbps), the steps of steps S202, S203, S205, S206 are repeated, and the playing sub-unit 1023 plays the No. 02 music file. Then, the data updating unit 103 updates the playing database, and the data in the updated playing database is shown in table 8 below:
Figure BDA0001609629620000121
TABLE 8
After that, the acquisition unit 101 acquires a play instruction, and determines the music file No. 05 as a music file to be played. Since the music file No. 01 recorded in the data No. 001 or the data No. 003 in the playback database (as shown in table 8 above) has the same music information as the music file No. 05, and the audio quality of the music file No. 05 is higher (the bit rate of the music file No. 01 is 192Kbps and the bit rate of the music file No. 05 is 320Kbps), after repeating the steps of S202, S203, S205, execution of:
s207, the playing sub-unit 1023 plays the music file to be played after the comparing sub-unit 1022 determines that the audio quality of the music file queried in the playing database is lower than or equal to the audio quality of the music file to be played.
I.e., the play sub-unit 1023 plays the music file No. 05. Then, the data updating unit 103 updates the playing database, and the data in the updated playing database is shown in table 9 below:
Figure BDA0001609629620000122
TABLE 9
Then, because the music file with the highest audio quality of the same music information corresponding to each music file in the storage space is recorded in the playing database, the music file to be played each time can be directly determined according to the record in the playing database in the later playing, and the music file played each time is the music file with the best audio quality in the same music information, so that the user experience is improved.
The following describes embodiments of methods provided by embodiments of the present invention that correspond to the embodiments of detection devices provided above. It should be noted that, for the explanation of the related contents in the following method embodiments, reference may be made to the above apparatus embodiments.
An embodiment of the present invention provides a music playing method, as shown in fig. 4, including:
s301, acquiring a playing instruction, wherein the playing instruction is used for instructing a music player to determine a music file to be played;
s302, if the first music file exists in the played music files, playing the first music file, wherein the first music file and the music file to be played have the same music information, the audio quality of the first music file is higher than that of the music file to be played, and the music information at least comprises a song name.
In an embodiment, the step S302 further includes playing the music file to be played if it is determined that the first music file does not exist in the played music files.
In one embodiment, step S302 may specifically include the following steps S3021 to S3024:
s3021, music files with the same music information as the music files to be played are inquired in a playing database, wherein the music files with the highest audio quality in at least one music file with the same music information in the played music files are recorded in the playing database;
s3022, comparing the audio quality of the music file inquired in the playing database with the music file to be played;
s3023, after the audio quality of the music file inquired in the playing database is determined to be higher than that of the music file to be played, playing the music file inquired in the playing database;
and S3024, after determining that there is no music file with the same music information as the music file to be played in the playing database, or determining that the audio quality of the music file inquired in the playing database is lower than or the same as that of the music file to be played, playing the music file to be played.
S303, updating the playing database according to the played music file.
In the embodiment of the invention, when the same song with a plurality of versions with different audio quality is stored in the storage space, in order to achieve the effect that the music player can select the song with the version with the better tone quality to play each time, after the music file to be played is determined each time, the audio quality of the music file to be played is compared with the audio quality of the music file with the same music information played before, and if one or more music files with higher audio quality exist in the music files played before, the music file with the highest audio quality in the one or more music files with higher audio quality is directly played. The use experience of the user is improved.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (8)

1. A music player, comprising:
the acquisition unit is used for acquiring a playing instruction, and the playing instruction is used for indicating the music player to determine a music file to be played;
and the playing unit is used for playing the music file with the highest audio quality in at least one first music file if the music file already played has at least one first music file after the obtaining unit obtains the playing instruction, wherein the first music file and the music file to be played have the same music information, the audio quality of the first music file is higher than that of the music file to be played, and the music information at least comprises a song name.
2. The music player of claim 1,
the playing unit is further configured to play the music file to be played if it is determined that the first music file does not exist in the played music files.
3. The music player according to claim 1 or 2, wherein the playing unit specifically includes an inquiring subunit, a comparing subunit, and a playing subunit;
the query subunit is configured to query, after the obtaining unit obtains the playing instruction, a music file having the same music information as the music file to be played in a playing database, where a music file with the highest audio quality in at least one music file having the same music information in the played music files is recorded in the playing database;
the comparison subunit is configured to compare the audio quality of the music file queried by the querying subunit in the playing database with the music file to be played;
the playing subunit is configured to play the music file queried in the playing database after the comparing subunit determines that the audio quality of the music file queried in the playing database is higher than the audio quality of the music file to be played.
4. The music player of claim 3,
the playing sub-unit is further configured to play the music file to be played after the querying sub-unit determines that there is no music file in the playing database that has the same music information as the music file to be played, or after the comparing sub-unit determines that the audio quality of the music file queried in the playing database is lower than or the same as the audio quality of the music file to be played.
5. A music playing method, comprising:
acquiring a playing instruction, wherein the playing instruction is used for indicating a music player to determine a music file to be played;
if the fact that a first music file exists in the played music files is determined, playing the first music file, wherein the first music file and the music file to be played have the same music information, the audio quality of the first music file is higher than that of the music file to be played, and the music information at least comprises a song name.
6. The music playing method according to claim 5, wherein the method further comprises: and if the first music file does not exist in the played music files, playing the music files to be played.
7. The music playing method according to claim 5 or 6, wherein if it is determined that there is a first music file in the played music files, playing the first music file comprises;
searching music files with the same music information as the music files to be played in a playing database, wherein the music files with the highest audio quality in at least one music file with the same music information in the played music files are recorded in the playing database;
comparing the audio quality of the music file inquired in the playing database with the music file to be played;
and after the audio quality of the music file inquired in the playing database is determined to be higher than that of the music file to be played, playing the music file inquired in the playing database.
8. The music playing method according to claim 7, wherein the method further comprises:
and after determining that the music file with the same music information as the music file to be played does not exist in the playing database, or determining that the audio quality of the music file inquired in the playing database is lower than the audio quality of the music file to be played or is the same as the audio quality of the music file to be played, playing the music file to be played.
CN201810258586.XA 2018-03-27 2018-03-27 Music player and music playing method Active CN110310673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810258586.XA CN110310673B (en) 2018-03-27 2018-03-27 Music player and music playing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810258586.XA CN110310673B (en) 2018-03-27 2018-03-27 Music player and music playing method

Publications (2)

Publication Number Publication Date
CN110310673A CN110310673A (en) 2019-10-08
CN110310673B true CN110310673B (en) 2022-03-22

Family

ID=68074202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810258586.XA Active CN110310673B (en) 2018-03-27 2018-03-27 Music player and music playing method

Country Status (1)

Country Link
CN (1) CN110310673B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715770A (en) * 2015-03-11 2015-06-17 广东欧珀移动通信有限公司 Music playing method and device
CN105740393A (en) * 2016-01-27 2016-07-06 广东欧珀移动通信有限公司 Song playing method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010042048A1 (en) * 2000-05-15 2001-11-15 The Regents Of The University Of California Method and apparatus for electronically distributing audio recordings

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715770A (en) * 2015-03-11 2015-06-17 广东欧珀移动通信有限公司 Music playing method and device
CN105740393A (en) * 2016-01-27 2016-07-06 广东欧珀移动通信有限公司 Song playing method and apparatus

Also Published As

Publication number Publication date
CN110310673A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
US7716394B2 (en) Content transferring method, transferring apparatus, and transferring program
US20070038647A1 (en) Management of media sources in memory constrained devices
JP2005507130A5 (en)
US20050234858A1 (en) Recording and reproducing apparatus, reproducing apparatus, recording and reproducing method, reproducing method, program and recording medium
US20050234999A1 (en) Method and apparatus for providing a playlist in a compact disc player
US20080162435A1 (en) Retrieving Content Items For A Playlist Based On Universal Content Id
EP1900207A2 (en) Creating standardized playlists and maintaining coherency
US20020069195A1 (en) Automatic identification of DVD title using internet technologies and fuzzy matching techniques
US20120207448A1 (en) Audio Device, Video Device and Computer Program
US20060004822A1 (en) Method and apparatus for moving multi-media file and storage medium storing program for executing the method
CN101324897A (en) Method and apparatus for looking up lyric
CN110310673B (en) Music player and music playing method
US20110047131A1 (en) Media playback method for a portable device and portable device thereof
JP2007066370A (en) Play-back apparatus and play-back method
JP2005128596A (en) Information processor and method, recording medium, program, and content related data
KR101386892B1 (en) Method for synchronizing information of folder in PC and that of folder in portable device
JP4812109B2 (en) Content data playback device, content list creation method, and content list search method
JP5029842B2 (en) Content information tree generation device and program thereof
JP2010108528A (en) Audio playback method and apparatus
JP4578454B2 (en) Database generation method and information processing apparatus
US20070078847A1 (en) System and method for generating a play-list
JP5164534B2 (en) Content data playback device
JP4953304B2 (en) Content data playback device, content list creation method, and content data search method
JP2011096294A (en) Content reproducing device, program, and method of reproducing content
US20070198453A1 (en) Method for fast reconstruction of content information

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