remove dummy webrtc stream,

add api to get webrtc stream
This commit is contained in:
lc
2025-11-20 14:58:10 +08:00
parent e4224a19bc
commit 4e16783824
3 changed files with 12 additions and 54 deletions

View File

@@ -137,4 +137,13 @@ impl Stream {
pub fn from(stream: TcpStream, stream_addr: SocketAddr) -> Self {
Self::Tcp(tcp::FramedStream::from(stream, stream_addr))
}
#[inline]
#[cfg(feature = "webrtc")]
pub fn get_webrtc_stream(&self) -> Option<webrtc::WebRTCStream> {
match self {
Self::WebRTC(s) => Some(s.clone()),
_ => None,
}
}
}