document known limitations in README

This commit is contained in:
Armin 2026-07-09 16:05:06 +02:00
commit 0e37ad6b32
2 changed files with 6 additions and 1 deletions

View file

@ -24,6 +24,11 @@ There is a live demo available at [bsd.pm/noiz](https://bsd.pm/noiz/).
Open `index.html` in any modern browser. Click **+Folder**, **+Files**, or drag audio files onto the window.
## Known Limitations
- **File path display** — When adding individual files via **+Files** or drag-and-drop, browsers do not expose the full filesystem path for security reasons. Only the filename is shown in the tag editor. Using **+Folder** (which reads directory structure) provides the relative path within the selected folder.
- **Playback interruption on +Folder** — Opening the native directory picker suspends the browser's `AudioContext`, causing playback to stop. This is a browser-level security restriction (user gesture required for audio resume). Simply press play again after adding files.
## noizapp
There is a simple PoC Electron available to make noiz a stand-alone desktop "app":
https://codeberg.org/armin/noizapp

View file

@ -1160,7 +1160,7 @@ async function processFiles(files, paths) {
if (!isAudioFile(file.name)) continue;
prog++;
const url = URL.createObjectURL(file);
const path = paths ? paths[i] : file.name;
const path = paths ? paths[i] : (file.path || file.name);
const [tags, ainfo, duration] = await Promise.all([readTags(file), readAudioInfo(file), readDuration(file)]);
const name = tags.title || file.name.replace(/\.[^.]+$/, '').replace(/_/g, ' ');
found.push({