(nm)
| 885 | |
| 886 | // Helper: set src for a given video name |
| 887 | const setVideoSrc = (nm) => { |
| 888 | currentName = nm; |
| 889 | |
| 890 | // For the current file, reuse the original working URL. |
| 891 | // For other files (next/prev), go through the API. |
| 892 | const url = (nm === name) ? initialUrl : buildPreviewUrl(folder, nm); |
| 893 | |
| 894 | video.src = url; |
| 895 | video.src = siblingPreviewUrl(nm); |
| 896 | setTitle(overlay, nm); |
| 897 | }; |
| 898 | |
| 899 | const SAVE_INTERVAL_MS = 5000; |
| 900 | let lastSaveAt = 0; |
no test coverage detected