Skip to content

Commit

Permalink
feat(script): 添加职教云 flv 格式支持
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Feb 26, 2024
1 parent 53f0846 commit 08d6719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/src/projects/zjy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const ZJYProject = Project.create({
$console.info('开始学习:' + +courseInfo.fileType + '-' + courseInfo.name);
if (['ppt', 'doc', 'pptx', 'docx', 'pdf', 'txt'].some((i) => courseInfo.fileType === i)) {
await watchFile();
} else if (['video', 'audio', 'mp4', 'mp3'].some((i) => courseInfo.fileType === i)) {
} else if (['video', 'audio', 'mp4', 'mp3', 'flv'].some((i) => courseInfo.fileType === i)) {
if ($el('.guide')?.innerHTML.includes('很抱歉,您的浏览器不支持播放此类文件')) {
$console.error(`任务点 ${courseInfo.name},不支持播放。`);
} else {
Expand Down

0 comments on commit 08d6719

Please sign in to comment.