MCPcopy Create free account
hub / github.com/acking-you/static_flow / hls_cache_paths

Function hls_cache_paths

crates/media-service/src/cache.rs:69–78  ·  view source on GitHub ↗
(cache_root: &Path, job_id: &str)

Source from the content-addressed store, hash-verified

67}
68
69pub fn hls_cache_paths(cache_root: &Path, job_id: &str) -> HlsCachePaths {
70 let dir = cache_root.join(job_id);
71 HlsCachePaths {
72 job_id: job_id.to_string(),
73 playlist: dir.join("index.m3u8"),
74 ready_marker: dir.join(".ready"),
75 error_marker: dir.join(".error.txt"),
76 dir,
77 }
78}
79
80pub fn mp4_cache_paths(cache_root: &Path, job_id: &str) -> Mp4CachePaths {
81 let dir = cache_root.join(job_id);

Calls

no outgoing calls

Tested by

no test coverage detected