Expand description
Rust client for the FrameQuery API.
use framequery::Client;
#[tokio::main]
async fn main() -> framequery::Result<()> {
let client = Client::new("fq_live_your_api_key");
let result = client.process("meeting.mp4", None).await?;
for scene in &result.scenes {
println!("[{:.1}s] {}", scene.end_time, scene.description);
}
Ok(())
}Use ClientBuilder to configure base URL, timeouts, and retry count.
Falls back to FRAMEQUERY_API_KEY env var if no key is passed explicitly.
Structs§
- Client
- FrameQuery API client. See
ClientBuilderfor non-default config. - Client
Builder - Configures and builds a
Client. - Job
- Current state of a job. Check
statusor use theis_*helpers. - JobPage
- Process
Options - Polling config for
process/process_url. - Processing
Result - Returned by
process/process_urlonce the job completes. - Quota
- Scene
- Transcript
Segment