ffmpeg implemented
This commit is contained in:
27
README.md
27
README.md
@@ -103,6 +103,33 @@ To change the default window size, edit `src-tauri/tauri.conf.json`:
|
||||
* **WebView2 Error (Windows)**: If the app doesn't start on Windows, ensure the [Microsoft Edge WebView2 Runtime](https://developer.microsoft.com/en-us/microsoft-edge/webview2/) is installed.
|
||||
* **Build Failures**: Try running `cargo update` inside the `src-tauri` folder to update Rust dependencies.
|
||||
|
||||
## FFmpeg (Optional) for Native Playback
|
||||
|
||||
Local/native playback uses an external **FFmpeg** binary to decode radio streams.
|
||||
|
||||
### How the app finds FFmpeg
|
||||
|
||||
At runtime it searches in this order:
|
||||
|
||||
1. `RADIOPLAYER_FFMPEG` environment variable (absolute or relative path)
|
||||
2. Next to the application executable (Windows: `ffmpeg.exe`, macOS/Linux: `ffmpeg`)
|
||||
3. Common bundle resource folders relative to the executable:
|
||||
- `resources/ffmpeg(.exe)`
|
||||
- `Resources/ffmpeg(.exe)`
|
||||
- `../resources/ffmpeg(.exe)`
|
||||
- `../Resources/ffmpeg(.exe)`
|
||||
4. Your system `PATH`
|
||||
|
||||
### Optional: download FFmpeg automatically (Windows)
|
||||
|
||||
This is **opt-in** (it is not run automatically during build/run). It downloads a prebuilt FFmpeg zip and extracts `ffmpeg.exe` into `tools/ffmpeg/bin/ffmpeg.exe`.
|
||||
|
||||
```bash
|
||||
npm run ffmpeg:download
|
||||
```
|
||||
|
||||
Then run `npm run dev:native` (or `npm run build`) to copy FFmpeg into `src-tauri/resources/` for bundling.
|
||||
|
||||
## License
|
||||
|
||||
[Add License Information Here]
|
||||
|
||||
Reference in New Issue
Block a user