| Crates.io | dextreamer |
| lib.rs | dextreamer |
| version | 0.2.0 |
| created_at | 2025-01-04 11:46:30.95437+00 |
| updated_at | 2025-01-10 15:48:37.377006+00 |
| description | A sleek and simple wrapper around gstreamer for handling video streams in Rust |
| homepage | |
| repository | https://github.com/antouhou/dextreamer |
| max_upload_size | |
| id | 1503842 |
| size | 55,341 |
dextreamer is a sleek and simple wrapper around gstreamer for handling video streams in Rust. While it provides a more straightforward interface, please note that it may not offer the complete functionality of gstreamer.
Developed as a part of the larger project, the Daiko UI framework, dextreamer stands alone and does not depend on Deko. It is a separate library that can be utilized independently in any Rust application that requires video streaming capabilities.
Before using dextreamer, you must install gstreamer on your system. For detailed installation instructions, please refer to the original gstreamer bindings README.
To add dextreamer to your Rust project, add the following line to your Cargo.toml file:
[dependencies]
dextreamer = "0.1.0"
Then run cargo build to build your project.
Here's a simple example of how you might use dextreamer in your project:
// Add the dextreamer crate
use dextreamer;
fn main() {
// Open a video stream
let (sender, receiver) = dextreamer::open_video("path_to_your_video_file");
// Handle video stream events
while let Ok(event) = receiver.recv() {
match event {
dextreamer::VideoStreamEvent::VideoLoaded(video_info) => println!("Video loaded: {:?}", video_info),
_ => (),
}
}
}
For more examples and detailed usage instructions, please see the dextreamer documentation.
This project is licensed under the MIT License. See LICENSE for details.