Hi, I write a native WebRTC based video call app and using Janus as SFU, but severe video lag was observed when the network has some packet loss. So I did some tests to compare between AppRTC's P2P video call and Janus video call, I find out that AppRTC's P2P call performs much better.
Below are some details:
iPhone 6, iOS 11.4.1, vs Nexus 5X, Android 8.1, both iPhone 6, Nexus 5X and Janus server are behind the same NAT network.
iPhone's Network Link Conditioner profile:
In Bandwidth 10000
In Packet Loss 3.4
In Delay 380
Out Bandwidth 10000
Out Packet Loss 3.4
Out Delay 380
DNS Delay 100
No other network limit on Nexus 5X or Janus server.
Android native WebRTC sdk version: #24277
iOS native WebRTC sdk version: #24275
Janus commit: ef8477e6081c4015e244fbce37d9930e73b83412
For AppRTC's P2P test, I use the original WebRTC demo, with the same version of WebRTC sdk.
I recorded video during the tests and upload them to google drive, both devices record an online stopwatch, we could see that AppRTC P2P mode is much smoother than Janus SFU mode.
How could I improve this problem? Please help me.