MCPcopy Create free account
hub / github.com/error311/FileRise / setVideoSrc

Function setVideoSrc

public/js/filePreview.js:887–897  ·  view source on GitHub ↗
(nm)

Source from the content-addressed store, hash-verified

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;

Callers 2

navigateFunction · 0.85
previewFileFunction · 0.85

Calls 3

buildPreviewUrlFunction · 0.85
siblingPreviewUrlFunction · 0.85
setTitleFunction · 0.85

Tested by

no test coverage detected