fix: call play() after seekTo in checkLoop to prevent video freeze
This commit is contained in:
@@ -231,6 +231,7 @@ export class Engine {
|
|||||||
|
|
||||||
if (this.loopActive && scene.loopEnd && time >= scene.loopEnd) {
|
if (this.loopActive && scene.loopEnd && time >= scene.loopEnd) {
|
||||||
this.videoManager.seekTo(scene.loopStart)
|
this.videoManager.seekTo(scene.loopStart)
|
||||||
|
this.videoManager.getActiveVideoElement()?.play().catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user