Skip to content

Commit

Permalink
注释掉弹幕相关的debugprint
Browse files Browse the repository at this point in the history
  • Loading branch information
iris1598 committed Sep 8, 2024
1 parent 98f72da commit 4699640
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/controllers/watch/video_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ class VideoPlayerController extends GetxController {
final String anilistID;

int bangumiID = 0;
late bool danmakuonon;
late final DanmakuController danmakuController;
late bool danmakuonon;
late final DanmakuController danmakuController;
late bool webDavEnable;
// 弹幕开关
final danmakuOn = RxBool(true); // 默认值设置为 true
final danmakuOn = RxBool(true); // 默认值设置为 true


Map<int, List<Danmaku>> danDanmakus = {};
Expand Down Expand Up @@ -145,7 +145,7 @@ void toggleDanmaku() {
return Timer.periodic(const Duration(seconds: 1), (timer) {
// 弹幕相关
if (player.state.playing == true) {
debugPrint('当前播放到 ${player.state.position.inSeconds}');
//debugPrint('当前播放到 ${player.state.position.inSeconds}');
final currentTime = player.state.position.inSeconds;
// 判断当前时间是否与上次添加弹幕的时间相同
if (currentTime == _lastDanmakuTime) {
Expand All @@ -170,7 +170,7 @@ void toggleDanmaku() {
danmaku.source.contains('Gamer'))) {
return;
}
debugPrint('Adding danmaku: ${danmaku.message}');
//debugPrint('Adding danmaku: ${danmaku.message}');
await Future.delayed(
Duration(
milliseconds: idx *
Expand Down

0 comments on commit 4699640

Please sign in to comment.