You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
584 B
27 lines
584 B
import 'package:deep_voice/core/utils/logger.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:music_service/music_service.dart';
|
|
|
|
//音乐播放管理
|
|
class MusicManager extends GetxService {
|
|
static MusicManager get to => Get.find<MusicManager>();
|
|
|
|
// 音乐服务实例
|
|
final MusicService _musicService = MusicService();
|
|
|
|
/// 初始化
|
|
@override
|
|
void onInit() {
|
|
super.onInit();
|
|
Logger.info('BLE管理器初始化');
|
|
}
|
|
|
|
/// 释放资源
|
|
@override
|
|
void onClose() {
|
|
super.onClose();
|
|
}
|
|
|
|
//播放 音乐
|
|
Future<void> play(String url) async {}
|
|
}
|
|
|