fix: play after seekTo in loop ended handler for loopStart=0
This commit is contained in:
@@ -119,6 +119,7 @@ export class Engine {
|
|||||||
this.videoManager.onEnd(() => {
|
this.videoManager.onEnd(() => {
|
||||||
if (this.loopActive && scene.loopEnd) {
|
if (this.loopActive && scene.loopEnd) {
|
||||||
this.videoManager.seekTo(scene.loopStart!)
|
this.videoManager.seekTo(scene.loopStart!)
|
||||||
|
this.videoManager.getActiveVideoElement()?.play().catch(() => {})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (scene.loopStart && !this.loopActive) {
|
if (scene.loopStart && !this.loopActive) {
|
||||||
|
|||||||
Reference in New Issue
Block a user