api_video

Crates.ioapi_video
lib.rsapi_video
version0.2.0
sourcesrc
created_at2024-04-14 16:48:03.685828
updated_at2024-10-01 08:45:37.607302
descriptionThis is unofficial client for api.video written in Rust
homepage
repositoryhttps://github.com/Satyam1Vishwakarma/rapi_video
max_upload_size
id1208374
size14,086
(Satyam1Vishwakarma)

documentation

README

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 ✅|

Commit count: 27

cargo fmt