wip: dual audio transmission server

This commit is contained in:
Kingtous
2022-11-03 21:09:37 +08:00
parent e0f73ccc28
commit 28ad271693
3 changed files with 80 additions and 1 deletions

View File

@@ -108,6 +108,12 @@ pub struct Connection {
from_switch: bool,
}
impl ConnInner {
pub fn new(id: i32, tx: Option<Sender>, tx_video: Option<Sender>) -> Self {
Self { id, tx, tx_video }
}
}
impl Subscriber for ConnInner {
#[inline]
fn id(&self) -> i32 {