support turn relay config, and force_relay option

This commit is contained in:
lc
2025-11-16 04:04:25 +08:00
parent 483cf9d225
commit 0da5d379fc
3 changed files with 113 additions and 13 deletions

View File

@@ -70,7 +70,7 @@ async fn main() -> Result<()> {
"".to_string()
};
let webrtc_stream = WebRTCStream::new(&remote_endpoint, 30000).await?;
let webrtc_stream = WebRTCStream::new(&remote_endpoint, false, 30000).await?;
// Print the offer to be sent to the other peer
let local_endpoint = webrtc_stream.get_local_endpoint().await?;