mod: 视频播放器重构 - 基本功能

This commit is contained in:
guozhigq
2023-07-30 22:44:18 +08:00
parent ca12be5373
commit 636ff2b9ad
31 changed files with 1583 additions and 390 deletions

View File

@ -0,0 +1,19 @@
import 'package:get/get.dart';
enum PlayerStatus { completed, playing, paused }
class PlPlayerStatus {
Rx<PlayerStatus> status = Rx(PlayerStatus.paused);
bool get playing {
return status.value == PlayerStatus.playing;
}
bool get paused {
return status.value == PlayerStatus.paused;
}
bool get completed {
return status.value == PlayerStatus.completed;
}
}