diff --git a/movie_editor/frontend/player.js b/movie_editor/frontend/player.js index a1021c54..cf586b17 100644 --- a/movie_editor/frontend/player.js +++ b/movie_editor/frontend/player.js @@ -181,6 +181,8 @@ } function _play() { + // At (or past) the end of the timeline → loop the playhead back to the start. + if (_phSec >= (_totalSecCur || 0) - 0.05 || !_clipFrom(_phSec)) _phSec = 0; const clip = _clipFrom(_phSec); if (!clip) return; if (_phSec < clip.startSec) _phSec = clip.startSec;