grabster/src-tauri/Cargo.toml
orca 2064f90c7c Add media player for finished downloads; fix playback, GPU, a11y
Player
- Now Playing strip + video stage, play/pause/seek/volume, next/prev file,
  mini/full view, fullscreen, Keep/Ditch prompt after playback.
- src-tauri/src/media.rs: loopback HTTP server (random port + token, only
  files media_list handed out) with Range support; media_trash moves played
  downloads to the Trash, only inside the download folder.

Playback fixes
- Always send Content-Length: tiny_http chunks bodies over 32 KB, which
  stopped GStreamer seeking and left MKVs "buffering" forever.
- Hide Matroska subtitle tracks while serving (TrackType 0x11 -> 0x21, same
  length): WebKitGTK 2.54 never finishes loading an MKV that has them.

GPU
- Replace WEBKIT_DISABLE_DMABUF_RENDERER=1 with __NV_DISABLE_EXPLICIT_SYNC=1
  when the NVIDIA driver is loaded. Same Wayland "Error 71" fix, but keeps
  WebKit's GPU renderer; video in a large window used ~2x the CPU before.

Accessibility
- Pointer cursor on everything clickable (.clickable for custom elements),
  hover wash on clickable list rows.
- List text 12px / 18px rows (chrome stays 11px Tahoma).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:18:55 -05:00

24 lines
490 B
TOML

[package]
name = "grabster"
version = "0.1.0"
edition = "2021"
[lib]
name = "grabster_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-http = "2"
tauri-plugin-store = "2"
tauri-plugin-opener = "2"
tauri-plugin-dialog = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
base64 = "0.22"
libc = "0.2"
tiny_http = "0.12"
trash = "5"