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
e9f21862
Commit
e9f21862
authored
Dec 02, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bofang
parent
088256df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
3 deletions
+40
-3
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+5
-3
video.html
video.html
+35
-0
No files found.
src/view/sjgl/wxk_public.vue
View file @
e9f21862
...
...
@@ -517,9 +517,11 @@ export default {
_this
.
title
=
"
正在播放视频---
"
+
row
.
name
;
_this
.
centerDialogVisible_video
=
true
;
setTimeout
(
function
()
{
let
path_srt
=
"
api/rest/file/download/Document/
"
;
path_srt
=
path_srt
+
row
.
file
.
uuid
;
_this
.
video_src
=
path_srt
;
// let path_srt = "api/rest/file/download/Document/";
// path_srt = path_srt + row.file.uuid;
// _this.video_src = path_srt;
_this
.
video_src
=
`api/rest/file/playVideo/Document?objectName=
${
row
.
file
.
uuid
}
`
if
(
document
.
getElementById
(
"
video
"
).
currentTime
!=
0
)
document
.
getElementById
(
"
video
"
).
currentTime
=
0
;
},
500
);
...
...
video.html
0 → 100644
View file @
e9f21862
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
Video.js 6.2.8
</title>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/7.3.0/video-js.min.css"
rel=
"stylesheet"
>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/7.3.0/video.min.js"
></script>
<style>
</style>
</head>
<body>
<div
class=
"m"
>
<video
id=
"my-video"
class=
"video-js"
controls
preload=
"auto"
width=
"740"
height=
"400"
data-setup=
"{}"
>
</video>
</div>
</body>
<script
type=
"text/javascript"
>
var
myPlayer
=
videojs
(
'
my-video
'
,
{
sources
:
[{
src
:
"
http://localhost:8080/req.mp4
"
,
autoplay
:
true
,
playbackRates
:
[
0.5
,
1
,
1.5
,
2
]
//倍速播放
}]
},
function
()
{
console
.
log
(
"
videojs播放器初始化成功
"
);
});
myPlayer
.
play
();
</script>
</html>
\ No newline at end of file
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