Qt music player preparation (1) Easy player

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.