当前位置:网站首页>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
边栏推荐
- Realize queue with stack and stack with queue (C language \leetcode\u 232+225)
- 【15. 区间合并】
- 力扣解法汇总241-为运算表达式设计优先级
- Research Report on the development trend and competitive strategy of the global CCTV robot industry
- 如何看待国企纷纷卸载微软Office改用金山WPS?
- 使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器
- 被裁三個月,面試到處碰壁,心態已經開始崩了
- Basic operation of queue (implemented in C language)
- Force deduction solution summary 241- design priority for operation expression
- 当主程架构游戏的时候,防止到处调用减少耦合性,怎么开放接口给其他人调用呢?
猜你喜欢

MIT团队使用图神经网络,加速无定形聚合物电解质筛选,促进下一代锂电池技术开发

Après avoir été licencié pendant trois mois, l'entrevue s'est effondrée et l'état d'esprit a commencé à s'effondrer.

Today, with the popularity of micro services, how does service mesh exist?

【R语言数据科学】:机器学习常见评估指标

微服务开发步骤(nacos)

Open source internship experience sharing: openeuler software package reinforcement test

用对场景,事半功倍!TDengine 的窗口查询功能及使用场景全介绍

【修复版】仿我爱看电影网站模板/海洋CMS影视系统模板

Use of Oracle database objects

Salesforce, Johns Hopkins, Columbia | progen2: exploring the boundaries of protein language models
随机推荐
2022 PMP project management examination agile knowledge points (6)
[IOT completion. Part 2] stm32+ smart cloud aiot+ laboratory security monitoring system
Research Report on the development trend and competitive strategy of the global traditional computer industry
【商业终端仿真解决方案】上海道宁为您带来Georgia介绍、试用、教程
2022-2-15 learning the imitation Niuke project - post in Section 2
Research Report on the development trend and competitive strategy of the global diamond suspension industry
Research Report on the development trend and competitive strategy of the global high temperature label industry
被裁三個月,面試到處碰壁,心態已經開始崩了
Research Report on development trend and competitive strategy of global consumer glassware industry
Scheme of printing statistical information in log
phpcms实现订单直接支付宝支付功能
使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器
[stage life summary] I gave up the postgraduate entrance examination and participated in the work. I have successfully graduated and just received my graduation certificate yesterday
Opencv interpolation mode
sqlilabs less13
[零基础学IoT Pwn] 复现Netgear WNAP320 RCE
111. Minimum depth of binary tree
Blog recommendation | in depth study of message segmentation in pulsar
光環效應——誰說頭上有光的就算英雄
【15. 区间合并】
