Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
4949883d
提交
4949883d
authored
9月 27, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 调整视频清晰度
上级
080a190e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
40 行增加
和
12 行删除
+40
-12
ViewVideoPreviewDialog.vue
...admin/contest/items/components/ViewVideoPreviewDialog.vue
+8
-1
View.vue
src/modules/admin/lab/video/views/View.vue
+14
-5
VideoItem.vue
src/modules/student/contest/components/VideoItem.vue
+9
-3
VideoItem.vue
src/modules/student/lab/components/VideoItem.vue
+9
-3
没有找到文件。
src/modules/admin/contest/items/components/ViewVideoPreviewDialog.vue
浏览文件 @
4949883d
...
@@ -13,7 +13,14 @@ function fetchInfo() {
...
@@ -13,7 +13,14 @@ function fetchInfo() {
})
})
}
}
const
playUrl
=
$computed
(()
=>
{
const
playUrl
=
$computed
(()
=>
{
return
playList
[
0
]?.
PlayURL
||
''
const
definitionUrl
=
playList
.
reduce
(
(
result
:
any
,
item
:
any
)
=>
{
result
[
item
.
Definition
]
=
item
.
PlayURL
return
result
},
{
SD
:
''
,
LD
:
''
,
FD
:
''
}
)
return
definitionUrl
.
SD
||
definitionUrl
.
LD
||
definitionUrl
.
FD
})
})
onMounted
(()
=>
{
onMounted
(()
=>
{
fetchInfo
()
fetchInfo
()
...
...
src/modules/admin/lab/video/views/View.vue
浏览文件 @
4949883d
...
@@ -9,15 +9,25 @@ interface Props {
...
@@ -9,15 +9,25 @@ interface Props {
const
props
=
defineProps
<
Props
>
()
const
props
=
defineProps
<
Props
>
()
let
detail
=
$ref
<
VideoItem
|
null
>
(
null
)
let
detail
=
$ref
<
VideoItem
|
null
>
(
null
)
let
playUrl
=
$ref
<
string
|
null
>
(
null
)
let
playList
=
$ref
<
any
>
([])
function
fetchInfo
()
{
function
fetchInfo
()
{
if
(
!
props
.
id
)
return
if
(
!
props
.
id
)
return
getVideo
({
id
:
props
.
id
}).
then
(
res
=>
{
getVideo
({
id
:
props
.
id
}).
then
(
res
=>
{
detail
=
res
.
data
detail
=
res
.
data
play
Url
=
res
.
data
?.
play_auth
?.
play_info_list
[
0
]?.
PlayURL
||
''
play
List
=
res
.
data
?.
play_auth
?.
play_info_list
})
})
}
}
const
playUrl
=
$computed
(()
=>
{
const
definitionUrl
=
playList
.
reduce
(
(
result
:
any
,
item
:
any
)
=>
{
result
[
item
.
Definition
]
=
item
.
PlayURL
return
result
},
{
SD
:
''
,
LD
:
''
,
FD
:
''
}
)
return
definitionUrl
.
SD
||
definitionUrl
.
LD
||
definitionUrl
.
FD
})
onMounted
(()
=>
{
onMounted
(()
=>
{
fetchInfo
()
fetchInfo
()
})
})
...
@@ -39,8 +49,7 @@ onMounted(() => {
...
@@ -39,8 +49,7 @@ onMounted(() => {
<div
style=
"height: 600px"
v-if=
"playUrl"
>
<div
style=
"height: 600px"
v-if=
"playUrl"
>
<AppVideoPlayer
<AppVideoPlayer
:options=
"
{ sources: [{ src: playUrl, type: 'application/x-mpegURL' }] }"
:options=
"
{ sources: [{ src: playUrl, type: 'application/x-mpegURL' }] }"
style="width: 100%; height: 100%"
style="width: 100%; height: 100%">
</AppVideoPlayer>
>
</AppVideoPlayer>
</div>
</div>
</
template
>
</
template
>
</AppCard>
</AppCard>
...
...
src/modules/student/contest/components/VideoItem.vue
浏览文件 @
4949883d
...
@@ -28,7 +28,14 @@ function fetchInfo() {
...
@@ -28,7 +28,14 @@ function fetchInfo() {
})
})
}
}
const
playUrl
=
$computed
(()
=>
{
const
playUrl
=
$computed
(()
=>
{
return
playList
[
0
]?.
PlayURL
||
''
const
definitionUrl
=
playList
.
reduce
(
(
result
:
any
,
item
:
any
)
=>
{
result
[
item
.
Definition
]
=
item
.
PlayURL
return
result
},
{
SD
:
''
,
LD
:
''
,
FD
:
''
}
)
return
definitionUrl
.
SD
||
definitionUrl
.
LD
||
definitionUrl
.
FD
})
})
onMounted
(()
=>
{
onMounted
(()
=>
{
fetchInfo
()
fetchInfo
()
...
@@ -41,8 +48,7 @@ onMounted(() => {
...
@@ -41,8 +48,7 @@ onMounted(() => {
<div
style=
"height: 200px"
v-if=
"playUrl"
>
<div
style=
"height: 200px"
v-if=
"playUrl"
>
<AppVideoPlayer
<AppVideoPlayer
:options=
"
{ sources: [{ src: playUrl, type: 'application/x-mpegURL' }] }"
:options=
"
{ sources: [{ src: playUrl, type: 'application/x-mpegURL' }] }"
style="width: 100%; height: 100%"
style="width: 100%; height: 100%">
</AppVideoPlayer>
>
</AppVideoPlayer>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
src/modules/student/lab/components/VideoItem.vue
浏览文件 @
4949883d
...
@@ -29,7 +29,14 @@ function fetchInfo() {
...
@@ -29,7 +29,14 @@ function fetchInfo() {
})
})
}
}
const
playUrl
=
$computed
(()
=>
{
const
playUrl
=
$computed
(()
=>
{
return
playList
[
0
]?.
PlayURL
||
''
const
definitionUrl
=
playList
.
reduce
(
(
result
:
any
,
item
:
any
)
=>
{
result
[
item
.
Definition
]
=
item
.
PlayURL
return
result
},
{
SD
:
''
,
LD
:
''
,
FD
:
''
}
)
return
definitionUrl
.
SD
||
definitionUrl
.
LD
||
definitionUrl
.
FD
})
})
onMounted
(()
=>
{
onMounted
(()
=>
{
fetchInfo
()
fetchInfo
()
...
@@ -42,8 +49,7 @@ onMounted(() => {
...
@@ -42,8 +49,7 @@ onMounted(() => {
<div
style=
"height: 200px"
v-if=
"playUrl"
>
<div
style=
"height: 200px"
v-if=
"playUrl"
>
<AppVideoPlayer
<AppVideoPlayer
:options=
"
{ sources: [{ src: playUrl, type: 'application/x-mpegURL' }] }"
:options=
"
{ sources: [{ src: playUrl, type: 'application/x-mpegURL' }] }"
style="width: 100%; height: 100%"
style="width: 100%; height: 100%">
</AppVideoPlayer>
>
</AppVideoPlayer>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论