Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
accessibility_movie_2
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
赵心治
accessibility_movie_2
Commits
2ca94fa3
Commit
2ca94fa3
authored
Oct 21, 2022
by
xuanweiace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 双击起始时间,也能初始化【已播放音频list】
parent
190b596b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
main_window.py
main_window.py
+3
-0
No files found.
main_window.py
View file @
2ca94fa3
...
@@ -413,7 +413,9 @@ class MainWindow(QMainWindow, Ui_MainWindow):
...
@@ -413,7 +413,9 @@ class MainWindow(QMainWindow, Ui_MainWindow):
for
i
in
range
(
len
(
self
.
projectContext
.
aside_list
)
-
1
,
-
1
,
-
1
):
for
i
in
range
(
len
(
self
.
projectContext
.
aside_list
)
-
1
,
-
1
,
-
1
):
if
position
/
1000
>
float
(
self
.
projectContext
.
aside_list
[
i
]
.
st_time_sec
):
if
position
/
1000
>
float
(
self
.
projectContext
.
aside_list
[
i
]
.
st_time_sec
):
audio_path
=
os
.
path
.
dirname
(
self
.
projectContext
.
excel_path
)
+
(
"/tmp/
%.2
f.wav"
%
float
(
self
.
projectContext
.
aside_list
[
i
]
.
st_time_sec
))
audio_path
=
os
.
path
.
dirname
(
self
.
projectContext
.
excel_path
)
+
(
"/tmp/
%.2
f.wav"
%
float
(
self
.
projectContext
.
aside_list
[
i
]
.
st_time_sec
))
print
(
"audio_path:"
,
audio_path
)
break
break
print
(
"previewed_audio:"
,
self
.
previewed_audio
)
# 2、如果找到了该音频并且该次预览中没有播放过,则新起一个线程播放
# 2、如果找到了该音频并且该次预览中没有播放过,则新起一个线程播放
if
audio_path
!=
None
and
os
.
path
.
basename
(
audio_path
)
not
in
self
.
previewed_audio
:
if
audio_path
!=
None
and
os
.
path
.
basename
(
audio_path
)
not
in
self
.
previewed_audio
:
RunThread
(
funcName
=
self
.
play_audio
,
RunThread
(
funcName
=
self
.
play_audio
,
...
@@ -563,6 +565,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
...
@@ -563,6 +565,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
col
=
item
.
column
()
# 获取列数
col
=
item
.
column
()
# 获取列数
print
(
"row, col =
%
s,
%
s"
%
(
row
,
col
))
print
(
"row, col =
%
s,
%
s"
%
(
row
,
col
))
text
=
item
.
text
()
# 获取内容
text
=
item
.
text
()
# 获取内容
self
.
init_previewed_audio
()
if
self
.
checkIfVideoTimeCanChange
(
row
,
col
):
if
self
.
checkIfVideoTimeCanChange
(
row
,
col
):
self
.
video_timer
.
stop
()
self
.
video_timer
.
stop
()
self
.
video_timer
.
start
(
1000
)
# 双击的时候,就重启计时器,避免他跳转回video.position的地方去。
self
.
video_timer
.
start
(
1000
)
# 双击的时候,就重启计时器,避免他跳转回video.position的地方去。
...
...
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