Files
simple-instant-stream/crates/server/src/webrtc_ingest.rs
T
2026-07-01 01:49:51 +01:00

18 lines
405 B
Rust

use std::sync::Arc;
use axum::{extract::State, response::IntoResponse};
use str0m::change::SdpOffer;
use tracing::info;
use crate::http::HttpServer;
pub async fn handle_whip_injest(
State(state): State<Arc<HttpServer>>,
offer: String,
) -> impl IntoResponse {
let sdp_offer = SdpOffer::from_sdp_string(&offer).unwrap();
for x in &sdp_offer.media_lines {
info!("{}", x);
}
}