mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 13:15: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;
|
this.playerController.currentTime = seekSeconds;
|
||||||
|
|
||||||
if (play) {
|
if (play) {
|
||||||
this.playerController.play();
|
// use timeout to avoid race condition with other data loading
|
||||||
|
setTimeout(() => this.playerController.play()), 1;
|
||||||
} else {
|
} else {
|
||||||
this.playerController.pause();
|
this.playerController.pause();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user