mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-17 01:00:41 +01:00
The viewer assumed webrtc-rs's missing a=max-message-size meant 64 KB and refused larger port-mapping frames, stalling uploads after the first frame. Advertise 262144 in the answer sent to the viewer and vendor webrtc with a 256 KB data-channel receive buffer (upstream u16::MAX). Verified with the official Mac viewer: 20 MB upload 10 MB/s, 20 MB download and 5 concurrent downloads, checksums match. Docs and v0.1.4 notes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
26 lines
548 B
Rust
26 lines
548 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn test_new_api() -> Result<()> {
|
|
let mut s = SettingEngine::default();
|
|
s.detach_data_channels();
|
|
let mut m = MediaEngine::default();
|
|
m.register_default_codecs()?;
|
|
|
|
let api = APIBuilder::new()
|
|
.with_setting_engine(s)
|
|
.with_media_engine(m)
|
|
.build();
|
|
|
|
assert!(
|
|
api.setting_engine.detach.data_channels,
|
|
"Failed to set settings engine"
|
|
);
|
|
assert!(
|
|
!api.media_engine.audio_codecs.is_empty(),
|
|
"Failed to set media engine"
|
|
);
|
|
|
|
Ok(())
|
|
}
|