18 lines
405 B
Rust
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);
|
|
}
|
|
}
|