fix: firefox not resolving codec (h264)
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user