Glimesh / janus-ftl-plugin

A plugin for the Janus WebRTC gateway to enable relaying of audio/video streams utilizing Mixer's FTL (Faster-Than-Light) protocol.
https://hayden.fyi/posts/2020-08-03-Faster-Than-Light-protocol-engineering-notes.html
GNU Affero General Public License v3.0
46 stars 11 forks source link

🏓 Ping handling for FTL media streams #114

Closed danstiner closed 3 years ago

danstiner commented 3 years ago

This ping is not expected to be used by the server, it is meant to be ponged back to the client as part of measuring RTT.

Now it's true the client only uses this right now to do a bandwidth test it then ignores, but it does log the bandwidth so it'd be nice for debugging to have the numbers be accurate (right now the client defaults to a two second RTT because it never gets a pong to measure)

See https://github.com/Glimesh/ftl-sdk/blob/5912733506c066684aebd43f3e0b94cf51ca98c1/libftl/media.c#L1165-L1174

danstiner commented 3 years ago

Tested locally and verified my bandwidth was measured correctly (well the client maxes at 15mbps on the speed test so it just said that, but that's more accurate than how it used to say 5005kbps exactly always)