4 releases (2 breaking)

0.3.3 Mar 13, 2025
0.3.0 Mar 13, 2025
0.2.0 Oct 1, 2024
0.1.0 Apr 14, 2024

#266 in Video

Download history 1/week @ 2024-12-04 3/week @ 2024-12-11 7/week @ 2025-02-05 1/week @ 2025-02-12 6/week @ 2025-02-26 247/week @ 2025-03-12

253 downloads per month

Custom license

22KB
457 lines

api-video Rust Client

This is unofficial client for api.video written in Rust.

It is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.

Installation

cargo add api_video

Usage Asynchrounous

use api_video::rapi;

#[tokio::main]
async fn main(){
    let api = rapi::ApiVideo{production:false,token:"token".to_string()};
    api.video_upload("myfirstvideo".to_string(), "G:\\foo.mp4".to_string()).await;
   let all_video = api.get_all_video(1, 2).await;

}

Usage Synchrounous

use api_video::rapi_sync;


fn main(){
    let api = rapi_sync::ApiVideo{production:false,token:"token".to_string()};
    api.video_upload("myfirstvideo".to_string(), "G:\\foo.mp4".to_string());
   let all_video = api.get_all_video(1, 2);

}

Done

VideoUpload<200MiB ✅| GetAllVideo ✅| DeleteAVideo ✅| ThumbnailUpload ✅| WatermarkUpload ✅| GetWatermark ✅| DeleteWatermark ✅| GetCaption ✅| UploadCaption ✅| DeleteCaption ✅|

Dependencies

~7–18MB
~245K SLoC