当前位置:网站首页>Music player development example (can be set up)
Music player development example (can be set up)
2022-07-01 14:38:00 【Ah yuan】
One 、 Development infrastructure
Recently, many college students are finishing their graduation thesis and graduation works , In fact, you can start to think about it in your junior year and communicate with your tutor in advance , Let your work directly become the topic of the thesis , Developing a simple music player on the domestic operating system is a good and tall topic ?( It was like this when I was in College , When I was a junior, my graduation project was already done , Then I told the teacher to revise the optional topic of the paper , The teacher helped me to add my topic for the thesis ), Read the graduation design topic sent by fans , Developed a simple music player ( Domestic operating system ).
Most graduation topics are usually XXX Management system , Music player development requires more knowledge than XXX There should be more management systems , It will involve network communication ,SSL agreement , Database management , File read and write , Multimedia play , Multithreading and thread pool , Design patterns and other related knowledge points , After reading this article, I hope , You can make a simple music player by yourself .
Two 、 software design
Software design is generally based on requirements , Before developing or designing software, you must understand the requirements . Especially at work , Requirements are generally determined by The product manager Send out , You need to fully understand the requirements before you start developing ( Sharpening a knife never misses a woodcutter ). One of the more human aspects of our company is , It's not that the demand put forward by the product manager must be reasonable , Technical evaluation is required , Test evaluation ( From user 、 technology 、 Consider the rationality of demand from various aspects such as operation and maintenance ). If you have been talking about the rationality of requirements when developing , Then there are only two possibilities .1、 You are nothing in the company .2、 What are you , But you don't know the customer .
2.1 demand
1、 Develop a music player , Be able to search relevant song titles or singers' songs through keywords , Songs are displayed in the list , The list is displayed on one page 20 strip , If you can't show it, you need to turn the page , You can enter numbers to make the page number bar
2、 You can download songs you are interested in , You can play the downloaded song directly this time or next time you open it .
3、 It can control the playing progress of music , Pause and play music , Click the previous song and the next song to switch .
4、 You can control the volume of music .
The design interface is as follows :


2.2 Outline design
The frame design drawing is shown in the figure below :( In fact, most of them )
The module specification
UI modular : It includes two parts: search interface and playback interface .
Database module : Users store local databases , Use it as cached data , Prevent repeated network downloads, etc .
Network module : For processing network requests , Including interface access and request .
Local files : Read and write local files , After downloading the file, save it locally . Cache , When playing, read the local file directly to play .
3、 ... and 、 The development of preparation
Develop software in domestic operating system , I recommend using QT Development , Of course, readers can also choose their favorite development libraries .
3.1 Operating system installation
3.2 QT install
Click on : install QT development environment
3.3 Dependency library installation
rely on openssl, involves https Network access , So you need to install openssl Development library file , The installation command is as follows :
sudo apt install libssl-devFour 、 Module details
4.1 UI Interface
UI Directory structure

4.2 database
The database table is designed as follows :
Due to small databases , Therefore, the index is not set .
| Field | type | remarks | If required |
|---|---|---|---|
| id | int | Automatically add | yes |
| name | char(50) | The name of the music | yes |
| path | char(255) | The local path | yes |
| img | char(255) | Music cover | yes |
| url | char(255) | Network path | yes |
| rid | char(100) | Network identity ID | yes |
| remark | char(100) | remarks | no |
| create_time | int | Insert time stamp | yes |
4.3 The Internet
The network module provides two important interfaces .
1 .API Interface specification : Online music player interface
2. File download .
5、 ... and 、 Source code
边栏推荐
- [getting started with Django] 13 page Association MySQL "multi" field table (check)
- Research Report on the development trend and competitive strategy of the global navigation simulator industry
- sqlilabs less-11~12
- 2022-2-15 learning xiangniuke project - Section 1 filtering sensitive words
- Use the right scene, get twice the result with half the effort! Full introduction to the window query function and usage scenarios of tdengine
- sqlilabs less13
- 241. 为运算表达式设计优先级
- About the use of HTTP cache validation last modified and Etag
- 手把手带你入门 API 开发
- [IOT design. Part I] stm32+ smart cloud aiot+ laboratory security monitoring system
猜你喜欢

sqlilabs less-8

Texstudio tutorial
![[IOT design. Part I] stm32+ smart cloud aiot+ laboratory security monitoring system](/img/a0/2654d43cfb6a135cc15d84447a13f9.png)
[IOT design. Part I] stm32+ smart cloud aiot+ laboratory security monitoring system

【商业终端仿真解决方案】上海道宁为您带来Georgia介绍、试用、教程

Logic is a good thing

JVM performance tuning and practical basic theory part II

leetcode622. Design cycle queue (C language)

How can we protect our passwords?

sqlilabs less9

Summary of leetcode's dynamic programming 5
随机推荐
光環效應——誰說頭上有光的就算英雄
Research Report on development trend and competitive strategy of global 4-aminodiphenylamine industry
【15. 区间合并】
用对场景,事半功倍!TDengine 的窗口查询功能及使用场景全介绍
既不是研发顶尖高手,也不是销售大牛,为何偏偏获得 2 万 RMB 的首个涛思文化奖?
Basis of target detection (NMS)
sqlilabs less13
In depth cooperation | Taosi data cooperates with changhongjia Huawei customers in China to provide tdengine with powerful enterprise level products and perfect service guarantee
"National defense seven sons" funding soared, with Tsinghua reaching 36.2 billion yuan, ranking second with 10.1 billion yuan. The 2022 budget of national colleges and universities was made public
Scheme of printing statistical information in log
【阶段人生总结】放弃考研,参与到工作中,已经顺利毕业了,昨天刚领毕业证
The integration of computing and Internet enables the transformation of the industry, and the mobile cloud lights up a new roadmap for the future of digital intelligence
使用net core 6 c# 的 NPOI 包,讀取excel..xlsx單元格內的圖片,並存儲到指定服務器
【14. 区间和(离散化)】
Is the futures company found on Baidu safe? How do futures companies determine the regularity
Leetcode (69) -- square root of X
Problem note - Oracle 11g uninstall
sqlilabs less10
Research Report on the development trend and competitive strategy of the global electromagnetic flowmeter industry
[15. Interval consolidation]
