fix(ui): cap video framerate for mobile to 100hz
This commit is contained in:
parent
75383e6d50
commit
7ce43ef412
1 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,8 @@ function ReplayWindow({ videoURL, userDevice }: Props) {
|
|||
React.useEffect(() => {
|
||||
if (videoRef.current) {
|
||||
const timeSecs = time / 1000
|
||||
if (videoRef.current.duration >= timeSecs) {
|
||||
const delta = videoRef.current.currentTime - timeSecs
|
||||
if (videoRef.current.duration >= timeSecs && Math.abs(delta) > 0.1) {
|
||||
videoRef.current.currentTime = timeSecs
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue