Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
a48976d0
Commit
a48976d0
authored
Dec 15, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决点开视频重新开始播放的问题
parent
78f6e040
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
pages/courseDetail/courseDetail.vue
+5
-8
No files found.
pages/courseDetail/courseDetail.vue
View file @
a48976d0
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</view>
</view>
<!-- 课程banner图 -->
<!-- 课程banner图 -->
<!-- v-show="!sliceshare" -->
<!-- v-show="!sliceshare" -->
<view
class=
"courseBannerBox"
v-
show
=
"!sliceshare"
>
<view
class=
"courseBannerBox"
v-
if
=
"!sliceshare"
>
<video
id=
"myVideo"
:src=
"courseInfo.filePathOss"
:initial-time=
"videoPlaybackInfo.maxViewTime"
<video
id=
"myVideo"
:src=
"courseInfo.filePathOss"
:initial-time=
"videoPlaybackInfo.maxViewTime"
object-fit=
"contain"
class=
"videoBox"
:poster=
"courseInfo.fileFirstImage"
:title=
"courseInfo.fileTitle"
object-fit=
"contain"
class=
"videoBox"
:poster=
"courseInfo.fileFirstImage"
:title=
"courseInfo.fileTitle"
@
loadedmetadata=
"loadedmetadata"
@
play=
"playVideo"
@
pause=
"pause"
@
ended=
"ended"
@
loadedmetadata=
"loadedmetadata"
@
play=
"playVideo"
@
pause=
"pause"
@
ended=
"ended"
...
@@ -408,14 +408,11 @@
...
@@ -408,14 +408,11 @@
fileId
:
this
.
fileId
,
fileId
:
this
.
fileId
,
packFileId
:
this
.
courseInfo
.
packFileId
packFileId
:
this
.
courseInfo
.
packFileId
}
}
this
.
$nextTick
(()
=>
{
api
.
findVideoPlayback
(
param
).
then
(
res
=>
{
api
.
findVideoPlayback
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
videoPlaybackInfo
=
res
[
'data'
]
this
.
videoPlaybackInfo
=
res
[
'data'
]
}
}
})
})
})
},
},
loadedmetadata
(
e
)
{
loadedmetadata
(
e
)
{
this
.
totalTime
=
e
.
detail
.
duration
;
this
.
totalTime
=
e
.
detail
.
duration
;
...
...
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