#audio-streaming #streaming #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

#176 in Audio

Download history 9/week @ 2023-12-15 5/week @ 2024-02-23 33/week @ 2024-03-01 248/week @ 2024-03-08 7/week @ 2024-03-15 126/week @ 2024-03-29

387 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–37MB
~509K SLoC