Skip to content

Commit

Permalink
[Refactor] sync
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Sep 27, 2024
1 parent 35e314f commit 47e1c55
Show file tree
Hide file tree
Showing 118 changed files with 10,299 additions and 7,113 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
## 果韵
使用Flutter和Rust开发的跨平台`自定义音源`音乐播放器

后端Rust库仓库[music_api](https://github.com/canxin121/music_api),实现了`MusicAggregator``MusicList``Trait Object`封装。实现了便捷的跨(音乐)平台音乐`聚合``换源`,提供了统一的接口便于开发使用。
后端Rust库仓库[music_api](https://github.com/canxin121/music_api).

### 支持的音乐平台:
- 网易云音乐
- 酷我音乐

### 开发维护优先级
1. Windows Android Ios
2. Linux
1. Linux Android Ios
2. Windows
3. Macos

### 安装说明
Expand Down
8 changes: 8 additions & 0 deletions issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1. ~~新建歌单顺序不再最后,order有断层,取值不合理~~
2. ~~多选新建和删除歌单混用还是有问题->新建后清空controller, 与1也有关系,因为新歌单出现的顺序有问题!!~~
3. ~~在线多选歌单,添加歌曲到新建歌单,搜索结果歌单后会变成数据库中歌单的多选~~
4. ~~滑动条太窄了~~
5. ~~歌单选项的选项在 from_db = false时有重复~~
6. ~~数据库歌单无法编辑信息~~
7. ~~删除数据库歌单无法立刻刷新~~
8. 多选的选项框,颜色不明显
6 changes: 4 additions & 2 deletions lib/audioControl/audio_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import 'package:just_audio_background/just_audio_background.dart';
import 'package:just_audio_media_kit/just_audio_media_kit.dart';
import 'package:synchronized/synchronized.dart';

// 初始化所有和Audio相关的内容
Future<void> initGlobalAudioHandler() async {
if (Platform.isLinux) {
JustAudioMediaKit.ensureInitialized(
Expand All @@ -39,6 +38,9 @@ Future<void> initGlobalAudioHandler() async {
await session.configure(const AudioSessionConfiguration.music());

globalAudioHandler = AudioHandler();
Future.delayed(const Duration(seconds: 1), () {
globalAudioHandler.pause();
});
}

// Windows 平台的just_audio实现存在bug
Expand Down Expand Up @@ -375,7 +377,7 @@ class AudioHandler extends GetxController {
playingMusic.value = null;
}
globalTalker.info(
"[Music Handler] Succeed to updatePlayingMusic: [${playingMusic.value?.musicAggregator.defaultServer ?? "No music"}]${playingMusic.value?.musicAggregator.defaultServer ?? "No music"}");
"[Music Handler] Succeed to updatePlayingMusic: [${playingMusic.value?.musicAggregator.defaultServer ?? "No music"}]${playingMusic.value?.musicAggregator.name ?? "No music"}");
update();
}

Expand Down
Loading

0 comments on commit 47e1c55

Please sign in to comment.