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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'total downloaded' from server and peers in the player #3394

Merged

Conversation

Poslovitch
Copy link
Contributor

Description

This PR implements #3384 with the changes @Chocobozzz suggested in #3384 (comment). Namely:

  • adding a source field in PlayerNetworkInfo
  • adding the requested information in subDivWebtorrent.title (from p2p-info-button.ts) if the server uses HLS.

WebTorrent is seemingly not able to tell the difference between the server and other peers, hence why it's left out of that PR.

Related issues

Resolves #3384

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 👍 yes, light tests as follows are enough
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Screenshots

image

Implements Chocobozzz#3384
This will only work with HLS.
The display for Webtorrent is left untouched.
Copy link
Collaborator

@rigelk rigelk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from some quirks, LGTM! Thanks for your contribution @Poslovitch!

@rigelk rigelk merged commit 1715283 into Chocobozzz:develop Dec 4, 2020
@Poslovitch Poslovitch deleted the feature/3384-p2p-counter-peers-server branch December 4, 2020 15:32
@Booteille
Copy link
Contributor

Thanks everyone!

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.

Ability to know how many MB are downloaded from the server or peers
3 participants