feat: video loop support for hotspot scenes, demo updates, docs, and engine fixes

This commit is contained in:
2026-06-08 21:48:47 +08:00
parent 5b40781d0a
commit 0dbe1b097d
6 changed files with 102 additions and 22 deletions

View File

@@ -149,6 +149,11 @@ export class VideoManager {
return this.active ?? null
}
seekTo(time: number) {
if (!this.active) return
this.active.currentTime = time
}
onEnd(cb: VideoEndCallback) {
this.onEndCallback = cb
}