#audio-streaming #streaming #back-end #vban

rusty-vban

VBAN API implementation in Rust

14 releases (4 breaking)

0.6.1 Dec 17, 2023
0.6.0 Dec 17, 2023
0.5.0 Oct 4, 2023
0.4.4 Oct 3, 2023
0.1.4 Apr 1, 2023

#303 in Audio

Download history 63/week @ 2024-07-28 3/week @ 2024-09-22 3/week @ 2024-09-29

95 downloads per month

MIT/Apache

48KB
1.5K SLoC

VBAN API implemented in Rust

API Examples

Emitter

use rusty_vban::emitter::{EmitterBuilder, EmitterOptions};

EmitterBuilder::default()
    .ip_address("192.168.0.1")
    .stream_name("Mic")
    .port(6890) // Optional, default: 6890
    .channels(2) // Optional, default: 2
    .device("default") // Optional, default: "default"
    .backend("default") // Optional, default: "default"
    .build()
    .unwrap()
    .run(EmitterOptions::default())
    .unwrap();

Receptor

use rusty_vban::receptor::{ReceptorBuilder, ReceptorOptions};

ReceptorBuilder::default()
    .latency(16) // Optional, default: 16
    .ip_address("192.168.0.1")
    .stream_name("Mic")
    .port(6890) // Optional, default: 6890
    .channels(2) // Optional, default: 2
    .device("default") // Optional, default: "default"
    .backend("default") // Optional, default: "default"
    .build()
    .unwrap()
    .run(ReceptorOptions::default())
    .unwrap();

Dependencies

~2–34MB
~469K SLoC