feat: 视频播放插件添加了一个极其简陋的字幕

This commit is contained in:
539943419 committed 2024-08-27 20:42:53 +08:00
1 parent 632a562348
commit f578072997
4 files changed
+135 -22

No files matched your search

+8 -1
View File
@@ -17,6 +17,13 @@ export default function init() {
if (vFiles.length === 0) {
return false;
}
return vFiles.length === 1 && vFiles[0].name.endsWith("mp4");
for(let i of vFiles) {
for(let s of ['mp4', 'm3u8', 'hls']) {
if(i.name.endsWith(s)) {
return true
}
}
}
return false
});
}