feat: add POST /api/v1/probe endpoint

- Add ProbeRequest/ProbeResponse structures
- Support relative and absolute paths
- Cache probe.json for repeated requests
- Return video metadata (uuid, duration, width, height, fps)
- Include cached flag to indicate cache hit
- Export FormatInfo and StreamInfo from probe module
- Update API_ENDPOINTS.md documentation
This commit is contained in:
accusys
2026-03-25 03:26:40 +08:00
parent f240ae94bb
commit f27e51a905
3 changed files with 402 additions and 22 deletions

View File

@@ -1,3 +1,3 @@
pub mod probe;
pub mod ffprobe;
pub use probe::{probe_video, ProbeResult};
pub use ffprobe::{probe_video, FormatInfo, ProbeResult, StreamInfo};