mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Fix react race condition
This commit is contained in:
parent
e97c445fb9
commit
4b30c5536b
@ -81,7 +81,8 @@ export class DynamicVideoController {
|
||||
this.playerController.currentTime = seekSeconds;
|
||||
|
||||
if (play) {
|
||||
this.playerController.play();
|
||||
// use timeout to avoid race condition with other data loading
|
||||
setTimeout(() => this.playerController.play()), 1;
|
||||
} else {
|
||||
this.playerController.pause();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user