Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CharIP-Electron
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
ali
CharIP-Electron
Commits
784487f3
Commit
784487f3
authored
Dec 05, 2023
by
ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复视频播放完没有停止问题
parent
93479e9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ShowVideo.vue
src/renderer/screens/ShowVideo.vue
+3
-2
No files found.
src/renderer/screens/ShowVideo.vue
View file @
784487f3
...
@@ -371,13 +371,14 @@ async function runAudioPlay() {
...
@@ -371,13 +371,14 @@ async function runAudioPlay() {
isPlayRunning
=
true
isPlayRunning
=
true
const
audio
=
ttsAudios
.
shift
()
const
audio
=
ttsAudios
.
shift
()
const
videoEle
=
videoElement
.
value
as
HTMLVideoElement
;
if
(
!
audio
)
{
if
(
!
audio
)
{
isPlayRunning
=
false
isPlayRunning
=
false
;
videoEle
.
pause
();
return
return
}
}
audio
.
onended
=
()
=>
{
audio
.
onended
=
()
=>
{
isPlayRunning
=
false
isPlayRunning
=
false
const
videoEle
=
videoElement
.
value
as
HTMLVideoElement
videoEle
&&
(
videoEle
.
loop
=
true
)
videoEle
&&
(
videoEle
.
loop
=
true
)
videoEle
&&
(
videoEle
.
muted
=
true
)
videoEle
&&
(
videoEle
.
muted
=
true
)
setVideoUrl
(
new
URL
(
'/libai/10.mp4'
,
import
.
meta
.
url
).
href
)
setVideoUrl
(
new
URL
(
'/libai/10.mp4'
,
import
.
meta
.
url
).
href
)
...
...
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