feat: add video resolver, URL input, and video player

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 10:57:43 -04:00
parent 820b451514
commit 16812447ef
8 changed files with 358 additions and 5 deletions

View File

@@ -1 +1,12 @@
// Video resolve and download commands — implemented in Task 4/5
use crate::models::{CookieSource, VideoMetadata};
use crate::services::video_resolver;
#[tauri::command]
pub async fn resolve_url(
url: String,
cookie_source: CookieSource,
) -> Result<VideoMetadata, String> {
tokio::task::spawn_blocking(move || video_resolver::resolve(&url, &cookie_source))
.await
.map_err(|e| format!("Task failed: {e}"))?
}