opt: toggle showSubtitleBtn

This commit is contained in:
guozhigq
2024-11-23 22:48:09 +08:00
parent 79cd211976
commit e8166c9f82
3 changed files with 17 additions and 3 deletions

View File

@ -480,6 +480,15 @@ class VideoDetailController extends GetxController
getDanmaku(subtitles);
}
}
headerControl = HeaderControl(
controller: plPlayerController,
videoDetailCtr: this,
floating: floating,
bvid: bvid,
videoType: videoType,
showSubtitleBtn: result['status'] && result['data'].subtitles.isNotEmpty,
);
plPlayerController.setHeaderControl(headerControl);
}
// 获取弹幕