(cache_root: &Path, job_id: &str)
| 67 | } |
| 68 | |
| 69 | pub 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 | |
| 80 | pub fn mp4_cache_paths(cache_root: &Path, job_id: &str) -> Mp4CachePaths { |
| 81 | let dir = cache_root.join(job_id); |
no outgoing calls
no test coverage detected