Technology

Refactor 3 times

Talk a joke. This Cluster mode controls, We complete a version. But this version is not amazing.

After, We refactor, and not amazing, after refactor.

RTP pkt_size More than 1200

I think I should introduce this problem:

Most network MTU (Maximum Transmission Unit) is 1500. UDP need IP header, UDP header. And if has VPN, VPN need header. For example: wireguard mtu is 1420, But tailscale is 1280.

But, WebRTC in order to any network, maximum MTU is 1200

If set 1200, We should packet RTP and some parameter. set pkt_size

ffmpeg -re -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libvpx \\
-f rtp 'rtp://127.0.0.1:5003?pkt_size=1200'

If all packet size is 1200. RTP to WebRTC. We use a very tick idea. it’s working

But, most application don’t consider manual set pkt_size feature, most application don’t support this. Although use ffmpeg, not support pkt_size . We need unpacket after packet

UDP payload is RTP. We need know first, How to RTP size. We can use Wireshark inspect RTP detail