fix: 字幕时间为int时出错

This commit is contained in:
orz12
2024-03-01 22:42:08 +08:00
parent 26f6e51e92
commit e19ff735be

View File

@@ -520,7 +520,7 @@ class VideoHttp {
}
List<Map<String, String>> subtitlesVtt = [];
String subtitleTimecode(double seconds) {
String subtitleTimecode(num seconds) {
int h = (seconds / 3600).floor();
int m = ((seconds % 3600) / 60).floor();
int s = (seconds % 60).floor();