Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
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
wangxuelai
wechatapp.shangjiadao.com
Commits
464e7d98
Commit
464e7d98
authored
Mar 11, 2020
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 语音点评延迟问题
parent
1c5a56c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
imagecomment.js
business/pages/commenteditor/imagecomment.js
+2
-2
index.js
src/pages/interactcommentplay/index.js
+3
-2
No files found.
business/pages/commenteditor/imagecomment.js
View file @
464e7d98
...
...
@@ -707,12 +707,12 @@ Page({
if
(
currentPoint
){
that
.
playTimeOut
=
setTimeout
(()
=>
{
fn
(
currentPoint
);
},
currentPoint
.
t
-
pretimestamp
);
},
currentPoint
.
t
-
pretimestamp
-
1
);
}
}
that
.
playTimeOut
=
setTimeout
(()
=>
{
fn
(
currentPoint
);
},
currentPoint
.
t
-
that
.
data
.
pretimestamp
)
},
currentPoint
.
t
-
that
.
data
.
pretimestamp
-
1
)
};
...
...
src/pages/interactcommentplay/index.js
View file @
464e7d98
...
...
@@ -453,12 +453,13 @@ Page({
if
(
currentPoint
){
that
.
playTimeOut
=
setTimeout
(()
=>
{
fn
(
currentPoint
);
},
currentPoint
.
t
-
that
.
data
.
pretimestamp
);
},
currentPoint
.
t
-
that
.
data
.
pretimestamp
-
1
);
// 这里减1,能有效降低绘制延迟 (没有依据,估计是计算时间有时间起始点叠加,所以时间越久延迟越大)
}
}
that
.
playTimeOut
=
setTimeout
(()
=>
{
fn
(
currentPoint
);
},
currentPoint
.
t
-
that
.
data
.
pretimestamp
)
},
currentPoint
.
t
-
that
.
data
.
pretimestamp
-
1
)
};
},
actionmake
(
point
)
{
...
...
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