fix: firefox not resolving codec (h264)

This commit is contained in:
2026-07-10 00:31:01 +01:00
parent 888eace0bf
commit 2f0a02131e
7 changed files with 206 additions and 113 deletions
+3
View File
@@ -1,6 +1,7 @@
use std::{error::Error, sync::Arc};
use async_broadcast::broadcast;
use chrono::Utc;
use dashmap::DashMap;
use entity::stream_session;
use rml_rtmp::{
@@ -11,6 +12,7 @@ use sea_orm::{DatabaseConnection, IntoActiveModel, sqlx::types::chrono::Local};
use tokio::{
io::{AsyncReadExt, AsyncWriteExt},
net::{TcpListener, TcpStream},
time::Instant,
};
use tracing::{debug, info, warn};
@@ -233,6 +235,7 @@ impl Rtmp {
frame_channel: video_tx.clone(),
audio_channel: audio_tx.clone(),
codec: None,
started_at: Utc::now(),
},
);