当前位置:网站首页>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-dev
Four 、 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
边栏推荐
- Research Report on the development trend and competitive strategy of the global pipeline robot inspection camera industry
- [零基础学IoT Pwn] 复现Netgear WNAP320 RCE
- Halo effect - who says that those with light on their heads are heroes
- 一波三折,终于找到src漏洞挖掘的方法了【建议收藏】
- "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
- Quelle valeur le pdnp peut - il apporter aux gestionnaires de produits? Vous savez tout?
- Research Report on the development trend and competitive strategy of the global navigation simulator industry
- MIT团队使用图神经网络,加速无定形聚合物电解质筛选,促进下一代锂电池技术开发
- Leetcode (69) -- square root of X
- Research Report on the development trend and competitive strategy of the global axis measurement system industry
猜你喜欢
[R language data science]: common evaluation indicators of machine learning
Today, with the popularity of micro services, how does service mesh exist?
2022-2-15 learning xiangniuke project - Section 1 filtering sensitive words
Fundamentals of C language
Realize queue with stack and stack with queue (C language \leetcode\u 232+225)
Texstudio tutorial
Build your own website (14)
如何看待国企纷纷卸载微软Office改用金山WPS?
2022-2-15 learning xiangniuke project - Section 4 business management
Tdengine connector goes online Google Data Studio app store
随机推荐
Texstudio tutorial
Research Report on the development trend and competitive strategy of the global display filter industry
Opencv mat class
[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial
sqlilabs less-11~12
Play with grpc - communication between different programming languages
Generate random numbers (4-bit, 6-bit)
Halo effect - who says that those with light on their heads are heroes
Opencv interpolation mode
How to view the state-owned enterprises have unloaded Microsoft office and switched to Kingsoft WPS?
Logic is a good thing
Sqlachemy common operations
Don't want to knock the code? Here comes the chance
C learning notes (5) class and inheritance
Chapter 4 of getting started with MySQL: creation, modification and deletion of data tables
Websocket (simple experience version)
【阶段人生总结】放弃考研,参与到工作中,已经顺利毕业了,昨天刚领毕业证
Effet halo - qui dit qu'il y a de la lumière sur la tête est un héros
One of the data Lake series | you must love to read the history of minimalist data platforms, from data warehouse, data lake to Lake warehouse
[dynamic programming] interval dp:p1005 matrix retrieval