mirror of
https://github.com/Igalia/gst-wpe-webrtc-demo
synced 2024-05-05 01:58:57 +00:00
28 lines
520 B
Rust
28 lines
520 B
Rust
#![recursion_limit = "256"]
|
|
|
|
#[macro_use]
|
|
mod macros;
|
|
mod app;
|
|
mod janus;
|
|
mod pipeline;
|
|
mod settings;
|
|
mod utils;
|
|
|
|
use crate::app::App;
|
|
#[macro_use]
|
|
extern crate log;
|
|
|
|
pub const APPLICATION_NAME: &str = "com.igalia.gstwpe.broadcast.demo";
|
|
|
|
async fn async_main() -> Result<(), anyhow::Error> {
|
|
gst::init()?;
|
|
let app = App::new()?;
|
|
app.run().await
|
|
}
|
|
|
|
fn main() -> Result<(), anyhow::Error> {
|
|
env_logger::init();
|
|
let main_context = glib::MainContext::default();
|
|
main_context.block_on(async_main())
|
|
}
|