Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
21f07b64
Commit
21f07b64
authored
Dec 05, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
cb3900de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
23 deletions
+26
-23
src/components/common/video_player.vue
src/components/common/video_player.vue
+7
-5
src/view/flfg/znfx.vue
src/view/flfg/znfx.vue
+7
-6
src/view/fzjc/znfx.vue
src/view/fzjc/znfx.vue
+6
-6
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+6
-6
No files found.
src/components/common/video_player.vue
View file @
21f07b64
<
template
>
<
template
>
<div>
<div>
<video
style=
"height: 100%;width: 100%;"
id=
"my-player"
v-if=
"this.src.endsWith('flv')"
preload=
"auto"
muted
autoplay
controls
>
<video
style=
"height: 100%;width: 100%;"
id=
"my-player"
v-if=
"this.src.endsWith('flv')"
preload=
"auto"
muted
autoplay
controls
>
</video>
</video>
<video
style=
"height: 100%;width: 100%;"
id=
"my-player"
v-if=
"!this.src.endsWith('flv')"
class=
"video-js"
preload=
"auto"
muted
autoplay
controls
>
<video
style=
"height: 100%;width: 100%;"
id=
"my-player"
v-if=
"!this.src.endsWith('flv')"
class=
"video-js"
preload=
"auto"
muted
autoplay
controls
>
</video>
</video>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
flvjs
from
"
flv.js
"
;
import
flvjs
from
"
flv.js
"
;
import
videozhCN
from
"
video.js/dist/lang/zh-CN.json
"
;
import
videojs
from
"
video.js
"
;
import
videojs
from
"
video.js
"
;
import
videozhCN
from
"
video.js/dist/lang/zh-CN.json
"
;
import
"
video.js/dist/video-js.css
"
;
import
"
video.js/dist/video-js.css
"
;
export
default
{
export
default
{
props
:
[
'
src
'
],
props
:
[
'
src
'
],
...
@@ -39,6 +41,7 @@ export default {
...
@@ -39,6 +41,7 @@ export default {
this
.
flvPlayer
.
play
();
//播放
this
.
flvPlayer
.
play
();
//播放
}
}
}
else
{
}
else
{
videojs
.
addLanguage
(
"
zh-CN
"
,
videozhCN
);
this
.
mp4Player
=
videojs
(
'
my-player
'
,
{
this
.
mp4Player
=
videojs
(
'
my-player
'
,
{
sources
:
[{
sources
:
[{
language
:
"
zh-CN
"
,
language
:
"
zh-CN
"
,
...
@@ -47,9 +50,8 @@ export default {
...
@@ -47,9 +50,8 @@ export default {
playbackRates
:
[
0.5
,
1
,
1.5
,
2
]
//倍速播放
playbackRates
:
[
0.5
,
1
,
1.5
,
2
]
//倍速播放
}]
}]
},
function
()
{
},
function
()
{
console
.
log
(
"
videojs播放器初始化成功
"
);
});
});
videojs
.
addLanguage
(
"
zh-CN
"
,
videozhCN
);
this
.
mp4Player
.
play
();
this
.
mp4Player
.
play
();
}
}
},
},
...
...
src/view/flfg/znfx.vue
View file @
21f07b64
...
@@ -387,6 +387,7 @@ import VideoPlayer from "../../components/common/video_player.vue"
...
@@ -387,6 +387,7 @@ import VideoPlayer from "../../components/common/video_player.vue"
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
errimg
:
''
,
centerDialogVisible_add
:
false
,
centerDialogVisible_add
:
false
,
centerDialogVisible_edit
:
false
,
centerDialogVisible_edit
:
false
,
centerDialogVisible_video
:
false
,
centerDialogVisible_video
:
false
,
...
@@ -921,12 +922,12 @@ export default {
...
@@ -921,12 +922,12 @@ export default {
}
}
},
},
//视频预览弹出框隐藏事件
//视频预览弹出框隐藏事件
centerDialogVisible_video
:
function
(
s
)
{
//
centerDialogVisible_video: function (s) {
if
(
!
s
)
{
//
if (!s) {
this
.
video_src
=
""
;
//
this.video_src = "";
document
.
getElementById
(
"
video
"
).
pause
();
//
document.getElementById("video").pause();
}
//
}
},
//
},
//音频预览弹出框隐藏事件
//音频预览弹出框隐藏事件
centerDialogVisible_sound
:
function
(
s
)
{
centerDialogVisible_sound
:
function
(
s
)
{
if
(
!
s
)
{
if
(
!
s
)
{
...
...
src/view/fzjc/znfx.vue
View file @
21f07b64
...
@@ -915,12 +915,12 @@ export default {
...
@@ -915,12 +915,12 @@ export default {
}
}
},
},
//视频预览弹出框隐藏事件
//视频预览弹出框隐藏事件
centerDialogVisible_video
:
function
(
s
)
{
//
centerDialogVisible_video: function (s) {
if
(
!
s
)
{
//
if (!s) {
this
.
video_src
=
""
;
//
this.video_src = "";
document
.
getElementById
(
"
video
"
).
pause
();
//
document.getElementById("video").pause();
}
//
}
},
//
},
//音频预览弹出框隐藏事件
//音频预览弹出框隐藏事件
centerDialogVisible_sound
:
function
(
s
)
{
centerDialogVisible_sound
:
function
(
s
)
{
if
(
!
s
)
{
if
(
!
s
)
{
...
...
src/view/sjgl/wxk_public.vue
View file @
21f07b64
...
@@ -956,12 +956,12 @@ export default {
...
@@ -956,12 +956,12 @@ export default {
}
}
},
},
//视频预览弹出框隐藏事件
//视频预览弹出框隐藏事件
centerDialogVisible_video
:
function
(
s
)
{
//
centerDialogVisible_video: function (s) {
if
(
!
s
)
{
//
if (!s) {
this
.
video_src
=
""
;
//
this.video_src = "";
document
.
getElementById
(
"
video
"
).
pause
();
//
document.getElementById("video").pause();
}
//
}
},
//
},
//音频预览弹出框隐藏事件
//音频预览弹出框隐藏事件
centerDialogVisible_sound
:
function
(
s
)
{
centerDialogVisible_sound
:
function
(
s
)
{
if
(
!
s
)
{
if
(
!
s
)
{
...
...
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