a lot 2
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user