fix: 修复视频插件无法播放mkv封装格式的视频的问题
This commit is contained in:
1 parent
8f8d098faa
commit
47590ec0db
4 files changed
+12
-2
No files matched your search
@@ -210,6 +210,8 @@ $controller-height: 25px;
|
|||||||
$tag-width: 170px;
|
$tag-width: 170px;
|
||||||
|
|
||||||
.view {
|
.view {
|
||||||
|
|
||||||
|
background-color: #ffffff;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -30,7 +30,11 @@ const pluginConfig: registerComponentOption = {
|
|||||||
'yaml',
|
'yaml',
|
||||||
'txt',
|
'txt',
|
||||||
'xml',
|
'xml',
|
||||||
'vue'
|
'vue',
|
||||||
|
'srt',
|
||||||
|
'vtt',
|
||||||
|
'ass',
|
||||||
|
'ssa'
|
||||||
]) {
|
]) {
|
||||||
if (vFiles[0].name.endsWith(end)) {
|
if (vFiles[0].name.endsWith(end)) {
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ function ssaToVtt(ssaContent: string): string {
|
|||||||
|
|
||||||
const findVideo = (vFiles: VirtualFile[]) =>
|
const findVideo = (vFiles: VirtualFile[]) =>
|
||||||
uniq(vFiles.filter((v) => {
|
uniq(vFiles.filter((v) => {
|
||||||
for (let s of ['mp4', 'mp3']) {
|
for (let s of ['mp4', 'mp3', 'mkv']) {
|
||||||
if (v.name.endsWith(s)) {
|
if (v.name.endsWith(s)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
:root
|
||||||
|
body {
|
||||||
|
background-color: aliceblue;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user