use librecast::Librecast;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let librecast = Librecast::new()?;
let channel = librecast
.channel_builder()
.name("example-channel")
.enable_raptorq()
.enable_loopback()
.build()?;
channel.join()?;
channel.rate_limit(104857600)?;
let data = b"Hello, Librecast!";
channel
.send(data)
.expect("Failed to send data on the channel");
channel.leave()?;
Ok(())
}