revert: undo 3 loop-start=0 freeze fixes; let creators avoid loopStart=0
This commit is contained in:
@@ -118,11 +118,7 @@ export class Engine {
|
|||||||
|
|
||||||
this.videoManager.onEnd(() => {
|
this.videoManager.onEnd(() => {
|
||||||
if (this.loopActive && scene.loopEnd) {
|
if (this.loopActive && scene.loopEnd) {
|
||||||
const activeEl = this.videoManager.getActiveVideoElement()
|
this.videoManager.seekTo(scene.loopStart!)
|
||||||
if (activeEl) {
|
|
||||||
activeEl.currentTime = scene.loopStart!
|
|
||||||
setTimeout(() => activeEl.play().catch(() => {}), 0)
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (scene.loopStart && !this.loopActive) {
|
if (scene.loopStart && !this.loopActive) {
|
||||||
@@ -233,11 +229,7 @@ export class Engine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.loopActive && scene.loopEnd && time >= scene.loopEnd) {
|
if (this.loopActive && scene.loopEnd && time >= scene.loopEnd) {
|
||||||
const activeEl = this.videoManager.getActiveVideoElement()
|
this.videoManager.seekTo(scene.loopStart)
|
||||||
if (activeEl) {
|
|
||||||
activeEl.currentTime = scene.loopStart
|
|
||||||
setTimeout(() => activeEl.play().catch(() => {}), 0)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user