Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
national_museum_vod
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qzhxx
national_museum_vod
Commits
e8f27e3c
Commit
e8f27e3c
authored
Apr 22, 2021
by
qzhxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阻止视频下载
parent
0cdbeec7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
49 deletions
+11
-49
index.vue
src/page/check/display/index.vue
+1
-1
details.vue
src/page/check/learn/details.vue
+2
-2
index-.vue
src/page/check/learn/index-.vue
+0
-43
index.vue
src/page/check/video/index.vue
+4
-1
videoDialog.vue
src/page/content/components/dialog/videoDialog.vue
+1
-0
videoPlay.vue
src/page/content/components/videoPlay.vue
+1
-1
details.vue
src/page/content/display/content/details.vue
+2
-1
No files found.
src/page/check/display/index.vue
View file @
e8f27e3c
...
...
@@ -197,7 +197,7 @@
<el-input
type=
"textarea"
v-model=
"editForm.remarks"
></el-input>
</el-form-item>
<el-form-item
label=
"展板视频"
:label-width=
"formLabelWidth"
>
<div
class=
"video-box"
>
<div
class=
"video-box"
@
contextmenu
.
prevent
>
<div
class=
"video-item"
v-for=
"(item, index) in editForm.videoList"
:key=
"index"
>
<video
:src=
"item.fileUrl"
controls
controlsList=
'nodownload noremote footbar'
/>
<span>
{{ item.fileName }}
</span>
...
...
src/page/check/learn/details.vue
View file @
e8f27e3c
...
...
@@ -42,13 +42,13 @@
<span>
{{
item
.
remarks
}}
</span>
</el-form-item>
<el-form-item
label=
"展板视频"
class=
"w100"
>
<div
class=
"video-box"
>
<div
class=
"video-box"
@
contextmenu
.
prevent
>
<div
class=
"video-item"
v-for=
"(vi, index) in item.videoList"
:key=
"index"
>
<video
:src=
"vi.fileUrl"
controls
/>
<video
:src=
"vi.fileUrl"
controls
List=
'nodownload noremote footbar'
/>
<span>
{{
vi
.
fileName
}}
</span>
</div>
</div>
...
...
src/page/check/learn/index-.vue
deleted
100644 → 0
View file @
0cdbeec7
<
template
>
<div>
<!--
<video
:src=
"videoSrc"
:poster=
"videoImg"
:autoplay=
"playStatus"
height=
"421"
width=
"700"
:muted=
"muteStatus"
>
your browser does not support the video tag
</video>
<button
@
click=
"playClick"
:class=
"
{hide: isPlay}">点击播放
</button>
-->
<!--class="video-js vjs-default-skin vjs-big-play-centered" -->
<video
:preload=
"preload"
:poster=
"videoImg"
:height=
"height"
:width=
"width"
align=
"center"
:controls=
"controls"
:autoplay=
"autoplay"
>
<source
:src=
"videoSrc"
>
</video>
</div>
</
template
>
<
script
>
export
default
{
name
:
'Video'
,
data
()
{
return
{
videoSrc
:
'https://video.pearvideo.com/mp4/short/20200209/cont-1650197-14888002-hd.mp4'
,
videoImg
:
'https://sm.ms/image/ueRFCZfk2xTONGb'
,
playStatus
:
''
,
muteStatus
:
''
,
isMute
:
true
,
isPlay
:
false
,
width
:
'820'
,
// 设置视频播放器的显示宽度(以像素为单位)
height
:
'500'
,
// 设置视频播放器的显示高度(以像素为单位)
preload
:
'auto'
,
// 建议浏览器是否应在
<
video
>
加载元素后立即开始下载视频数据。
controls
:
true
,
// 确定播放器是否具有用户可以与之交互的控件。没有控件,启动视频播放的唯一方法是使用autoplay属性或通过Player API。
autoplay
:
''
}
}
// 自动播放属性,muted:静音播放
// autoplay: 'muted',
}
</
script
>
<
style
scoped
>
</
style
>
src/page/check/video/index.vue
View file @
e8f27e3c
...
...
@@ -151,7 +151,8 @@
:visible
.
sync=
"FormVisible"
:before-close=
"close"
>
<div
class=
"dialog-content"
>
<!-- @contextmenu.prevent.capture -->
<div
class=
"dialog-content"
@
contextmenu
.
prevent
>
<span
v-for=
"(item, index) in videoList"
...
...
@@ -173,7 +174,9 @@
</el-dialog>
</div>
</template>
<
script
>
export
default
{
components
:
{},
data
()
{
...
...
src/page/content/components/dialog/videoDialog.vue
View file @
e8f27e3c
...
...
@@ -6,6 +6,7 @@
width=
"400px"
:visible
.
sync=
"dialogVisible"
:before-close=
"close"
@
contextmenu
.
prevent
>
<span
v-for=
"(item,index) in videoList"
:key=
"index"
>
<video
...
...
src/page/content/components/videoPlay.vue
View file @
e8f27e3c
<
template
>
<div>
<div
@
contextmenu
.
prevent
>
<span
v-for=
"(item,index) in videoList"
:key=
"index"
>
<video
:preload=
"preload"
...
...
src/page/content/display/content/details.vue
View file @
e8f27e3c
...
...
@@ -78,7 +78,7 @@
label-position=
"top"
>
<el-form-item
label=
"展板视频"
class=
"w100"
>
<div
v-if=
"contentData.videoList.length"
>
<div
v-if=
"contentData.videoList.length"
@
contextmenu
.
prevent
>
<span
class=
"file-box"
v-for=
"(s, i) in contentData.videoList"
...
...
@@ -89,6 +89,7 @@
width=
"100%"
height=
"100%"
poster=
"images/applets/video.png"
controlsList=
'nodownload noremote footbar'
>
<source
:src=
"s.fileUrl"
/>
</video>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment