A few days ago, I suddenly thought that the current knowledge of QT is also a little basic. Why don't I try to play it on my own? When I saw a qkugou project in the open-source China code area, I just wanted to create an online music player. So I started to prepare for it. I had a busy day and made a record here.
First, you need to find an online music API that can be used and try the Baidu MP3 and Soso music interfaces compiled by netizens. They can do the same in the morning and they won't work in the evening, it may be discovered and blocked. After all, the API has not been opened yet. The resources integrated by netizens cannot be used, so they have to go back to the qkugou project and extract the API from it. Fortunately, they can use it. Thank you very much here. However, qkugou does not provide the lyrics API. I searched the internet and used the lyrics API. Although the search is not comprehensive, it is enough for development and testing.
Second, the interface. The idea is to use an online music player, so it does not support playing local music.
Due to limited time, the first version is designed for the moment, and only the search results of the first song and lyrics are obtained. Therefore, the interface design is quite simple, such:
Then, the function. The first version is relatively simple. It supports playing, pause, replay, next, volume adjustment, and other operations. It supports downloading songs and lyrics.
Finally, the space to be upgraded.
(1) Design a search list and a playlist. You can add the search results to the playlist to queue the songs in the playlist.
(2) design cycle: single, random, and list.
(3) supports rolling or desktop lyrics.
It's a bit late. Here is an overview and idea. Let's talk about the code in another day.
Qt music player preparation (1) Easy player