- 播放音乐
- 暂停
- progressBar输出进度
- 播放器切歌逻辑
- 切换歌单
- 通过channel监听网页模拟nfc的输入
- 连接nfc
- 当txt音乐文件不在本地时,跳过播放切换
- 根据resources下的mp3文件初始化txt文件
- NFC根据UID切换歌单
- NFC实现各种操作
- 修复processBar会覆盖输入的bug
- 根据NFC卡里信息来切换歌单
- 一段时间内NFC只会被读取一次:避免一直切换导致不播放
https://www.jianshu.com/p/c02b7f7a7cfa https://www.d-logic.com/zh/knowledge_base/libnfc-installation-on-windows-11/ https://blog.csdn.net/fengshuiyue/article/details/37921717 https://fanzheng.org/archives/29
https://github.com/nfc-tools/libnfc
推荐直接用brew安装,具体安装自行搜索
git clone [email protected]:Sprite137/NFC-CD-GO.git
cd NFC-CD-GO
cd music_opr
go build -o player
./player
- resources存放了歌单(playList)和歌曲(music),如果要修改,可以放入其中
- music暂时只支持mp3格式,应该会补充的
- playList中请按已有的格式编辑或者新建自己的歌单