Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃彄 Ping handling for FTL media streams #114

Merged
merged 1 commit into from
Mar 20, 2021

Conversation

danstiner
Copy link
Collaborator

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 danstiner requested a review from haydenmc March 20, 2021 03:34
@danstiner
Copy link
Collaborator Author

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)

@danstiner danstiner merged commit 70799c0 into master Mar 20, 2021
@danstiner danstiner deleted the danstiner/implement-ping branch March 20, 2021 19:44
@danstiner danstiner linked an issue Apr 20, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video improvements for poor network conditions
2 participants